:root {
  --bg: #070a11;
  --bg-2: #0c1220;
  --panel: rgba(18, 23, 35, 0.62);
  --panel-soft: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f4f7fb;
  --muted: #9ca8bf;
  --brand: #5865f2;
  --brand-hover: #4752c4;
  --input: rgba(255, 255, 255, 0.04);
  --success: #7fe3a7;
  --danger: #ff8d8f;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1140px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 20%, rgba(88, 101, 242, 0.18), transparent 24%),
    radial-gradient(circle at 80% 10%, rgba(88, 101, 242, 0.16), transparent 20%),
    linear-gradient(180deg, #070a11 0%, #0b1120 45%, #09111b 100%);
  overflow-x: hidden;
}

a {
  color: #d2dbff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.45;
  z-index: 0;
  animation: floatOrb 14s ease-in-out infinite;
}

.orb-1 {
  width: 320px;
  height: 320px;
  top: 80px;
  left: -80px;
  background: rgba(88, 101, 242, 0.28);
}

.orb-2 {
  width: 280px;
  height: 280px;
  top: 220px;
  right: -60px;
  background: rgba(125, 85, 255, 0.22);
  animation-delay: -4s;
}

.orb-3 {
  width: 240px;
  height: 240px;
  bottom: 70px;
  left: 20%;
  background: rgba(0, 194, 255, 0.16);
  animation-delay: -8s;
}

@keyframes floatOrb {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  50% { transform: translateY(-22px) translateX(10px); }
}

.glass {
  background: linear-gradient(180deg, rgba(22, 28, 42, 0.58), rgba(12, 17, 28, 0.6));
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.glass-soft {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 11, 19, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #fff;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text strong {
  font-size: 18px;
}

.brand-text span {
  font-size: 13px;
  margin-top: 6px;
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(88, 101, 242, 0.18);
}

.hero {
  padding: 56px 0 24px;
}

.hero-card {
  border-radius: 30px;
  padding: 42px;
  position: relative;
  overflow: hidden;
}

.hero-animated .hero-card::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 30%, rgba(88, 101, 242, 0.2), transparent 24%),
    radial-gradient(circle at 80% 20%, rgba(0, 194, 255, 0.12), transparent 22%),
    radial-gradient(circle at 60% 80%, rgba(146, 102, 255, 0.16), transparent 22%);
  animation: pulseGradient 12s linear infinite;
  z-index: 0;
}

@keyframes pulseGradient {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(10deg) scale(1.06); }
  100% { transform: rotate(0deg) scale(1); }
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.2);
  color: #d8deff;
  font-size: 13px;
}

.hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
}

.hero-preview {
  margin-top: 24px;
  padding: 16px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.hero-preview-avatar {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.35), rgba(255, 255, 255, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #eef2ff;
  font-weight: 800;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-preview-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-preview-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-preview-text span {
  color: var(--muted);
  font-size: 14px;
}

.page-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  padding: 24px 0 56px;
}

.card {
  border-radius: var(--radius);
  padding: 22px;
}

.lookup-shell {
  padding: 22px;
}

.lookup-head h2,
.card h3 {
  margin-top: 0;
}

.stack {
  display: grid;
  gap: 14px;
}

.lookup-form-clean {
  display: grid;
  gap: 18px;
  margin-top: 16px;
}

.lookup-preview-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.lookup-avatar-large {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
}

.lookup-preview-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.searchbar-avatar {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.35), rgba(255, 255, 255, 0.08));
  color: #eef2ff;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.searchbar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-label {
  font-size: 14px;
  font-weight: 700;
  color: #eef2ff;
}

.clean-input,
.input,
.textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 15px 16px;
  outline: none;
  font-size: 15px;
}

.clean-input::placeholder,
.input::placeholder,
.textarea::placeholder {
  color: #8d99b2;
}

.clean-input:focus,
.input:focus,
.textarea:focus {
  border-color: rgba(88, 101, 242, 0.75);
  box-shadow: 0 0 0 4px rgba(88, 101, 242, 0.12);
}

.field-help {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.lookup-actions {
  display: flex;
  gap: 12px;
}

.lookup-main-button {
  flex: 1;
}

.lookup-help-button {
  width: auto;
  min-width: 180px;
  text-align: center;
}

.lookup-options {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.button {
  border: 0;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
  width: 100%;
  border-radius: 14px;
  padding: 14px 16px;
}

.button:hover {
  background: var(--brand-hover);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.row {
  display: flex;
  gap: 12px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 14px;
}

.status {
  min-height: 20px;
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
}

.status.success {
  color: var(--success);
}

.status.error {
  color: var(--danger);
}

.hidden {
  display: none !important;
}

.result-card {
  overflow: hidden;
  border-radius: 20px;
  background: rgba(10, 14, 24, 0.7);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-top: 10px;
}

.result-banner {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  background: linear-gradient(90deg, #1c2230, #121723);
}

.result-main {
  display: flex;
  gap: 18px;
  padding: 18px;
  align-items: center;
}

.avatar {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  object-fit: cover;
  border: 4px solid #11141b;
  background: #1c2230;
}

.avatar.placeholder {
  display: inline-block;
}

.name-block h3 {
  margin: 0 0 6px;
  font-size: 24px;
}

.name-block p {
  margin: 0 0 4px;
  color: var(--muted);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 18px 18px;
}

.info-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}

.info-box span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.info-box.full {
  grid-column: 1 / -1;
}

.inline-copy {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.copy-btn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: 0.2s ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.flag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.flag-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  background: rgba(88, 101, 242, 0.16);
  color: #dbe1ff;
  border: 1px solid rgba(88, 101, 242, 0.28);
}

.mini-muted {
  color: var(--muted);
  font-size: 13px;
}

.truncate {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.steps {
  display: grid;
  gap: 14px;
}

.step {
  border-radius: 16px;
  padding: 16px;
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(88, 101, 242, 0.18);
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer {
  padding: 8px 0 40px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
  position: relative;
  z-index: 2;
}

.skeleton-card {
  margin-top: 10px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(10, 14, 24, 0.55);
  border: 1px solid var(--border);
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  100% { transform: translateX(100%); }
}

.skeleton-banner {
  height: 190px;
}

.skeleton-main {
  display: flex;
  gap: 18px;
  padding: 18px;
  align-items: center;
}

.skeleton-avatar {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  flex: 0 0 92px;
}

.skeleton-copy {
  flex: 1;
  display: grid;
  gap: 10px;
}

.skeleton-line {
  height: 14px;
  border-radius: 999px;
}

.skeleton-line.lg { width: 50%; }
.skeleton-line.md { width: 35%; }
.skeleton-line.sm { width: 28%; }

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 18px 18px;
}

.skeleton-box {
  height: 78px;
  border-radius: 14px;
}

@media (max-width: 900px) {
  .page-grid {
    grid-template-columns: 1fr;
  }

  .nav-inner {
    min-height: auto;
    padding: 14px 0;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }

  .lookup-actions {
    flex-direction: column;
  }

  .lookup-help-button {
    width: 100%;
    min-width: 0;
  }

  .result-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .info-grid,
  .skeleton-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    padding: 28px 22px;
  }
}

.site-footer {
  margin-top: 36px;
  padding: 28px 0 40px;
  position: relative;
  z-index: 2;
}

.footer-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 22px;
  border-radius: 20px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-brand {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.footer-copy {
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffffff;
}

.discord-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(88, 101, 242, 0.14);
  border: 1px solid rgba(88, 101, 242, 0.25);
  color: #eef2ff !important;
}

.discord-link img {
  width: 18px;
  height: 18px;
}

@media (max-width: 900px) {
  .footer-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    width: 100%;
  }
}

.account-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: 18px;
  margin-top: 16px;
}

.account-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.account-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

@media (max-width: 900px) {
  .account-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .account-actions {
    width: 100%;
    flex-direction: column;
  }

  .account-actions .button {
    width: 100%;
  }
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-account {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 6px;
  border-radius: 16px;
}

.nav-login-button {
  width: auto;
  padding: 10px 14px;
  border-radius: 12px;
  white-space: nowrap;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.35), rgba(255, 255, 255, 0.08));
  color: #eef2ff;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex: 0 0 38px;
}

.nav-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-user-meta strong {
  font-size: 14px;
  color: #fff;
}

.nav-user-meta span {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.nav-premium-badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(88, 101, 242, 0.16);
  color: #dbe1ff;
  border: 1px solid rgba(88, 101, 242, 0.28);
  font-size: 12px;
  font-weight: 700;
}

.nav-logout-button {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: 0.2s ease;
}

.nav-logout-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 900px) {
  .nav-right {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-account {
    width: 100%;
    justify-content: space-between;
  }

  .nav-user {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .nav-login-button {
    width: 100%;
  }
}