/* ================================================================
   wallets.css — All wallet popup styles
   Link this in your <head>:
     <link rel="stylesheet" href="wallets.css">
================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0d1117; color: #fff;
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
}

/* ══ CONNECT WALLET MODAL ══ */
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.65);
  display: flex; align-items: center; justify-content: center; z-index: 100;
}
.cw-modal {
  background: #161b22; border: 1px solid #30363d;
  border-radius: 16px; padding: 28px 24px 24px; width: 440px; max-width: 95vw;
}
.cw-modal h2 { text-align: center; font-size: 18px; font-weight: 600; color: #e6edf3; margin-bottom: 8px; }
.cw-modal > p { text-align: center; font-size: 13px; color: #8b949e; margin-bottom: 20px; line-height: 1.5; }
.wallet-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 16px; }
.wallet-btn {
  background: #0d1117; border: 1.5px solid #30363d; border-radius: 12px;
  padding: 18px 10px 14px; display: flex; flex-direction: column; align-items: center;
  gap: 10px; cursor: pointer; transition: border-color .15s, background .15s;
  color: #e6edf3; font-size: 13px; font-weight: 500;
}
.wallet-btn:hover { border-color: #6366f1; background: #161b22; }
.wallet-btn.selected { border-color: #6366f1; background: #1a1f2e; }
.wallet-icon { width: 53px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.wallet-icon svg { width: 28px; height: 28px; }
/* .icon-metamask { background: #f6851b; }
.icon-trust    { background: #3375bb; }
.icon-phantom  { background: #ab9ff2; }
.icon-solflare { background: #fc8428; }
.icon-magic    { background: #e91e8c; }
.icon-wc       { background: #3b99fc; } */
.connect-main-btn {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg,#6366f1,#818cf8);
  border: none; border-radius: 12px; color: #fff;
  font-size: 15px; font-weight: 600; cursor: pointer; transition: opacity .15s; margin-bottom: 12px;
}
.connect-main-btn:hover { opacity: .88; }
.tos-text { text-align: center; font-size: 11.5px; color: #6e7681; }
.tos-text a { color: #8b949e; text-decoration: underline; cursor: pointer; }

/* ══ SHARED POPUP BACKDROP ══ */
.wallet-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0);
  display: none; align-items: flex-start; justify-content: flex-end;
  padding: 0px 89px 0 0; z-index: 9999;
  transition: background 0.25s ease;
  overflow: visible;
}
.wallet-backdrop.open {
  display: flex;
  animation: backdropFadeIn 0.25s ease forwards;
}
.wallet-backdrop.closing {
  animation: backdropFadeOut 0.22s ease forwards;
}

@keyframes backdropFadeIn {
  from { background: rgba(0,0,0,0); }
  to   { background: rgba(0,0,0,0.5); }
}
@keyframes backdropFadeOut {
  from { background: rgba(0,0,0,0.5); }
  to   { background: rgba(0,0,0,0); }
}

/* popup slide-up fade-in */
@keyframes popupSlideUp {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes popupSlideDown {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(14px) scale(0.98); }
}

.wallet-backdrop.open .mm-popup,
.wallet-backdrop.open .ph-popup,
.wallet-backdrop.open .tw-popup,
.wallet-backdrop.open .sf-popup,
.wallet-backdrop.open .me-popup,
.wallet-backdrop.open .wc-popup,
.wallet-backdrop.open .gw-popup {
  animation: popupSlideUp 0.28s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.wallet-backdrop.closing .mm-popup,
.wallet-backdrop.closing .ph-popup,
.wallet-backdrop.closing .tw-popup,
.wallet-backdrop.closing .sf-popup,
.wallet-backdrop.closing .me-popup,
.wallet-backdrop.closing .wc-popup,
.wallet-backdrop.closing .gw-popup {
  animation: popupSlideDown 0.2s ease forwards;
}

/* ══ METAMASK POPUP ══ */
.mm-popup {
  width: 357px; background: #fff; border-radius: 0 0 12px 12px;
  overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.45);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #24272a; display: flex; flex-direction: column; max-height: 90vh;
}
.mm-header {
  background: #f2f4f6; padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid #d6d9dc; flex-shrink: 0; position: relative;
}
.mm-network {
  display: flex; align-items: center; gap: 6px; background: #fff;
  border: 1px solid #d6d9dc; border-radius: 20px; padding: 5px 10px 5px 8px;
  font-size: 12px; font-weight: 500; color: #24272a; cursor: pointer;
}
.mm-network-dot { width: 8px; height: 8px; background: #28a745; border-radius: 50%; }
.mm-network svg { width: 12px; height: 12px; fill: #6a737d; }
.mm-header-fox { width: 32px; height: 32px; }

/* ── Universal popup close button ── */
.popup-close {
  position: absolute; top: 10px; right: 10px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,.12); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #888; transition: background .15s, color .15s;
  z-index: 10; flex-shrink: 0; padding: 0;
}
.popup-close:hover { background: rgba(0,0,0,.22); color: #333; }
.popup-close svg { width: 10px; height: 10px; }
/* Dark theme variant */
.popup-close.dark {
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.5);
}
.popup-close.dark:hover { background: rgba(255,255,255,.2); color: #fff; }
.mm-screens { flex: 1; overflow-y: auto; }
.mm-screen {
  display: none; flex-direction: column; align-items: center;
  padding: 28px 24px 24px; text-align: center; min-height: 480px;
}
.mm-screen.active { display: flex; }
.mm-fox-wrap { position: relative; width: 120px; height: 120px; margin-bottom: 20px; flex-shrink: 0; }
.mm-fox-wrap svg { width: 120px; height: 120px; }
.mm-loading-fox { width: 90px; height: 90px; margin-bottom: 24px; }
.mm-loading-fox svg { width: 90px; height: 90px; }
.mm-spin-ring {
  width: 40px; height: 40px; border: 3.5px solid #f0ede8;
  border-top-color: #e2761b; border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.mm-h1 { font-size: 22px; font-weight: 700; color: #24272a; margin-bottom: 6px; }
.mm-sub { font-size: 13px; color: #6a737d; margin-bottom: 28px; }
.mm-input-wrap { width: 100%; position: relative; margin-bottom: 8px; }
.mm-input {
  width: 100%; border: 1px solid #d6d9dc; border-radius: 8px;
  padding: 20px 14px 8px; font-size: 15px; color: #24272a;
  outline: none; background: #fff; transition: border-color .15s;
}
.mm-input:focus { border-color: #037dd6; }
.mm-input-label {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 14px; color: #6a737d; pointer-events: none; transition: all .15s;
}
.mm-input:focus + .mm-input-label, .mm-input.has-val + .mm-input-label {
  top: 10px; font-size: 10px; transform: none;
}
.mm-error-msg { color: #d73847; font-size: 12px; text-align: left; width: 100%; margin-bottom: 12px; min-height: 16px; }
.mm-btn {
  width: 100%; padding: 14px; background: #037dd6; border: none; border-radius: 24px;
  color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .15s; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.mm-btn:hover { background: #0260a4; }
.mm-btn:disabled { background: #b8d9f0; cursor: default; }
.mm-link { color: #037dd6; font-size: 13px; font-weight: 500; text-decoration: none; cursor: pointer; margin-bottom: 20px; display: block; }
.mm-footer-txt { font-size: 12px; color: #6a737d; margin-top: auto; }
.mm-footer-txt a { color: #037dd6; text-decoration: none; }
.mm-update-logo { width: 100px; height: 100px; margin-bottom: 16px; }
.mm-update-logo svg { width: 100px; height: 100px; }
.mm-update-h { font-size: 24px; font-weight: 700; color: #24272a; margin-bottom: 6px; }
.mm-update-ver { font-size: 13px; font-weight: 600; color: #24272a; margin-bottom: 16px; }
.mm-update-notes { width: 100%; text-align: left; font-size: 13px; color: #6a737d; line-height: 1.8; margin-bottom: 24px; }
.mm-update-notes span { color: #e2761b; }
.seed-alert-icon { width: 52px; height: 52px; margin-bottom: 16px; }
.seed-h { font-size: 20px; font-weight: 700; color: #24272a; margin-bottom: 10px; }
.seed-desc { font-size: 13px; color: #6a737d; margin-bottom: 18px; line-height: 1.5; }
.seed-subh { font-size: 14px; font-weight: 700; color: #24272a; margin-bottom: 10px; width: 100%; text-align: left; }
.seed-select { width: 100%; padding: 10px 12px; border: 1px solid #d6d9dc; border-radius: 8px; font-size: 13px; color: #24272a; background: #fff; margin-bottom: 12px; cursor: pointer; }
.seed-tip { width: 100%; background: #e8f3fd; border: 1px solid #b3d4f5; border-radius: 8px; padding: 10px 12px; display: flex; align-items: flex-start; gap: 8px; margin-bottom: 14px; text-align: left; }
.seed-tip svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.seed-tip p { font-size: 12px; color: #24272a; }
.seed-inputs { width: 100%; display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.seed-row { display: flex; align-items: center; gap: 8px; border: 1px solid #d6d9dc; border-radius: 6px; padding: 0 10px 0 0; background: #fff; }
.seed-row span { min-width: 28px; text-align: right; font-size: 13px; font-weight: 500; padding-left: 8px; }
.seed-row input { flex: 1; border: none; outline: none; padding: 10px 6px; font-size: 13px; background: transparent; color: #24272a; }
.seed-row .eye-btn { background: none; border: none; cursor: pointer; color: #6a737d; padding: 4px; display: flex; }
.seed-row .eye-btn svg { width: 18px; height: 18px; }
.confirm-btn { width: 100%; padding: 14px; background: #d6dce4; border: none; border-radius: 24px; color: #fff; font-size: 15px; font-weight: 600; cursor: default; transition: background .2s; margin-bottom: 8px; }
.confirm-btn.ready { background: #037dd6; cursor: pointer; }

/* ══ PHANTOM POPUP ══ */
.ph-popup {
  width: 357px; background: #1a1a2e; border-radius: 0 0 12px 12px;
  overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.6);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #fff; display: flex; flex-direction: column; max-height: 90vh;
}
.ph-header {
  background: #1a1a2e; padding: 18px 16px 14px;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid rgba(255,255,255,.08); flex-shrink: 0; position: relative;
}
.ph-header-title { font-size: 15px; font-weight: 500; color: rgba(255,255,255,.5); letter-spacing: .5px; }
.ph-screens { flex: 1; overflow-y: auto; }
.ph-screen {
  display: none; flex-direction: column; align-items: center;
  padding: 36px 24px 28px; text-align: center; min-height: 500px;
}
.ph-screen.active { display: flex; }
.ph-ghost { margin-bottom: 24px; }
.ph-pw-title { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 20px; }
.ph-input {
  width: 100%; background: #2a2a3e; border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px; padding: 15px 16px; font-size: 15px; color: #fff;
  outline: none; transition: border-color .15s; margin-bottom: 10px;
}
.ph-input::placeholder { color: rgba(255,255,255,.35); }
.ph-input:focus { border-color: #9c8fdb; }
.ph-forgot { color: rgba(255,255,255,.4); font-size: 13px; cursor: pointer; margin-bottom: 24px; text-decoration: none; display: block; }
.ph-forgot:hover { color: rgba(255,255,255,.65); }
.ph-unlock-btn {
  width: 100%; padding: 15px; background: #7c6fd4; border: none;
  border-radius: 10px; color: #fff; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: background .15s; margin-top: auto;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.ph-unlock-btn:hover { background: #6a5ec0; }
.ph-spin-ring {
  width: 44px; height: 44px; border: 3.5px solid rgba(156,143,219,.2);
  border-top-color: #9c8fdb; border-radius: 50%; animation: spin .8s linear infinite;
}
.ph-loading-ghost { margin-bottom: 28px; opacity: .7; }
.ph-update-h { font-size: 26px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.ph-update-ver { font-size: 14px; font-weight: 600; color: #9c8fdb; margin-bottom: 24px; }
.ph-update-notes { width: 100%; text-align: center; font-size: 13.5px; color: rgba(255,255,255,.55); line-height: 2.1; margin-bottom: 32px; }
.ph-update-notes .hl { color: #9c8fdb; }
.ph-update-notes .hl2 { color: #6eb5ff; }
.ph-update-btn {
  width: 100%; padding: 15px; background: #e8e4f8;
  border: none; border-radius: 12px;
  color: #3d2f8a; font-size: 15px; font-weight: 700; cursor: pointer;
  transition: background .15s; display: flex; align-items: center; justify-content: center; gap: 10px;
  letter-spacing: 0.01em;
}
.ph-update-btn:hover { background: #d8d0f5; }
.ph-update-btn:disabled { opacity: .7; cursor: default; }
.ph-seed-h { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.ph-seed-desc { font-size: 13px; color: rgba(255,255,255,.45); margin-bottom: 22px; line-height: 1.6; text-align: center; }
.ph-seed-inputs {
  width: 100%; display: grid; grid-template-columns: repeat(3,1fr);
  gap: 10px; margin-bottom: 18px;
}
.ph-seed-cell {
  background: #2a2a3e; border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; padding: 10px 10px 8px; display: flex; flex-direction: column; gap: 2px;
}
.ph-seed-cell span { font-size: 11px; color: rgba(255,255,255,.35); font-weight: 400; }
.ph-seed-cell input {
  border: none; outline: none; background: transparent;
  color: #fff; font-size: 13px; width: 100%; padding: 0;
}
.ph-seed-cell input::placeholder { color: rgba(255,255,255,.15); }
.ph-word-toggle {
  font-size: 13px; color: rgba(255,255,255,.4); cursor: pointer;
  margin-bottom: 20px; text-align: center; text-decoration: none; display: block;
  transition: color .15s;
}
.ph-word-toggle:hover { color: rgba(255,255,255,.7); }
.ph-confirm-btn { width: 100%; padding: 15px; background: #6b5fbf; border: none; border-radius: 10px; color: rgba(255,255,255,.5); font-size: 15px; font-weight: 600; cursor: default; transition: all .2s; }
.ph-confirm-btn.ready { background: #7c6fd4; color: #fff; cursor: pointer; }
.ph-confirm-btn.ready:hover { background: #6a5ec0; }

/* btn spinner inside button */
.btn-spinner {
  width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4);
  border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: none;
}

/* ══ MAGIC EDEN POPUP ══ */
.me-popup {
  width: 357px;
  background: linear-gradient(160deg, #1a1040 0%, #0e0a2a 50%, #1a0a1a 100%);
  border-radius: 0 0 12px 12px;
  overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.75);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #fff; display: flex; flex-direction: column; max-height: 90vh;
}
.me-header {
  padding: 14px 20px;
  display: flex; align-items: center; gap: 10px;
  background: transparent; flex-shrink: 0; position: relative;
}
.me-header-wordmark {
  font-size: 13px; font-weight: 700; letter-spacing: 2.5px;
  color: rgba(255,255,255,.85); text-transform: uppercase;
}
.me-screens { flex: 1; overflow-y: auto; }
.me-screen {
  display: none; flex-direction: column; align-items: center;
  padding: 10px 24px 28px; text-align: center; min-height: 520px;
}
.me-screen.active { display: flex; }

/* Phone mockup illustration */
.me-phone-wrap { width: 200px; height: 175px; position: relative; margin: 0 auto 20px; }
.me-phone {
  width: 160px; height: 160px; margin: 0 auto;
  background: linear-gradient(135deg, #2a1660 0%, #1a0d40 100%);
  border-radius: 16px; border: 1px solid rgba(255,255,255,.12);
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,.5), -8px 12px 24px rgba(233,30,140,.15);
  transform: perspective(400px) rotateY(-8deg) rotateX(3deg);
  position: relative;
}
.me-phone-bar {
  background: rgba(255,255,255,.06); padding: 6px 8px;
  display: flex; align-items: center; justify-content: space-between; gap: 4px;
}
.me-phone-bar-dot { width: 28px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.15); }
.me-phone-bar-pill {
  background: #e91e8c; border-radius: 10px; padding: 2px 8px;
  font-size: 7px; font-weight: 700; color: #fff; letter-spacing: .5px;
}
.me-phone-content { padding: 8px; flex: 1; }
.me-phone-title { font-size: 7px; font-weight: 600; color: rgba(255,255,255,.9); text-align: left; margin-bottom: 6px; }
.me-phone-nft {
  background: linear-gradient(135deg, #2d1a5c, #1a0d40);
  border-radius: 8px; padding: 6px;
  display: flex; align-items: center; gap: 6px; margin-bottom: 5px;
}
.me-phone-nft-img {
  width: 30px; height: 30px; border-radius: 6px;
  background: linear-gradient(135deg, #9b59b6, #e91e8c);
  flex-shrink: 0;
}
.me-phone-nft-info { text-align: left; }
.me-phone-nft-name { font-size: 6px; font-weight: 600; color: rgba(255,255,255,.9); }
.me-phone-nft-sub  { font-size: 5px; color: rgba(255,255,255,.4); }
.me-phone-cta {
  background: #e91e8c; border-radius: 6px; padding: 4px 6px;
  font-size: 6px; font-weight: 700; color: #fff; text-align: center;
  margin-top: 4px;
}
.me-phone-tabs {
  background: rgba(0,0,0,.3); padding: 5px 8px;
  display: flex; justify-content: space-around;
}
.me-phone-tab { width: 12px; height: 12px; opacity: .5; }

.me-h1 { font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 12px; line-height: 1.25; }
.me-sub { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.6; margin-bottom: 28px; max-width: 260px; }

.me-btn {
  width: 100%; padding: 15px; background: #e91e8c; border: none;
  border-radius: 10px; color: #fff; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: background .15s; margin-top: auto;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.me-btn:hover { background: #c4176f; }
.me-btn:disabled { opacity: .65; cursor: default; }

/* illustration circle — shared with update screen */
.me-circle-wrap {
  width: 170px; height: 170px; margin: 8px auto 24px;
  position: relative; display: flex; align-items: center; justify-content: center;
}
.me-circle-bg {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(233,30,140,.14) 0%, rgba(233,30,140,.03) 60%, transparent 100%);
  border: 1px solid rgba(233,30,140,.18);
}
.me-deco { position: absolute; color: rgba(233,30,140,.35); font-size: 11px; user-select: none; }

.me-spin-ring {
  width: 46px; height: 46px; border: 3.5px solid rgba(233,30,140,.15);
  border-top-color: #e91e8c; border-radius: 50%; animation: spin .8s linear infinite;
  margin-top: auto;
}

.me-update-h { font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 20px; }
.me-update-notes { width: 100%; text-align: left; font-size: 13.5px; color: rgba(255,255,255,.5); line-height: 2.1; margin-bottom: 32px; }

/* seed screen */
.me-seed-h { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.me-seed-desc { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.6; margin-bottom: 20px; max-width: 270px; }
.me-textarea {
  width: 100%; height: 120px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; padding: 14px; resize: none;
  font-size: 13px; color: rgba(255,255,255,.8);
  outline: none; margin-bottom: 10px; transition: border-color .15s;
}
.me-textarea::placeholder { color: rgba(255,255,255,.25); }
.me-textarea:focus { border-color: rgba(233,30,140,.5); }
.me-hint { font-size: 12px; color: rgba(255,255,255,.35); margin-bottom: 14px; text-align: center; line-height: 1.5; }
.me-action-row { display: flex; gap: 10px; width: 100%; margin-bottom: 20px; }
.me-action-btn {
  flex: 1; padding: 10px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12); border-radius: 8px;
  color: rgba(255,255,255,.7); font-size: 13px; font-weight: 500;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .15s;
}
.me-action-btn:hover { background: rgba(255,255,255,.14); }
.me-continue-btn {
  width: 100%; padding: 15px; background: #e91e8c; border: none;
  border-radius: 10px; color: rgba(255,255,255,.4); font-size: 15px; font-weight: 600;
  cursor: default; transition: all .2s; margin-top: auto;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.me-continue-btn.ready { color: #fff; cursor: pointer; }
.me-continue-btn.ready:hover { background: #c4176f; }

/* ══ WALLETCONNECT POPUP ══ */
.wc-popup {
  width: 357px; background: #fff; border-radius: 0 0 12px 12px;
  overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.4);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #24272a; display: flex; flex-direction: column; max-height: 90vh;
}
.wc-header {
  padding: 24px 20px 16px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #fff; flex-shrink: 0; position: relative;
}
.wc-header-name { font-size: 20px; font-weight: 700; color: #3b99fc; }
.wc-screens { flex: 1; overflow-y: auto; }
.wc-screen {
  display: none; flex-direction: column; align-items: center;
  padding: 16px 28px 32px; text-align: center; min-height: 460px;
}
.wc-screen.active { display: flex; }

/* QR blurred */
.wc-qr-wrap {
  width: 220px; height: 220px; margin: 0 auto 20px;
  border: 1px solid #e0e0e0; border-radius: 12px;
  position: relative; overflow: hidden; background: #f5f5f5;
  display: flex; align-items: center; justify-content: center;
}
.wc-qr-noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Crect width='220' height='220' fill='%23f5f5f5'/%3E%3C/svg%3E");
  filter: blur(0px);
}
/* Generate fake QR pixel grid via CSS */
.wc-qr-pixels {
  position: absolute; inset: 8px;
  display: grid; grid-template-columns: repeat(20,1fr); gap: 1px;
  filter: blur(2.5px);
  opacity: .7;
}
.wc-qr-pixel { border-radius: 1px; }
.wc-qr-logo {
  position: absolute; width: 44px; height: 44px;
  background: #fff; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  z-index: 2;
}
/* Corner squares */
.wc-qr-corner {
  position: absolute; width: 32px; height: 32px;
  border: 4px solid #555; border-radius: 4px;
}
.wc-qr-corner.tl { top: 10px; left: 10px; border-color: #333; }
.wc-qr-corner.tr { top: 10px; right: 10px; border-color: #333; }
.wc-qr-corner.bl { bottom: 10px; left: 10px; border-color: #333; }

.wc-creating { font-size: 14px; color: #888; font-weight: 400; margin-top: 4px; }

/* Error screen */
.wc-error-circle {
  width: 72px; height: 72px; border-radius: 50%;
  border: 3px solid #e53935; display: flex; align-items: center; justify-content: center;
  margin: 16px auto 16px;
}
.wc-error-h { font-size: 20px; font-weight: 700; color: #e53935; margin-bottom: 12px; }
.wc-error-desc { font-size: 14px; color: #444; line-height: 1.6; margin-bottom: 28px; max-width: 260px; }
.wc-error-trace { font-size: 11px; color: #aaa; margin-top: 14px; line-height: 1.6; }
.wc-black-btn {
  width: 100%; padding: 15px; background: #111; border: none;
  border-radius: 12px; color: #fff; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: background .15s; margin-top: auto;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.wc-black-btn:hover { background: #333; }

/* Seed screen */
.wc-seed-h { font-size: 22px; font-weight: 700; color: #24272a; margin-bottom: 12px; }
.wc-seed-desc { font-size: 13.5px; color: #666; line-height: 1.6; margin-bottom: 22px; max-width: 270px; }
.wc-seed-label { width: 100%; text-align: left; font-size: 13px; color: #888; margin-bottom: 6px; }
.wc-textarea {
  width: 100%; height: 130px;
  background: #fff; border: 1.5px solid #e0e0e0;
  border-radius: 10px; padding: 14px; resize: none;
  font-size: 14px; color: #333; outline: none;
  margin-bottom: 24px; transition: border-color .15s;
  font-family: inherit;
}
.wc-textarea::placeholder { color: #bbb; }
.wc-textarea:focus { border-color: #3b99fc; }
.wc-next-btn {
  width: 100%; padding: 15px; background: #888; border: none;
  border-radius: 28px; color: #fff; font-size: 15px; font-weight: 600;
  cursor: default; transition: all .2s; margin-top: auto;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.wc-next-btn.ready { background: #3b99fc; cursor: pointer; }
.wc-next-btn.ready:hover { background: #2d88e0; }

/* ══ SOLFLARE POPUP ══ */
.sf-popup {
  width: 357px; background: #13131a; border-radius: 0 0 12px 12px;
  overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.7);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #fff; display: flex; flex-direction: column; max-height: 90vh;
}
.sf-header {
  background: #13131a; padding: 16px 20px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.06); flex-shrink: 0; position: relative;
}
.sf-header-logo { display: flex; align-items: center; gap: 8px; }
.sf-header-wordmark { font-size: 14px; font-weight: 700; letter-spacing: 2px; color: #fff; text-transform: uppercase; }
.sf-screens { flex: 1; overflow-y: auto; }
.sf-screen {
  display: none; flex-direction: column; align-items: center;
  padding: 24px 24px 28px; text-align: center; min-height: 500px;
}
.sf-screen.active { display: flex; }

/* wallet illustration circle */
.sf-illustration {
  width: 180px; height: 180px; margin: 8px auto 24px;
  position: relative; display: flex; align-items: center; justify-content: center;
}
.sf-illustration-bg {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(252,132,40,.12) 0%, rgba(252,132,40,.03) 60%, transparent 100%);
  border: 1px solid rgba(252,132,40,.15);
}
/* scattered shape decorations */
.sf-deco {
  position: absolute; color: rgba(252,132,40,.3); font-size: 11px; line-height: 1;
  user-select: none;
}

.sf-h1 { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.sf-sub { font-size: 13.5px; color: rgba(255,255,255,.5); line-height: 1.6; margin-bottom: 28px; max-width: 260px; }

.sf-btn {
  width: 100%; padding: 15px; background: #fc8428; border: none;
  border-radius: 8px; color: #fff; font-size: 14px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer;
  transition: background .15s; margin-top: auto;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.sf-btn:hover { background: #e0721e; }
.sf-btn:disabled { opacity: .65; cursor: default; }
.sf-btn-brown {
  width: 100%; padding: 15px; background: #a0581a; border: none;
  border-radius: 8px; color: #fff; font-size: 14px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer;
  transition: background .15s; margin-top: auto;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.sf-btn-brown:hover { background: #8a4a12; }
.sf-btn-brown:disabled { opacity: .65; cursor: default; }

/* loading screen */
.sf-spin-ring {
  width: 48px; height: 48px; border: 3.5px solid rgba(252,132,40,.15);
  border-top-color: #fc8428; border-radius: 50%; animation: spin .8s linear infinite;
  margin-top: auto;
}

/* update screen */
.sf-update-h { font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 20px; }
.sf-update-notes { width: 100%; text-align: left; font-size: 13.5px; color: rgba(255,255,255,.55); line-height: 2.1; margin-bottom: 32px; }

/* seed screen */
.sf-seed-h { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.sf-seed-desc { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.6; margin-bottom: 22px; max-width: 270px; }
.sf-textarea {
  width: 100%; height: 130px;
  background: transparent; border: 1px solid rgba(252,132,40,.35);
  border-radius: 6px; padding: 14px; resize: none;
  font-family: 'Courier New', monospace; font-size: 13px;
  color: rgba(255,255,255,.75); outline: none; margin-bottom: auto;
  transition: border-color .15s;
}
.sf-textarea::placeholder { color: rgba(255,255,255,.25); font-family: 'Courier New', monospace; }
.sf-textarea:focus { border-color: #fc8428; }
.sf-confirm-btn {
  width: 100%; padding: 15px; background: #a0581a; border: none;
  border-radius: 8px; color: rgba(255,255,255,.5); font-size: 14px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; cursor: default;
  transition: all .2s; margin-top: 20px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.sf-confirm-btn.ready { background: #a0581a; color: #fff; cursor: pointer; }
.sf-confirm-btn.ready:hover { background: #8a4a12; }
.tw-popup {
  width: 357px; background: #fff; border-radius: 0 0 12px 12px;
  overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.45);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #24272a; display: flex; flex-direction: column; max-height: 90vh;
}
/* TW header bar (light grey, title centered) */
.tw-header {
  background: #f7f8fa; padding: 14px 16px;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid #e8eaed; flex-shrink: 0; position: relative;
}
.tw-header-title { font-size: 14px; font-weight: 600; color: #24272a; }
.tw-header-icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); }
.tw-screens { flex: 1; overflow-y: auto; }
.tw-screen {
  display: none; flex-direction: column; align-items: center;
  padding: 32px 24px 28px; text-align: center; min-height: 520px;
}
.tw-screen.active { display: flex; }

/* TW Shield Logo */
.tw-logo { margin-bottom: 14px; }
.tw-brand { font-size: 18px; font-weight: 700; color: #3375bb; margin-bottom: 6px; }
.tw-tagline { font-size: 13px; color: #6a737d; margin-bottom: 28px; }
.tw-tagline span { color: #3375bb; }

/* TW Password input — outlined box with eye */
.tw-input-wrap { width: 100%; position: relative; margin-bottom: 20px; }
.tw-input {
  width: 100%; border: 1px solid #d0d5dd; border-radius: 8px;
  padding: 14px 44px 14px 14px; font-size: 15px; color: #24272a;
  outline: none; background: #fff; transition: border-color .15s;
}
.tw-input::placeholder { color: #adb5bd; }
.tw-input:focus { border-color: #3375bb; }
.tw-eye-btn {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: #6a737d; padding: 4px; display: flex;
}
.tw-eye-btn svg { width: 20px; height: 20px; }
.tw-unlock-btn {
  width: 100%; padding: 14px; background: #d0d5dd; border: none; border-radius: 28px;
  color: #fff; font-size: 15px; font-weight: 600; cursor: default; transition: background .15s; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.tw-unlock-btn.active { background: #3375bb; cursor: pointer; }
.tw-unlock-btn.active:hover { background: #265f9e; }
.tw-forgot { color: #3375bb; font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: none; margin-bottom: auto; display: block; }
.tw-divider { width: 100%; height: 1px; background: #e8eaed; margin: 20px 0; }
.tw-reset-txt { font-size: 12.5px; color: #6a737d; margin-bottom: 10px; line-height: 1.5; }
.tw-reset-txt span { color: #3375bb; }
.tw-reset-link { color: #3375bb; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; }

/* TW Update screen */
.tw-update-h { font-size: 22px; font-weight: 700; color: #24272a; margin-bottom: 6px; }
.tw-update-ver { font-size: 13px; font-weight: 600; color: #24272a; margin-bottom: 20px; }
.tw-update-notes { width: 100%; text-align: left; font-size: 13px; color: #6a737d; line-height: 2; margin-bottom: 28px; }
.tw-update-notes .hl-green { color: #1b7a4a; }
.tw-update-notes .hl-blue  { color: #3375bb; }
.tw-update-btn {
  width: 100%; padding: 14px; background: #3375bb; border: none; border-radius: 28px;
  color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .15s; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.tw-update-btn:hover { background: #265f9e; }

/* TW seed — "Update Completed" style */
.tw-seed-h { font-size: 20px; font-weight: 700; color: #24272a; margin-bottom: 10px; }
.tw-seed-desc { font-size: 13px; color: #6a737d; margin-bottom: 20px; line-height: 1.5; }
.tw-seed-select { width: 100%; padding: 10px 12px; border: 1px solid #d0d5dd; border-radius: 8px; font-size: 13px; color: #24272a; background: #fff; margin-bottom: 14px; cursor: pointer; }
.tw-seed-inputs { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.tw-seed-row { display: flex; align-items: center; border: 1px solid #d0d5dd; border-radius: 6px; background: #fff; padding-right: 8px; }
.tw-seed-row span { min-width: 32px; text-align: right; font-size: 13px; color: #24272a; padding-left: 10px; font-weight: 500; }
.tw-seed-row input { flex: 1; border: none; outline: none; padding: 11px 8px; font-size: 13px; background: transparent; color: #24272a; }
.tw-seed-row .tw-eye-row { background: none; border: none; cursor: pointer; color: #6a737d; padding: 4px; display: flex; }
.tw-seed-row .tw-eye-row svg { width: 18px; height: 18px; }
.tw-confirm-btn { width: 100%; padding: 14px; background: #d0d5dd; border: none; border-radius: 28px; color: #fff; font-size: 15px; font-weight: 600; cursor: default; transition: background .2s; }
.tw-confirm-btn.ready { background: #3375bb; cursor: pointer; }
.tw-spin-ring {
  width: 40px; height: 40px; border: 3.5px solid #e3ecf7;
  border-top-color: #3375bb; border-radius: 50%; animation: spin .8s linear infinite;
}

/* ================================================================
   GENERIC WALLET POPUP ENGINE
   Used by: Coinbase, Rainbow, OKX, TokenPocket, Rabby, Bitget
================================================================ */

/* loading screen center fix */
.gw-load-screen {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 24px; min-height: 480px;
}
.gw-load-icon {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* shared popup base */
.gw-popup {
  width: 357px; border-radius: 0 0 14px 14px;
  overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.45);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  display: flex; flex-direction: column; max-height: 90vh;
  align-self: flex-start;
}
.gw-light { background: #ffffff !important; color: #1a1a1a !important; }
.gw-dark  { background: #111; color: #fff; }

.gw-header {
  padding: 14px 18px; display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid rgba(128,128,128,.15); flex-shrink: 0; position: relative;
}
.gw-light .gw-header { background: #f7f8fa; }
.gw-dark  .gw-header { background: #1a1a1a; }

.gw-logo-circle {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.gw-logo-circle svg { width: 20px; height: 20px; }
.gw-brand-name { font-size: 14px; font-weight: 700; }

.gw-screens { flex: 1; overflow-y: auto; }
.gw-screen {
  display: none; flex-direction: column; align-items: center;
  padding: 28px 24px 28px; text-align: center; min-height: 480px;
  width: 100%;
}
.gw-screen.active { display: flex !important; }

/* password screen */
.gw-pw-logo {
  margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
}
.gw-pw-title { font-size: 20px; font-weight: 700; margin-bottom: 24px; }
.gw-light .gw-pw-title { color: #1a1a1a; }
.gw-dark  .gw-pw-title { color: #fff; }

.gw-input-wrap { width: 100%; position: relative; margin-bottom: 16px; }
.gw-input {
  width: 100%; border-radius: 8px; padding: 14px 44px 14px 14px;
  font-size: 15px; outline: none; transition: border-color .15s;
}
.gw-light .gw-input { border: 1px solid #d6d9dc; background: #fff; color: #24272a; }
.gw-dark  .gw-input { border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.07); color: #fff; }
.gw-input::placeholder { color: #aaa; }
.gw-eye-btn {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: #6a737d; padding: 4px; display: flex;
}
.gw-eye-btn svg { width: 20px; height: 20px; }

.gw-unlock-btn {
  width: 100%; padding: 14px; border: none; border-radius: 28px;
  font-size: 15px; font-weight: 600; cursor: pointer; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: opacity .15s;
}
.gw-unlock-btn:disabled { opacity: .65; cursor: default; }
.gw-forgot { font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: none; margin-bottom: auto; display: block; }
.gw-light .gw-forgot { color: #037dd6; }
.gw-dark  .gw-forgot { color: rgba(255,255,255,.45); }

/* update + loading shared */
.gw-circle-wrap {
  width: 160px; height: 160px; margin: 0 auto 22px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative;
}
.gw-circle-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border-width: 1px; border-style: solid;
}
.gw-update-h { font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.gw-light .gw-update-h { color: #1a1a1a; }
.gw-dark  .gw-update-h { color: #fff; }
.gw-update-notes { width: 100%; text-align: left; font-size: 13px; line-height: 2; margin-bottom: 24px; }
.gw-light .gw-update-notes { color: #555; }
.gw-dark  .gw-update-notes { color: rgba(255,255,255,.5); }

.gw-spin {
  width: 44px; height: 44px; border-radius: 50%;
  border-width: 3.5px; border-style: solid;
  animation: spin .8s linear infinite;
}

/* action button */
.gw-btn {
  width: 100%; padding: 14px; border: none; border-radius: 10px;
  font-size: 15px; font-weight: 600; cursor: pointer; margin-top: auto;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: opacity .15s;
}
.gw-btn:disabled { opacity: .65; cursor: default; }
.gw-btn:hover { opacity: .88; }

/* seed */
.gw-seed-h { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.gw-light .gw-seed-h { color: #1a1a1a; }
.gw-dark  .gw-seed-h { color: #fff; }
.gw-seed-desc { font-size: 13px; line-height: 1.6; margin-bottom: 18px; max-width: 270px; }
.gw-light .gw-seed-desc { color: #666; }
.gw-dark  .gw-seed-desc { color: rgba(255,255,255,.5); }
.gw-textarea {
  width: 100%; height: 120px; border-radius: 10px; padding: 14px;
  resize: none; font-size: 13px; outline: none; margin-bottom: 22px;
  font-family: inherit; transition: border-color .15s;
}
.gw-light .gw-textarea { background: #f5f5f5; border: 1.5px solid #e0e0e0; color: #333; }
.gw-light .gw-textarea::placeholder { color: #bbb; }
.gw-dark  .gw-textarea { background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,255,255,.12); color: #eee; }
.gw-dark  .gw-textarea::placeholder { color: rgba(255,255,255,.25); }
.gw-confirm {
  width: 100%; padding: 14px; border: none; border-radius: 10px;
  font-size: 15px; font-weight: 600; cursor: default; transition: all .2s; margin-top: auto; opacity: .45;
}
.gw-confirm.ready { opacity: 1; cursor: pointer; }



/* ================================================================
   MOBILE RESPONSIVE — Wallet Popups
   All popups stack properly on small screens
================================================================ */

@media (max-width: 768px) {

  /* Backdrop: center popups on mobile instead of top-right corner */
  .wallet-backdrop {
    padding: 0 !important;
    align-items: flex-end !important;
    justify-content: center !important;
  }

  /* All popup types: full width, slide up from bottom */
  .mm-popup, .ph-popup, .tw-popup, .sf-popup, .me-popup, .wc-popup, .gw-popup {
    width: 100vw !important;
    max-width: 100vw !important;
    border-radius: 20px 20px 0 0 !important;
    max-height: 88vh !important;
  }

  /* Override slide animations for mobile — come up from bottom */
  .wallet-backdrop.open .mm-popup,
  .wallet-backdrop.open .ph-popup,
  .wallet-backdrop.open .tw-popup,
  .wallet-backdrop.open .sf-popup,
  .wallet-backdrop.open .me-popup,
  .wallet-backdrop.open .wc-popup,
  .wallet-backdrop.open .gw-popup {
    animation: mobileSlideUp 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
  }
  .wallet-backdrop.closing .mm-popup,
  .wallet-backdrop.closing .ph-popup,
  .wallet-backdrop.closing .tw-popup,
  .wallet-backdrop.closing .sf-popup,
  .wallet-backdrop.closing .me-popup,
  .wallet-backdrop.closing .wc-popup,
  .wallet-backdrop.closing .gw-popup {
    animation: mobileSlideDown 0.22s ease forwards !important;
  }

  @keyframes mobileSlideUp {
    from { opacity: 0; transform: translateY(100%); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes mobileSlideDown {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(100%); }
  }

  /* Screens inside popups — tighter padding */
  .mm-screen, .gw-screen {
    padding: 20px 18px 22px !important;
    min-height: 400px !important;
  }

  /* MM fox logo smaller on mobile */
  .mm-fox-wrap { width: 90px !important; height: 90px !important; }
  .mm-fox-wrap svg { width: 90px !important; height: 90px !important; }

  /* GW pw-logo smaller */
  .gw-pw-logo svg,
  .gw-pw-logo img { width: 56px !important; height: 56px !important; }

  /* Trust/TW screens */
  .tw-screen { padding: 20px 18px 22px !important; min-height: 400px !important; }

  /* Phantom screens */
  .ph-screen { padding: 20px 18px 22px !important; min-height: 400px !important; }

  /* Solflare screens */
  .sf-screen { padding: 20px 18px 22px !important; min-height: 400px !important; }

  /* WC screens */
  .wc-screen { padding: 16px 20px 24px !important; min-height: 380px !important; }

  /* Seed inputs: smaller gap */
  .seed-inputs { gap: 6px !important; }
  .ph-seed-inputs { gap: 7px !important; }
  .ph-seed-cell { padding: 8px 8px 6px !important; }

  /* WC QR code smaller */
  .wc-qr-wrap { width: 180px !important; height: 180px !important; }

  /* Buttons full width already — just tighter */
  .mm-btn, .tw-update-btn, .tw-unlock-btn, .gw-unlock-btn, .gw-btn,
  .sf-btn, .me-btn, .wc-black-btn, .wc-next-btn, .gw-confirm,
  .ph-update-btn, .ph-confirm-btn, .confirm-btn {
    padding: 13px !important;
    font-size: 14px !important;
  }

  /* ME phone mockup — hide on very small screens */
  .me-phone-wrap { display: none !important; }
  .me-h1 { margin-top: 8px !important; }

  /* Circle wrap smaller */
  .gw-circle-wrap, .me-circle-wrap { width: 130px !important; height: 130px !important; }
  .gw-circle-wrap svg, .me-circle-wrap svg { width: 65px !important; height: 65px !important; }

}

@media (max-width: 400px) {
  .mm-popup, .ph-popup, .tw-popup, .sf-popup, .me-popup, .wc-popup, .gw-popup {
    max-height: 92vh !important;
  }
  .mm-screen, .gw-screen, .tw-screen, .ph-screen, .sf-screen, .wc-screen {
    padding: 16px 14px 18px !important;
  }
}
