*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #050505;

  --panel: rgba(16, 16, 16, 0.9);
  --panel-soft: rgba(22, 22, 22, 0.94);

  --border: rgba(255, 255, 255, 0.08);

  --red: #6a00ff;
  --orange: #f900ff;
  --accent: #000000;

  --white: #ffffff;
  --text: #f5f5f5;
  --muted: #9f9f9f;

  --danger: #7c1f1f;

  --shadow: 0 24px 80px rgba(0, 0, 0, 0.6);

  --white-glow: rgba(255, 255, 255, 0.16);
  --white-glow-soft: rgba(255, 255, 255, 0.07);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    sans-serif;

  color: var(--text);

  background:
    radial-gradient(
      circle at 50% -10%,
      rgba(106, 0, 255, 0.18),
      transparent 30%
    ),
    radial-gradient(
      circle at 85% 10%,
      rgba(249, 0, 255, 0.18),
      transparent 26%
    ),
    linear-gradient(
      180deg,
      #0a0a0a,
      var(--bg) 72%
    );
}

/* ambient background */

.aurora,
.nebula {
  position: fixed;
  inset: -35%;
  pointer-events: none;
  z-index: 0;
}

.aurora {
  background:
    radial-gradient(
      circle at 25% 20%,
      rgba(106, 0, 255, 0.26),
      transparent 34%
    ),
    radial-gradient(
      circle at 75% 28%,
      rgba(249, 0, 255, 0.22),
      transparent 36%
    );

  filter: blur(105px);
  opacity: 0.85;

  animation: auroraMove 10s ease-in-out infinite alternate;
}

.nebula {
  background:
    conic-gradient(
      from 180deg,
      rgba(106, 0, 255, 0.12),
      transparent 22%,
      rgba(249, 0, 255, 0.12),
      transparent 55%
    );

  filter: blur(135px);
  opacity: 0.55;

  animation: nebulaSpin 40s linear infinite;
}

@keyframes auroraMove {
  from {
    transform: translate(-4%, -3%) scale(1);
  }

  to {
    transform: translate(4%, 3%) scale(1.08);
  }
}

@keyframes nebulaSpin {
  from {
    transform: rotate(0deg) scale(1);
  }

  to {
    transform: rotate(360deg) scale(1.06);
  }
}

/* layout */

.admin-link,
.page {
  position: relative;
  z-index: 2;
}

.admin-link {
  position: fixed;
  top: 18px;
  right: 18px;

  color: var(--white);

  background:
    linear-gradient(
      180deg,
      rgba(28, 28, 28, 0.94),
      rgba(16, 16, 16, 0.94)
    );

  padding: 11px 17px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;

  border: 1px solid var(--border);

  backdrop-filter: blur(16px);

  box-shadow:
    0 14px 38px rgba(0, 0, 0, 0.48);

  transition: 0.22s ease;
}

.admin-link:hover {
  border-color: var(--white);

  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.55),
    0 0 28px var(--white-glow);

  transform: translateY(-2px);
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 62px 22px 72px;
}

.hero {
  position: relative;

  text-align: center;

  margin-bottom: 34px;

  padding: 52px 30px;

  border-radius: 28px;

  overflow: hidden;

  background:
    linear-gradient(
      180deg,
      rgba(28, 28, 28, 0.95),
      rgba(12, 12, 12, 0.94)
    );

  border: 1px solid rgba(255, 255, 255, 0.11);

  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);

  backdrop-filter: blur(18px);
}

/* white sweep across hero/application panel */
.hero::before {
  content: "";

  position: absolute;

  inset: -40%;

  background:
    linear-gradient(
      105deg,
      transparent 35%,
      rgba(255, 255, 255, 0.14) 48%,
      rgba(255, 255, 255, 0.09) 52%,
      transparent 65%
    );

  animation: heroSweep 5.5s linear infinite;

  pointer-events: none;
}

.hero::after {
  content: "";

  position: absolute;

  inset: 1px;

  border-radius: inherit;

  pointer-events: none;

  background:
    radial-gradient(
      circle at top,
      rgba(255, 255, 255, 0.05),
      transparent 38%
    );
}

@keyframes heroSweep {
  from {
    transform: translateX(-55%);
  }

  to {
    transform: translateX(55%);
  }
}

.badge {
  position: relative;

  display: inline-block;

  color: var(--white);

  background:
    linear-gradient(
      135deg,
      var(--red),
      var(--orange),
      var(--accent)
    );

  border-radius: 999px;

  padding: 9px 18px;

  font-size: 12px;

  font-weight: 950;

  letter-spacing: 1px;

  text-transform: uppercase;

  box-shadow:
    0 0 22px var(--white-glow),
    0 0 42px var(--white-glow-soft);
}

.hero h1,
h1 {
  position: relative;

  margin: 18px 0 10px;

  font-size: clamp(34px, 5vw, 56px);

  line-height: 1.03;

  letter-spacing: -0.045em;

  color: var(--white);
}

.hero p,
p {
  position: relative;

  color: var(--muted);

  line-height: 1.68;

  font-size: 16px;
}

.menu-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 26px;
}

.form-card,
.card {
  position: relative;

  overflow: hidden;

  padding: 32px;

  border-radius: 24px;

  background:
    linear-gradient(
      180deg,
      rgba(26, 26, 26, 0.93),
      rgba(12, 12, 12, 0.93)
    );

  border: 1px solid rgba(255, 255, 255, 0.09);

  box-shadow:
    0 18px 52px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);

  backdrop-filter: blur(16px);

  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease;

  animation: cardFloat 6.5s ease-in-out infinite;
}

.form-card:nth-child(2),
.card:nth-child(2) {
  animation-delay: 0.8s;
}

@keyframes cardFloat {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -5px;
  }
}

/* white card glow instead of orange */
.form-card::before,
.card::before {
  content: "";

  position: absolute;

  inset: 0;

  background:
    radial-gradient(
      circle at center,
      rgba(255, 255, 255, 0.055),
      transparent 58%
    );

  pointer-events: none;
}

.form-card::after,
.card::after {
  content: "";

  position: absolute;

  inset: -1px;

  border-radius: inherit;

  padding: 1px;

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,0.25),
      transparent 70%
    );

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);

  -webkit-mask-composite: xor;

  pointer-events: none;

  opacity: 0.62;
}

.form-card:hover,
.card:hover {
  transform: translateY(-7px) scale(1.01);

  border-color: rgba(255, 255, 255, 0.45);

  box-shadow:
    0 0 28px var(--white-glow-soft),
    0 24px 70px rgba(0,0,0,0.55);
}

.card {
  margin: 20px 0;
}

h2 {
  position: relative;

  margin: 24px 0 14px;

  padding-bottom: 11px;

  color: var(--white);

  border-bottom:
    1px solid rgba(255, 255, 255, 0.1);

  letter-spacing: -0.02em;
}

h2:first-child {
  margin-top: 0;
}

label {
  display: block;

  margin-top: 17px;
  margin-bottom: 7px;

  color: var(--white);

  font-weight: 850;
}

input,
textarea,
select {
  width: 100%;

  padding: 15px;

  margin: 5px 0 11px;

  color: var(--text);

  background:
    linear-gradient(
      180deg,
      rgba(7, 7, 7, 0.96),
      rgba(12, 12, 12, 0.96)
    );

  border:
    1px solid rgba(255, 255, 255, 0.1);

  border-radius: 13px;

  font-size: 15px;

  outline: none;

  transition: 0.2s ease;
}

textarea {
  min-height: 124px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #77716b;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(255, 255, 255, 0.55);

  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.12),
    0 0 24px rgba(255, 255, 255, 0.08);
}

button,
.btn {
  position: relative;

  display: inline-block;

  margin: 10px 4px 0 0;

  padding: 13px 21px;

  color: var(--white);

  background:
    linear-gradient(
      135deg,
      var(--red),
      var(--orange),
      var(--accent)
    );

  border: none;

  border-radius: 13px;

  cursor: pointer;

  font-size: 15px;

  font-weight: 950;

  text-decoration: none;

  box-shadow:
    0 0 22px var(--white-glow),
    0 0 42px var(--white-glow-soft);

  transition:
    transform 0.2s ease,
    filter 0.2s ease,
    box-shadow 0.2s ease;
}

button:hover,
.btn:hover {
  filter: brightness(1.12);

  transform: translateY(-3px);

  box-shadow:
    0 0 30px rgba(255, 255, 255, 0.22),
    0 0 60px rgba(255, 255, 255, 0.10);
}

.accept {
  background:
    linear-gradient(
      135deg,
      #2f6f3a,
      #4f9b5c
    ) !important;
}

.deny {
  background: #2b2b2b !important;
}

.delete {
  background: var(--danger) !important;
}

nav {
  text-align: center;
  margin-bottom: 24px;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.app-details {
  margin-top: 18px;

  padding-top: 14px;

  border-top:
    1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-link,
.dashboard-link:visited,
.dashboard-link:hover,
.dashboard-link:active {
  color: inherit;
  text-decoration: none;
}

details {
  background: transparent;
  color: var(--text);
}

summary {
  background: rgba(12, 12, 12, 0.96);

  color: var(--white);

  padding: 16px 18px;

  border-radius: 12px;

  border: 1px solid var(--border);

  cursor: pointer;

  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "▼";
  float: right;
  opacity: 0.7;
}

details[open] summary::after {
  content: "▲";
}

details[open] summary {
  border-color: rgba(255, 255, 255, 0.45);
}

.app-details {
  background: rgba(8, 8, 8, 0.92);

  color: var(--text);

  padding: 18px;

  margin-top: 14px;

  border-radius: 14px;

  border: 1px solid var(--border);
}

.app-details p {
  color: var(--text);
}

.app-details b {
  color: var(--white);
}

select,
option {
  background: var(--bg);
  color: var(--text);
}

@media (max-width: 700px) {
  .admin-link {
    position: static;
    display: block;
    width: fit-content;
    margin: 14px auto 0;
  }

  .page {
    padding-top: 26px;
  }

  .hero {
    padding: 36px 22px;
  }

  .hero h1,
  h1 {
    font-size: 32px;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .form-card,
  .card {
    padding: 24px;
  }
}

@media (max-width: 700px) {
  .page {
    padding: 24px 14px 48px;
  }

  .hero {
    margin-bottom: 22px;
  }

  button,
  .btn {
    width: 100%;
    text-align: center;
  }

  nav .btn {
    width: auto;
  }
}

.site-logo {
    width: 300px;
    height: auto;
    display: block;
    margin: 20px auto;
}