
:root {
  --bg: #050819;
  --bg-alt: #071025;
  --card: #0b1633;
  --card-alt: #0d1b3d;
  --accent: #ff7b39;
  --accent-2: #ffcc33;
  --accent-pink: #ff4b9a;
  --accent-green: #2fd38a;
  --text: #f9fbff;
  --muted: #9aa4c3;
  --danger: #ff6b81;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.45);
  --transition-fast: 0.18s ease-out;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background: radial-gradient(circle at top, #101a3b 0, #050819 55%);
  color: var(--text);
  min-height: 100%;
}

body {
  display: flex;
  justify-content: center;
}

.page-wrapper {
  width: 100%;
  max-width: 1280px;
  min-height: 100vh;
  padding: 16px 16px 32px;
}

/* Topbar */

.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(15, 29, 70, 0.96), rgba(6, 10, 30, 0.96));
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 0;
  z-index: 20;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  font-size: 26px;
  filter: drop-shadow(0 0 10px rgba(255, 204, 102, 0.65));
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-title {
  font-weight: 700;
  font-size: 18px;
}

.logo-subtitle {
  font-size: 12px;
  color: var(--muted);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-nav a {
  font-size: 13px;
  text-decoration: none;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.top-nav a:hover,
.top-nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

/* Ad slot */

.ad-slot {
  margin-top: 18px;
  margin-bottom: 18px;
}

.ad-placeholder {
  border-radius: 18px;
  padding: 14px 16px;
  background: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.03) 0,
    rgba(255, 255, 255, 0.03) 6px,
    rgba(255, 255, 255, 0.01) 6px,
    rgba(255, 255, 255, 0.01) 12px
  );
  border: 1px dashed rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: var(--muted);
}

/* Cards & sections */

.main-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px;
}

.card {
  background: radial-gradient(circle at top, var(--card) 0, var(--card-alt) 52%, #050819 100%);
  border-radius: var(--radius-xl);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top left, rgba(255, 196, 103, 0.12), transparent 55%);
  opacity: 0.7;
  pointer-events: none;
}

.card > * {
  position: relative;
}

.section-title {
  margin: 0 0 4px;
  font-size: 22px;
}

.section-helper {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--muted);
}

/* Pills */

.pill-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(5, 200, 120, 0.08);
  color: var(--accent-green);
  font-size: 12px;
}

.pill-info .dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent-green);
  box-shadow: 0 0 10px rgba(47, 211, 138, 0.8);
}

/* Forms */

.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

label {
  font-weight: 500;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="date"],
textarea {
  width: 100%;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(3, 9, 30, 0.9);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

input::placeholder,
textarea::placeholder {
  color: rgba(168, 178, 210, 0.7);
}

input:focus,
textarea:focus {
  border-color: rgba(255, 178, 102, 0.9);
  background: rgba(6, 18, 46, 0.96);
  box-shadow: 0 0 0 1px rgba(255, 178, 102, 0.5);
  transform: translateY(-0.5px);
}

/* Buttons */

.btn {
  border-radius: 999px;
  border: none;
  cursor: pointer;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  transition: background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent-pink), var(--accent), var(--accent-2));
  color: #1b1024;
  box-shadow: 0 12px 25px rgba(255, 126, 80, 0.5);
}

.btn.primary:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 16px 32px rgba(255, 126, 80, 0.7);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.btn.small {
  padding: 7px 12px;
  font-size: 12px;
}

.btn[disabled],
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

/* Misc layout helpers */

.grid-2-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.small-muted {
  font-size: 12px;
  color: var(--muted);
}

/* Footer */

.footer-meta {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.footer-link {
  color: var(--muted);
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

/* Confetti */

.confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 999;
}

.confetti-piece {
  position: absolute;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  opacity: 0.9;
  animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
  to {
    transform: translate3d(var(--dx), 110vh, 0) rotateZ(540deg);
    opacity: 0;
  }
}

/* Utils */

.hidden {
  display: none !important;
}

/* Responsive */

@media (max-width: 900px) {
  .page-wrapper {
    padding: 12px 10px 24px;
  }

  .topbar {
    padding-inline: 14px;
  }

  .top-nav {
    gap: 8px;
  }

  .grid-2,
  .grid-2-inline {
    grid-template-columns: minmax(0, 1fr);
  }

  .card {
    padding-inline: 16px;
  }
}
