* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  height: 100%;
}

body {
  color: var(--text, #f4f7ff);
  background: radial-gradient(circle at 20% 10%, #0b1228 0%, #05070d 60%);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.entry-gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.985);
  transition: opacity 0.45s ease;
  cursor: pointer;
}

.entry-click-text {
  color: #f3f8ff;
  font-weight: 800;
  font-size: clamp(24px, 4.2vw, 44px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.25), 0 0 40px rgba(124, 193, 255, 0.22);
  user-select: none;
  pointer-events: none;
}

.gate-hide {
  opacity: 0;
  pointer-events: none;
}

.profile-locked .profile-shell {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.profile-locked .bg-media,
.profile-locked .bg-image,
.profile-locked .bg-focus,
.profile-locked .grain {
  opacity: 0;
}

.bio-landing .profile-shell,
.bio-landing .bg-media,
.bio-landing .bg-image,
.bio-landing .bg-focus,
.bio-landing .grain {
  transition: opacity 0.45s ease;
}

a { color: #8dd9ff; }

/* Landing */
.landing-body {
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  background: #05060b;
}

.landing-video,
.landing-fallback,
.landing-vignette,
.snow-layer {
  position: fixed;
  inset: 0;
}

.landing-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  z-index: -5;
}

.landing-fallback {
  background: radial-gradient(circle at 50% 10%, #192145 0%, #060810 60%);
  z-index: -6;
}

.landing-vignette {
  background: radial-gradient(circle at center, transparent 28%, rgba(0, 0, 0, 0.76) 100%);
  z-index: -4;
  pointer-events: none;
}

.snow-layer {
  z-index: -3;
  pointer-events: none;
  overflow: hidden;
}

.snow-flake {
  position: absolute;
  top: -10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  filter: blur(0.5px);
  animation: snow-fall linear infinite;
}

@keyframes snow-fall {
  from { transform: translate3d(0, -10px, 0); }
  to { transform: translate3d(20px, 105vh, 0); }
}

.landing-nav {
  width: min(1100px, 94vw);
  margin: 18px auto 0;
  padding: 8px 14px;
  border-radius: 999px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(12, 14, 24, 0.66);
  backdrop-filter: blur(9px);
}

.landing-nav nav {
  display: flex;
  gap: 16px;
}

.landing-nav a {
  text-decoration: none;
  color: #d9eeff;
  opacity: 0.9;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.landing-main {
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  padding: 28px;
}

.landing-card {
  width: min(580px, 94vw);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(17, 22, 36, 0.64);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.64), 0 0 28px rgba(152, 118, 255, 0.24);
  padding: 28px;
  text-align: center;
}

.landing-card h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 5vw, 48px);
}

.landing-card p {
  margin: 0 auto;
  max-width: 56ch;
  opacity: 0.92;
}

.landing-cta-row {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.small-cta,
.ghost-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  cursor: pointer;
}

.small-cta {
  background: linear-gradient(120deg, #9f62ff, #48c7ff);
  color: #080c16;
  font-weight: 700;
}

.ghost-cta {
  background: rgba(255, 255, 255, 0.1);
  color: #eff8ff;
}

.panel-link {
  margin-top: 12px;
  display: inline-block;
}

.invite-dialog {
  width: min(420px, 92vw);
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(12, 16, 28, 0.95);
  color: #eef6ff;
  border-radius: 18px;
  padding: 18px;
}

.invite-dialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
}

.invite-dialog form {
  display: grid;
  gap: 10px;
}

.dialog-actions {
  display: flex;
  gap: 8px;
}

.bg-image,
.bg-media {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -5;
  opacity: var(--bg-opacity, 0.72);
  transform: scale(1.03);
}

.bio-landing::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 16%, rgba(0, 0, 0, 0.84) 100%);
  pointer-events: none;
}

.no-profile-gradient.bio-landing::before,
.no-profile-gradient .bg-focus {
  display: none;
}

.bg-focus {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at center, rgba(120, 190, 255, 0.22) 0%, rgba(30, 70, 140, 0.06) 28%, rgba(0, 0, 0, 0) 48%),
    radial-gradient(circle at center, rgba(0, 0, 0, 0) 18%, rgba(0, 0, 0, 0.7) 76%);
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(rgba(255,255,255,0.07) 0.6px, transparent 0.6px);
  background-size: 2px 2px;
  opacity: calc(var(--grain-opacity, 1) * 0.6);
  pointer-events: none;
}

.profile-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px 22px;
}

.view-counter-card {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 9;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 88px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(5, 10, 18, 0.78);
  border: 1px solid rgba(173, 216, 255, 0.28);
  color: #eaf6ff;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.view-counter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

.view-counter-number {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.volume-toggle-btn {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 9;
  width: 46px !important;
  min-width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(173, 216, 255, 0.28);
  background: rgba(5, 10, 18, 0.78);
  color: #eaf6ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.volume-toggle-btn svg {
  width: 22px;
  height: 22px;
}

.volume-toggle-btn:hover {
  border-color: rgba(150, 218, 255, 0.5);
}

.profile-card {
  width: min(max(420px, calc(320px + (var(--link-count, 0) * 56px))), 94vw);
  background: color-mix(in srgb, var(--card, rgba(5, 9, 18, 0.82)) var(--card-opacity-percent, 78%), transparent);
  border-radius: 20px;
  border: 1px solid rgba(160, 206, 255, 0.34);
  box-shadow:
    0 34px 120px rgba(0, 0, 0, 0.78),
    0 0 44px rgba(101, 169, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  padding: 24px 24px 22px;
  backdrop-filter: blur(var(--card-blur, 6px)) saturate(1.12);
  animation: rise 0.55s ease;
  text-align: center;
}

.swap-box-colors .profile-card {
  background: color-mix(in srgb, var(--accent, #00d4ff) 14%, var(--card, rgba(5, 9, 18, 0.82)) 86%);
  border-color: color-mix(in srgb, var(--accent, #00d4ff) 52%, rgba(160, 206, 255, 0.34) 48%);
}

.profile-card-row {
  display: block;
}

.profile-right-col {
  text-align: center;
}

.identity-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 100%;
  margin-bottom: 8px;
}

.identity-row .profile-avatar {
  margin: 0;
}

.pre-enter {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
}

.enter-card {
  opacity: 1 !important;
  transform: translateY(0) scale(1);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.enter-name {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.enter-discord {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.enter-links {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.profile-card h1 {
  margin: 5px 0 6px;
  font-size: clamp(28px, 5vw, 44px);
  text-shadow: 0 0 18px rgba(89, 176, 255, 0.42);
}

.glow-username {
  text-shadow: 0 0 12px rgba(110, 190, 255, 0.55), 0 0 26px rgba(172, 116, 255, 0.45);
}

.profile-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(190, 229, 255, 0.85);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  margin: 0 auto 8px;
  display: block;
}

.username-effects {
  animation: username-glow 2.8s ease-in-out infinite;
}

.bio {
  margin: -6px 0 14px;
  opacity: 0.92;
  font-size: 14px;
}

.typing-bio {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid currentColor;
  padding-right: 3px;
  animation: bio-caret-blink 0.55s step-end infinite alternate;
}

.status-badge {
  display: inline-block;
  background: color-mix(in srgb, var(--accent, #00d4ff) 22%, black 78%);
  border: 1px solid color-mix(in srgb, var(--accent, #00d4ff) 64%, white 36%);
  color: #f4fbff;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.identity-text {
  display: grid;
  justify-items: start;
  min-width: 0;
}

.identity-text .status-badge-row {
  justify-content: flex-start;
}

.identity-text h1 {
  margin: 0;
}

.status-badge-row.badge-between {
  margin: 2px 0 0;
  z-index: 3;
}

.status-badge-row.badge-between .badge-strip {
  position: static;
  transform: none;
}

.badge-strip {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: center;
}

.badge-glow .mini-badge {
  box-shadow: 0 0 16px rgba(115, 196, 255, 0.65), 0 0 28px rgba(173, 117, 255, 0.3);
}

.mini-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  padding: 0;
  background: transparent;
  border: none;
  font-size: 10px;
  color: #f7fbff;
  box-shadow: none;
  overflow: visible;
  cursor: default;
}

.mini-badge-link {
  text-decoration: none;
  color: inherit;
}

.mini-badge-owner-secret {
  cursor: pointer;
}

.mini-badge img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.mini-badge svg {
  width: 18px;
  height: 18px;
  color: #ffffff;
}

.mini-badge::after {
  content: attr(data-badge-name);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(8px) scale(0.94);
  background: rgba(7, 11, 20, 0.95);
  border: 1px solid rgba(181, 220, 255, 0.45);
  border-radius: 999px;
  color: #e9f5ff;
  padding: 7px 12px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  transition: opacity 0.18s ease, transform 0.22s ease;
  z-index: 6;
}

.mini-badge::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 3px);
  transform: translateX(-50%) translateY(8px) rotate(45deg);
  width: 8px;
  height: 8px;
  background: rgba(7, 11, 20, 0.95);
  border-right: 1px solid rgba(181, 220, 255, 0.45);
  border-bottom: 1px solid rgba(181, 220, 255, 0.45);
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.22s ease;
  z-index: 5;
}

.mini-badge:hover::after,
.mini-badge:hover::before {
  opacity: 1;
}

.mini-badge:hover::after {
  transform: translateX(-50%) translateY(0) scale(1);
}

.mini-badge:hover::before {
  transform: translateX(-50%) translateY(0) rotate(45deg);
}

.icon-links {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.socials-glow .icon-link {
  filter: drop-shadow(0 0 10px rgba(118, 200, 255, 0.45));
}

.monochrome-icons .icon-link-glyph img {
  filter: grayscale(1) brightness(1.08);
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 0;
  text-decoration: none;
  transform: translateY(0) scale(1);
  transition: transform 0.16s ease, filter 0.16s ease;
}

.icon-link-glyph {
  font-size: 18px;
  color: #fdfdff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-link-glyph img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.profile-card.solid .icon-link,
.profile-card.glass .icon-link,
.profile-card.outline .icon-link {
  background: transparent;
  border: none;
  box-shadow: none;
}

.icon-link:hover {
  transform: translateY(-2px) scale(1.05);
  filter: drop-shadow(0 6px 18px rgba(93, 178, 255, 0.45));
}

.discord-card {
  margin: 0 0 14px;
  padding: 8px 10px;
  width: min(340px, 100%);
  border-radius: 20px;
  border: 1px solid rgba(118, 153, 199, 0.4);
  background: rgba(13, 20, 36, 0.85);
  color: #dbe8ff;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
}

.discord-swap {
  background: color-mix(in srgb, var(--accent, #00d4ff) 16%, rgba(13, 20, 36, 0.84) 84%);
  border-color: color-mix(in srgb, var(--accent, #00d4ff) 52%, rgba(120, 160, 210, 0.45) 48%);
}

.discord-avatar-wrap {
  position: relative;
  width: 42px;
  height: 42px;
}

.avatar-decoration .discord-avatar {
  box-shadow: 0 0 0 2px rgba(120, 204, 255, 0.78), 0 0 12px rgba(120, 204, 255, 0.5);
}

.discord-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: none;
}

.discord-card-text {
  display: grid;
  text-align: left;
}

.discord-card-text strong {
  font-size: 20px;
  line-height: 1.05;
  color: #f2f7ff;
  font-weight: 700;
}

.discord-card-text span {
  font-size: 12px;
  color: #b2c6ec;
}

.discord-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: none;
  position: absolute;
  right: -2px;
  bottom: -2px;
}

.discord-dot.online { background: #31d074; }
.discord-dot.idle { background: #f0b232; }
.discord-dot.dnd { background: #e85151; }
.discord-dot.offline { background: #8e8e95; }

@keyframes username-glow {
  0%, 100% { text-shadow: 0 0 8px rgba(89, 176, 255, 0.25), 0 0 16px rgba(191, 123, 255, 0.2); }
  50% { text-shadow: 0 0 14px rgba(89, 176, 255, 0.6), 0 0 30px rgba(191, 123, 255, 0.45); }
}

.admin-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.admin-wrap {
  width: min(1200px, 96vw);
}

.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr;
  gap: 16px;
}

.admin-card {
  background: rgba(8, 14, 26, 0.9);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 36px rgba(0,0,0,0.4);
}

.admin-card form {
  display: grid;
  gap: 10px;
}

.panel-meta {
  margin: 0 0 12px;
  opacity: 0.88;
}

.user-list {
  margin: 14px 0 18px;
  display: grid;
  gap: 8px;
}

.user-row {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.danger-btn {
  background: linear-gradient(120deg, #ff5c8a, #ff9a5c);
}

label { font-size: 13px; opacity: 0.9; }
small { opacity: 0.7; font-size: 12px; }

input, select, textarea, button {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  padding: 10px;
  background: rgba(0,0,0,0.3);
  color: #eef4ff;
}

button {
  background: linear-gradient(120deg, #0ea5e9, #22d3ee);
  color: #001219;
  font-weight: 700;
  cursor: pointer;
}

.flash {
  margin-bottom: 12px;
  background: rgba(20, 56, 30, 0.65);
  border: 1px solid rgba(120, 246, 167, 0.45);
  color: #d7ffe6;
  padding: 10px 12px;
  border-radius: 10px;
}

.save-flash {
  animation: saved-pop 0.32s ease;
}

.save-bottom-btn {
  margin-top: 2px;
}

.platform-links-list {
  display: grid;
  gap: 12px;
}

.platform-link-item {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.platform-link-item.dragging {
  opacity: 0.55;
  border-color: rgba(124, 200, 255, 0.7);
}

.platform-link-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.drag-handle {
  opacity: 0.75;
  cursor: grab;
  letter-spacing: 0.06em;
  user-select: none;
}

.link-toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.link-toggle-row input[type="checkbox"] {
  width: auto;
}

.icon-size-control {
  margin-top: 6px;
}

.icon-size-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.icon-size-btn {
  width: 30px;
  min-width: 30px;
  padding: 6px 0;
  line-height: 1;
}

.icon-size-input {
  width: 72px;
  min-width: 72px;
  text-align: center;
}

.icon-size-value {
  font-size: 12px;
  opacity: 0.8;
  min-width: 42px;
}

.simple-page-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.simple-page-card {
  width: min(560px, 95vw);
  background: rgba(8, 14, 26, 0.9);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 36px rgba(0,0,0,0.4);
}

.simple-page-card form {
  display: grid;
  gap: 10px;
}

.panel-body {
  margin: 0;
  min-height: 100vh;
  background: #07090f;
  color: #eaf2ff;
}

.panel-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px 1fr;
}

.panel-sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 18, 28, 0.92);
  padding: 18px 14px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.panel-brand {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.panel-tab-btn,
.panel-preview-link,
.panel-logout-btn {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 12px;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  color: #ecf4ff;
  text-decoration: none;
  cursor: pointer;
}

.panel-tab-btn.active {
  background: linear-gradient(120deg, rgba(130, 70, 255, 0.4), rgba(85, 190, 255, 0.28));
  border-color: rgba(191, 124, 255, 0.55);
}

.panel-preview-link {
  margin-top: 10px;
  display: block;
}

.panel-content {
  padding: 20px;
}

.panel-top h1 {
  margin: 0 0 12px;
  font-size: 24px;
}

.panel-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.panel-metric-card {
  background: linear-gradient(140deg, rgba(40, 20, 62, 0.95), rgba(66, 24, 92, 0.88));
  border: 1px solid rgba(211, 128, 255, 0.32);
  border-radius: 14px;
  padding: 14px;
}

.panel-metric-card h3 {
  margin: 0 0 10px;
  font-size: 13px;
  opacity: 0.9;
}

.panel-metric-card p {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
}

.panel-metric-card small {
  opacity: 0.75;
}

.panel-chart-card {
  margin-bottom: 12px;
}

#views-chart {
  width: 100%;
  height: 240px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
}

.panel-form {
  display: grid;
  gap: 12px;
}

.panel-save-top {
  position: sticky;
  top: 8px;
  z-index: 10;
}

.panel-tab-pane {
  display: none;
}

.panel-tab-pane.active {
  display: block;
}

.panel-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.panel-upload-grid form {
  display: grid;
  gap: 10px;
}

#cursor-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
}

.panel-subsection {
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.panel-subsection h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.discord-connect-row {
  display: grid;
  gap: 8px;
  margin: 8px 0 12px;
}

.panel-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px 12px;
}

.asset-preview-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 12px;
}

.asset-card-form {
  margin: 0;
}

.asset-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.asset-card {
  display: grid;
  gap: 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  padding: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.asset-card:hover {
  transform: translateY(-1px);
  border-color: rgba(147, 194, 255, 0.48);
  background: rgba(255, 255, 255, 0.06);
}

.asset-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.asset-title-row span {
  font-weight: 600;
}

.asset-title-row small {
  max-width: 58%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-preview {
  min-height: 108px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  display: grid;
  place-items: center;
}

.asset-preview img,
.asset-preview video {
  width: 100%;
  height: 108px;
  object-fit: cover;
}

.avatar-preview img {
  object-fit: cover;
}

.asset-font-name {
  padding: 10px;
  text-align: center;
  word-break: break-word;
  font-size: 13px;
}

.asset-placeholder {
  font-size: 13px;
  opacity: 0.72;
}

.badge-list {
  margin: 10px 0;
  display: grid;
  gap: 8px;
}

.badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.badge-row-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-row-image,
.badge-row-placeholder {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 12px;
}

.badge-row-image {
  object-fit: cover;
}

.badge-row-text strong {
  font-size: 13px;
}

.badge-row-text small {
  font-size: 11px;
}

.badge-row-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
}

.badge-add {
  margin-top: 8px;
}

.badge-add summary {
  cursor: pointer;
  font-size: 13px;
}

.badge-add-form {
  margin-top: 6px;
  display: grid;
  gap: 8px;
}

.quick-link-form {
  display: grid;
  gap: 10px;
}

.quick-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 10px;
}

.logs-table-wrap {
  margin-top: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: auto;
  max-height: 440px;
}

.logs-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.logs-table th,
.logs-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  vertical-align: top;
}

.logs-table th {
  position: sticky;
  top: 0;
  background: rgba(11, 15, 24, 0.95);
  z-index: 1;
}

.logs-table td:last-child {
  max-width: 420px;
  white-space: normal;
  word-break: break-word;
}

.logs-full-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 4px 8px;
  border-radius: 8px;
  text-decoration: none;
  color: #eaf6ff;
  border: 1px solid rgba(145, 210, 255, 0.35);
  background: rgba(80, 165, 255, 0.18);
  font-size: 11px;
  font-weight: 700;
}

.logs-full-btn:hover {
  background: rgba(80, 165, 255, 0.3);
}

/* Panel visual refresh */
.panel-body {
  background:
    radial-gradient(1200px 700px at -10% -20%, rgba(54, 118, 255, 0.22), transparent 60%),
    radial-gradient(900px 620px at 110% 0%, rgba(0, 222, 199, 0.14), transparent 56%),
    linear-gradient(170deg, #060911 0%, #090f1f 40%, #070b15 100%);
  color: #eaf2ff;
}

.panel-layout {
  grid-template-columns: 270px 1fr;
  gap: 14px;
}

.panel-sidebar {
  margin: 14px 0 14px 14px;
  border: 1px solid rgba(167, 210, 255, 0.12);
  border-right: 1px solid rgba(167, 210, 255, 0.12);
  border-radius: 18px;
  background: linear-gradient(170deg, rgba(16, 22, 40, 0.92), rgba(11, 16, 30, 0.9));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.panel-brand {
  font-size: 19px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f3f8ff;
  opacity: 0.95;
}

.panel-tab-btn,
.panel-preview-link,
.panel-logout-btn {
  border-radius: 12px;
  border: 1px solid rgba(168, 214, 255, 0.16);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.panel-tab-btn:hover,
.panel-preview-link:hover,
.panel-logout-btn:hover {
  border-color: rgba(151, 215, 255, 0.5);
  background: rgba(255, 255, 255, 0.065);
  transform: translateY(-1px);
}

.panel-tab-btn.active {
  background: linear-gradient(130deg, rgba(82, 132, 255, 0.34), rgba(44, 217, 207, 0.25));
  border-color: rgba(126, 210, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 22px rgba(33, 106, 255, 0.22);
}

.panel-content {
  padding: 22px 22px 28px 0;
}

.panel-content .admin-card,
.panel-content .panel-metric-card {
  border: 1px solid rgba(164, 213, 255, 0.14);
  background: linear-gradient(165deg, rgba(14, 20, 36, 0.84), rgba(10, 15, 30, 0.9));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.panel-top h1 {
  font-size: 28px;
  letter-spacing: 0.02em;
}

.customize-intro {
  margin: -2px 0 12px;
  color: rgba(222, 240, 255, 0.82);
  font-size: 13px;
  line-height: 1.45;
}

.panel-subsection {
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(174, 215, 255, 0.12);
}

.panel-subsection h3 {
  margin: 0 0 12px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(238, 248, 255, 0.92);
}

.panel-two-col {
  gap: 12px 14px;
}

.panel-content label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(224, 241, 255, 0.86);
  letter-spacing: 0.02em;
}

.panel-content input,
.panel-content select,
.panel-content textarea {
  border-radius: 12px;
  border: 1px solid rgba(167, 213, 255, 0.2);
  background: rgba(5, 10, 20, 0.58);
  padding: 10px 12px;
  color: #eef5ff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.panel-content input:focus,
.panel-content select:focus,
.panel-content textarea:focus {
  outline: none;
  border-color: rgba(118, 212, 255, 0.68);
  box-shadow: 0 0 0 3px rgba(92, 180, 255, 0.16);
  background: rgba(6, 13, 24, 0.82);
}

.panel-content button,
.panel-content .save-bottom-btn {
  border-radius: 12px;
  border: 1px solid rgba(126, 212, 255, 0.35);
  background: linear-gradient(135deg, #67b4ff, #4de0d2);
  color: #062136;
  letter-spacing: 0.02em;
}

.panel-content button:hover,
.panel-content .save-bottom-btn:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.save-bottom-btn {
  position: sticky;
  bottom: 10px;
  z-index: 4;
  box-shadow: 0 12px 26px rgba(14, 130, 199, 0.2);
}

.platform-link-item {
  border: 1px solid rgba(170, 214, 255, 0.2);
  border-radius: 13px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

@media (max-width: 900px) {
  .bio-landing {
    overflow: hidden;
  }

  .profile-shell {
    min-height: 100vh;
    padding: 18px 14px;
  }

  .view-counter-card {
    left: 10px;
    bottom: 10px;
    padding: 7px 9px;
  }

  .volume-toggle-btn {
    right: 10px;
    bottom: 10px;
    width: 42px !important;
    min-width: 42px;
    height: 42px;
  }

  .profile-card {
    max-height: calc(100vh - 40px);
    overflow: hidden;
    width: min(430px, 91vw);
  }

  .profile-card-row {
    display: block;
  }

  .profile-right-col {
    text-align: center;
  }

  .icon-links {
    justify-content: center;
  }

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

  .landing-nav {
    border-radius: 18px;
    flex-direction: column;
    gap: 8px;
  }

  .panel-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .panel-sidebar {
    margin: 10px 10px 0;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .panel-content {
    padding: 12px 10px 18px;
  }

  .panel-metric-grid,
  .panel-upload-grid,
  .panel-two-col,
  .asset-preview-grid {
    grid-template-columns: 1fr;
  }

  .discord-card-text strong {
    font-size: 24px;
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes saved-pop {
  from { transform: translateY(-4px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes bio-caret-blink {
  50% { border-color: transparent; }
}

/* --------------------------------------------------------------------------
   Alive: subtle idle motion for the landing page
   (everything here is skipped for users who prefer reduced motion)
   -------------------------------------------------------------------------- */
.profile-card {
  position: relative;
}

.profile-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.075) 50%, transparent 58%);
  background-size: 260% 100%;
  background-position: 140% 0;
  opacity: 0;
}

.discord-dot.online { --dot-rgb: 49, 208, 116; }
.discord-dot.idle { --dot-rgb: 240, 178, 50; }
.discord-dot.dnd { --dot-rgb: 232, 81, 81; }

@media (prefers-reduced-motion: no-preference) {
  .entry-click-text {
    animation: gate-breathe 2.6s ease-in-out infinite;
  }

  .bg-media,
  .bg-image {
    animation: bg-drift 48s ease-in-out infinite alternate;
  }

  .profile-avatar {
    animation: avatar-breathe 4.4s ease-in-out infinite;
  }

  .discord-dot.online,
  .discord-dot.idle,
  .discord-dot.dnd {
    animation: dot-pulse 2.6s ease-out infinite;
  }

  .enter-card.profile-card::after {
    opacity: 1;
    animation: card-sheen 9s ease-in-out 1.2s infinite;
  }

  .enter-links .icon-link {
    animation: icon-pop 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
    animation-delay: calc(var(--i, 0) * 70ms + 60ms);
  }
}

@keyframes gate-breathe {
  0%, 100% { transform: scale(1); opacity: 0.82; }
  50% { transform: scale(1.045); opacity: 1; }
}

@keyframes bg-drift {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to { transform: scale(1.09) translate3d(-1.2%, 0.9%, 0); }
}

@keyframes avatar-breathe {
  0%, 100% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(190, 229, 255, 0), 0 0 0 rgba(120, 190, 255, 0); }
  50% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 5px rgba(190, 229, 255, 0.12), 0 0 26px rgba(120, 190, 255, 0.38); }
}

@keyframes dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--dot-rgb), 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(var(--dot-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--dot-rgb), 0); }
}

@keyframes card-sheen {
  0% { background-position: 140% 0; }
  30% { background-position: -40% 0; }
  100% { background-position: -40% 0; }
}

@keyframes icon-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.6); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* --------------------------------------------------------------------------
   Social icon hover cards
   -------------------------------------------------------------------------- */
.icon-link {
  position: relative;
}

.icon-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  z-index: 7;
  display: grid;
  gap: 1px;
  justify-items: center;
  min-width: 96px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(7, 11, 20, 0.95);
  border: 1px solid rgba(181, 220, 255, 0.45);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  color: #e9f5ff;
  white-space: nowrap;
  text-align: center;
  line-height: 1.25;
  transform: translateX(-50%) translateY(8px) scale(0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.icon-tip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 8px;
  height: 8px;
  transform: translateX(-50%) rotate(45deg);
  background: rgba(7, 11, 20, 0.95);
  border-right: 1px solid rgba(181, 220, 255, 0.45);
  border-bottom: 1px solid rgba(181, 220, 255, 0.45);
}

.icon-tip strong {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.icon-tip small {
  font-size: 11px;
  color: #b2c6ec;
  opacity: 1;
}

.icon-link:hover .icon-tip,
.icon-link:focus-visible .icon-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}
