/* LinkWave | Unify Your Digital Identity — landing design */
body:has(.lpu-root) {
  margin: 0;
  padding: 0;
  background: #030005;
}

:root {
  --lpu-bg-deep: #030005;
  --lpu-bg-panel: #0F0A16;
  --lpu-accent-primary: #8B5CF6;
  --lpu-accent-glow: #A78BFA;
  --lpu-accent-hot: #C4B5FD;
  --lpu-text-main: #FFFFFF;
  --lpu-text-muted: #9CA3AF;
  --lpu-border-subtle: rgba(139, 92, 246, 0.15);
  --lpu-border-glass: rgba(255, 255, 255, 0.08);
  --lpu-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.lpu-root * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.lpu-root {
  background-color: var(--lpu-bg-deep);
  color: var(--lpu-text-main);
  font-family: var(--lpu-font-sans);
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.lpu-root h1,
.lpu-root h2,
.lpu-root h3 {
  letter-spacing: -0.02em;
  font-weight: 600;
}

.lpu-root p {
  color: var(--lpu-text-muted);
  font-weight: 400;
}

.lpu-root a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.lpu-ambient-void {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background:
    radial-gradient(circle at 50% -20%, rgba(139, 92, 246, 0.15), transparent 60%),
    radial-gradient(circle at 50% 120%, rgba(139, 92, 246, 0.1), transparent 50%);
  pointer-events: none;
}

.lpu-star-field {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(1px 1px at 20px 30px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 40px 70px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 50px 160px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 90px 40px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 130px 80px, #ffffff, rgba(0,0,0,0));
  background-size: 200px 200px;
  opacity: 0.3;
}

.lpu-horizon-glow-container {
  position: absolute;
  top: 550px;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 400px;
  pointer-events: none;
  z-index: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.lpu-horizon-arc {
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--lpu-accent-hot) 50%, transparent 100%);
  box-shadow: 0 0 60px 10px var(--lpu-accent-primary);
  opacity: 0.8;
  border-radius: 50%;
}

.lpu-horizon-wash {
  position: absolute;
  top: -100px;
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
  filter: blur(40px);
  mix-blend-mode: screen;
}

.lpu-nav-wrapper {
  position: fixed;
  top: 24px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 100;
  padding: 0 24px;
}

.lpu-nav-pill {
  display: flex;
  align-items: center;
  gap: 32px;
  background: rgba(10, 5, 16, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid var(--lpu-border-glass);
  padding: 12px 32px;
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  font-family: var(--lpu-font-sans);
}

.lpu-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
}

.lpu-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
}

.lpu-logo-text {
  letter-spacing: -0.02em;
}

.lpu-logo-wave {
  background: linear-gradient(135deg, var(--lpu-accent-hot), var(--lpu-accent-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lpu-logo-icon {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--lpu-accent-hot), var(--lpu-accent-primary));
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.lpu-nav-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--lpu-text-muted);
}

.lpu-nav-links a:hover {
  color: #fff;
}

.lpu-nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lpu-btn-text {
  font-size: 14px;
  color: #fff;
  font-weight: 500;
}

.lpu-btn-primary {
  background: linear-gradient(180deg, #3c2f58 0%, #2e2344 100%);
  border: 1px solid rgba(139, 92, 246, 0.5);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.15), inset 0 1px 0 rgba(255,255,255,0.1);
}

.lpu-btn-primary:hover {
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
  border-color: var(--lpu-accent-hot);
}

.lpu-hero {
  position: relative;
  padding-top: 180px;
  padding-bottom: 80px;
  text-align: center;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
}

.lpu-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--lpu-border-subtle);
  border-radius: 999px;
  font-size: 13px;
  color: var(--lpu-accent-hot);
  margin-bottom: 24px;
  transition: all 0.3s ease;
  cursor: default;
}

.lpu-badge-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--lpu-accent-primary);
}

.lpu-sparkle-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.lpu-hero-title {
  font-size: clamp(2.5rem, 6vw, 72px);
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

.lpu-hero-sub {
  font-size: 18px;
  max-width: 580px;
  margin: 0 auto 48px;
  color: rgba(156, 163, 175, 0.9);
}

.lpu-interface-stage {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  perspective: 2000px;
}

.lpu-interface-container {
  position: relative;
  background: rgba(15, 10, 22, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 20px 20px 0 0;
  padding: 32px;
  backdrop-filter: blur(20px);
  box-shadow:
    0 -20px 60px -10px rgba(139, 92, 246, 0.15),
    0 0 0 1px rgba(0,0,0,0.3);
  transform-style: preserve-3d;
  transform: rotateX(5deg) translateY(20px);
  overflow: hidden;
  height: 600px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
}

.lpu-app-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-right: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.lpu-sidebar-search {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--lpu-text-muted);
  font-size: 13px;
}

.lpu-nav-group-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 12px;
}

.lpu-sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--lpu-text-muted);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.lpu-sidebar-item:hover,
.lpu-sidebar-item.active {
  background: rgba(139, 92, 246, 0.1);
  color: #fff;
}

.lpu-sidebar-item.active {
  color: var(--lpu-accent-hot);
}

.lpu-app-main {
  display: flex;
  flex-direction: column;
}

.lpu-app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.lpu-date-display {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  padding-left: 12px;
  border-left: 3px solid var(--lpu-accent-primary);
}

.lpu-link-editor-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  height: 100%;
}

.lpu-editor-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lpu-link-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lpu-link-info h4 {
  font-size: 14px;
  color: #fff;
  margin-bottom: 4px;
}

.lpu-link-info span {
  font-size: 12px;
  color: var(--lpu-text-muted);
}

.lpu-toggle {
  width: 36px;
  height: 20px;
  background: var(--lpu-accent-primary);
  border-radius: 20px;
  position: relative;
  flex-shrink: 0;
}

.lpu-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.lpu-toggle.lpu-toggle-off {
  background: #333;
  justify-content: flex-start;
}

.lpu-toggle.lpu-toggle-off::after {
  right: auto;
  left: 2px;
}

.lpu-mobile-preview-frame {
  background: #000;
  border: 4px solid #1f1f1f;
  border-radius: 24px;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.lpu-mobile-screen {
  background: linear-gradient(180deg, #1a1025 0%, #050505 100%);
  height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lpu-mobile-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #333;
  margin-bottom: 8px;
  border: 2px solid var(--lpu-accent-primary);
}

.lpu-mobile-link {
  width: 100%;
  padding: 12px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  text-align: center;
  font-size: 12px;
  color: #fff;
}

.lpu-features {
  max-width: 1000px;
  margin: -100px auto 100px;
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.lpu-feature-card {
  background: rgba(10, 5, 16, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 32px 24px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.lpu-feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, 0.3);
}

.lpu-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lpu-accent-glow);
  margin-bottom: 8px;
}

.lpu-feature-card h3 {
  font-size: 18px;
  color: #fff;
}

.lpu-feature-card p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(156, 163, 175, 0.8);
}

/* Auth & inner pages (login, register, 404, admin) */
.lpu-inner-page {
  position: relative;
  z-index: 10;
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: 100vh;
}

.lpu-auth-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lpu-auth-card {
  width: 100%;
  max-width: 420px;
  background: rgba(15, 10, 22, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid var(--lpu-border-glass);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.lpu-auth-card h1,
.lpu-auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--lpu-text-main);
  margin-bottom: 1.5rem;
  text-align: center;
}

.lpu-auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.lpu-auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.lpu-auth-field label {
  font-size: 0.875rem;
  color: var(--lpu-text-muted);
}

.lpu-auth-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--lpu-text-main);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.lpu-auth-input::placeholder {
  color: var(--lpu-text-muted);
  opacity: 0.8;
}

.lpu-auth-input:focus {
  outline: none;
  border-color: var(--lpu-accent-primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.lpu-auth-card .lpu-btn-primary {
  width: 100%;
  justify-content: center;
  padding: 12px 20px;
  font-size: 14px;
  cursor: pointer;
  border: none;
}

.lpu-auth-card .lpu-btn-primary:hover {
  color: #fff;
}

.lpu-auth-divider {
  color: var(--lpu-text-muted);
  font-size: 0.85rem;
  text-align: center;
  margin: 1rem 0;
}

.lpu-auth-link {
  display: block;
  text-align: center;
  color: var(--lpu-text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.lpu-auth-link:hover {
  color: var(--lpu-accent-hot);
}

.lpu-link-back {
  display: block;
  text-align: center;
  color: var(--lpu-text-muted);
  font-size: 0.8125rem;
  margin-top: 0.5rem;
  transition: color 0.2s;
}

.lpu-link-back:hover {
  color: var(--lpu-accent-hot);
}

.lpu-error-msg {
  color: #f87171;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  text-align: center;
}

.lpu-success-msg {
  color: #4ade80;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  text-align: center;
}

.lpu-btn-discord {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  background: #5865F2;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.lpu-btn-discord:hover {
  background: #4752c4;
  color: #fff;
}

.lpu-input-with-icon {
  position: relative;
}

.lpu-input-with-icon .lpu-auth-input {
  padding-left: 2.75rem;
}

.lpu-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--lpu-text-muted);
  pointer-events: none;
}

.lpu-input-icon svg {
  width: 18px;
  height: 18px;
}

.lpu-password-strength {
  margin-top: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.lpu-password-strength-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
}

.lpu-password-strength-bar span {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.lpu-password-strength-bar.strength-1 span:nth-child(1),
.lpu-password-strength-bar.strength-2 span:nth-child(1),
.lpu-password-strength-bar.strength-2 span:nth-child(2),
.lpu-password-strength-bar.strength-3 span:nth-child(1),
.lpu-password-strength-bar.strength-3 span:nth-child(2),
.lpu-password-strength-bar.strength-3 span:nth-child(3),
.lpu-password-strength-bar.strength-4 span:nth-child(1),
.lpu-password-strength-bar.strength-4 span:nth-child(2),
.lpu-password-strength-bar.strength-4 span:nth-child(3),
.lpu-password-strength-bar.strength-4 span:nth-child(4) {
  background: var(--lpu-accent-primary);
}

.lpu-password-strength-label {
  font-size: 0.75rem;
  color: var(--lpu-text-muted);
}

.lpu-auth-hint {
  font-size: 0.8rem;
  color: var(--lpu-text-muted);
  margin-bottom: 0.35rem;
}

.lpu-tos-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--lpu-text-muted);
  line-height: 1.5;
}

.lpu-tos-check-inline {
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.lpu-tos-check-inline .lpu-tos-check-text {
  white-space: normal;
  display: inline;
}

.lpu-tos-checkbox-wrap {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.lpu-tos-checkbox-input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}

.lpu-tos-checkbox-custom {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  pointer-events: none;
}

.lpu-tos-checkbox-input:hover + .lpu-tos-checkbox-custom {
  border-color: var(--lpu-accent-primary);
  background: rgba(139, 92, 246, 0.12);
}

.lpu-tos-checkbox-input:focus-visible + .lpu-tos-checkbox-custom {
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.4);
}

.lpu-tos-checkbox-input:checked + .lpu-tos-checkbox-custom {
  border-color: var(--lpu-accent-primary);
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
}

.lpu-tos-checkbox-input:checked + .lpu-tos-checkbox-custom::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.lpu-tos-check a {
  color: var(--lpu-accent-hot);
  white-space: nowrap;
}

.lpu-tos-check a:hover {
  text-decoration: underline;
}

.lpu-sent-wrap {
  text-align: center;
  margin-bottom: 1.5rem;
}

.lpu-sent-wrap .lpu-success-msg {
  margin-bottom: 1.25rem;
}

.lpu-btn-sent {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  margin-top: 0;
}

.lpu-error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 2rem;
}

.lpu-error-code {
  font-size: clamp(5rem, 16vw, 10rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--lpu-accent-hot) 0%, var(--lpu-accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lpu-error-message {
  font-size: 1.25rem;
  color: var(--lpu-text-muted);
  margin: 1.5rem 0 2rem;
}

.lpu-admin-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.lpu-admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--lpu-border-glass);
}

.lpu-admin-header h1 {
  font-size: 1.5rem;
  margin: 0;
}

.lpu-admin-header p {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
}

.lpu-admin-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lpu-admin-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--lpu-accent-primary);
}

.lpu-admin-section {
  background: rgba(15, 10, 22, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid var(--lpu-border-glass);
  border-radius: 16px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.lpu-admin-section h2 {
  font-size: 1.25rem;
  margin: 0 0 1.25rem;
}

.lpu-turnstile-wrap {
  display: flex;
  justify-content: center;
  margin: 0.75rem 0;
}

@media (max-width: 900px) {
  .lpu-nav-pill {
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
  }
  .lpu-nav-links {
    display: none;
  }
  .lpu-interface-container {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 500px;
  }
  .lpu-link-editor-grid {
    grid-template-columns: 1fr;
  }
  .lpu-mobile-preview-frame {
    min-height: 280px;
  }
  .lpu-features {
    grid-template-columns: 1fr;
  }
}
