:root {
  --bg: #091428;
  --bg-soft: #0f1f38;
  --card: rgba(15, 31, 56, 0.78);
  --line: rgba(150, 180, 220, 0.18);
  --text: #e8f0ff;
  --text-soft: #a6bddb;
  --accent: #3ddc97;
  --accent-2: #5bb9ff;
  --warn: #ffbf5f;
  --shadow: 0 18px 45px rgba(4, 9, 20, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1000px 600px at 10% -10%, #14315a 0%, transparent 60%),
    radial-gradient(800px 600px at 100% 0%, #072a3d 0%, transparent 55%),
    linear-gradient(130deg, #070f1f 0%, #0d1f36 55%, #0a172d 100%);
  position: relative;
  overflow-x: hidden;
}

.bg-shape {
  position: fixed;
  border-radius: 50%;
  z-index: 0;
  filter: blur(40px);
  opacity: 0.35;
}

.bg-shape-1 {
  width: 340px;
  height: 340px;
  background: #3ddc97;
  top: -120px;
  right: -80px;
}

.bg-shape-2 {
  width: 280px;
  height: 280px;
  background: #5bb9ff;
  bottom: -100px;
  left: -90px;
}

.site-header,
.layout {
  position: relative;
  z-index: 1;
}

.site-header {
  width: min(1200px, 94vw);
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(7, 16, 31, 0.7);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 18px;
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: linear-gradient(145deg, #3ddc97, #59afff);
  color: #06203b;
}

.brand-title {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.brand-sub {
  margin: 2px 0 0;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.header-nav {
  display: flex;
  gap: 8px;
}

.nav-btn,
.cta-btn,
.ghost-btn,
.send-btn {
  font-family: inherit;
  border: 0;
  cursor: pointer;
}

.nav-btn {
  background: transparent;
  color: var(--text-soft);
  padding: 10px 12px;
  border-radius: 10px;
}

.nav-btn.active,
.nav-btn:hover {
  background: rgba(91, 185, 255, 0.14);
  color: var(--text);
}

.cta-btn {
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(120deg, #3ddc97, #5bb9ff);
  color: #07213d;
  font-weight: 700;
}

.layout {
  width: min(1200px, 94vw);
  margin: 22px auto 36px;
  display: grid;
  gap: 18px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  background: var(--card);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.hero h1 {
  margin: 10px 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.hero p {
  margin: 0;
  color: var(--text-soft);
  max-width: 75ch;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(61, 220, 151, 0.35);
  color: #baf9df;
  background: rgba(61, 220, 151, 0.1);
  font-size: 0.82rem;
}

.chip.muted {
  border-color: rgba(91, 185, 255, 0.3);
  color: #bbdbff;
  background: rgba(91, 185, 255, 0.12);
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

h2 {
  margin: 0;
  font-size: 1.08rem;
  font-family: "Sora", sans-serif;
}

.counter {
  color: var(--text-soft);
  font-size: 0.86rem;
}

.toolbar {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(138, 173, 220, 0.25);
  background: rgba(7, 18, 35, 0.85);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
}

input {
  padding: 11px 12px;
}

input::placeholder,
textarea::placeholder {
  color: #89a3c6;
}

.quick-actions {
  display: flex;
  gap: 8px;
}

.ghost-btn {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(91, 185, 255, 0.12);
  color: var(--text);
}

.contact-list {
  display: grid;
  gap: 8px;
  max-height: 350px;
  overflow: auto;
  padding-right: 4px;
}

.contact-item {
  border: 1px solid rgba(140, 170, 210, 0.2);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.contact-item:hover {
  border-color: rgba(61, 220, 151, 0.45);
  background: rgba(61, 220, 151, 0.06);
}

.contact-name {
  font-weight: 600;
}

.contact-meta {
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 0.84rem;
}

label {
  font-size: 0.9rem;
  color: var(--text-soft);
}

textarea {
  margin-top: 8px;
  min-height: 180px;
  resize: vertical;
  padding: 12px;
  line-height: 1.45;
}

.meta-row {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.meta-item {
  border: 1px solid rgba(141, 170, 206, 0.18);
  border-radius: 12px;
  padding: 11px;
  background: rgba(8, 19, 37, 0.72);
}

.meta-label {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.8rem;
}

.meta-value {
  margin: 6px 0 0;
  font-weight: 600;
}

.send-btn {
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  color: #052337;
  background: linear-gradient(130deg, #3ddc97, #5bb9ff);
}

.send-btn:disabled {
  cursor: not-allowed;
  filter: grayscale(0.2);
  opacity: 0.6;
}

.hidden {
  display: none;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(3, 8, 20, 0.72);
  backdrop-filter: blur(5px);
}

.admin-modal.open {
  display: flex;
}

.admin-modal-card {
  width: min(540px, 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: rgba(10, 24, 45, 0.96);
  box-shadow: var(--shadow);
}

.access-gate {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(2, 6, 16, 0.86);
  backdrop-filter: blur(6px);
}

.access-gate.hidden {
  display: none;
}

.access-gate-card {
  width: min(460px, 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  background: rgba(10, 24, 45, 0.97);
  box-shadow: var(--shadow);
}

.access-gate-card h2 {
  margin: 0 0 8px;
}

.access-gate-card p {
  margin: 0 0 12px;
  color: var(--text-soft);
}

.access-gate-card .send-btn {
  margin-top: 12px;
}

.admin-helper {
  margin: 0 0 12px;
  color: var(--text-soft);
}

.admin-form-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.footnote {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.admin-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.admin-box {
  border: 1px solid rgba(131, 161, 200, 0.2);
  border-radius: 14px;
  padding: 14px;
  background: rgba(8, 18, 35, 0.74);
}

.admin-label {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.admin-value {
  margin: 8px 0 0;
  font-weight: 700;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(18px);
  background: #0f243e;
  border: 1px solid rgba(61, 220, 151, 0.4);
  color: #ccffe8;
  padding: 10px 14px;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.22s ease;
  z-index: 20;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.reveal-up {
  animation: revealUp 0.55s ease both;
}

.delay-1 {
  animation-delay: 0.08s;
}

.delay-2 {
  animation-delay: 0.14s;
}

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

@media (max-width: 1040px) {
  .grid-two,
  .admin-grid {
    grid-template-columns: 1fr 1fr;
  }

  .header-nav {
    display: none;
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-wrap: wrap;
  }

  .grid-two,
  .meta-row,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 16px;
  }
}
