* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

:root {
  --theme-color: #7c3aed;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, color-mix(in srgb, var(--theme-color) 35%, transparent), transparent 30%),
    linear-gradient(180deg, #0b1020, #111827);
  color: #ffffff;
}

.page {
  min-height: 100vh;
  padding: 24px;
}

.center-page,
.auth-page,
.public-page {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card,
.panel,
.public-profile,
.preview-card {
  width: 100%;
  max-width: 560px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 28px;
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.hero-card {
  text-align: center;
}

.logo {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #d8b4fe;
}

.hero-card h1 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.hero-card p {
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 420px));
  gap: 24px;
}

.dashboard-wrap {
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
}

.dashboard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(10, 15, 30, 0.85);
  color: white;
  outline: none;
  margin-bottom: 10px;
}

.textarea {
  min-height: 100px;
  resize: vertical;
}

label {
  display: block;
  margin: 12px 0 8px;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.btn {
  border: none;
  border-radius: 14px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s ease;
  margin-top: 10px;
  margin-right: 10px;
}

.btn:hover {
  transform: translateY(-2px);
}

.primary-btn {
  background: linear-gradient(135deg, var(--theme-color), color-mix(in srgb, var(--theme-color) 70%, white));
  color: white;
}

.ghost-btn {
  background: rgba(255,255,255,0.08);
  color: white;
  border: 1px solid rgba(255,255,255,0.1);
}

.message {
  margin-top: 14px;
  color: #d8b4fe;
}

.subtle {
  color: #94a3b8;
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.preview-panel {
  position: sticky;
  top: 24px;
  height: fit-content;
}

.preview-card,
.public-profile {
  text-align: center;
}

.avatar {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  object-fit: cover;
  margin-bottom: 14px;
  border: 3px solid rgba(255,255,255,0.15);
}

.large-avatar {
  width: 110px;
  height: 110px;
}

.links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}

.link-btn {
  display: block;
  width: 100%;
  text-decoration: none;
  color: white;
  font-weight: bold;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  transition: 0.2s ease;
}

.link-btn:hover {
  transform: translateY(-2px) scale(1.01);
}

.link-editor-item {
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
  cursor: grab;
}

.link-editor-item.dragging {
  opacity: 0.5;
}

.public-url {
  margin-top: 18px;
  color: #cbd5e1;
  word-break: break-all;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.mini-stat {
  background: rgba(255,255,255,0.05);
  padding: 14px;
  border-radius: 16px;
  text-align: center;
}

.mini-stat strong {
  display: block;
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.mini-stat span {
  color: #cbd5e1;
  font-size: 0.9rem;
}

.admin-login-box {
  max-width: 420px;
  margin: 0 auto;
}

.admin-user-card {
  background: rgba(255,255,255,0.05);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 14px;
}

.admin-user-card h3 {
  margin-bottom: 8px;
}

.admin-user-card p {
  color: #cbd5e1;
  margin-bottom: 6px;
}

.hidden {
  display: none;
}

@media (max-width: 900px) {
  .auth-grid,
  .dashboard-wrap {
    grid-template-columns: 1fr;
  }

  .preview-panel {
    position: static;
  }

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