/* assets/style.css - Bespoke UI Design System for My Bio */

:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-muted: #f4f4f5;
  --ink: #18181b;
  --ink-soft: #3f3f46;
  --muted: #71717a;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #eef2ff;
  --shadow-xs: 0 1px 2px rgba(24, 24, 27, 0.04);
  --shadow-sm: 0 4px 14px rgba(24, 24, 27, 0.05);
  --shadow-md: 0 14px 36px rgba(24, 24, 27, 0.08);
}

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

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "IBM Plex Sans Thai", system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.app-body {
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

.app-body > main {
  flex: 1;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Topbar ---------- */
.topbar {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 30;
}

.topbar-inner {
  min-height: 66px;
  padding-top: 8px;
  padding-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: relative;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.05rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-toggle:hover {
  background: var(--surface-muted);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none !important;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--ink);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  box-shadow: 0 2px 6px rgba(24, 24, 27, 0.18);
}

.brand-mark-sm {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 0.78rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.nav-links-group,
.nav-auth-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none !important;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.nav-link:hover {
  background: var(--surface-muted);
  color: var(--ink);
}
.nav-link.is-active {
  background: var(--surface-muted);
  color: var(--ink);
  font-weight: 700;
}

.nav-vip-link {
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
}
.nav-vip-link:hover,
.nav-vip-link.is-active {
  background: #fef3c7;
  color: #92400e;
  border-color: #f59e0b;
}

.nav-admin-link {
  color: #4f46e5;
}
.nav-admin-link.is-active {
  background: #eef2ff;
  color: #4338ca;
}

.nav-profile-wrap {
  position: relative;
}

.nav-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 11px 4px 5px;
  border-radius: 9999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.nav-profile-btn:hover,
.nav-profile-wrap.is-open .nav-profile-btn {
  border-color: var(--ink-soft);
  background: #fafafa;
  box-shadow: var(--shadow-sm);
}

.nav-avatar {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
  background: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-avatar-lg {
  width: 38px;
  height: 38px;
}
.nav-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nav-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4f46e5 0%, #18181b 100%);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
}

.nav-profile-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  text-align: left;
  max-width: 120px;
}
.nav-profile-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-profile-handle {
  font-size: 0.71rem;
  font-weight: 500;
  color: var(--muted);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-role-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 9999px;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.nav-role-tag.is-admin {
  background: #fee2e2;
  color: #b91c1c;
}
.nav-role-tag.is-vip {
  background: #fef3c7;
  color: #b45309;
}

.nav-chevron {
  font-size: 0.7rem;
  color: var(--muted);
  transition: transform 0.18s ease;
}
.nav-profile-wrap.is-open .nav-chevron {
  transform: rotate(180deg);
}

.nav-profile-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 268px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 10px;
  z-index: 80;
}
.nav-profile-wrap.is-open .nav-profile-menu {
  display: block;
}

.nav-profile-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.nav-profile-head-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.nav-profile-head-info strong {
  font-size: 0.88rem;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-profile-head-info span {
  font-size: 0.76rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-dropdown-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none !important;
  transition: background-color 0.14s ease, color 0.14s ease;
}
.nav-dropdown-item i {
  width: 16px;
  text-align: center;
  color: var(--muted);
}
.nav-dropdown-item:hover,
.nav-dropdown-item.is-active {
  background: var(--surface-muted);
  color: var(--ink);
}
.nav-dropdown-item.is-active i,
.nav-dropdown-item:hover i {
  color: var(--ink);
}
.nav-dropdown-vip {
  color: #b45309;
}
.nav-dropdown-vip i {
  color: #d97706 !important;
}
.nav-dropdown-item.is-danger {
  color: #dc2626;
}
.nav-dropdown-item.is-danger i {
  color: #dc2626;
}
.nav-dropdown-item.is-danger:hover {
  background: #fef2f2;
  color: #b91c1c;
}
.nav-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 4px;
}

.user-badge {
  background: var(--surface-muted);
  color: var(--ink-soft);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.84rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.14s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none !important;
}
.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 7px 13px;
  font-size: 0.84rem;
  border-radius: 8px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(24, 24, 27, 0.15);
}
.btn-primary:hover {
  background: #27272a;
  box-shadow: 0 4px 12px rgba(24, 24, 27, 0.16);
}

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
}
.btn-outline:hover {
  border-color: var(--ink-soft);
  background: #fafafa;
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
}
.btn-ghost:hover {
  background: var(--surface-muted);
  color: var(--ink);
}

.btn-danger {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}
.btn-danger:hover {
  background: #fee2e2;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---------- Editorial Split Hero (Landing Page) ---------- */
.hero-section {
  padding: 48px 24px 72px;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 44px;
  align-items: center;
  padding: 20px 0 36px;
}

.eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  box-shadow: var(--shadow-xs);
}
.eyebrow-tag i {
  color: var(--accent);
}

.hero-title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  color: var(--ink);
  font-weight: 800;
}

.hero-url-chip {
  display: inline-block;
  max-width: 100%;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid #c7d2fe;
  padding: 5px 14px;
  margin-top: 6px;
  border-radius: 12px;
  font-size: clamp(0.85rem, 2.05vw, 1.7rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.hero-desc {
  max-width: 560px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 1.03rem;
}

.claim-form {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 6px 6px 6px 16px;
  max-width: 520px;
  box-shadow: var(--shadow-sm);
  gap: 8px;
  margin-bottom: 20px;
}
.claim-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.claim-prefix {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.claim-form input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.98rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--ink);
  flex: 1;
  min-width: 110px;
  padding: 8px 4px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Showcase Mockup */
.hero-showcase {
  display: flex;
  justify-content: center;
}

.showcase-card {
  width: 100%;
  max-width: 340px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 22px 20px 26px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.showcase-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  border-radius: 9999px;
  background: var(--surface-muted);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.showcase-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

.showcase-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #18181b 0%, #4f46e5 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25);
}

.showcase-name {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
}
.showcase-bio {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 2px 0 14px;
}

.showcase-socials {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}
.showcase-socials span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.86rem;
}

.showcase-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.showcase-link-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 14px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}

.feature-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-xs);
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 14px;
}
.feature-item h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Auth Forms ---------- */
.auth-backdrop {
  background-color: var(--bg);
  background-image: radial-gradient(#d4d4d8 1px, transparent 1px);
  background-size: 22px 22px;
}

.auth-wrapper {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 16px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 34px 30px;
  box-shadow: var(--shadow-md);
}

.auth-header {
  text-align: center;
  margin-bottom: 22px;
}

.auth-icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.auth-icon-circle.is-danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

.auth-card h1 {
  margin: 0 0 6px;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-footer {
  margin: 20px 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.oauth-btn-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-google {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-xs);
}
.btn-google:hover {
  background: var(--surface-muted);
  border-color: #a1a1aa;
}
.btn-google i {
  color: #ea4335;
}

.btn-discord {
  background: #5865F2;
  color: #ffffff;
  border: 1px solid #4752C4;
  box-shadow: 0 1px 2px rgba(88, 101, 242, 0.25);
}
.btn-discord:hover {
  background: #4752C4;
  color: #ffffff;
}

.recaptcha-wrap {
  display: flex;
  justify-content: center;
  max-width: 100%;
  overflow-x: auto;
  padding: 2px 0;
}

/* ---------- Terms & Conditions Checkbox + Modal ---------- */
.terms-agree-box {
  padding: 11px 12px;
  border-radius: 12px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
}
.terms-check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.87rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.terms-inline-label {
  cursor: pointer;
  margin-right: 4px;
}
.terms-check-label input[type="checkbox"] {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}
.terms-open-link {
  border: none;
  background: transparent;
  padding: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: inherit;
  font-family: inherit;
  text-decoration: underline;
  cursor: pointer;
  text-align: left;
}

.terms-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(24, 24, 27, 0.58);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.terms-modal-backdrop[hidden] {
  display: none;
}
.terms-modal-card {
  width: 100%;
  max-width: 560px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(24, 24, 27, 0.25);
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 90vh;
}
.terms-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.terms-modal-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.terms-modal-title-wrap h3 {
  margin: 0 0 2px;
  font-size: 1.1rem;
  color: var(--ink);
}
.terms-scroll-box {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fafafa;
  padding: 16px 18px;
  height: 270px;
  overflow-y: auto;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.terms-scroll-box h4 {
  margin: 14px 0 6px;
  font-size: 0.94rem;
  color: var(--ink);
}
.terms-scroll-box h4:first-child {
  margin-top: 0;
}
.terms-scroll-box p {
  margin: 0 0 8px;
}
.terms-scroll-box ul {
  margin: 4px 0 10px;
  padding-left: 20px;
}
.terms-scroll-box li {
  margin-bottom: 4px;
}
.terms-scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
}
.terms-scroll-hint.is-ready {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}
.terms-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
@media (max-width: 480px) {
  .terms-modal-card {
    padding: 16px;
  }
  .terms-scroll-box {
    height: 230px;
    padding: 12px 14px;
  }
  .terms-modal-actions {
    flex-direction: column-reverse;
  }
  .terms-modal-actions .btn {
    width: 100%;
  }
}

.security-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.sec-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}
.sec-pill.is-warn {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #92400e;
}

.admin-quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

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

.admin-section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 22px;
}

.admin-sec-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none !important;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.admin-sec-tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
}
.admin-sec-tab.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}
.admin-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 9999px;
  background: #f59e0b;
  color: #18181b;
  font-size: 0.75rem;
  font-weight: 800;
}
@media (max-width: 640px) {
  .admin-section-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-sec-tab {
    justify-content: center;
    padding: 9px 8px;
    font-size: 0.82rem;
  }
}

.reserved-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.reserved-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px 5px 12px;
  border-radius: 9999px;
  background: var(--surface-muted);
  border: 1px solid var(--border-strong);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.chip-del-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  border-radius: 9999px;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  font-size: 0.78rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.chip-del-btn:hover {
  background: #fee2e2;
  color: #dc2626;
}

.input-secret-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-secret-wrap input {
  padding-right: 40px !important;
}

.copy-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.copy-row input {
  flex: 1;
  min-width: 0;
}

.settings-grid-5 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.settings-grid-5 input[type="number"] {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-size: 0.92rem;
  font-family: inherit;
  background: var(--surface);
}

/* ---------- Account Management & Username Approval ---------- */
.account-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.oauth-connect-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.oauth-connect-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fafafa;
}
.oauth-provider-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.oauth-provider-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.oauth-provider-icon.is-google {
  background: #fef2f2;
  color: #ea4335;
  border: 1px solid #fecaca;
}
.oauth-provider-icon.is-discord {
  background: #eef2ff;
  color: #5865F2;
  border: 1px solid #c7d2fe;
}

.req-review-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.req-review-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: #fafafa;
}
.req-review-card.is-pending {
  background: #ffffff;
  border-color: #fcd34d;
  box-shadow: var(--shadow-xs);
}
.req-review-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.req-names {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.req-log-details {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
}
.req-log-details summary {
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.req-decision-form {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.req-decision-form input {
  flex: 1 1 220px;
}
@media (max-width: 900px) {
  .account-grid {
    grid-template-columns: 1fr;
  }
}

.settings-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.settings-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.settings-card-box {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: #fafafa;
  min-width: 0;
}
.settings-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.settings-box-head h3 {
  margin: 0;
  font-size: 0.96rem;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
@media (max-width: 960px) {
  .settings-grid-3 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .settings-grid-2 {
    grid-template-columns: 1fr;
  }
}

.demo-hint {
  margin-top: 18px;
  padding: 12px 14px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.84rem;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

/* ---------- Forms & Alerts ---------- */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-size: 0.94rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-leading-icon {
  position: absolute;
  left: 13px;
  color: var(--muted);
  font-size: 0.9rem;
  pointer-events: none;
}
.input-icon-wrap input {
  padding-left: 38px !important;
  padding-right: 38px !important;
}
.toggle-pw-btn {
  position: absolute;
  right: 10px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
}
.toggle-pw-btn:hover {
  color: var(--ink);
}

.form-group input[type="color"] {
  width: 100%;
  height: 42px;
  padding: 4px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}

.input-prefix-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}
.input-prefix-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
.input-prefix {
  background: var(--surface-muted);
  color: var(--muted);
  padding: 10px 12px;
  font-size: 0.84rem;
  font-weight: 600;
  border-right: 1px solid var(--border);
  white-space: nowrap;
}
.input-prefix-wrap input {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  outline: none;
}

.help-text {
  color: var(--muted);
  font-size: 0.8rem;
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 0.92rem;
}
.alert ul {
  margin: 0;
  padding-left: 18px;
}
.alert-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.alert-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.alert-warning {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fcd34d;
  align-items: center;
  font-weight: 600;
}
.alert-warning i {
  color: #d97706;
  font-size: 1.05rem;
}

.btn-warning {
  background: #f59e0b;
  color: #18181b;
  border: 1px solid #d97706;
}
.btn-warning:hover {
  background: #d97706;
  color: #ffffff;
}

.unsaved-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(24, 24, 27, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.unsaved-modal-backdrop[hidden] {
  display: none;
}
.unsaved-modal-card {
  width: 100%;
  max-width: 420px;
  background: #fffbeb;
  border: 1.5px solid #f59e0b;
  border-top: 5px solid #f59e0b;
  border-radius: 20px;
  padding: 26px 24px 24px;
  text-align: center;
  box-shadow: 0 24px 50px rgba(24, 24, 27, 0.25);
}
.unsaved-modal-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #d97706;
  font-size: 1.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.unsaved-modal-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #92400e;
}
.unsaved-modal-card p {
  margin: 0 0 20px;
  font-size: 0.91rem;
  line-height: 1.55;
  color: #78350f;
}
.unsaved-modal-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- Dashboard ---------- */
.dashboard-wrap {
  padding-top: 28px;
  padding-bottom: 56px;
}

.share-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  box-shadow: var(--shadow-xs);
}

.share-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}

.share-url-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.share-url-input {
  min-width: 0;
  flex: 1 1 220px;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: var(--surface-muted);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
  font-family: inherit;
}

.stats-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.stat-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 9px 16px;
  text-align: center;
  min-width: 96px;
}
.stat-num {
  display: block;
  font-weight: 800;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.stat-label {
  font-size: 0.76rem;
  color: var(--muted);
}

.tabs-nav {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 6px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 22px;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.tab-btn:hover {
  color: var(--ink);
}
.tab-btn.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 26px;
  align-items: start;
}

.editor-column,
.preview-column,
.hero-copy,
.hero-showcase,
.panel {
  min-width: 0;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow-xs);
}
.panel h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  font-size: 1.12rem;
  letter-spacing: -0.015em;
}
.panel h3 {
  margin: 0 0 10px;
  font-size: 0.98rem;
}

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

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 22px 0;
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.links-manage-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-edit-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 15px;
  background: #fafafa;
}

.link-edit-fields {
  display: grid;
  grid-template-columns: 170px 1fr 1.2fr;
  gap: 8px;
  margin-bottom: 10px;
}
.link-edit-fields input {
  padding: 8px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: var(--surface);
  font-family: inherit;
  font-size: 0.9rem;
}

.icon-select-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}
.icon-preview-box {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  flex-shrink: 0;
}
.icon-select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: var(--surface);
  font-family: inherit;
  font-size: 0.88rem;
}

.color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.link-edit-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.toggle-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  cursor: pointer;
}
.click-badge {
  font-size: 0.82rem;
  color: var(--muted);
  margin-left: auto;
}

.link-order-actions {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-strong);
  display: flex;
  gap: 6px;
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 10px;
}

.preset-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
}
.preset-card.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.preset-swatch {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

/* ---------- Live Preview Phone Frame ---------- */
.preview-column {
  position: sticky;
  top: 86px;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.phone-frame {
  position: relative;
  border: 10px solid #18181b;
  border-radius: 38px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 24px 50px rgba(24, 24, 27, 0.18);
}

.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 18px;
  background: #18181b;
  border-radius: 9999px;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 7px;
}
.phone-notch span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #27272a;
}

.preview-canvas {
  position: relative;
  min-height: 580px;
  max-height: none;
  overflow: hidden !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 44px 18px 34px;
  text-align: center;
}
.preview-canvas::-webkit-scrollbar,
.preview-canvas *::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.preview-canvas .bio-name,
.preview-canvas .bio-handle,
.preview-canvas .bio-desc,
.preview-canvas .bio-link-title,
.preview-canvas .bio-text-title,
.preview-canvas .bio-text-body {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ---------- Public Bio Page ---------- */
.owner-bar {
  background: rgba(24, 24, 27, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 10px 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  font-size: 0.86rem;
  font-weight: 500;
  flex-wrap: wrap;
}
.owner-edit-btn {
  background: #ffffff;
  color: #18181b;
  padding: 5px 13px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none !important;
  transition: transform 0.15s ease, background 0.15s ease;
}
.owner-edit-btn:hover {
  background: #f4f4f5;
  transform: translateY(-1px);
}

.bio-container {
  width: 100%;
  max-width: 440px;
  flex: 1 0 auto;
  margin: 0 auto;
  padding: 52px 18px 40px;
  text-align: center;
}

.bio-inner-card {
  position: relative;
  z-index: 5;
  padding: 8px 4px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bio-inner-card.is-framed {
  background: var(--bio-card-bg, #ffffff);
  border: 1px solid var(--bio-card-border, #e4e4e7);
  border-radius: 28px;
  padding: 30px 24px 32px;
  box-shadow: 0 12px 32px -4px rgba(24, 24, 27, 0.08), 0 4px 12px rgba(24, 24, 27, 0.04);
}

.avatar-ring-wrap {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-pic {
  position: relative;
  z-index: 2;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0;
  display: block;
  border: 3px solid var(--bio-avatar-border, rgba(255, 255, 255, 0.8));
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}

.profile-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #18181b 0%, #4f46e5 100%);
  color: #ffffff;
  font-size: 2rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.24);
}

.bio-name {
  font-size: 1.38rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  color: var(--bio-text, #18181b);
}

.bio-handle {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--bio-muted, #71717a);
  margin-bottom: 10px;
}

.bio-desc {
  color: var(--bio-muted, #71717a);
  margin: 0 0 20px;
  font-size: 0.94rem;
  line-height: 1.55;
  white-space: pre-line;
}

.social-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bio-text, #18181b);
  background: rgba(113, 113, 122, 0.08);
  border: 1px solid rgba(113, 113, 122, 0.22);
  text-decoration: none !important;
  backdrop-filter: blur(6px);
  transition: transform 0.16s ease, background 0.16s ease;
}
.social-pill:hover {
  transform: translateY(-1px);
  background: rgba(113, 113, 122, 0.14);
}

.links-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.bio-link {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  text-decoration: none !important;
  font-size: 0.93rem;
  font-weight: 600;
  border-radius: var(--bio-btn-radius, 9999px);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.bio-link.style-outline {
  background: var(--bio-btn-bg, #ffffff);
  color: var(--bio-btn-text, #18181b);
  border: var(--bio-btn-border-w, 1px) solid var(--bio-btn-border, #e4e4e7);
}

.bio-link.style-filled {
  background: var(--bio-btn-bg, #18181b);
  color: var(--bio-btn-text, #ffffff);
  border: var(--bio-btn-border-w, 1px) solid var(--bio-btn-border, var(--bio-btn-bg, #18181b));
}

.bio-link.style-glass {
  background: rgba(255, 255, 255, 0.16);
  color: var(--bio-btn-text, #ffffff);
  border: var(--bio-btn-border-w, 1px) solid var(--bio-btn-border, rgba(255, 255, 255, 0.32));
  backdrop-filter: blur(10px);
}

.bio-link.shadow-none { box-shadow: none; }
.bio-link.shadow-soft { box-shadow: 0 1px 3px rgba(24, 24, 27, 0.06); }
.bio-link.shadow-soft:hover { box-shadow: 0 6px 16px rgba(24, 24, 27, 0.08); }
.bio-link.shadow-glow { box-shadow: 0 0 18px var(--bio-btn-border, rgba(79, 70, 229, 0.45)); }
.bio-link.shadow-hard { box-shadow: 4px 4px 0px var(--bio-btn-border, #18181b); }

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

.bio-empty {
  color: var(--bio-muted, #71717a);
  padding: 20px;
}

.bio-footer {
  margin-top: 32px;
  font-size: 0.82rem;
  font-weight: 600;
}
.bio-footer a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--bio-muted, #71717a);
  text-decoration: none;
  opacity: 0.88;
  transition: opacity 0.15s ease;
}
.bio-footer a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ---------- Responsive (All Devices) ---------- */
@media (max-width: 1024px) {
  .container {
    padding: 0 18px;
  }
  .hero-split {
    gap: 28px;
  }
  .dashboard-grid {
    grid-template-columns: 1.2fr 0.9fr;
    gap: 20px;
  }
  .admin-analytics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .hero-split,
  .dashboard-grid,
  .admin-analytics-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    text-align: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .claim-form {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .preview-column {
    position: static;
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav-actions {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 16px;
    right: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    z-index: 60;
  }
  .nav-actions.is-open {
    display: flex;
  }
  .nav-actions .btn,
  .nav-actions .user-badge {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .nav-actions .pill {
    align-self: center;
  }
  .nav-links-group,
  .nav-auth-group {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
  }
  .nav-link {
    justify-content: flex-start;
    padding: 10px 12px;
  }
  .nav-profile-wrap {
    width: 100%;
    border-top: 1px solid var(--border);
    padding-top: 10px;
    margin-top: 2px;
  }
  .nav-profile-btn {
    width: 100%;
    border-radius: 12px;
    padding: 8px 10px;
    cursor: default;
  }
  .nav-profile-meta {
    flex: 1;
    max-width: none;
  }
  .nav-chevron {
    display: none;
  }
  .nav-profile-menu {
    display: block;
    position: static;
    width: 100%;
    border: none;
    box-shadow: none;
    padding: 8px 0 0;
  }
  .nav-profile-head {
    display: none;
  }

  .hero-section {
    padding: 26px 16px 48px;
  }
  .share-banner {
    padding: 16px;
    gap: 14px;
  }
  .share-banner > div:first-child {
    width: 100%;
  }
  .stats-row {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .stat-box {
    min-width: 0;
    padding: 8px 6px;
  }
  .site-footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .site-footer-links {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 14px;
  }
  .dashboard-wrap {
    padding-top: 18px;
    padding-bottom: 40px;
  }
  .panel {
    padding: 18px 14px;
    border-radius: 14px;
  }
  .tabs-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    gap: 6px;
  }
  .tab-btn {
    justify-content: center;
    padding: 9px 8px;
    font-size: 0.82rem;
    text-align: center;
  }
  .form-row-2,
  .add-link-grid,
  .link-edit-fields {
    grid-template-columns: 1fr;
  }
  .color-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .preset-grid {
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  }
  .block-type-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .block-type-btn {
    padding: 8px 6px;
    font-size: 0.8rem;
    text-align: center;
  }
  .filter-bar,
  .filter-bar input,
  .filter-bar select,
  .reset-pw-form,
  .reset-pw-form input {
    width: 100%;
    min-width: 0;
  }
  .admin-table th {
    white-space: nowrap;
  }
  .bar-chart {
    gap: 6px;
  }
  .bar-count,
  .bar-date {
    font-size: 0.72rem;
  }
  .toast-container {
    top: auto;
    bottom: max(14px, env(safe-area-inset-bottom));
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .claim-form {
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    gap: 6px;
  }
  .claim-prefix {
    font-size: 0.82rem;
    padding: 2px 4px;
  }
  .claim-form input {
    padding: 8px 6px;
    background: var(--surface-muted);
    border-radius: 8px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .auth-card {
    padding: 24px 16px;
    border-radius: 18px;
  }
  .input-prefix {
    font-size: 0.76rem;
    padding: 10px 8px;
    max-width: 46%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .phone-frame {
    border-width: 6px;
    border-radius: 28px;
  }
  .preview-canvas {
    padding: 36px 12px 24px;
    min-height: 500px;
  }
  .bio-container {
    padding: 28px 12px 32px;
  }
  .bio-inner-card.is-framed {
    padding: 24px 16px 26px;
    border-radius: 24px;
  }
  .admin-kpi-grid {
    grid-template-columns: 1fr;
  }
  .unsaved-modal-card {
    padding: 22px 16px;
    border-radius: 16px;
  }
  .unsaved-modal-actions {
    flex-direction: column-reverse;
  }
  .unsaved-modal-actions .btn {
    width: 100%;
  }
}

/* ---------- Admin Dashboard ---------- */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-xs);
}
.kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.kpi-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--surface-muted);
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.kpi-label {
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 600;
}
.kpi-value {
  font-size: 1.9rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 8px 0 4px;
}
.kpi-sub {
  font-size: 0.82rem;
  color: var(--muted);
}

.traffic-type-cell i {
  width: 18px;
  color: var(--muted);
  margin-right: 4px;
}

.admin-analytics-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 24px;
  margin-bottom: 24px;
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  align-items: end;
  height: 190px;
  padding: 12px 4px 0;
}

.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  gap: 6px;
}

.bar-count {
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
}

.bar-track {
  width: 100%;
  max-width: 42px;
  height: 125px;
  background: #f1f5f9;
  border-radius: 10px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.bar-fill {
  width: 100%;
  background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 10px 10px 0 0;
  transition: height 0.2s ease;
}

.bar-date {
  font-size: 0.78rem;
  color: #64748b;
}

.traffic-type-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
  font-size: 0.86rem;
  color: #475569;
}

.top-bio-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.top-bio-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.top-rank {
  font-weight: 800;
  color: #2563eb;
  width: 28px;
}

.top-bio-info {
  flex: 1;
  min-width: 0;
}
.top-bio-info small {
  display: block;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-views {
  font-weight: 700;
  font-size: 0.88rem;
  color: #0f172a;
}

.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.section-head-row h2 {
  margin: 0;
}

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-bar input,
.filter-bar select {
  padding: 7px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.88rem;
  background: #ffffff;
}

.table-scroll {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.admin-table th,
.admin-table td {
  padding: 11px 8px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}
.admin-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #64748b;
  background: #f8fafc;
  white-space: nowrap;
}
.admin-table .col-nowrap {
  white-space: nowrap;
}
.table-email {
  max-width: 185px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-sub {
  font-size: 0.78rem;
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}
.pill-green { background: #dcfce7; color: #166534; }
.pill-red   { background: #fee2e2; color: #991b1b; }
.pill-blue  { background: #dbeafe; color: #1e40af; }
.pill-gray  { background: #e2e8f0; color: #334155; }

.admin-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.admin-actions .btn-sm,
.admin-actions .role-select {
  padding: 5px 9px;
  font-size: 0.8rem;
  white-space: nowrap;
}

.inspect-panel {
  margin-bottom: 24px;
  border-color: #93c5fd;
  background: #f8fbff;
}
.inspect-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.inspect-header h2 {
  margin: 0;
}

.reset-pw-form {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.reset-pw-form input {
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  min-width: 240px;
}

.ua-cell {
  max-width: 220px;
  color: #64748b;
  font-size: 0.82rem;
}

/* ---------- Block Types & Drag-and-Drop ---------- */
.pill-gold {
  background: linear-gradient(135deg, #fef08a, #f59e0b);
  color: #78350f;
  border: 1px solid #f59e0b;
}

.role-select {
  padding: 5px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  background: #ffffff;
  cursor: pointer;
}

.block-type-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.block-type-btn {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}
.block-type-btn.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.draggable-block {
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.draggable-block.is-dragging {
  opacity: 0.55;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
  border-color: #3b82f6;
}

.block-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.drag-handle {
  cursor: grab;
  padding: 2px 8px;
  border-radius: 6px;
  background: #e2e8f0;
  color: #475569;
  font-weight: 800;
  letter-spacing: 1px;
  user-select: none;
}
.drag-handle:active {
  cursor: grabbing;
}

.block-type-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  background: #e2e8f0;
  color: #334155;
}
.block-type-pill.type-text { background: #fef3c7; color: #92400e; }
.block-type-pill.type-picture { background: #ede9fe; color: #5b21b6; }
.block-type-pill.type-link { background: #dbeafe; color: #1e40af; }

.compact-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  font-family: inherit;
  font-size: 0.9rem;
}

.reorder-status {
  font-size: 0.85rem;
  font-weight: 600;
  color: #16a34a;
}

.quota-bar {
  margin-bottom: 14px;
}
.quota-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  color: var(--ink-soft);
}
.quota-badge.is-full {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #92400e;
}

/* ---------- Text & Picture Bio Blocks ---------- */
.bio-text-block {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(113, 113, 122, 0.06);
  border: 1px solid rgba(113, 113, 122, 0.2);
  backdrop-filter: blur(8px);
  color: var(--bio-text, #18181b);
  text-align: center;
}
.bio-text-title {
  font-weight: 700;
  font-size: 0.98rem;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.bio-text-body {
  font-size: 0.89rem;
  color: var(--bio-muted, #71717a);
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.bio-picture-block {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(113, 113, 122, 0.2);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 20px rgba(24, 24, 27, 0.08);
}
.bio-picture-img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
}
.bio-picture-caption {
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--bio-text, #1f2937);
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ---------- VIP / Admin Effect Controls ---------- */
.effect-box {
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  background: #f8fafc;
}
.effect-box.unlocked {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #fffbeb 0%, #fef2f2 100%);
}
.effect-box-head h3 {
  margin: 0;
  font-size: 1rem;
}
.quick-effect-colors {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---------- VIP & Admin Production Motion Engine ---------- */
@property --rgb-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.bio-effect-host {
  position: relative;
  overflow-x: clip;
}

.effect-bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
}

.preview-canvas .effect-bg-layer,
.preview-canvas .effect-particles {
  position: absolute;
}

.effect-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.fx-canvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.fx-particle {
  position: absolute;
  top: 102%;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, var(--effect-c1, #fbbf24) 55%, transparent 100%);
  box-shadow: 0 0 10px var(--effect-c1, #fbbf24), 0 0 22px var(--effect-c2, #f59e0b);
  opacity: 0;
  animation: fxFloatUp 4s linear infinite;
  will-change: transform, opacity;
}

/* VIP Display Name Running RGB Letter Outline */
.bio-name.is-rgb-frame {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 4px;
  padding: 2px 4px;
  line-height: 1.35;
  color: var(--bio-text, #18181b);
  -webkit-text-fill-color: var(--bio-text, #18181b);
  -webkit-text-stroke: 3.5px transparent;
  paint-order: stroke fill;
  background-image: linear-gradient(
    90deg,
    #ff0055 0%,
    #ff8c00 17%,
    #ffee00 34%,
    #00e676 50%,
    #00c8ff 67%,
    #8b5cf6 84%,
    #ff0055 100%
  );
  background-size: 200% 100%;
  background-repeat: repeat;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 5px rgba(139, 92, 246, 0.3));
  animation: fxRgbTextOutline 2.8s linear infinite;
}
@keyframes fxRgbTextOutline {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.role-fx-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}

.role-fx-vip {
  background: linear-gradient(135deg, var(--effect-c1, #fbbf24), var(--effect-c2, #f59e0b));
  color: #111827;
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.35);
}

.role-fx-admin {
  background: linear-gradient(135deg, var(--effect-c1, #ef4444), var(--effect-c2, #991b1b));
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.42);
}

/* --- 1) Royal Shimmer (Satin Halo + Starburst Twinkle) --- */
.fx-vip-sparkle .effect-bg-layer {
  opacity: 0.32;
  background:
    radial-gradient(ellipse at 25% 15%, var(--effect-c1, #fbbf24) 0%, transparent 45%),
    radial-gradient(ellipse at 75% 85%, var(--effect-c2, #f59e0b) 0%, transparent 48%);
  animation: fxAuroraShift calc(8s * var(--fx-speed-mult, 1)) ease-in-out infinite alternate;
}
.fx-vip-sparkle .avatar-ring-wrap::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from var(--rgb-angle, 0deg), transparent 0deg, var(--effect-c1, #fbbf24) 90deg, #ffffff 130deg, var(--effect-c2, #f59e0b) 180deg, transparent 270deg);
  animation: fxSpin calc(3.2s * var(--fx-speed-mult, 1)) linear infinite;
}
.fx-vip-sparkle .avatar-ring-wrap::after {
  content: '';
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1px solid rgba(251, 191, 36, 0.45);
  animation: fxCyberRing calc(2.8s * var(--fx-speed-mult, 1)) ease-out infinite;
}
.fx-vip-sparkle .bio-inner-card.is-framed {
  box-shadow: 0 18px 44px -10px rgba(245, 158, 11, 0.35), 0 0 0 1px rgba(251, 191, 36, 0.45);
}

/* --- 2) Crimson Reactor (3-Layer Counter Rotating Reactor) --- */
.fx-admin-inferno .effect-bg-layer {
  opacity: 0.38;
  background:
    radial-gradient(circle at 50% 18%, var(--effect-c1, #ef4444) 0%, transparent 50%),
    conic-gradient(from 0deg at 50% 50%, transparent 0 320deg, rgba(239, 68, 68, 0.25) 360deg);
  animation: fxInfernoPulse calc(3.2s * var(--fx-speed-mult, 1)) ease-in-out infinite alternate;
}
.fx-admin-inferno .avatar-ring-wrap::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--effect-c1, #ef4444) 0 80deg, transparent 80deg 120deg, var(--effect-c2, #991b1b) 120deg 220deg, transparent 220deg 260deg, #ffffff 260deg 310deg, transparent 310deg 360deg);
  animation: fxSpin calc(1.8s * var(--fx-speed-mult, 1)) linear infinite;
  box-shadow: 0 0 26px var(--effect-c1, #ef4444);
}
.fx-admin-inferno .avatar-ring-wrap::after {
  content: '';
  position: absolute;
  inset: -13px;
  border-radius: 50%;
  border: 2px dashed var(--effect-c1, #ef4444);
  opacity: 0.8;
  animation: fxSpinReverse calc(4.2s * var(--fx-speed-mult, 1)) linear infinite;
}
.fx-admin-inferno .bio-inner-card.is-framed {
  box-shadow: 0 20px 52px -12px var(--effect-c1, #ef4444), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

/* --- 3) Cyber Sonar HUD (Radar Sweep + Target Reticle) --- */
.fx-cyber-pulse .effect-bg-layer {
  opacity: 0.36;
  background:
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(34, 211, 238, 0.12) 35px 36px),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(34, 211, 238, 0.08) 35px 36px),
    conic-gradient(from var(--rgb-angle, 0deg) at 50% 35%, transparent 0 295deg, rgba(34, 211, 238, 0.28) 360deg);
  animation: fxRgbAngleRotate calc(4.5s * var(--fx-speed-mult, 1)) linear infinite;
}
.fx-cyber-pulse .avatar-ring-wrap::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2.5px solid var(--effect-c1, #22d3ee);
  animation: fxCyberRing calc(1.6s * var(--fx-speed-mult, 1)) cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
.fx-cyber-pulse .avatar-ring-wrap::after {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1.5px solid var(--effect-c2, #3b82f6);
  opacity: 0.6;
  animation: fxCyberRing calc(1.6s * var(--fx-speed-mult, 1)) cubic-bezier(0.22, 1, 0.36, 1) infinite 0.55s;
}
.fx-cyber-pulse .bio-inner-card.is-framed::before,
.fx-cyber-pulse .bio-inner-card.is-framed::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  pointer-events: none;
  border-color: var(--effect-c1, #22d3ee);
  border-style: solid;
}
.fx-cyber-pulse .bio-inner-card.is-framed::before {
  top: 10px;
  left: 10px;
  border-width: 2px 0 0 2px;
  border-radius: 6px 0 0 0;
}
.fx-cyber-pulse .bio-inner-card.is-framed::after {
  bottom: 10px;
  right: 10px;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 6px 0;
}

/* --- 4) Borealis Liquid Mesh (Morphing Aurora + Glass Levitation) --- */
.fx-aurora-float .effect-bg-layer {
  opacity: 0.42;
  background:
    radial-gradient(ellipse at 18% 22%, var(--effect-c1, #c084fc) 0%, transparent 52%),
    radial-gradient(ellipse at 82% 28%, var(--effect-c2, #db2777) 0%, transparent 52%),
    radial-gradient(ellipse at 50% 88%, var(--effect-c1, #c084fc) 0%, transparent 50%);
  filter: blur(18px);
  animation: fxAuroraShift calc(7s * var(--fx-speed-mult, 1)) ease-in-out infinite alternate;
}
.fx-aurora-float .avatar-ring-wrap::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--effect-c1, #c084fc), var(--effect-c2, #db2777), #ffffff, var(--effect-c1, #c084fc));
  animation: fxSpin calc(4.2s * var(--fx-speed-mult, 1)) linear infinite;
}
.fx-aurora-float .bio-inner-card.is-framed {
  animation: fxFloatCard calc(4.8s * var(--fx-speed-mult, 1)) ease-in-out infinite;
  box-shadow: 0 20px 50px -12px rgba(192, 132, 252, 0.36);
}

/* --- 5) Matrix Terminal (Canvas Rain + CRT Scan + Cursor Blink) --- */
.fx-matrix-rain .effect-bg-layer {
  opacity: 0.28;
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(34, 197, 94, 0.08) 4px 5px),
    radial-gradient(circle at 50% 15%, var(--effect-c1, #22c55e) 0%, transparent 56%);
}
.fx-matrix-rain .avatar-ring-wrap::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed var(--effect-c1, #22c55e);
  box-shadow: 0 0 18px var(--effect-c1, #22c55e);
  animation: fxSpin calc(3s * var(--fx-speed-mult, 1)) linear infinite;
}
.fx-matrix-rain .bio-name {
  font-family: "JetBrains Mono", Consolas, monospace;
  text-shadow: 0 0 12px var(--effect-c1, #22c55e);
}
.fx-matrix-rain .bio-name::after {
  content: '_';
  animation: fxBlinkCursor 1s steps(2, start) infinite;
}

/* --- 6) Deep Space Orbit (3D Tilted Dual Orbit + Starfield) --- */
.fx-galaxy-orbit .effect-bg-layer {
  opacity: 0.42;
  background:
    radial-gradient(circle at 24% 25%, var(--effect-c1, #c084fc) 0%, transparent 45%),
    radial-gradient(circle at 78% 72%, var(--effect-c2, #3b82f6) 0%, transparent 48%);
}
.fx-galaxy-orbit .avatar-ring-wrap {
  perspective: 420px;
}
.fx-galaxy-orbit .avatar-ring-wrap::before {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 2px solid var(--effect-c1, #c084fc);
  box-shadow: 0 0 16px var(--effect-c1, #c084fc);
  animation: fxOrbitTilt calc(3.2s * var(--fx-speed-mult, 1)) linear infinite;
}
.fx-galaxy-orbit .avatar-ring-wrap::after {
  content: '';
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 2px dotted var(--effect-c2, #3b82f6);
  animation: fxOrbitTiltReverse calc(4.5s * var(--fx-speed-mult, 1)) linear infinite;
}
.fx-twinkle-star {
  position: absolute;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px var(--effect-c1, #c084fc);
  animation: fxStarTwinkle 2.2s ease-in-out infinite alternate;
}

/* --- 7) Botanical Drift (Wind-swept 3D Tumble Petals) --- */
.fx-sakura-dream .effect-bg-layer {
  opacity: 0.34;
  background:
    radial-gradient(circle at 18% 20%, var(--effect-c1, #f472b6) 0%, transparent 50%),
    radial-gradient(circle at 82% 80%, var(--effect-c2, #fda4af) 0%, transparent 50%);
}
.fx-sakura-dream .avatar-ring-wrap::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--effect-c1, #f472b6), #ffffff, var(--effect-c2, #fda4af), var(--effect-c1, #f472b6));
  animation: fxSpin calc(5s * var(--fx-speed-mult, 1)) linear infinite;
}

/* --- 8) Chroma Studio Prism (Smooth 60fps RGB Spectrum) --- */
.fx-rgb-rainbow .effect-bg-layer {
  opacity: 0.3;
  background: conic-gradient(from var(--rgb-angle, 0deg) at 50% 40%, #ff0055, #ff8c00, #ffee00, #00e676, #00c8ff, #8b5cf6, #ff0055);
  filter: blur(42px);
  animation: fxRgbAngleRotate calc(6s * var(--fx-speed-mult, 1)) linear infinite;
}
.fx-rgb-rainbow .avatar-ring-wrap::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(from var(--rgb-angle, 0deg), #ff0055, #ff8c00, #ffee00, #00e676, #00c8ff, #8b5cf6, #ff0055);
  animation: fxRgbAngleRotate calc(2.4s * var(--fx-speed-mult, 1)) linear infinite;
}
.fx-rgb-rainbow .bio-inner-card.is-framed {
  animation: fxRgbGlow calc(4.5s * var(--fx-speed-mult, 1)) linear infinite;
}

/* --- 9) VHS Chromatic Glitch --- */
.fx-glitch-cyber .effect-bg-layer {
  opacity: 0.35;
  background:
    repeating-linear-gradient(0deg, transparent 0 4px, rgba(255, 255, 255, 0.08) 5px 6px),
    radial-gradient(circle at 48% 30%, var(--effect-c1, #ef4444) 0%, transparent 52%),
    radial-gradient(circle at 52% 78%, var(--effect-c2, #22d3ee) 0%, transparent 52%);
}
.fx-glitch-cyber .avatar-ring-wrap::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2.5px solid var(--effect-c1, #ef4444);
  box-shadow: -4px 0 12px var(--effect-c1, #ef4444), 4px 0 12px var(--effect-c2, #22d3ee);
  animation: fxGlitchShake calc(2.4s * var(--fx-speed-mult, 1)) steps(1) infinite;
}
.fx-glitch-cyber .bio-name {
  text-shadow: -2px 0 var(--effect-c1, #ef4444), 2px 0 var(--effect-c2, #22d3ee);
  animation: fxGlitchShake calc(2.8s * var(--fx-speed-mult, 1)) steps(1) infinite;
}

/* --- 10) Liquid Plasma Morph (Organic Morphing Avatar & Blobs) --- */
.fx-liquid-blob .effect-bg-layer {
  opacity: 0.34;
  background: radial-gradient(circle at 50% 40%, var(--effect-c1, #6366f1) 0%, transparent 60%);
}
.fx-liquid-blob .avatar-ring-wrap::before {
  content: '';
  position: absolute;
  inset: -7px;
  background: linear-gradient(135deg, var(--effect-c1, #6366f1), var(--effect-c2, #ec4899));
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: fxLiquidMorph calc(5.5s * var(--fx-speed-mult, 1)) ease-in-out infinite;
  box-shadow: 0 0 26px var(--effect-c1, #6366f1);
}
.fx-liquid-blob .profile-pic {
  border-radius: 58% 42% 48% 52% / 48% 56% 44% 52%;
  animation: fxLiquidMorph calc(6.5s * var(--fx-speed-mult, 1)) ease-in-out infinite reverse;
}
.fx-liquid-blob .bio-link:hover {
  transform: scale(1.03, 0.97) translateY(-2px);
}
.fx-liquid-blob {
  position: relative;
}
.fx-particle,
.fx-liquid-blob.blob-1,
.fx-liquid-blob.blob-2,
.fx-liquid-blob.blob-3 {
  pointer-events: none;
}
span.fx-liquid-blob {
  position: absolute;
  border-radius: 54% 46% 38% 62% / 44% 58% 42% 56%;
  filter: blur(24px);
  opacity: 0.38;
  animation: fxLiquidMorph calc(7s * var(--fx-speed-mult, 1)) ease-in-out infinite;
}
span.fx-liquid-blob.blob-1 {
  width: 220px;
  height: 220px;
  top: 6%;
  left: -40px;
  background: var(--effect-c1, #6366f1);
}
span.fx-liquid-blob.blob-2 {
  width: 200px;
  height: 200px;
  bottom: 10%;
  right: -35px;
  background: var(--effect-c2, #ec4899);
  animation-delay: -2.2s;
}
span.fx-liquid-blob.blob-3 {
  width: 150px;
  height: 150px;
  top: 44%;
  left: 38%;
  background: var(--effect-c1, #6366f1);
  opacity: 0.22;
  animation-delay: -4s;
}

/* --- 11) Laser Perimeter (Diagonal Lasers + Running Card Edge) --- */
.fx-neon-laser .effect-bg-layer {
  opacity: 0.25;
  background: radial-gradient(circle at 50% 25%, var(--effect-c1, #06b6d4) 0%, transparent 58%);
}
.fx-laser-beam {
  position: absolute;
  width: 180%;
  height: 2px;
  left: -40%;
  background: linear-gradient(90deg, transparent, var(--effect-c1, #06b6d4), #ffffff, var(--effect-c2, #3b82f6), transparent);
  box-shadow: 0 0 14px var(--effect-c1, #06b6d4);
  opacity: 0.65;
  animation: fxLaserSweep calc(3.8s * var(--fx-speed-mult, 1)) linear infinite;
}
.fx-laser-beam.beam-1 { top: 18%; transform: rotate(-16deg); }
.fx-laser-beam.beam-2 { top: 44%; transform: rotate(14deg); animation-delay: -1.1s; }
.fx-laser-beam.beam-3 { top: 68%; transform: rotate(-12deg); animation-delay: -2.3s; }
.fx-laser-beam.beam-4 { top: 86%; transform: rotate(18deg); animation-delay: -3.1s; }

.fx-neon-laser .bio-inner-card.is-framed {
  position: relative;
  border-color: transparent;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}
.fx-neon-laser .bio-inner-card.is-framed::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  padding: 2px;
  background: conic-gradient(from var(--rgb-angle, 0deg), transparent 0 240deg, var(--effect-c1, #06b6d4) 300deg, #ffffff 330deg, var(--effect-c2, #3b82f6) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: fxRgbAngleRotate calc(2.8s * var(--fx-speed-mult, 1)) linear infinite;
  pointer-events: none;
}

/* --- 12) Starlight Network (Interactive Canvas Constellation) --- */
.fx-starlight-constellation .effect-bg-layer {
  opacity: 0.28;
  background: radial-gradient(circle at 50% 25%, var(--effect-c1, #6366f1) 0%, transparent 55%);
}
.fx-starlight-constellation .avatar-ring-wrap::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid var(--effect-c1, #6366f1);
  box-shadow: 0 0 20px var(--effect-c1, #6366f1);
}

/* --- 13) 3D Hologram Tilt (Interactive Perspective + Specular Sheen) --- */
.fx-hologram-tilt .bio-container,
.fx-hologram-tilt.preview-canvas {
  perspective: 950px;
}
.fx-hologram-tilt .bio-inner-card {
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.12s ease-out, box-shadow 0.2s ease;
  transform-style: preserve-3d;
}
.fx-hologram-tilt .bio-inner-card.is-framed::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  pointer-events: none;
  background: radial-gradient(circle 190px at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.38), rgba(99, 102, 241, 0.14) 45%, transparent 75%);
  mix-blend-mode: overlay;
}
.fx-hologram-tilt .effect-bg-layer {
  opacity: 0.3;
  background:
    radial-gradient(circle at 25% 20%, var(--effect-c1, #38bdf8) 0%, transparent 48%),
    radial-gradient(circle at 75% 80%, var(--effect-c2, #a855f7) 0%, transparent 48%);
}

/* ---------- Standalone Button Animations ---------- */
.btn-anim-none .bio-link::after {
  display: none !important;
}
.btn-anim-sweep .bio-link::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 65%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: fxSweep calc(2.6s * var(--fx-speed-mult, 1)) ease-in-out infinite;
}
.btn-anim-bounce .bio-link {
  animation: fxBtnBounce calc(2.2s * var(--fx-speed-mult, 1)) ease-in-out infinite;
}
.btn-anim-pulse-glow .bio-link {
  animation: fxBtnPulseGlow calc(1.8s * var(--fx-speed-mult, 1)) ease-in-out infinite alternate;
}
.btn-anim-shake .bio-link {
  animation: fxBtnWiggle calc(2.6s * var(--fx-speed-mult, 1)) ease-in-out infinite;
}
.btn-anim-rainbow .bio-link {
  border-color: var(--effect-c1, #fbbf24) !important;
  animation: fxRgbGlow calc(3.5s * var(--fx-speed-mult, 1)) linear infinite;
}

/* ---------- Card Entrance Animations ---------- */
.entrance-fade-up .bio-inner-card {
  animation: fxEnterFadeUp 0.65s ease-out both;
}
.entrance-zoom-pop .bio-inner-card {
  animation: fxEnterZoomPop 0.55s cubic-bezier(0.22, 1.4, 0.36, 1) both;
}
.entrance-flip-in .bio-inner-card {
  animation: fxEnterFlip 0.7s ease-out both;
}
.entrance-stagger .links-list > * {
  animation: fxEnterFadeUp 0.55s ease-out both;
}
.entrance-stagger .links-list > *:nth-child(1) { animation-delay: 0.05s; }
.entrance-stagger .links-list > *:nth-child(2) { animation-delay: 0.14s; }
.entrance-stagger .links-list > *:nth-child(3) { animation-delay: 0.23s; }
.entrance-stagger .links-list > *:nth-child(4) { animation-delay: 0.32s; }
.entrance-stagger .links-list > *:nth-child(5) { animation-delay: 0.41s; }
.entrance-stagger .links-list > *:nth-child(n+6) { animation-delay: 0.5s; }

/* ---------- Extended Particle Shapes & Cursor Sparks ---------- */
.fx-particle.dir-rise {
  animation-name: fxFloatUp;
}
.fx-particle.dir-fall {
  top: -12%;
  animation-name: fxFloatDown;
}
.fx-particle.shape-diamond,
.fx-particle.shape-star {
  border-radius: 2px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #ffffff, var(--effect-c1, #fbbf24));
  box-shadow: 0 0 12px var(--effect-c1, #fbbf24), 0 0 20px var(--effect-c2, #f59e0b);
}
.fx-particle.shape-ring,
.fx-particle.shape-heart {
  background: transparent !important;
  border: 2px solid var(--effect-c1, #fbbf24);
  box-shadow: 0 0 12px var(--effect-c1, #fbbf24);
}
.fx-particle.shape-matrix {
  background: none !important;
  box-shadow: none !important;
  color: var(--effect-c1, #22c55e);
  text-shadow: 0 0 10px var(--effect-c1, #22c55e);
  font-weight: 800;
  line-height: 1;
  font-family: "JetBrains Mono", Consolas, monospace;
}
.fx-particle.shape-spark {
  border-radius: 9999px;
  background: linear-gradient(180deg, #ffffff, var(--effect-c1, #fbbf24), transparent);
}
.fx-particle.shape-petal {
  border-radius: 60% 40% 60% 40%;
  background: linear-gradient(135deg, var(--effect-c1, #f472b6), var(--effect-c2, #fda4af));
  box-shadow: 0 0 10px var(--effect-c1, #f472b6);
}

.fx-cursor-spark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #ffffff 0%, var(--effect-c1, #fbbf24) 60%, transparent 100%);
  box-shadow: 0 0 12px var(--effect-c1, #fbbf24), 0 0 22px var(--effect-c2, #f59e0b);
  animation: fxCursorFade 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ---------- Motion Keyframes ---------- */
@keyframes fxRgbAngleRotate {
  from { --rgb-angle: 0deg; }
  to   { --rgb-angle: 360deg; }
}
@keyframes fxSpin {
  to { transform: rotate(360deg); }
}
@keyframes fxSpinReverse {
  to { transform: rotate(-360deg); }
}
@keyframes fxSweep {
  0% { left: -120%; }
  45%, 100% { left: 160%; }
}
@keyframes fxFloatUp {
  0% { top: 102%; transform: translateX(0) scale(0.7); opacity: 0; }
  15% { opacity: 0.9; }
  50% { transform: translateX(12px) scale(1); }
  85% { opacity: 0.75; }
  100% { top: -12%; transform: translateX(-10px) scale(1.15); opacity: 0; }
}
@keyframes fxFloatDown {
  0% { top: -12%; transform: translateX(0) rotateY(0deg) rotateZ(0deg) scale(0.8); opacity: 0; }
  15% { opacity: 0.95; }
  50% { transform: translateX(22px) rotateY(180deg) rotateZ(160deg) scale(1); }
  85% { opacity: 0.85; }
  100% { top: 104%; transform: translateX(-16px) rotateY(360deg) rotateZ(320deg) scale(1.05); opacity: 0; }
}
@keyframes fxCursorFade {
  0% { opacity: 0.95; transform: translate(-50%, -50%) scale(1.15); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--tx, 0px)), calc(-50% + var(--ty, -18px))) scale(0.15); }
}
@keyframes fxOrbitTilt {
  0% { transform: rotateX(64deg) rotateZ(0deg); }
  100% { transform: rotateX(64deg) rotateZ(360deg); }
}
@keyframes fxOrbitTiltReverse {
  0% { transform: rotateY(62deg) rotateZ(0deg); }
  100% { transform: rotateY(62deg) rotateZ(-360deg); }
}
@keyframes fxStarTwinkle {
  0% { opacity: 0.25; transform: scale(0.7); }
  100% { opacity: 1; transform: scale(1.25); }
}
@keyframes fxBlinkCursor {
  50% { opacity: 0; }
}
@keyframes fxLiquidMorph {
  0%, 100% { border-radius: 60% 40% 34% 66% / 58% 34% 66% 42%; }
  33% { border-radius: 40% 60% 62% 38% / 44% 62% 38% 56%; }
  66% { border-radius: 52% 48% 42% 58% / 64% 40% 60% 36%; }
}
@keyframes fxLaserSweep {
  0% { opacity: 0; transform: translateY(-30px) scaleX(0.6); }
  20% { opacity: 0.7; }
  80% { opacity: 0.7; }
  100% { opacity: 0; transform: translateY(30px) scaleX(1.1); }
}
@keyframes fxInfernoPulse {
  0% { transform: scale(1); opacity: 0.3; }
  100% { transform: scale(1.06); opacity: 0.52; }
}
@keyframes fxAuroraShift {
  0% { transform: translate3d(-2%, -2%, 0) scale(1); }
  100% { transform: translate3d(2%, 2%, 0) scale(1.06); }
}
@keyframes fxCyberRing {
  0% { transform: scale(0.95); opacity: 0.95; }
  80% { transform: scale(1.22); opacity: 0.15; }
  100% { transform: scale(0.95); opacity: 0.95; }
}
@keyframes fxFloatCard {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}
@keyframes fxRgbGlow {
  0%   { box-shadow: 0 0 20px #ff0055; }
  25%  { box-shadow: 0 0 20px #ffee00; }
  50%  { box-shadow: 0 0 20px #00e676; }
  75%  { box-shadow: 0 0 20px #00c8ff; }
  100% { box-shadow: 0 0 20px #8b5cf6; }
}
@keyframes fxGlitchShake {
  0%, 84%, 100% { transform: translate(0, 0); }
  86% { transform: translate(-3px, 1px); }
  89% { transform: translate(3px, -2px); }
  92% { transform: translate(-2px, -1px); }
  95% { transform: translate(2px, 2px); }
}
@keyframes fxBtnBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes fxBtnPulseGlow {
  0% { box-shadow: 0 0 6px var(--effect-c1, #fbbf24); }
  100% { box-shadow: 0 0 22px var(--effect-c1, #fbbf24), 0 0 36px var(--effect-c2, #f59e0b); }
}
@keyframes fxBtnWiggle {
  0%, 82%, 100% { transform: rotate(0deg); }
  86% { transform: rotate(-1.5deg); }
  91% { transform: rotate(1.5deg); }
  96% { transform: rotate(-1deg); }
}
@keyframes fxEnterFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fxEnterZoomPop {
  from { opacity: 0; transform: scale(0.84); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes fxEnterFlip {
  from { opacity: 0; transform: perspective(700px) rotateX(18deg) scale(0.95); }
  to   { opacity: 1; transform: perspective(700px) rotateX(0deg) scale(1); }
}

/* ---------- Toast Notifications ---------- */
.toast-container {
  position: fixed;
  top: 76px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
  width: calc(100vw - 32px);
  pointer-events: none;
}

.toast-item {
  position: relative;
  overflow: hidden;
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px 16px;
  border-radius: 14px;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
  animation: toastSlideIn 0.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.toast-item.is-leaving {
  animation: toastSlideOut 0.24s ease forwards;
}

.toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
  color: #ffffff;
}

.toast-success { border-left: 4px solid #16a34a; }
.toast-success .toast-icon { background: #16a34a; }
.toast-success .toast-progress { background: #16a34a; }

.toast-error { border-left: 4px solid #dc2626; }
.toast-error .toast-icon { background: #dc2626; }
.toast-error .toast-progress { background: #dc2626; }

.toast-info { border-left: 4px solid #2563eb; }
.toast-info .toast-icon { background: #2563eb; }
.toast-info .toast-progress { background: #2563eb; }

.toast-body {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.toast-msg {
  font-size: 0.9rem;
  color: #334155;
  word-break: break-word;
}

.toast-close {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
}
.toast-close:hover {
  color: #0f172a;
}

.toast-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  transform-origin: left center;
  animation: toastProgress linear forwards;
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(30px) scale(0.96); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toastSlideOut {
  from { opacity: 1; transform: translateX(0) scale(1); }
  to   { opacity: 0; transform: translateX(30px) scale(0.96); }
}
@keyframes toastProgress {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

/* ---------- Custom Confirm Alert Modal ---------- */
.confirm-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(24, 24, 27, 0.56);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.16s ease;
}
.confirm-modal-backdrop[hidden] {
  display: none;
}
.confirm-modal-backdrop.is-open {
  opacity: 1;
}

.confirm-modal-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px 24px 22px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
  transform: scale(0.95) translateY(8px);
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
.confirm-modal-backdrop.is-open .confirm-modal-card {
  transform: scale(1) translateY(0);
}

.confirm-modal-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}
.confirm-modal-card.is-danger .confirm-modal-icon {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}
.confirm-modal-card.is-warning .confirm-modal-icon {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #d97706;
}
.confirm-modal-card.is-primary .confirm-modal-icon {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #4f46e5;
}

.confirm-modal-title {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--ink);
}
.confirm-modal-msg {
  margin: 0 0 22px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
  word-break: break-word;
}

.confirm-modal-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.confirm-ok-danger {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}
.confirm-ok-danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}
.confirm-ok-warning {
  background: #d97706;
  color: #ffffff;
  border-color: #d97706;
}
.confirm-ok-warning:hover {
  background: #b45309;
  border-color: #b45309;
}

@media (max-width: 480px) {
  .confirm-modal-card {
    padding: 22px 18px 18px;
    border-radius: 16px;
  }
  .confirm-modal-actions {
    grid-template-columns: 1fr;
  }
  .confirm-btn-cancel {
    order: 2;
  }
  .confirm-btn-ok {
    order: 1;
  }
}

/* ---------- Site Footer ---------- */
.site-footer {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 20px 0;
  margin-top: 32px;
  font-size: 0.88rem;
  color: #64748b;
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.site-footer-brand strong {
  display: block;
  color: #0f172a;
  line-height: 1.25;
}
.site-footer-brand span {
  font-size: 0.82rem;
  color: var(--muted);
}

.bio-site-footer {
  position: relative;
  z-index: 10;
  margin-top: auto;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  font-family: "Plus Jakarta Sans", "IBM Plex Sans Thai", system-ui, -apple-system, sans-serif;
}

.bio-footer-brand-link {
  text-decoration: none !important;
  color: inherit;
  transition: opacity 0.15s ease;
}
.bio-footer-brand-link:hover {
  opacity: 0.85;
}

.site-footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer-links a {
  color: #475569;
  font-weight: 600;
}
.site-footer-links a:hover {
  color: #2563eb;
}

/* ---------- VIP Pricing & Upgrade Page ---------- */
.vip-wrap {
  padding: 36px 24px 72px;
  max-width: 980px;
}

.vip-hero {
  text-align: center;
  margin-bottom: 34px;
}
.vip-hero h1 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  line-height: 1.22;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
}
.vip-eyebrow {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}
.vip-eyebrow i {
  color: #d97706;
}

.vip-status-banner {
  margin: 22px auto 0;
  max-width: 720px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 14px 18px;
  border-radius: 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}
.vip-status-banner > i {
  font-size: 1.35rem;
  color: #16a34a;
  flex-shrink: 0;
}
.vip-status-banner > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.9rem;
}

.vip-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.vip-plan-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.vip-plan-card.is-featured {
  border: 2px solid #f59e0b;
  background: linear-gradient(180deg, #fffdf5 0%, #ffffff 34%);
  box-shadow: 0 18px 40px -12px rgba(217, 119, 6, 0.18);
}

.vip-popular-ribbon {
  position: absolute;
  top: -13px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.vip-plan-head h2 {
  margin: 12px 0 8px;
  font-size: 1.28rem;
  color: var(--ink);
}
.vip-price {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 18px;
}
.vip-price span {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
}

.vip-feature-list {
  list-style: none;
  padding: 18px 0 22px;
  margin: 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 11px;
  flex: 1;
}
.vip-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.vip-feature-list li i {
  margin-top: 4px;
  color: #16a34a;
  flex-shrink: 0;
}
.vip-feature-list li.is-muted {
  color: var(--ink-muted);
}
.vip-feature-list li.is-muted i {
  color: #a1a1aa;
}

.btn-vip {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.28);
}
.btn-vip:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
}

.vip-order-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.88rem;
}

@media (max-width: 768px) {
  .vip-pricing-grid {
    grid-template-columns: 1fr;
  }
  .vip-status-banner {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------- Admin Timed VIP Controls ---------- */
.admin-vip-box {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #fde68a;
  background: #fffbeb;
}
.admin-vip-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.admin-vip-grant-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-vip-field-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}
.vip-days-input {
  width: 88px;
  padding: 7px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--surface);
}
.admin-vip-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.admin-vip-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.vip-days-mini {
  width: 58px;
  padding: 5px 7px;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  background: #fffbeb;
  color: #92400e;
}

.admin-vip-modal-card {
  max-width: 460px;
  width: 100%;
  text-align: left;
  padding: 24px;
}
.admin-vip-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.admin-vip-modal-head h3 {
  margin: 0;
  font-size: 1.08rem;
}
.admin-vip-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.admin-vip-choice-btn {
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.admin-vip-choice-btn:hover {
  border-color: #f59e0b;
  background: #fffbeb;
}
.admin-vip-choice-btn.is-active {
  border-color: #d97706;
  background: #fef3c7;
  color: #92400e;
}
