/* Windows Security — Microsoft support page + twin windows (screenshot match) */

@font-face {
  font-family: 'Segoe UI';
  src: local('Segoe UI'), local('SegoeUI');
}

html.win-ui-may26 #may26-win-root {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  overflow: hidden;
  font-family: 'Segoe UI', 'Segoe UI Variable', system-ui, sans-serif;
  font-size: 14px;
  color: #1b1b1b;
  background: #f2f2f2;
}

html.win-ui-may26 #may26-win-root * {
  box-sizing: border-box;
}

.win-page-backdrop {
  position: relative;
  min-height: 100dvh;
  background: linear-gradient(180deg, #fff 0%, #f2f2f2 35%, #e8e8e8 100%);
}

.win-support-hero {
  padding: 48px 28px 120px;
  text-align: left;
  color: #262626;
  filter: blur(0.4px);
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}

.win-support-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.win-support-hero p {
  margin: 0;
  font-size: 15px;
  color: #605e5c;
  max-width: 520px;
  line-height: 1.5;
}

/* Fake Microsoft Support header */
.win-ms-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 28px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #e1e1e1;
}

.win-ms-topbar-left {
  display: flex;
  align-items: center;
  gap: 28px;
}

.win-ms-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #262626;
}

.win-ms-logo svg {
  width: 108px;
  height: 23px;
}

.win-ms-nav-support {
  font-size: 14px;
  color: #262626;
  font-weight: 400;
}

.win-ms-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #605e5c;
}

.win-ms-icon-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  padding: 0;
}

.win-ms-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: #605e5c;
}

.win-ms-signin {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #262626;
}

.win-ms-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #c8c6c4;
}

/* Center stack: main window + popup */
.win-windows-stack {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: min(940px, 96vw);
  min-height: 420px;
  z-index: 10;
}

/* —— Main “Windows” window —— */
.win-main-window {
  background: #fff;
  border: 1px solid #8a8886;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.06);
  border-radius: 7px 7px 0 0;
  overflow: hidden;
}

.win-titlebar {
  display: flex;
  align-items: stretch;
  height: 32px;
  background: #f3f3f3;
  border-bottom: 1px solid #e5e5e5;
}

.win-titlebar-left {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 400;
  color: #1b1b1b;
  min-width: 0;
}

.win-icon-defender {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.win-titlebar-chrome {
  display: flex;
  flex-shrink: 0;
}

.win-tb-btn {
  width: 46px;
  height: 32px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #1b1b1b;
}

.win-tb-btn svg {
  width: 10px;
  height: 10px;
}

.win-tb-btn--close:hover {
  background: #e81123;
}

.win-tb-btn--close:hover svg {
  fill: #fff;
}

.win-status-bar {
  background: #d83b01;
  color: #fff;
  text-align: center;
  padding: 11px 16px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.win-tabstrip {
  background: #f0f0f0;
  padding: 0 8px;
  border-bottom: 1px solid #d4d4d4;
}

.win-tab {
  display: inline-block;
  margin: 6px 0 0;
  padding: 7px 18px 8px;
  background: #fff;
  border: 1px solid #d4d4d4;
  border-bottom: none;
  font-size: 13px;
  color: #1b1b1b;
  border-radius: 3px 3px 0 0;
}

.win-main-body {
  display: flex;
  gap: 0;
  min-height: 280px;
  background: #fff;
}

.win-main-hero {
  flex: 0 0 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: #fafafa;
  border-right: 1px solid #edebe9;
}

.win-main-hero svg {
  width: 160px;
  height: auto;
  max-width: 100%;
}

.win-main-table-area {
  flex: 1;
  min-width: 0;
  padding: 12px 14px 8px;
}

.win-threat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.35;
}

.win-threat-table thead th {
  background: #3b3a39;
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 9px 10px;
  border: 1px solid #2d2c2c;
}

.win-threat-table tbody td {
  padding: 7px 10px;
  border: 1px solid #e1dfdd;
  vertical-align: top;
  color: #323130;
}

.win-threat-table tbody tr:nth-child(even) td {
  background: #faf9f8;
}

.win-threat-table .lvl-medium {
  color: #d83b01;
  font-weight: 700;
}

.win-threat-table .lvl-critical {
  color: #a4262c;
  font-weight: 700;
}

.win-threat-table .lvl-high {
  color: #c43e1c;
  font-weight: 700;
}

.win-main-warning {
  margin: 10px 14px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #0078d4;
}

.win-main-warning a.win-phone-flash {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.win-main-warning a.win-phone-flash:hover .win-phone-flash__num {
  text-decoration: underline;
}

.win-icon-phone {
  display: inline-block;
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin: 0 2px;
  color: #0078d4;
}

.win-main-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid #edebe9;
}

.win-activeshield {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 20px;
  font-weight: 700;
  color: #185abd;
}

.win-activeshield svg {
  width: 28px;
  height: 28px;
}

.win-activeshield em {
  font-style: normal;
  color: #d83b01;
}

.win-main-actions {
  display: flex;
  gap: 10px;
}

.win-btn-cancel-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  background: #d83b01;
  color: #fff;
  border: 1px solid #a92b01;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

.win-btn-scan-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  background: #0078d4;
  color: #fff;
  border: 1px solid #005a9e;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

.win-btn-scan-main svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

/* —— Security Alert popup (centered on main window) —— */
.win-alert-modal {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  z-index: 20;
  width: min(500px, 92vw);
  pointer-events: auto;
}

.win-alert-modal[hidden] {
  display: none !important;
}

.win-alert-dialog {
  background: #fff;
  border: 1px solid #8a8886;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 16px 48px rgba(0, 0, 0, 0.2);
  border-radius: 7px;
  overflow: hidden;
}

.win-alert-titlebar {
  display: flex;
  align-items: stretch;
  height: 32px;
  background: #f3f3f3;
  border-bottom: 1px solid #e5e5e5;
}

.win-alert-titlebar-left {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 400;
}

.win-icon-alert-title {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.win-alert-banner {
  background: #e81123;
  color: #fff;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.3;
}

.win-icon-triangle-warn {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.win-alert-body {
  padding: 18px 20px 16px;
  font-size: 13px;
  line-height: 1.55;
  color: #1b1b1b;
  text-align: center;
}

.win-alert-body a.win-phone-flash {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.win-alert-body a.win-phone-flash:hover .win-phone-flash__num {
  text-decoration: underline;
}

.win-alert-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 4px 20px 22px;
}

.win-btn-alert-cancel {
  min-width: 130px;
  padding: 9px 28px;
  background: #e1e1e1;
  color: #1b1b1b;
  border: 1px solid #adadad;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
  box-shadow: inset 0 1px 0 #f5f5f5;
}

.win-btn-scan-pc {
  min-width: 130px;
  padding: 9px 28px;
  background: #107c10;
  color: #fff;
  border: 1px solid #0b5a0b;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Dim layer behind popup on main window */
.win-main-window--dimmed::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.12);
  pointer-events: none;
  z-index: 5;
}

.win-main-window {
  position: relative;
}

/* Chat widget */
.win-chat-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2147483645;
  text-align: right;
  pointer-events: none;
}

.win-chat-bubble {
  display: inline-block;
  background: #fff;
  border: 1px solid #d2d0ce;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  color: #323130;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.win-chat-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0078d4;
  color: #fff;
  padding: 11px 18px 11px 14px;
  border-radius: 28px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 120, 212, 0.45);
}

.win-chat-ms-logo {
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 3px;
  padding: 2px;
}

.win-chat-ms-logo svg {
  width: 100%;
  height: 100%;
  display: block;
}

.win-chat-face {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #5cb85c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  position: relative;
}

.win-chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e81123;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

html.win-ui-may26 #may26-win-root button {
  cursor: pointer;
}

html.win-ui-may26 body {
  background: #f2f2f2 !important;
}
