

#first-time-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, 
    color-mix(in srgb, var(--page-bg, #0a0605) 95%, transparent),
    color-mix(in srgb, var(--page-bg, #0a0605) 85%, #000));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeIn 0.3s ease-out forwards;
  box-shadow:
    0 0 20px var(--primary-shadow, rgba(212,85,10,0.25)),
    inset 0 0 20px var(--primary-shadow, rgba(212,85,10,0.15));
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

#first-time-modal {
  position: relative;
  background: linear-gradient(to bottom, 
    color-mix(in srgb, var(--primary-accent, #992f05) 8%, transparent),
    color-mix(in srgb, var(--surface, #1a100d) 35%, transparent) 50%,
    color-mix(in srgb, var(--primary-deep, #661f03) 12%, transparent));
  background-color: color-mix(in srgb, var(--surface, #1a100d) 25%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 24px;
  max-width: 540px;
  width: 90%;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  animation: slideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  border: 1px solid rgba(255, 255, 255, 0.06);
  
  
  --x: 50%;
  --y: 50%;
  --glow-size: 300px;
  --glow-strength: 0.35;
}


#first-time-modal::before {
  content: "";
  position: absolute;
  inset: 4px;
  pointer-events: none;
  border-radius: 16px;
  background: radial-gradient(
    var(--glow-size) circle at var(--x, 50%) var(--y, 50%),
    color-mix(in srgb, var(--primary-accent, #992f05) 15%, transparent) 0%,
    color-mix(in srgb, var(--primary-accent, #992f05) 6%, transparent) 30%,
    transparent 65%
  );
  opacity: 0.5;
  transition: opacity 180ms ease-out;
  z-index: 0;
}


#first-time-modal::after {
  content: "";
  position: absolute;
  inset: -2px;
  pointer-events: none;
  border-radius: calc(20px + 2px);
  background: conic-gradient(
    from 180deg at var(--x, 50%) var(--y, 50%),
    var(--primary-accent, #992f05),
    color-mix(in srgb, var(--primary-accent, #992f05) 70%, var(--primary-deep, #661f03) 30%),
    var(--primary-deep, #661f03),
    color-mix(in srgb, var(--primary-accent, #992f05) 70%, var(--primary-deep, #661f03) 30%),
    var(--primary-accent, #992f05)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  padding: 1px;
  opacity: 0;
  transition: opacity 220ms ease-out;
  will-change: opacity;
}

#first-time-modal .modal-content:hover::before {
  opacity: 0.4;
}


#first-time-modal > * {
  position: relative;
  z-index: 1;
}

@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

#first-time-modal h2 {
  margin: 0 0 0.3rem 0;
  color: transparent;
  background: var(--accent-gradient, linear-gradient(90deg, var(--primary-deep), var(--primary)));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 24px;
  font-weight: 600;
}

#first-time-modal .subtitle {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.disguise-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.disguise-option {
  background: linear-gradient(to bottom, 
    color-mix(in srgb, var(--primary-accent, #992f05) 5%, transparent),
    color-mix(in srgb, var(--surface-2, #1f1410) 30%, transparent));
  background-color: color-mix(in srgb, var(--surface-2, #1f1410) 25%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.disguise-option:hover {
  border-color: var(--primary-accent, #992f05);
  transform: scale(1.05);
  box-shadow: 0 8px 24px var(--primary-shadow, rgba(212,85,10,0.45));
  background-color: color-mix(in srgb, var(--surface, #1a100d) 35%, transparent);
}

.disguise-option.selected {
  background: linear-gradient(to bottom, 
    color-mix(in srgb, var(--primary-accent, #992f05) 12%, transparent),
    color-mix(in srgb, var(--surface, #1a100d) 40%, transparent));
  background-color: color-mix(in srgb, var(--surface, #1a100d) 35%, transparent);
  border: 2px solid var(--primary-accent, #992f05);
  box-shadow: 0 8px 28px var(--primary-shadow, rgba(212,85,10,0.55)),
              inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.disguise-option .icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.5rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--page-bg, #0a0605) 60%, transparent);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.disguise-option .icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.disguise-option .name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.disguise-option .checkmark {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  background: var(--accent-gradient, linear-gradient(90deg, rgba(255,77,0,1), rgba(255,106,0,1)));
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--on-primary, #fff0e8);
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 2px 8px var(--primary-shadow, rgba(212,85,10,0.45));
}

.disguise-option.selected .checkmark {
  display: flex;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding-top: 1rem;
  border-top: 1px dashed color-mix(in srgb, var(--primary-accent, #992f05) 15%, transparent);
}

.modal-actions button {
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  will-change: transform, box-shadow;
}

.modal-actions .btn-skip {
  background: color-mix(in srgb, var(--surface-2, #1f1410) 80%, transparent);
  color: var(--muted, #c9a08a);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-actions .btn-skip:hover {
  background: color-mix(in srgb, var(--surface, #1a100d) 90%, transparent);
  color: var(--text, #f8e7e0);
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.modal-actions .btn-continue {
  background: var(--accent-gradient, linear-gradient(90deg, rgba(255,77,0,1), rgba(255,106,0,1)));
  color: var(--on-primary, #fff0e8);
  box-shadow: 2px 3px 24px -4px var(--primary-shadow, rgba(196,78,27,0.75));
}

.modal-actions .btn-continue:hover {
  transform: scale(1.08);
  box-shadow: 2px 3px 30px -2px var(--primary-shadow, rgba(196,78,27,0.85));
}

.modal-actions .btn-continue:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.modal-actions .btn-continue:active,
.modal-actions .btn-skip:active {
  transform: scale(1.05);
}


#first-time-modal::-webkit-scrollbar {
  width: 8px;
}

#first-time-modal::-webkit-scrollbar-track {
  background: var(--surface-2);
  border-radius: 4px;
}

#first-time-modal::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

#first-time-modal::-webkit-scrollbar-thumb:hover {
  background: var(--primary-deep);
}


.light-scheme #first-time-modal {
  background: var(--surface);
  border-color: color-mix(in srgb, var(--surface) 40%, #000 0%);
}

.light-scheme .disguise-option {
  background: var(--surface-2);
  border-color: color-mix(in srgb, var(--surface) 40%, #000 0%);
}

.light-scheme .disguise-option .icon {
  background: var(--page-bg);
  border: 1px solid color-mix(in srgb, var(--surface) 20%, #000 0%);
}

.light-scheme #first-time-modal .subtitle {
  color: var(--muted);
}

.light-scheme .disguise-option .name {
  color: var(--text);
}

.light-scheme .modal-actions {
  border-top-color: color-mix(in srgb, var(--surface) 6%, #000 0%);
}


#cloaking-modal {
  position: relative;
  background: linear-gradient(to bottom, 
    color-mix(in srgb, var(--primary-accent, #992f05) 8%, transparent),
    color-mix(in srgb, var(--surface, #1a100d) 35%, transparent) 50%,
    color-mix(in srgb, var(--primary-deep, #661f03) 12%, transparent));
  background-color: color-mix(in srgb, var(--surface, #1a100d) 25%, transparent);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-radius: 20px;
  padding: 24px;
  max-width: 480px;
  width: 90%;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  animation: slideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  border: 1px solid rgba(255, 255, 255, 0.06);
  
  
  --x: 50%;
  --y: 50%;
  --glow-size: 300px;
  --glow-strength: 0.35;
}


#cloaking-modal::before {
  content: "";
  position: absolute;
  inset: 4px;
  pointer-events: none;
  border-radius: 16px;
  background: radial-gradient(
    var(--glow-size) circle at var(--x, 50%) var(--y, 50%),
    color-mix(in srgb, var(--primary-accent, #992f05) 15%, transparent) 0%,
    color-mix(in srgb, var(--primary-accent, #992f05) 6%, transparent) 30%,
    transparent 65%
  );
  opacity: 0.5;
  transition: opacity 180ms ease-out;
  z-index: 0;
}

#cloaking-modal::after {
  content: "";
  position: absolute;
  inset: -2px;
  pointer-events: none;
  border-radius: calc(20px + 2px);
  background: conic-gradient(
    from 180deg at var(--x, 50%) var(--y, 50%),
    var(--primary-accent, #992f05),
    color-mix(in srgb, var(--primary-accent, #992f05) 70%, var(--primary-deep, #661f03) 30%),
    var(--primary-deep, #661f03),
    color-mix(in srgb, var(--primary-accent, #992f05) 70%, var(--primary-deep, #661f03) 30%),
    var(--primary-accent, #992f05)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  opacity: 0;
  transition: opacity 220ms ease-out;
  will-change: opacity;
}

#cloaking-modal:hover::after {
  opacity: 0.4;
}

#cloaking-modal > * {
  position: relative;
  z-index: 1;
}

#cloaking-modal h2 {
  margin: 0 0 0.3rem 0;
  color: transparent;
  background: var(--accent-gradient, linear-gradient(90deg, var(--primary-deep), var(--primary)));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 24px;
  font-weight: 600;
}

#cloaking-modal .subtitle {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.cloaking-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cloaking-option {
  background: linear-gradient(to bottom, 
    color-mix(in srgb, var(--primary-accent, #992f05) 5%, transparent),
    color-mix(in srgb, var(--surface-2, #1f1410) 30%, transparent));
  background-color: color-mix(in srgb, var(--surface-2, #1f1410) 25%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cloaking-option:hover {
  border-color: var(--primary-accent, #992f05);
  transform: scale(1.02);
  box-shadow: 0 8px 24px var(--primary-shadow, rgba(212,85,10,0.45));
  background-color: color-mix(in srgb, var(--surface, #1a100d) 35%, transparent);
}

.cloaking-option.selected {
  background: linear-gradient(to bottom, 
    color-mix(in srgb, var(--primary-accent, #992f05) 12%, transparent),
    color-mix(in srgb, var(--surface, #1a100d) 40%, transparent));
  background-color: color-mix(in srgb, var(--surface, #1a100d) 35%, transparent);
  border: 2px solid var(--primary-accent, #992f05);
  box-shadow: 0 8px 28px var(--primary-shadow, rgba(212,85,10,0.55)),
              inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.cookie-option .option-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.cloaking-option .icon-wrapper {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-gradient, linear-gradient(90deg, rgba(255,77,0,1), rgba(255,106,0,1)));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--on-primary, #fff0e8);
  flex-shrink: 0;
  box-shadow: 0 4px 12px var(--primary-shadow, rgba(212,85,10,0.55));
}

.cloaking-option .option-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.cloaking-option .option-description {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
  padding-left: 40px;
}

.cloaking-option .checkmark-radio {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 22px;
  height: 22px;
  border: 2px solid color-mix(in srgb, var(--surface) 40%, #000 0%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s ease;
}

.cloaking-option.selected .checkmark-radio {
  background: var(--accent-gradient, linear-gradient(90deg, rgba(255,77,0,1), rgba(255,106,0,1)));
  border-color: var(--primary-accent, #992f05);
  box-shadow: 0 4px 12px var(--primary-shadow, rgba(212,85,10,0.55));
}

.cloaking-option .checkmark-radio::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--on-primary, #fff0e8);
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s ease;
}

.cloaking-option.selected .checkmark-radio::after {
  opacity: 1;
  transform: scale(1);
}


#cookie-consent-modal {
  position: relative;
  background: linear-gradient(to bottom, 
    color-mix(in srgb, var(--primary-accent, #992f05) 8%, transparent),
    color-mix(in srgb, var(--surface, #1a100d) 35%, transparent) 50%,
    color-mix(in srgb, var(--primary-deep, #661f03) 12%, transparent));
  background-color: color-mix(in srgb, var(--surface, #1a100d) 25%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 24px;
  max-width: 480px;
  width: 90%;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  animation: slideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  border: 1px solid rgba(255, 255, 255, 0.06);
  
  
  --x: 50%;
  --y: 50%;
  --glow-size: 300px;
  --glow-strength: 0.35;
}


#cookie-consent-modal::before {
  content: "";
  position: absolute;
  inset: 4px;
  pointer-events: none;
  border-radius: 16px;
  background: radial-gradient(
    var(--glow-size) circle at var(--x, 50%) var(--y, 50%),
    color-mix(in srgb, var(--primary-accent, #992f05) 15%, transparent) 0%,
    color-mix(in srgb, var(--primary-accent, #992f05) 6%, transparent) 30%,
    transparent 65%
  );
  opacity: 0.5;
  transition: opacity 180ms ease-out;
  z-index: 0;
}

#cookie-consent-modal::after {
  content: "";
  position: absolute;
  inset: -2px;
  pointer-events: none;
  border-radius: calc(20px + 2px);
  background: conic-gradient(
    from 180deg at var(--x, 50%) var(--y, 50%),
    var(--primary-accent, #992f05),
    color-mix(in srgb, var(--primary-accent, #992f05) 70%, var(--primary-deep, #661f03) 30%),
    var(--primary-deep, #661f03),
    color-mix(in srgb, var(--primary-accent, #992f05) 70%, var(--primary-deep, #661f03) 30%),
    var(--primary-accent, #992f05)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  padding: 1px;
  opacity: 0;
  transition: opacity 220ms ease-out;
  will-change: opacity;
}

#cookie-consent-modal:hover::after {
  opacity: 0.4;
}

#cookie-consent-modal > * {
  position: relative;
  z-index: 1;
}

#cookie-consent-modal h2 {
  margin: 0 0 0.4rem 0;
  color: transparent;
  background: var(--accent-gradient, linear-gradient(90deg, var(--primary-deep), var(--primary)));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 22px;
  font-weight: 600;
}

#cookie-consent-modal .subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.cookie-option {
  background: linear-gradient(to bottom, 
    color-mix(in srgb, var(--primary-accent, #992f05) 5%, transparent),
    color-mix(in srgb, var(--surface-2, #1f1410) 30%, transparent));
  background-color: color-mix(in srgb, var(--surface-2, #1f1410) 25%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cookie-option:hover {
  border-color: var(--primary-accent, #992f05);
  transform: scale(1.02);
  box-shadow: 0 8px 24px var(--primary-shadow, rgba(212,85,10,0.45));
  background-color: color-mix(in srgb, var(--surface, #1a100d) 35%, transparent);
}

.cookie-option.selected {
  background: linear-gradient(to bottom, 
    color-mix(in srgb, var(--primary-accent, #992f05) 12%, transparent),
    color-mix(in srgb, var(--surface, #1a100d) 40%, transparent));
  background-color: color-mix(in srgb, var(--surface, #1a100d) 35%, transparent);
  border: 2px solid var(--primary-accent, #992f05);
  box-shadow: 0 8px 28px var(--primary-shadow, rgba(212,85,10,0.55)),
              inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.cookie-option .option-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}

.cookie-option .icon-wrapper {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-gradient, linear-gradient(90deg, rgba(255,77,0,1), rgba(255,106,0,1)));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--on-primary, #fff0e8);
  flex-shrink: 0;
  box-shadow: 0 4px 12px var(--primary-shadow, rgba(212,85,10,0.55));
}

.cookie-option .option-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.cookie-option .option-description {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  padding-left: 40px;
}

.cookie-option .consequences-list {
  margin: 6px 0 0 40px;
  padding: 0;
  list-style: none;
}

.cookie-option .consequences-list li {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  position: relative;
  padding-left: 18px;
  margin-bottom: 3px;
}

.cookie-option .consequences-list li::before {
  content: '•';
  position: absolute;
  left: 6px;
  color: var(--primary-accent, #992f05);
  font-weight: bold;
}

.cookie-option .warning-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--primary-accent, #992f05) 20%, transparent);
  color: var(--primary-accent, #992f05);
  font-size: 11px;
  font-weight: 600;
  margin-left: 40px;
  margin-top: 6px;
  border: 1px solid color-mix(in srgb, var(--primary-accent, #992f05) 30%, transparent);
}

.cookie-option .checkmark-radio {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 24px;
  height: 24px;
  border: 2px solid color-mix(in srgb, var(--surface) 40%, #000 0%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s ease;
}

.cookie-option.selected .checkmark-radio {
  background: var(--accent-gradient, linear-gradient(90deg, rgba(255,77,0,1), rgba(255,106,0,1)));
  border-color: var(--primary-accent, #992f05);
  box-shadow: 0 4px 12px var(--primary-shadow, rgba(212,85,10,0.55));
}

.cookie-option .checkmark-radio::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--on-primary, #fff0e8);
  opacity: 0;
  transform: scale(0);
  transition: all 0.12s ease;
}

.cookie-option.selected .checkmark-radio::after {
  opacity: 1;
  transform: scale(1);
}


#panic-button-modal {
  position: relative;
  background: linear-gradient(to bottom, 
    color-mix(in srgb, var(--primary-accent, #992f05) 8%, transparent),
    color-mix(in srgb, var(--surface, #1a100d) 35%, transparent) 50%,
    color-mix(in srgb, var(--primary-deep, #661f03) 12%, transparent));
  background-color: color-mix(in srgb, var(--surface, #1a100d) 25%, transparent);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-radius: 20px;
  padding: 24px;
  max-width: 480px;
  width: 90%;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  animation: slideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  border: 1px solid rgba(255, 255, 255, 0.06);
  
  
  --x: 50%;
  --y: 50%;
  --glow-size: 300px;
  --glow-strength: 0.35;
}

#panic-button-modal::before {
  content: "";
  position: absolute;
  inset: 4px;
  pointer-events: none;
  border-radius: 16px;
  background: radial-gradient(
    var(--glow-size) circle at var(--x, 50%) var(--y, 50%),
    color-mix(in srgb, var(--primary-accent, #992f05) 15%, transparent) 0%,
    color-mix(in srgb, var(--primary-accent, #992f05) 6%, transparent) 30%,
    transparent 65%
  );
  opacity: 0.5;
  transition: opacity 180ms ease-out;
  z-index: 0;
}

#panic-button-modal::after {
  content: "";
  position: absolute;
  inset: -2px;
  pointer-events: none;
  border-radius: calc(20px + 2px);
  background: conic-gradient(
    from 180deg at var(--x, 50%) var(--y, 50%),
    var(--primary-accent, #992f05),
    color-mix(in srgb, var(--primary-accent, #992f05) 70%, var(--primary-deep, #661f03) 30%),
    var(--primary-deep, #661f03),
    color-mix(in srgb, var(--primary-accent, #992f05) 70%, var(--primary-deep, #661f03) 30%),
    var(--primary-accent, #992f05)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  padding: 1px;
  opacity: 0;
  transition: opacity 220ms ease-out;
  will-change: opacity;
}

#panic-button-modal > * {
  position: relative;
  z-index: 1;
}

#panic-button-modal h2 {
  margin: 0 0 0.3rem 0;
  color: transparent;
  background: var(--accent-gradient, linear-gradient(90deg, var(--primary-deep), var(--primary)));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 24px;
  font-weight: 600;
}

#panic-button-modal .subtitle {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.panic-inputs input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--surface-2, #261813);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text, #f5f0ed);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.panic-inputs input:focus {
  outline: none;
  border-color: var(--primary-accent, #d4550a);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-accent, #d4550a) 20%, transparent);
}

.panic-inputs input::placeholder {
  color: var(--muted, #9e8c80);
  opacity: 0.6;
}

.panic-inputs input[readonly] {
  cursor: pointer;
  user-select: none;
}

