/* ==============================================================================
   certificates.css — MyFxFirm Official Auto-Generated Certificates
   1:1 Exact Replica of Phase 1, Phase 2, Funded & Payout Designs
   Locked Proportional Scaling (cqw) — Identical on Desktop, Tablet & Mobile
   ============================================================================== */

:root {
  --mxf-blue-glow: #2563eb;
  --mxf-cyan-glow: #38bdf8;
  --mxf-deep-navy: #030712;
  --mxf-card-bg: rgba(8, 20, 48, 0.75);
  --mxf-border-glow: rgba(96, 165, 250, 0.45);
}

/* ==================== GALLERY GRID & LAYOUT ==================== */
.uf-cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 28px;
  width: 100%;
  margin-top: 20px;
}

@media (max-width: 900px) {
  .uf-cert-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.uf-cert-card-shell {
  background: rgba(10, 18, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  position: relative;
  min-width: 0;
}

.uf-cert-card-shell:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(37, 99, 235, 0.3);
}

/* ==================== 1:1 CERTIFICATE POSTER (PROPORTIONAL CQW) ==================== */
.mxf-cert-poster {
  container-type: inline-size;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5.15;
  background:
    radial-gradient(circle at 82% 8%, rgba(56, 189, 248, 0.38) 0%, transparent 45%),
    radial-gradient(circle at 50% 18%, rgba(37, 99, 235, 0.52) 0%, rgba(3, 7, 18, 0.96) 68%),
    #020617;
  border-radius: 4.5cqw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 4.6cqw 4.8cqw 4.2cqw;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  user-select: none;
  border: 1px solid rgba(96, 165, 250, 0.22);
  box-sizing: border-box;
}

/* Giant Bold Watermark Behind Glass Card */
.mxf-cert-watermark {
  position: absolute;
  top: 11.5cqw;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18.2cqw;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: transparent;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.55) 0%, rgba(37, 99, 235, 0.28) 55%, rgba(15, 23, 42, 0.05) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  pointer-events: none;
  z-index: 1;
  white-space: nowrap;
  line-height: 0.95;
  filter: drop-shadow(0 0 6cqw rgba(37, 99, 235, 0.45));
}

/* Glowing Bottom Horizon Arc */
.mxf-horizon-arc {
  position: absolute;
  bottom: -46%;
  left: -18%;
  width: 136%;
  height: 86%;
  border-radius: 50% 50% 0 0;
  border-top: 0.65cqw solid #93c5fd;
  background: radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.32) 0%, rgba(2, 6, 23, 0.92) 70%);
  box-shadow:
    0 -2cqw 8cqw rgba(56, 189, 248, 0.9),
    0 -8cqw 20cqw rgba(37, 99, 235, 0.75),
    inset 0 0.5cqw 3.5cqw rgba(255, 255, 255, 0.65);
  pointer-events: none;
  z-index: 1;
}

/* Top Navigation Row on Poster */
.mxf-top-row {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2cqw;
  margin-bottom: 1cqw;
}

.mxf-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 1.8cqw;
  font-weight: 700;
  font-size: 3.9cqw;
  color: #ffffff;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.mxf-logo-mark {
  width: 7.2cqw;
  height: 4.15cqw;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 1.4cqw rgba(59, 130, 246, 0.55));
  flex-shrink: 0;
}

.mxf-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 1.2cqw;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 999px;
  padding: 1.1cqw 2.8cqw;
  font-size: 2.35cqw;
  font-weight: 600;
  color: #e2e8f0;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.mxf-tag-pill svg {
  width: 2.8cqw;
  height: 2.8cqw;
  color: #38bdf8;
  flex-shrink: 0;
}

/* ==================== CENTER GLASS CARD ==================== */
.mxf-glass-card {
  position: relative;
  z-index: 3;
  width: 88%;
  margin: auto 0;
  background: linear-gradient(180deg, rgba(12, 28, 68, 0.78) 0%, rgba(6, 15, 38, 0.92) 100%);
  border: 1.5px solid rgba(96, 165, 250, 0.65);
  border-radius: 4.8cqw;
  padding: 4.2cqw 4.2cqw 3.8cqw;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 4cqw 10cqw rgba(0, 0, 0, 0.75),
    0 0 7cqw rgba(37, 99, 235, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2cqw 5cqw rgba(56, 189, 248, 0.18);
  display: flex;
  flex-direction: column;
  gap: 2.3cqw;
  overflow: hidden;
  box-sizing: border-box;
}

/* Matrix Dot Grid on Bottom of Card */
.mxf-glass-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36%;
  background-image: radial-gradient(rgba(56, 189, 248, 0.22) 1px, transparent 1px);
  background-size: 2.8cqw 2.8cqw;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

/* Card Header: Mini Logo + Shield Badge */
.mxf-card-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mxf-mini-brand {
  display: inline-flex;
  align-items: center;
  gap: 1.4cqw;
  font-weight: 700;
  font-size: 3.1cqw;
  color: #ffffff;
  white-space: nowrap;
}

.mxf-mini-brand .mxf-logo-mark {
  width: 5.5cqw;
  height: 3.16cqw;
}

.mxf-shield-badge {
  width: 6.8cqw;
  height: 6.8cqw;
  border-radius: 50%;
  background: rgba(30, 58, 138, 0.45);
  border: 1px solid rgba(96, 165, 250, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e0f2fe;
  box-shadow: 0 0 2.5cqw rgba(56, 189, 248, 0.3);
  flex-shrink: 0;
}

.mxf-shield-badge svg {
  width: 3.6cqw;
  height: 3.6cqw;
}

/* Card Main Title */
.mxf-card-title {
  position: relative;
  z-index: 2;
  font-size: 6.2cqw;
  font-weight: 800;
  line-height: 1.05;
  color: #ffffff;
  letter-spacing: -0.025em;
  margin: 0;
}

/* Sub-pill Banner (Funded Trader Certificate) */
.mxf-sub-banner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 2.2cqw;
  background: linear-gradient(90deg, #1e40af 0%, #2563eb 50%, #1d4ed8 100%);
  border: 1px solid rgba(147, 197, 253, 0.55);
  border-radius: 999px;
  padding: 1.6cqw 3.2cqw;
  color: #ffffff;
  font-size: 3.3cqw;
  font-weight: 700;
  box-shadow: 0 1cqw 4cqw rgba(37, 99, 235, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  box-sizing: border-box;
}

.mxf-sub-seal-icon {
  width: 4.8cqw;
  height: 4.8cqw;
  border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
  border: 1.5px solid #bae6fd;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6cqw;
  font-weight: 900;
  box-shadow: 0 0 2cqw rgba(56, 189, 248, 0.8);
  flex-shrink: 0;
}

/* Phase 2 Trophy Row */
.mxf-phase2-sub-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 2.4cqw;
  margin-top: 0.3cqw;
}

.mxf-trophy-box {
  width: 6.4cqw;
  height: 6.4cqw;
  border-radius: 1.8cqw;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.55) 0%, rgba(29, 78, 216, 0.85) 100%);
  border: 1px solid rgba(96, 165, 250, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e0f2fe;
  box-shadow: 0 0 2.5cqw rgba(59, 130, 246, 0.5);
  flex-shrink: 0;
}

.mxf-trophy-box svg {
  width: 3.6cqw;
  height: 3.6cqw;
}

.mxf-phase2-sub-text {
  font-size: 3.6cqw;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Phase 1 Subtitle Text */
.mxf-sub-text-plain {
  position: relative;
  z-index: 2;
  font-size: 3.4cqw;
  font-weight: 700;
  color: #bfdbfe;
  letter-spacing: -0.01em;
  margin-top: -0.5cqw;
  white-space: nowrap;
}

/* Payout Top Split Grid (Left Title + Amount Box, Right QR Code) */
.mxf-payout-top-split {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22.5cqw;
  gap: 2.6cqw;
  align-items: end;
}

.mxf-payout-top-left {
  display: flex;
  flex-direction: column;
  gap: 2.2cqw;
  min-width: 0;
}

/* Payout Amount Paid Pill */
.mxf-payout-amount-box {
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.75) 0%, rgba(37, 99, 235, 0.92) 60%, rgba(56, 189, 248, 0.75) 100%);
  border: 1.5px solid rgba(125, 211, 252, 0.65);
  border-radius: 3.2cqw;
  padding: 2.2cqw 2.8cqw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2cqw;
  box-shadow: 0 1.5cqw 4.5cqw rgba(37, 99, 235, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.mxf-payout-amount-left {
  display: flex;
  flex-direction: column;
  gap: 0.4cqw;
  min-width: 0;
}

.mxf-payout-label {
  font-size: 2.2cqw;
  font-weight: 600;
  color: #dbeafe;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.mxf-payout-value {
  font-size: 5.4cqw;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.05;
  white-space: nowrap;
}

.mxf-payout-wallet-icon {
  width: 8.2cqw;
  height: 7.2cqw;
  border-radius: 2cqw;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(147, 197, 253, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #93c5fd;
  flex-shrink: 0;
}

.mxf-payout-wallet-icon svg {
  width: 4.8cqw;
  height: 4.8cqw;
}

/* Data Content Grid (Left Data List + Right QR Code) */
.mxf-data-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22.5cqw;
  gap: 2.6cqw;
  align-items: center;
  margin: 0.4cqw 0;
}

.mxf-data-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}

.mxf-data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5cqw;
  font-size: 2.35cqw;
  line-height: 1.2;
  padding: 1.15cqw 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  white-space: nowrap;
}

.mxf-data-row:last-child {
  border-bottom: none;
}

.mxf-data-list-full .mxf-data-row {
  font-size: 2.55cqw;
  padding: 1.35cqw 0;
}

.mxf-data-label {
  display: inline-flex;
  align-items: center;
  gap: 1.2cqw;
  color: #cbd5e1;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.mxf-data-label svg {
  width: 2.7cqw;
  height: 2.7cqw;
  color: #93c5fd;
  flex-shrink: 0;
}

.mxf-data-val {
  font-weight: 700;
  color: #ffffff;
  text-align: right;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* QR Code Box with Cyan Corner Brackets */
.mxf-qr-card {
  position: relative;
  width: 22.5cqw;
  height: 26.5cqw;
  background: linear-gradient(180deg, rgba(15, 32, 72, 0.85) 0%, rgba(6, 15, 38, 0.95) 100%);
  border: 1.2px solid rgba(96, 165, 250, 0.55);
  border-radius: 3cqw;
  padding: 2cqw 1.6cqw 1.5cqw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 0 3.5cqw rgba(56, 189, 248, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  box-sizing: border-box;
  flex-shrink: 0;
}

/* Glowing Corner Brackets [ ] */
.mxf-qr-card::before {
  content: '';
  position: absolute;
  top: 1.2cqw;
  left: 1.2cqw;
  right: 1.2cqw;
  bottom: 5.2cqw;
  border: 1.5px solid #60a5fa;
  border-radius: 1.4cqw;
  clip-path: polygon(
    0 0, 2.2cqw 0, 2.2cqw 100%, 0 100%,
    0 0, 100% 0, 100% 2.2cqw, 0 2.2cqw,
    calc(100% - 2.2cqw) 0, 100% 0, 100% 100%, calc(100% - 2.2cqw) 100%,
    0 calc(100% - 2.2cqw), 100% calc(100% - 2.2cqw), 100% 100%, 0 100%
  );
  pointer-events: none;
}

.mxf-qr-svg-wrap {
  width: 16.5cqw;
  height: 16.5cqw;
  background: #ffffff;
  border-radius: 1.4cqw;
  padding: 0.7cqw;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
}

.mxf-qr-svg-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mxf-qr-center-logo {
  position: absolute;
  width: 3.8cqw;
  height: 3.8cqw;
  border-radius: 0.7cqw;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35cqw;
  box-sizing: border-box;
}

.mxf-qr-center-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.mxf-qr-label {
  font-size: 2.05cqw;
  font-weight: 600;
  color: #e2e8f0;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* Glowing Divider Line with Center Status */
.mxf-divider-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0.3cqw 0;
}

.mxf-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.45), transparent);
}

.mxf-divider-pill {
  display: inline-flex;
  align-items: center;
  gap: 1.2cqw;
  font-size: 2.5cqw;
  font-weight: 600;
  color: #f8fafc;
  padding: 0 2.2cqw;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.mxf-divider-pill svg {
  width: 2.8cqw;
  height: 2.8cqw;
  color: #38bdf8;
  flex-shrink: 0;
}

.mxf-chevrons {
  color: #38bdf8;
  font-weight: 800;
  letter-spacing: -0.05em;
  margin-right: 0.4cqw;
}

/* Bottom Hero Pill Banner on Card */
.mxf-hero-btn {
  position: relative;
  z-index: 2;
  width: 100%;
  background: linear-gradient(90deg, rgba(15, 34, 82, 0.9) 0%, rgba(29, 78, 216, 0.85) 50%, rgba(37, 99, 235, 0.95) 100%);
  border: 1.2px solid rgba(96, 165, 250, 0.55);
  border-radius: 999px;
  padding: 1.9cqw 3.4cqw;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2.6cqw;
  color: #ffffff;
  font-size: 3.6cqw;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 1.2cqw 4.5cqw rgba(30, 64, 175, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  white-space: nowrap;
  box-sizing: border-box;
}

.mxf-seal-check {
  width: 5.8cqw;
  height: 5.8cqw;
  border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
  border: 1.5px solid #bae6fd;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3cqw;
  font-weight: 900;
  box-shadow: 0 0 2.5cqw rgba(56, 189, 248, 0.85);
  flex-shrink: 0;
}

/* ==================== BOTTOM CAPSULE ==================== */
.mxf-bottom-capsule {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 1.6cqw;
  background: rgba(6, 15, 38, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  padding: 1.5cqw 4.2cqw;
  font-size: 2.65cqw;
  font-weight: 600;
  color: #f8fafc;
  letter-spacing: 0.01em;
  box-shadow: 0 1cqw 3.5cqw rgba(0, 0, 0, 0.65);
  white-space: nowrap;
}

.mxf-bottom-capsule svg {
  width: 3cqw;
  height: 3cqw;
  color: #38bdf8;
  flex-shrink: 0;
}

/* ==================== CERTIFICATE ACTION FOOTER ==================== */
.mxf-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px;
  gap: 12px;
  flex-wrap: wrap;
}

.mxf-footer-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mxf-footer-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

.mxf-footer-sub {
  font-size: 11.5px;
  color: #94a3b8;
  white-space: nowrap;
}

.mxf-footer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mxf-btn-action {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  white-space: nowrap;
}

.mxf-btn-action:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.mxf-btn-primary {
  background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
}

.mxf-btn-primary:hover {
  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.65);
}

/* ==================== HIGH-RES MODAL VIEWER ==================== */
.mxf-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mxf-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mxf-modal-container {
  max-width: 480px;
  width: 100%;
  max-height: 94vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transform: scale(0.96);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.mxf-modal-backdrop.active .mxf-modal-container {
  transform: scale(1);
}

.mxf-modal-close-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
  z-index: 10002;
}

.mxf-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.08);
}

.mxf-modal-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

/* ==================== MOBILE RESPONSIVE POLISH (<= 720px) ==================== */
@media (max-width: 720px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* Filter tabs: clean 2x2 grid on mobile so labels never wrap into tall circles */
  .uf-prop-topbar {
    flex-direction: column;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .uf-topbar-pills-left {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .uf-topbar-pills-left .uf-pill-tab {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
    padding: 10px 8px !important;
    font-size: 12px !important;
    border-radius: 12px !important;
  }

  .uf-topbar-actions-right {
    display: none !important;
  }

  /* Identity banner card */
  .uf-account-banner-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 18px 16px !important;
    gap: 14px !important;
  }

  .uf-acc-banner-left {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .uf-acc-banner-right,
  .uf-acc-banner-right .uf-btn-payout-cta {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Card shell & footer on mobile */
  .uf-cert-card-shell {
    padding: 12px;
    border-radius: 20px;
    gap: 12px;
  }

  .mxf-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 2px 2px 0;
  }

  .mxf-footer-info {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
  }

  .mxf-footer-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .mxf-footer-actions .mxf-btn-action {
    width: 100%;
    padding: 10px 12px;
    font-size: 12.5px;
  }

  /* Modal on mobile */
  .mxf-modal-backdrop {
    padding: 14px;
  }

  .mxf-modal-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .mxf-modal-toolbar #mxfModalDownloadPng {
    grid-column: 1 / -1;
  }

  .mxf-modal-toolbar .mxf-btn-action {
    width: 100%;
    padding: 10px 10px;
  }
}

@media (max-width: 360px) {
  .uf-topbar-pills-left .uf-pill-tab {
    font-size: 11px !important;
    padding: 9px 6px !important;
  }
}
