


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


:root {
  --purple:        #a855f7;
  --purple-fill:   rgba(168,85,247,0.18);
  --purple-border: rgba(168,85,247,0.55);
  --purple-dim:    rgba(168,85,247,0.08);
}


html { scroll-behavior: smooth; }

body {
  background: #000;
  color: #fff;
  font-family: 'DM Mono', monospace;
  overflow-x: hidden;  
  
}


body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(168,85,247,0.07) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}


body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,0,0,0.08) 2px, rgba(0,0,0,0.08) 4px
  );
  pointer-events: none;
  z-index: 0;
}


.corners { position: fixed; inset: 1.5rem; pointer-events: none; z-index: 1; }
.corner { position: absolute; width: 18px; height: 18px; border-color: rgba(168,85,247,0.18); border-style: solid; }
.corner--tl { top: 0; left: 0; border-width: 1px 0 0 1px; }
.corner--tr { top: 0; right: 0; border-width: 1px 1px 0 0; }
.corner--bl { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.corner--br { bottom: 0; right: 0; border-width: 0 1px 1px 0; }


.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  z-index: 400;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: 'DM Mono', monospace;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.35s;
  white-space: nowrap;
}
.toast.show    { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.success { background: rgba(168,85,247,0.15); border: 1px solid rgba(168,85,247,0.5);  color: var(--purple); }
.toast.error   { background: rgba(239,68,68,0.12);  border: 1px solid rgba(239,68,68,0.45);  color: #f87171; }
.toast.info    { background: rgba(88,101,242,0.12);  border: 1px solid rgba(88,101,242,0.45); color: #818cf8; }


nav.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(168,85,247,0.12);
}

.topbar-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  color: var(--purple);
  letter-spacing: 0.08em;
  text-decoration: none;
  text-shadow: 0 0 14px rgba(168,85,247,0.4);
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.topbar-link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(168,85,247,0.8);
  text-decoration: none;
  transition: color 0.2s;
}
.topbar-link:hover { color: var(--purple); }


.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(168,85,247,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.back-link:hover { color: var(--purple); }
.back-link svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }


.login-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  background: transparent;
  border: 1.5px solid var(--purple-border);
  border-radius: 999px;
  color: var(--purple);
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.login-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--purple-fill);
  transform: scale(0.7);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.3s;
  z-index: 0;
}
.login-btn:hover::before { transform: scale(1); opacity: 1; }
.login-btn:hover { border-color: var(--purple); color: #fff; box-shadow: 0 0 16px rgba(168,85,247,0.3); }
.login-btn svg  { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; position: relative; z-index: 1; }
.login-btn span { position: relative; z-index: 1; }


.user-menu { position: relative; }

.user-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem 0.4rem 0.5rem;
  background: rgba(168,85,247,0.08);
  border: 1.5px solid rgba(168,85,247,0.35);
  border-radius: 999px;
  color: var(--purple);
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.user-btn:hover { background: rgba(168,85,247,0.14); border-color: var(--purple); box-shadow: 0 0 14px rgba(168,85,247,0.2); }
.user-btn:hover .user-chevron { transform: rotate(180deg); }

.user-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(168,85,247,0.25);
  border: 1px solid rgba(168,85,247,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 600; color: var(--purple);
  flex-shrink: 0;
}

.user-chevron {
  width: 11px; height: 11px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.25s;
  opacity: 0.6;
}

.dropdown {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  width: 240px;
  background: rgba(8,8,8,0.97);
  border: 1px solid rgba(168,85,247,0.25);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.7), 0 0 0 1px rgba(168,85,247,0.05);
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s cubic-bezier(0.16,1,0.3,1);
  z-index: 200;
}
.dropdown.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }

.dropdown-info {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(168,85,247,0.1);
}
.dropdown-info-label {
  font-size: 0.76rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(168,85,247,0.7);
  margin-bottom: 0.4rem;
}
.dropdown-info-name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.18rem;
}
.dropdown-info-username {
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.03em;
}
.dd-provider-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.1rem 0.42rem;
  border-radius: 999px;
  background: rgba(88,101,242,0.14);
  border: 1px solid rgba(88,101,242,0.35);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #818cf8;
}
.dd-provider-badge svg { width: 8px; height: 8px; fill: currentColor; flex-shrink: 0; }
.dropdown-info-email {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
}
.dropdown-info-email.dd-email--discord {
  color: rgba(129,140,248,0.75);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.7rem 1rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.55);
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.dropdown-item:hover { background: rgba(168,85,247,0.07); color: #fff; }
.dropdown-item svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; opacity: 0.7; }
.dropdown-item.danger { color: rgba(239,68,68,0.6); }
.dropdown-item.danger:hover { background: rgba(239,68,68,0.07); color: #f87171; }
.dropdown-divider { height: 1px; background: rgba(168,85,247,0.1); }


.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 300;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.modal-backdrop.open { opacity: 1; pointer-events: all; }

.modal {
  background: rgba(8,8,8,0.98);
  border: 1.5px solid rgba(168,85,247,0.35);
  border-radius: 16px;
  padding: 1.8rem;
  width: 100%; max-width: 340px;
  display: flex; flex-direction: column; gap: 1.1rem;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 32px 64px rgba(0,0,0,0.7);
}
.modal-backdrop.open .modal { transform: translateY(0) scale(1); }

.modal-title {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--purple);
}
.modal-field { display: flex; flex-direction: column; gap: 0.35rem; }
.modal-field label { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(168,85,247,0.8); }
.modal-field input {
  background: rgba(168,85,247,0.04);
  border: 1px solid rgba(168,85,247,0.28);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  color: #fff;
  font-family: 'DM Mono', monospace;
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.modal-field input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(168,85,247,0.1); }
.modal-field input::placeholder { color: rgba(168,85,247,0.22); }

.modal-actions { display: flex; gap: 0.6rem; }
.modal-btn {
  flex: 1; padding: 0.65rem;
  border-radius: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  cursor: pointer; border: none;
  transition: background 0.2s, color 0.2s;
}
.modal-btn.primary { background: rgba(168,85,247,0.18); border: 1.5px solid rgba(168,85,247,0.5); color: var(--purple); }
.modal-btn.primary:hover { background: rgba(168,85,247,0.28); color: #fff; }
.modal-btn.primary:disabled { opacity: 0.5; pointer-events: none; }
.modal-btn.cancel { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); color: rgba(255,255,255,0.35); }
.modal-btn.cancel:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6); }

.modal-note {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(168,85,247,0.6);
  font-family: 'DM Mono', monospace;
  margin-top: -0.4rem;
}


.eye-icon.eye-hide         { display: none; }
.eye-btn.eye-open .eye-show { display: none; }
.eye-btn.eye-open .eye-hide { display: block; }
.modal .input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.modal .input-wrap input { width: 100%; padding-right: 2.4rem; }
.eye-btn {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  color: rgba(168,85,247,0.35);
  transition: color 0.2s;
}
.eye-btn:hover { color: var(--purple); }
.eye-icon {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}


.modal-hint {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  margin-top: 0.18rem;
  min-height: 1em;
  font-family: 'DM Mono', monospace;
}
.modal-hint.hint-ok  { color: rgba(168,85,247,0.8); }
.modal-hint.hint-err { color: rgba(239,68,68,0.8); }


footer {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid rgba(168,85,247,0.1);
}
.footer-logo { font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; color: rgba(168,85,247,0.4); letter-spacing: 0.08em; }
.footer-links { display: flex; gap: 1.5rem; align-items: center; }
.footer-link {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: rgba(168,85,247,0.7); }
.footer-copy { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.35); }


@keyframes fadeDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp   { from { opacity: 0; transform: translateY(20px);  } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn   { from { opacity: 0; }                               to { opacity: 1; } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }


@media (max-width: 480px) {
  .topbar-links .topbar-link { display: none; }
  nav.topbar { padding: 0.9rem 1.2rem; }
  .corners { display: none; }
}
@media (max-width: 640px) {
  footer { flex-direction: column; align-items: center; text-align: center; }
}


#user-menu { display: none; }

#dd-provider-badge { display: none; }
