﻿@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap");

:root {
  --proto-glow: rgba(255, 138, 26, 0.45);
  --proto-ink: rgba(255, 255, 255, 0.08);
  --proto-sheen: rgba(255, 255, 255, 0.2);
}

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.proto-serif {
  font-family: "Instrument Serif", "Times New Roman", serif;
  letter-spacing: 0.4px;
}

.proto-bg {
  position: relative;
  overflow: hidden;
}

.proto-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 138, 26, 0.18), transparent 45%),
    radial-gradient(circle at 88% 24%, rgba(56, 189, 248, 0.16), transparent 40%),
    radial-gradient(circle at 24% 80%, rgba(251, 191, 36, 0.12), transparent 48%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.04), transparent 60%);
  opacity: 0.7;
  pointer-events: none;
}

.proto-bg > * {
  position: relative;
}

.proto-window {
  background: linear-gradient(145deg, rgba(16, 42, 66, 0.96), rgba(7, 28, 44, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.proto-glow {
  box-shadow: 0 0 0 1px rgba(255, 138, 26, 0.15), 0 0 24px var(--proto-glow);
}

.proto-float {
  animation: protoFloat 6s ease-in-out infinite;
}

.proto-float-slow {
  animation: protoFloat 9s ease-in-out infinite;
}

.proto-shimmer {
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.08) 10%, var(--proto-sheen) 40%, rgba(255, 255, 255, 0.08) 70%);
  background-size: 200% 100%;
  animation: protoShimmer 1.8s linear infinite;
}

.proto-slide {
  animation: protoSlideUp 0.6s ease-out both;
}

.proto-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.proto-spark {
  position: relative;
}

.proto-spark::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  opacity: 0.45;
}

.proto-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 60;
}

.proto-modal.hidden {
  display: none;
}

.proto-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 12, 20, 0.7);
  backdrop-filter: blur(6px);
}

.proto-modal__panel {
  position: relative;
  max-width: 640px;
  width: 100%;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(12, 31, 48, 0.98), rgba(8, 24, 38, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  padding: 2rem;
  max-height: 85vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.proto-modal-open {
  overflow: hidden;
}

.proto-modal__panel::-webkit-scrollbar {
  width: 6px;
}

.proto-modal__panel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}

.proto-modal__panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

@media (max-width: 640px) {
  .proto-modal {
    padding: 1rem;
  }

  .proto-modal__panel {
    border-radius: 16px;
    padding: 1.5rem;
  }
}

.crm-form-scroll {
  max-height: calc(85vh - 220px);
  overflow-y: auto;
  padding-right: 0.5rem;
}

.crm-form-scroll::-webkit-scrollbar {
  width: 6px;
}

.crm-form-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}

.crm-form-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

@keyframes protoFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes protoShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

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