@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg:          #070709;
  --glass:       rgba(255,255,255,0.04);
  --glass-hover: rgba(255,255,255,0.07);
  --border:      rgba(255,255,255,0.07);
  --border-hi:   rgba(255,255,255,0.18);
  --accent:      #a78bfa;
  --accent-glow: rgba(124,58,237,0.35);
  --text:        #f4f4f5;
  --muted:       #71717a;
  --f: 'Plus Jakarta Sans', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--f);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; }

/* =============================================
   BACKGROUND — Animated orbs + grain
   ============================================= */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  will-change: transform;
  animation: orbFloat ease-in-out infinite alternate;
}

.orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(109,40,217,0.35), transparent 70%);
  top: -20%; left: -15%;
  animation-duration: 14s;
  animation-delay: 0s;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(139,92,246,0.2), transparent 70%);
  top: 40%; right: -10%;
  animation-duration: 18s;
  animation-delay: -7s;
}
.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(167,139,250,0.12), transparent 70%);
  bottom: -10%; left: 30%;
  animation-duration: 22s;
  animation-delay: -11s;
}

@keyframes orbFloat {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(40px, 60px) scale(1.08); }
}

/* Grain overlay */
.bg-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px;
  opacity: 1;
}

/* Topographic SVG lines */
.topo-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: url('assets/topo.svg');
  background-size: 900px;
  background-attachment: fixed;
}

/* =============================================
   NAV
   ============================================= */
.navbar {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  background: rgba(7,7,9,0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 100px;
  overflow: hidden;
}

.nav-logo {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--text);
  padding: 0.7rem 1.5rem;
  border-right: 1px solid var(--border);
}

.nav-links {
  display: flex;
  list-style: none;
  padding: 0 0.4rem;
}

.nav-links li a {
  display: block;
  padding: 0.55rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  border-radius: 100px;
  transition: all 0.2s;
}

.nav-links li a:hover {
  color: var(--text);
  background: var(--glass-hover);
}

.nav-links li a.active {
  color: var(--text);
  background: rgba(167,139,250,0.15);
}

/* =============================================
   PAGE WRAPPER
   ============================================= */
.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 5rem;
  position: relative;
}

/* Divider line at bottom of hero */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hi), transparent);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  background: rgba(167,139,250,0.1);
  border: 1px solid rgba(167,139,250,0.25);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2.5rem;
  animation: fadeUp 0.6s ease both;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-name {
  font-size: clamp(5rem, 16vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
  background: linear-gradient(135deg, #ffffff 0%, #a78bfa 50%, #6d28d9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.75rem;
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
  line-height: 1.75;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-tags {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: fadeUp 0.6s 0.25s ease both;
}

.tag {
  padding: 0.4rem 1rem;
  border-radius: 100px;
  background: var(--glass);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
  transition: all 0.2s;
}
.tag:hover { color: var(--text); border-color: var(--border-hi); }

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  animation: fadeUp 0.6s 0.3s ease both;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  font-family: var(--f);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  color: #fff;
  box-shadow: 0 4px 24px rgba(124,58,237,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124,58,237,0.55), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-ghost {
  background: var(--glass);
  backdrop-filter: blur(8px);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--border-hi);
  background: var(--glass-hover);
  transform: translateY(-2px);
}

/* =============================================
   SECTION
   ============================================= */
.section {
  padding: 6rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-tag::before {
  content: '';
  display: block;
  width: 20px; height: 1px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.section-desc {
  font-size: 1rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.75;
}

/* =============================================
   GLASS CARDS (generic)
   ============================================= */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 24px;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent, rgba(167,139,250,0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.glass-card:hover {
  background: var(--glass-hover);
  border-color: rgba(167,139,250,0.2);
  transform: translateY(-6px);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.5),
    0 0 0 1px rgba(167,139,250,0.08),
    0 0 40px rgba(124,58,237,0.08);
}

/* =============================================
   ABOUT PAGE LAYOUT
   ============================================= */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* Sticky profile */
.about-left {
  position: sticky;
  top: calc(24px + 52px + 24px);
}

.profile-card {
  padding: 2rem;
  text-align: center;
}

.profile-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #3730a3, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 0 0 4px rgba(167,139,250,0.1), 0 0 30px rgba(124,58,237,0.3);
}

.profile-name {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.profile-role {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.profile-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.profile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.2s;
}
.profile-link:hover {
  color: var(--text);
  border-color: var(--border-hi);
  background: var(--glass-hover);
}

/* Bio & info stack */
.info-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.info-block {
  padding: 2rem;
}

.info-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.info-block p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
}
.info-block p + p { margin-top: 0.85rem; }

.skill-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-chip {
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  background: rgba(167,139,250,0.08);
  border: 1px solid rgba(167,139,250,0.15);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.2s;
}
.skill-chip:hover {
  color: var(--accent);
  border-color: rgba(167,139,250,0.4);
}

/* Timeline */
.tl {
  position: relative;
  padding-left: 1.25rem;
}
.tl::before {
  content: '';
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}
.tl-item { position: relative; padding-bottom: 1.5rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: '';
  position: absolute;
  left: -1.5rem; top: 5px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 10px var(--accent);
}
.tl-date {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.tl-text {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}
.tl-text strong { color: var(--text); font-weight: 600; }

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat-card {
  padding: 1.5rem 1.25rem;
  text-align: center;
  border-radius: 20px;
  transition: all 0.3s;
}
.stat-card:hover { transform: translateY(-4px); }

.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat-lbl {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* =============================================
   PAGE HERO (non-home)
   ============================================= */
.page-hero {
  padding: 9rem 2rem 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.page-hero-title {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  margin: 0.75rem 0 1rem;
  background: linear-gradient(135deg, #fff 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
}

/* =============================================
   SERVERS PAGE
   ============================================= */
.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
}

.server-card {
  display: flex;
  flex-direction: column;
}

.sc-banner {
  width: 100%;
  height: 170px;
  position: relative;
  overflow: hidden;
  background: #0d0d12;
  border-radius: 20px 20px 0 0;
  flex-shrink: 0;
}

.sc-banner img.cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transition: opacity 0.3s, transform 0.4s;
}
.server-card:hover .sc-banner img.cover {
  opacity: 0.9;
  transform: scale(1.03);
}

.sc-banner img.contain {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 90px; height: 90px;
  object-fit: contain;
  border-radius: 18px;
  filter: drop-shadow(0 0 20px rgba(124,58,237,0.3));
}

.sc-banner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 70px;
  background: linear-gradient(to top, rgba(7,7,9,0.8), transparent);
  z-index: 1;
  pointer-events: none;
}

.sc-body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sc-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.sc-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  overflow: hidden;
}
.sc-icon img { width: 100%; height: 100%; object-fit: cover; }

.sc-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}

.sc-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-owner   { background: rgba(251,191,36,0.1); color: #fbbf24; border: 1px solid rgba(251,191,36,0.2); }
.badge-cfo     { background: rgba(167,139,250,0.1); color: var(--accent); border: 1px solid rgba(167,139,250,0.2); }
.badge-founder { background: rgba(52,211,153,0.1); color: #34d399; border: 1px solid rgba(52,211,153,0.2); }

.sc-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.25rem;
}

.sc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.sc-date {
  font-size: 0.75rem;
  color: var(--muted);
}

.sc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(167,139,250,0.08);
  border: 1px solid rgba(167,139,250,0.15);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  transition: all 0.2s;
}
.sc-link:hover {
  background: rgba(167,139,250,0.18);
  border-color: rgba(167,139,250,0.4);
}

/* =============================================
   PARTNER CARDS
   ============================================= */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.partner-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pc-av {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.pc-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.pc-handle {
  font-size: 0.78rem;
  color: var(--muted);
  font-family: monospace;
  margin-top: 0.2rem;
}
.pc-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}
.pc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
}

.pb {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}
.pb-friend { background: rgba(34,197,94,0.1); color: #22c55e; border: 1px solid rgba(34,197,94,0.2); }
.pb-collab { background: rgba(167,139,250,0.1); color: var(--accent); border: 1px solid rgba(167,139,250,0.2); }
.pb-ally   { background: rgba(251,191,36,0.1); color: #fbbf24; border: 1px solid rgba(251,191,36,0.2); }

.p-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(167,139,250,0.08);
  border: 1px solid rgba(167,139,250,0.15);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  transition: all 0.2s;
}
.p-link:hover {
  background: rgba(167,139,250,0.18);
  border-color: rgba(167,139,250,0.4);
}

/* =============================================
   COUNT BAR
   ============================================= */
.count-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1.5rem 2.5rem;
  border-radius: 20px;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.ci { text-align: center; }
.ci-num {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  display: block;
  line-height: 1;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ci-lbl {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ci-sep { width: 1px; height: 36px; background: var(--border); }

/* =============================================
   FOOTER
   ============================================= */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-left { position: static; }
  .servers-grid { grid-template-columns: 1fr; }
  .hero-name { font-size: 4rem; }
}

/* =============================================
   ADMIN SYSTEM
   ============================================= */

/* Trigger button — bottom right, barely visible */
#admin-trigger {
  position: fixed;
  bottom: 20px;
  right: 22px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.15);
  font-size: 11px;
  cursor: pointer;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
#admin-trigger:hover {
  background: rgba(167,139,250,0.12);
  border-color: rgba(167,139,250,0.3);
  color: rgba(167,139,250,0.9);
  box-shadow: 0 0 12px rgba(124,58,237,0.2);
}
#admin-trigger.admin-trigger-active {
  background: rgba(167,139,250,0.18);
  border-color: rgba(167,139,250,0.5);
  color: var(--accent);
  box-shadow: 0 0 16px rgba(124,58,237,0.3);
}

/* Login modal overlay */
#admin-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
}
#admin-overlay.admin-overlay-show { opacity: 1; }

.admin-modal {
  background: #0f0f14;
  border: 1px solid rgba(167,139,250,0.2);
  border-radius: 24px;
  padding: 2.5rem 2.5rem 2rem;
  width: min(420px, 92vw);
  text-align: center;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(167,139,250,0.08);
  transform: translateY(20px);
  transition: transform 0.25s;
}
#admin-overlay.admin-overlay-show .admin-modal {
  transform: translateY(0);
}

.admin-modal-logo {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
  opacity: 0.8;
}

.admin-modal-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

.admin-modal-sub {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.admin-input-wrap { margin-bottom: 1rem; }

.admin-input {
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--f);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.admin-input:focus { border-color: rgba(167,139,250,0.5); }
.admin-input::placeholder { color: var(--muted); }

/* Shake animation on wrong password */
@keyframes adminShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}
.admin-modal-shake { animation: adminShake 0.4s ease; }

/* Buttons */
.admin-btn-primary {
  display: block;
  width: 100%;
  padding: 0.8rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  color: #fff;
  font-family: var(--f);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  margin-bottom: 0.65rem;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(124,58,237,0.35);
}
.admin-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(124,58,237,0.5);
}

.admin-btn-ghost {
  display: block;
  width: 100%;
  padding: 0.8rem;
  border-radius: 12px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--f);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.admin-btn-ghost:hover {
  border-color: var(--border-hi);
  color: var(--text);
}

/* Edit mode — element highlight */
.editable-active {
  outline: 1.5px dashed rgba(167,139,250,0.4) !important;
  outline-offset: 3px;
  border-radius: 4px;
  cursor: text !important;
  transition: outline 0.15s;
}
.editable-active:hover {
  outline-color: rgba(167,139,250,0.9) !important;
  background: rgba(167,139,250,0.04);
}
.editable-active:focus {
  outline: 2px solid rgba(167,139,250,0.8) !important;
  background: rgba(167,139,250,0.06);
}

/* Floating toolbar */
#admin-toolbar {
  position: fixed;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: rgba(10,10,14,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(167,139,250,0.2);
  border-radius: 100px;
  z-index: 9000;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(167,139,250,0.05);
  transition: bottom 0.35s cubic-bezier(0.34,1.56,0.64,1);
  min-width: min(600px, 92vw);
}
#admin-toolbar.admin-tb-show { bottom: 20px; }

.admin-tb-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-tb-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(167,139,250,0.12);
  border: 1px solid rgba(167,139,250,0.2);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

.admin-tb-hint {
  font-size: 0.8rem;
  color: var(--muted);
}

.admin-tb-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-btn-sm {
  display: inline-flex !important;
  width: auto !important;
  padding: 0.45rem 1rem !important;
  border-radius: 100px !important;
  font-size: 0.82rem !important;
  margin-bottom: 0 !important;
}

/* Toast */
.admin-toast {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: rgba(10,10,14,0.95);
  border: 1px solid rgba(167,139,250,0.25);
  color: var(--text);
  font-family: var(--f);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.65rem 1.5rem;
  border-radius: 100px;
  z-index: 9999;
  opacity: 0;
  transition: all 0.25s;
  backdrop-filter: blur(12px);
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.admin-toast.admin-toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
