html.prc-mc-modal-open,
body.prc-mc-modal-open {
  overflow: hidden !important;
}

.prc-mc-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background:
    radial-gradient(circle at 18% 12%, rgba(14, 165, 233, 0.18), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(37, 99, 235, 0.13), transparent 34%),
    rgba(8, 18, 33, 0.64);
  backdrop-filter: blur(13px) saturate(1.1);
  -webkit-backdrop-filter: blur(13px) saturate(1.1);
  opacity: 0;
  transition: opacity 180ms ease;
  box-sizing: border-box;
}

.prc-mc-overlay.is-visible {
  opacity: 1;
}

.prc-mc-dialog {
  width: min(100%, 720px);
  max-height: min(88vh, 860px);
  transform: translateY(14px) scale(0.985);
  transition: transform 200ms cubic-bezier(.2,.9,.2,1);
  outline: none;
  box-sizing: border-box;
}

.prc-mc-overlay.is-visible .prc-mc-dialog {
  transform: translateY(0) scale(1);
}

.prc-mc-size-small { width: min(100%, 430px); }
.prc-mc-size-medium { width: min(100%, 620px); }
.prc-mc-size-large { width: min(100%, 790px); }
.prc-mc-size-xlarge { width: min(100%, 1010px); }
.prc-mc-size-announcement { width: min(100%, 1080px); }

.prc-mc-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 22px;
  background:
    radial-gradient(circle at 9% -12%, rgba(59, 130, 246, 0.13), transparent 34%),
    radial-gradient(circle at 105% -15%, rgba(20, 184, 166, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0.985), rgba(248,251,255,0.975));
  box-shadow:
    0 30px 90px rgba(2, 8, 23, 0.35),
    0 12px 28px rgba(15, 23, 42, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.84);
  color: #0e1b2f;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.prc-mc-accent {
  height: 4px;
  background: linear-gradient(90deg, #0b74de, #12b5cb, #21c58d);
}

.prc-mc-type-announcement .prc-mc-accent { background: linear-gradient(90deg, #0084ca, #00a6d6, #22c7e8); }
.prc-mc-type-success .prc-mc-accent { background: linear-gradient(90deg, #059669, #10b981, #22c55e); }
.prc-mc-type-warning .prc-mc-accent { background: linear-gradient(90deg, #f59e0b, #f97316, #fb7185); }
.prc-mc-type-maintenance .prc-mc-accent { background: linear-gradient(90deg, #7c2d12, #f97316, #facc15); }
.prc-mc-type-error .prc-mc-accent { background: linear-gradient(90deg, #b91c1c, #ef4444, #f97316); }

.prc-mc-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px 13px;
  border-bottom: 1px solid rgba(15, 39, 73, 0.065);
}

.prc-mc-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0b74de;
  background:
    linear-gradient(145deg, rgba(255,255,255,.82), rgba(239,246,255,.92)),
    #eef6ff;
  border: 1px solid rgba(11, 116, 222, 0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 24px rgba(11,116,222,.12);
}

.prc-mc-icon svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prc-mc-type-announcement .prc-mc-icon {
  color: #0084ca;
  background: linear-gradient(145deg, rgba(255,255,255,.88), rgba(232,247,255,.96));
  border-color: rgba(0, 132, 202, 0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 24px rgba(0,132,202,.14);
}

.prc-mc-type-success .prc-mc-icon {
  color: #059669;
  background: linear-gradient(145deg, rgba(255,255,255,.86), rgba(236,253,245,.95));
  border-color: rgba(16, 185, 129, 0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 24px rgba(16,185,129,.13);
}

.prc-mc-type-warning .prc-mc-icon {
  color: #d97706;
  background: linear-gradient(145deg, rgba(255,255,255,.86), rgba(255,251,235,.96));
  border-color: rgba(245, 158, 11, 0.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 24px rgba(245,158,11,.13);
}

.prc-mc-type-maintenance .prc-mc-icon {
  color: #ea580c;
  background: linear-gradient(145deg, rgba(255,255,255,.86), rgba(255,247,237,.96));
  border-color: rgba(249, 115, 22, 0.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 24px rgba(249,115,22,.14);
}

.prc-mc-type-error .prc-mc-icon {
  color: #dc2626;
  background: linear-gradient(145deg, rgba(255,255,255,.86), rgba(254,242,242,.96));
  border-color: rgba(239, 68, 68, 0.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 24px rgba(239,68,68,.14);
}

.prc-mc-header-text {
  min-width: 0;
  flex: 1 1 auto;
}

.prc-mc-kicker {
  display: none !important;
}

.prc-mc-type-announcement .prc-mc-kicker { color: #0084ca; }
.prc-mc-type-success .prc-mc-kicker { color: #047857; }
.prc-mc-type-warning .prc-mc-kicker { color: #b45309; }
.prc-mc-type-maintenance .prc-mc-kicker { color: #c2410c; }
.prc-mc-type-error .prc-mc-kicker { color: #dc2626; }

.prc-mc-header h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(18px, 1.35vw, 22px);
  line-height: 1.12;
  font-weight: 850;
  letter-spacing: -0.028em;
}

.prc-mc-close {
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(0, 132, 202, 0.24);
  border-radius: 8px;
  background: rgba(248, 252, 255, 0.96);
  color: #0084ca;
  font-size: 0;
  line-height: 1;
  cursor: pointer;
  box-shadow: none !important;
  outline: none;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.prc-mc-close::before,
.prc-mc-close::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.prc-mc-close::before { transform: rotate(45deg); }
.prc-mc-close::after { transform: rotate(-45deg); }

.prc-mc-close:hover,
.prc-mc-close:focus,
.prc-mc-close:focus-visible {
  color: #ffffff;
  border-color: rgba(0, 132, 202, 0.38);
  background: linear-gradient(135deg, #0084ca, #00a6d6);
  box-shadow: none !important;
  outline: none;
}

.prc-mc-body {
  padding: 20px 24px 6px;
  color: #334155;
  font-size: 14.5px;
  line-height: 1.6;
  overflow: auto;
  max-height: calc(88vh - 170px);
}

/* v1.0.9: greeting + message content use the available modal width */
.prc-mc-body > .prc-mc-user-greeting + div,
.prc-mc-body > .prc-mc-user-greeting + div > div:first-child,
.prc-mc-body > div:first-child,
.prc-mc-body > div:first-child > div:first-child {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.prc-mc-body h1,
.prc-mc-body h2,
.prc-mc-body h3 {
  color: #0f172a;
  letter-spacing: -0.032em;
  line-height: 1.15;
}

.prc-mc-body h1 { font-size: clamp(23px, 2.25vw, 32px) !important; }
.prc-mc-body h2 { font-size: clamp(20px, 1.75vw, 26px) !important; }
.prc-mc-body h3 { font-size: clamp(17px, 1.45vw, 21px) !important; }

.prc-mc-body h1:first-child,
.prc-mc-body h2:first-child,
.prc-mc-body h3:first-child,
.prc-mc-body p:first-child {
  margin-top: 0;
}

.prc-mc-body p:last-child,
.prc-mc-body ul:last-child,
.prc-mc-body ol:last-child {
  margin-bottom: 0;
}

.prc-mc-body a {
  color: #0b74de;
  font-weight: 750;
}

.prc-mc-body .prc-alert-card,
.prc-mc-body .prc-premium-card,
.prc-mc-body .premium-message-card {
  padding: 18px 20px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 10% 0%, rgba(59, 130, 246, .10), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,251,255,.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.88), 0 12px 28px rgba(15,23,42,.06);
}

.prc-mc-body .prc-pill,
.prc-mc-body .premium-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 12px;
  background: #eef6ff;
  color: #145ea8;
  border: 1px solid rgba(11, 116, 222, 0.10);
  font-size: 12px;
  line-height: 1.15;
  font-weight: 850;
}

.prc-mc-body img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}

.prc-mc-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 9px;
  padding: 14px 24px 20px;
}

.prc-mc-main-btn,
.prc-mc-secondary-btn {
  appearance: none;
  border-radius: 8px;
  padding: 10px 16px;
  min-height: 38px;
  font-size: 13px;
  line-height: 1;
  font-weight: 850;
  cursor: pointer;
  box-shadow: none !important;
  outline: none;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.prc-mc-main-btn {
  background: #0084ca !important;
  border: 1px solid #0084ca !important;
  color: #ffffff !important;
  box-shadow: none !important;
  border-radius: 8px !important;
}

.prc-mc-main-btn:hover {
  background: #0074b5 !important;
  border-color: #0074b5 !important;
  color: #ffffff !important;
  box-shadow: none !important;
  transform: none !important;
}

.prc-mc-secondary-btn {
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #475569;
  background: linear-gradient(180deg, #ffffff, #f4f8fc);
  box-shadow: none !important;
}

.prc-mc-secondary-btn:hover,
.prc-mc-secondary-btn:focus,
.prc-mc-secondary-btn:focus-visible {
  color: #0f172a;
  border-color: rgba(37, 99, 235, 0.20);
  background: #ffffff;
  box-shadow: none !important;
  outline: none;
}

.prc-mc-size-announcement .prc-mc-shell {
  background:
    radial-gradient(circle at 8% -10%, rgba(0, 132, 202, 0.16), transparent 36%),
    radial-gradient(circle at 100% -12%, rgba(0, 166, 214, 0.14), transparent 34%),
    linear-gradient(180deg, #ffffff, #f8fbff);
}

.prc-mc-size-announcement .prc-mc-body {
  font-size: 16px;
}

@media (max-width: 640px) {
  .prc-mc-overlay {
    align-items: flex-end;
    padding: 14px;
  }

  .prc-mc-dialog {
    width: 100%;
    max-height: 92vh;
  }

  .prc-mc-shell {
    border-radius: 20px;
  }

  .prc-mc-header {
    padding: 15px 18px 13px;
    gap: 10px;
  }

  .prc-mc-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .prc-mc-icon svg {
    width: 19px;
    height: 19px;
  }

  .prc-mc-header h2 {
    font-size: 18px;
  }

  .prc-mc-body {
    padding: 18px 18px 6px;
    max-height: calc(92vh - 175px);
  }

  .prc-mc-footer {
    flex-direction: column-reverse;
    align-items: stretch;
    padding: 14px 18px 18px;
  }

  .prc-mc-main-btn,
  .prc-mc-secondary-btn {
    width: 100%;
  }
}


/* v1.0.8: keep action buttons simple - no glow/shadow/focus ring */
.prc-mc-close,
.prc-mc-close:hover,
.prc-mc-close:focus,
.prc-mc-close:focus-visible,
.prc-mc-main-btn,
.prc-mc-main-btn:hover,
.prc-mc-main-btn:focus,
.prc-mc-main-btn:focus-visible,
.prc-mc-secondary-btn,
.prc-mc-secondary-btn:hover,
.prc-mc-secondary-btn:focus,
.prc-mc-secondary-btn:focus-visible {
  box-shadow: none !important;
  outline: none !important;
}

.prc-mc-user-greeting {
  width: 100%;
  max-width: none;
  margin: 0 0 14px;
  padding: 0;
  background: transparent;
  border: 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-align: left;
}

.prc-mc-user-greeting strong,
.prc-mc-user-greeting b {
  font-weight: 600;
}
