/* Apple Security page — visible behind Mac scan overlay */

.phase-panic--mac-only {
  background: #ebebeb;
  color: #1d1d1f;
}

.mac-sec-bg {
  position: absolute;
  inset: 24px 0 0;
  z-index: 0;
  overflow: auto;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.mac-sec-global-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  height: 44px;
  background: rgba(22, 22, 23, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  color: #f5f5f7;
  font-size: 12px;
}

.mac-sec-nav-logo {
  width: 16px;
  height: 20px;
  background: #f5f5f7;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 814 1000'%3E%3Cpath d='M788 745c-14 33-31 64-51 94-27 41-49 69-65 85-26 26-54 39-84 40-22 0-48-6-78-19-30-12-58-18-84-18-27 0-56 6-86 19-30 13-54 19-73 19-28-1-56-12-84-35-18-16-41-45-69-87-58-84-87-180-87-288 0-43 9-85 28-125 15-33 38-61 68-84 30-23 56-35 78-37 30-2 59 7 87 27 12 9 28 25 48 48 20-18 39-29 57-33 23-6 45-8 66-7 41 3 76 16 105 39-46 28-68 67-66 117 2 39 15 72 38 99 23 27 51 42 84 45-7 21-14 40-22 58zM631 0c0 31-11 60-34 87-27 31-60 48-96 45-1-24 9-49 28-74 14-18 32-33 54-45 22-12 42-17 48-13z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 814 1000'%3E%3Cpath d='M788 745c-14 33-31 64-51 94-27 41-49 69-65 85-26 26-54 39-84 40-22 0-48-6-78-19-30-12-58-18-84-18-27 0-56 6-86 19-30 13-54 19-73 19-28-1-56-12-84-35-18-16-41-45-69-87-58-84-87-180-87-288 0-43 9-85 28-125 15-33 38-61 68-84 30-23 56-35 78-37 30-2 59 7 87 27 12 9 28 25 48 48 20-18 39-29 57-33 23-6 45-8 66-7 41 3 76 16 105 39-46 28-68 67-66 117 2 39 15 72 38 99 23 27 51 42 84 45-7 21-14 40-22 58zM631 0c0 31-11 60-34 87-27 31-60 48-96 45-1-24 9-49 28-74 14-18 32-33 54-45 22-12 42-17 48-13z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.mac-sec-nav-links {
  display: flex;
  gap: 24px;
  opacity: 0.9;
}

.mac-sec-safari {
  margin: 10px 12px 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.06);
  background: #fff;
}

.mac-sec-safari-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: linear-gradient(180deg, #f5f5f5, #e8e8e8);
  border-bottom: 1px solid #d1d1d6;
}

.mac-sec-dots {
  display: flex;
  gap: 7px;
}

.mac-sec-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mac-sec-dots span:nth-child(1) { background: #ff5f57; }
.mac-sec-dots span:nth-child(2) { background: #febc2e; }
.mac-sec-dots span:nth-child(3) { background: #28c840; }

.mac-sec-safari-nav span {
  color: #86868b;
  font-size: 17px;
  padding: 0 3px;
}

.mac-sec-url {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 12px;
  background: #fff;
  border: 1px solid #d1d1d6;
  border-radius: 6px;
  font-size: 12px;
  color: #1d1d1f;
}

.mac-sec-lock {
  font-size: 10px;
}

.mac-sec-window {
  display: flex;
  min-height: min(72vh, 640px);
  background: #f5f5f7;
}

.mac-sec-sidebar {
  width: 220px;
  flex-shrink: 0;
  padding: 16px 10px;
  background: #ebebeb;
  border-right: 1px solid #d1d1d6;
}

.mac-sec-sidebar-title {
  margin: 0 0 12px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #86868b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mac-sec-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mac-sec-sidebar-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: #1d1d1f;
  margin-bottom: 2px;
}

.mac-sec-sidebar-list li.is-active {
  background: #007aff;
  color: #fff;
}

.mac-sec-side-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  flex-shrink: 0;
  background: #86868b;
}

.mac-sec-sidebar-list li.is-active .mac-sec-side-icon {
  background: rgba(255, 255, 255, 0.9);
}

.mac-sec-side-icon--privacy {
  background: linear-gradient(135deg, #5856d6, #007aff);
}

.mac-sec-main {
  flex: 1;
  padding: 28px 32px 24px;
  overflow: auto;
}

.mac-sec-main-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.mac-sec-shield {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(145deg, #34c759, #30d158);
  box-shadow: 0 4px 12px rgba(52, 199, 89, 0.35);
  position: relative;
}

.mac-sec-shield::after {
  content: '';
  position: absolute;
  inset: 14px 16px 18px;
  border: 3px solid #fff;
  border-radius: 2px 2px 6px 6px;
  border-top: none;
}

.mac-sec-main-head h1 {
  margin: 0 0 4px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1d1d1f;
}

.mac-sec-main-head p {
  margin: 0;
  font-size: 14px;
  color: #86868b;
}

.mac-sec-status-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 20px;
  border: 1px solid #d1d1d6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.mac-sec-status-card--scan {
  border-color: #007aff;
  box-shadow: 0 0 0 1px rgba(0, 122, 255, 0.2);
}

.mac-sec-status-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mac-sec-status-row strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

.mac-sec-status-row p {
  margin: 0;
  font-size: 13px;
  color: #86868b;
}

.mac-sec-status-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 3px solid #e5e5ea;
  border-top-color: #007aff;
}

.mac-sec-status-icon--spin {
  animation: mac-sec-spin 0.9s linear infinite;
}

@keyframes mac-sec-spin {
  to { transform: rotate(360deg); }
}

.mac-sec-pill {
  margin-left: auto;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 980px;
  white-space: nowrap;
}

.mac-sec-pill--active {
  background: rgba(0, 122, 255, 0.12);
  color: #007aff;
}

.mac-sec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 720px) {
  .mac-sec-window {
    flex-direction: column;
  }
  .mac-sec-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #d1d1d6;
  }
  .mac-sec-grid {
    grid-template-columns: 1fr;
  }
}

.mac-sec-item {
  position: relative;
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid #d1d1d6;
}

.mac-sec-item h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
}

.mac-sec-item p {
  margin: 0;
  font-size: 12px;
  color: #86868b;
}

.mac-sec-item--ok .mac-sec-check {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #34c759;
  font-weight: 700;
}

.mac-sec-item--warn {
  border-color: #ff9500;
  background: #fffaf2;
}

.mac-sec-item--warn .mac-sec-warn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ff9500;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mac-sec-foot {
  margin: 20px 0 0;
  font-size: 11px;
  color: #86868b;
}

/* Scan overlay sits above security page */
.phase-panic--mac-only .panic-menu {
  z-index: 40;
}

.phase-panic--mac-only .panic-content {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - 24px);
  padding: 32px 5vw 80px;
}

.phase-panic--mac-only .panic-scan-ui {
  width: min(520px, 100%);
  padding: 36px 32px 32px;
  text-align: center;
  background: rgba(29, 29, 31, 0.94);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  color: #f5f5f7;
}

#prank-shell.prank-shell--failed .mac-sec-bg {
  filter: blur(4px);
  opacity: 0.55;
}
