/* Global styles for QuickPair */
:root {
  --qp-bg: #080712;
  --qp-bg-elevated: #161427;
  --qp-bg-soft: #201c35;
  --qp-primary: #ff4f7b;
  --qp-primary-soft: rgba(255, 79, 123, 0.08);
  --qp-primary-strong: #ff1e61;
  --qp-accent: #ffc857;
  --qp-text: #f8f5ff;
  --qp-muted: #b3aecf;
  --qp-border-subtle: rgba(255, 255, 255, 0.08);
  --qp-radius-lg: 1.5rem;
  --qp-radius-md: 1rem;
  --qp-radius-pill: 999px;
  --qp-shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.6);
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #281c3d 0, #05030b 55%, #020009 100%);
  color: var(--qp-text);
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

/* Layout */

.qp-container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* Header / nav */

.qp-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(5, 3, 20, 0.98),
    rgba(5, 3, 20, 0.9),
    transparent
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.qp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.7rem;
}

.qp-logo {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
}

.qp-logo span {
  color: var(--qp-primary);
}

.qp-nav-links {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.92rem;
}

.qp-nav-links a {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  color: var(--qp-muted);
}

.qp-nav-links a.active {
  color: var(--qp-text);
  background: rgba(255, 79, 123, 0.16);
}

.qp-nav-links a:hover {
  color: var(--qp-text);
}

/* Buttons */

.qp-btn {
  border-radius: var(--qp-radius-pill);
  padding: 0.55rem 1.25rem;
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.96rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background 0.12s ease-out;
}

.qp-btn-primary {
  background: linear-gradient(135deg, var(--qp-primary), var(--qp-primary-strong));
  color: #fff;
  box-shadow: 0 12px 28px rgba(255, 79, 123, 0.45);
}

.qp-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(255, 79, 123, 0.6);
}

.qp-btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--qp-text);
}

.qp-btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
}

.qp-link-btn {
  padding: 0;
  border: none;
  background: none;
  color: var(--qp-accent);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.qp-link-btn:hover {
  text-decoration: underline;
}

.qp-btn.full-width {
  width: 100%;
}

/* Sections */

.section-title {
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
}

.section-subtitle {
  margin-top: 0;
  color: var(--qp-muted);
  font-size: 0.95rem;
}

/* Footer */

.qp-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(
      circle at top left,
      rgba(255, 79, 123, 0.35),
      transparent 55%
    ),
    #05030b;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1.2fr)) minmax(0, 1.5fr);
  gap: 2rem;
  padding-block: 2.4rem 1.6rem;
  font-size: 0.9rem;
}

.footer-brand p {
  color: var(--qp-muted);
  max-width: 260px;
}

.footer-links h4,
.footer-social h4 {
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.footer-links a {
  display: block;
  color: var(--qp-muted);
  margin-bottom: 0.25rem;
}

.footer-links a:hover {
  color: var(--qp-text);
}

.footer-social .social-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-social a {
  color: var(--qp-muted);
}

.footer-social a:hover {
  color: var(--qp-text);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-block: 0.9rem 1.4rem;
  font-size: 0.8rem;
  color: var(--qp-muted);
  text-align: center;
}

.simple-footer {
  margin-top: 2rem;
}

/* Utility */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge.verified {
  background: rgba(46, 213, 115, 0.12);
  color: #6fffb5;
  border: 1px solid rgba(111, 255, 181, 0.35);
}

.muted {
  color: var(--qp-muted);
}

.hidden {
  display: none !important;
}

/* Form */

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border-radius: 0.75rem;
  border: 1px solid var(--qp-border-subtle);
  background: rgba(9, 7, 21, 0.88);
  color: var(--qp-text);
  font-size: 0.9rem;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(255, 79, 123, 0.5);
  box-shadow: 0 0 0 1px rgba(255, 79, 123, 0.25);
}

.field-hint {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: var(--qp-muted);
}

.form-note {
  font-size: 0.8rem;
  color: var(--qp-muted);
  margin-top: 0.3rem;
}

.form-note.secondary {
  margin-top: 0.15rem;
}

/* Nav user bubble */

.qp-nav-user {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.25rem 0.7rem;
  background: transparent;
  color: var(--qp-muted);
  font-size: 0.8rem;
  cursor: default;
}

/* Mobile nav */

.qp-nav-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 0.18rem;
  padding: 0.35rem;
}

.qp-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--qp-text);
}

/* Responsive */

@media (max-width: 768px) {
  .qp-nav-toggle {
    display: flex;
  }

  .qp-nav-links {
    position: absolute;
    inset: 100% 0 auto;
    padding: 0.75rem 1.25rem 1rem;
    background: rgba(5, 3, 18, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.16s ease-out, opacity 0.16s ease-out;
  }

  .qp-nav-links.show {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 540px) {
  .qp-container {
    width: min(100% - 1.5rem, 460px);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
