@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
  --background: #080714;
  --foreground: #ffffff;
  --border: rgba(255,255,255,0.08);
  --card: #0d0c1f;
  --primary: #a347e8;       /* neon purple */
  --primary-foreground: #ffffff;
  --secondary: #33d4f0;     /* neon blue */
  --accent: #e84fb0;        /* neon pink */
  --muted-foreground: #a7a3c0;
  --destructive: #ef4444;
  --radius: 0.5rem;
  --font-sans: 'Outfit', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* ===== Reusable design tokens ===== */
.glass-card {
  background: rgba(13,12,31,0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.neon-glow { text-shadow: 0 0 10px rgba(163,71,232,0.5), 0 0 20px rgba(163,71,232,0.3); }

.neon-border {
  box-shadow: 0 0 10px rgba(163,71,232,0.2), inset 0 0 10px rgba(163,71,232,0.1);
  border-color: rgba(163,71,232,0.5);
}

.neon-text-gradient {
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  border-radius: 999px;
  border: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 0 20px rgba(163,71,232,0.5);
}
.btn-primary:hover { background: #8f33d6; box-shadow: 0 0 30px rgba(163,71,232,0.7); }

.btn-outline {
  background: transparent;
  border: 1px solid rgba(163,71,232,0.5);
  color: var(--primary);
}
.btn-outline:hover { background: rgba(163,71,232,0.1); }

.btn-secondary-outline {
  background: transparent;
  border: 1px solid rgba(51,212,240,0.5);
  color: var(--secondary);
}
.btn-secondary-outline:hover { background: rgba(51,212,240,0.1); }

.btn-lg { height: 3.5rem; padding: 0 2rem; font-size: 1.125rem; }
.btn-md { height: 3rem; padding: 0 1.5rem; }
.btn-block { width: 100%; }

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 5rem;
  background: rgba(8,7,20,0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  z-index: 50;
}
.navbar .container { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 0.75rem;
  background: rgba(163,71,232,0.2); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.brand-icon img { width: 100%; height: 100%; object-fit: contain; border-radius: 0.75rem; }
.brand-name { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }

.nav-links { display: none; align-items: center; gap: 2rem; }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground); transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }

.menu-toggle { display: block; background: none; border: none; color: var(--foreground); }

.mobile-menu {
  position: fixed; inset: 5rem 0 0 0;
  background: rgba(8,7,20,0.97);
  backdrop-filter: blur(20px);
  z-index: 40;
  display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1.5rem; font-weight: 700; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .menu-toggle { display: none; }
}

/* ===== Hero ===== */
.hero {
  padding: 8rem 1rem 5rem;
  min-height: 90vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden;
}
.hero-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 800px; height: 800px; background: rgba(163,71,232,0.1);
  border-radius: 50%; filter: blur(120px); pointer-events: none;
}
.hero h1 { font-size: 3rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 1.5rem; position: relative; z-index: 1; }
.hero p { font-size: 1.25rem; color: var(--muted-foreground); max-width: 42rem; margin: 0 auto 2.5rem; font-weight: 300; position: relative; z-index: 1; }
.hero-actions { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; position: relative; z-index: 1; }

@media (min-width: 640px) { .hero-actions { flex-direction: row; } }
@media (min-width: 768px) { .hero { padding: 12rem 1rem 8rem; } .hero h1 { font-size: 5rem; } .hero p { font-size: 1.5rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 6rem; } }

/* ===== Sections ===== */
section { position: relative; }
.section-bordered { padding: 5rem 0; background: rgba(13,12,31,0.3); border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); }
.section-padded { padding: 6rem 0; }
.section-head { text-align: center; margin-bottom: 4rem; }
.section-head h2 { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
.section-head p { color: var(--muted-foreground); max-width: 42rem; margin: 0 auto; }
@media (min-width: 768px) { .section-head h2 { font-size: 3rem; } }

/* ===== About ===== */
.about-grid { display: flex; flex-direction: column; align-items: center; gap: 3rem; }
.about-text { flex: 1; }
.about-text h2 { font-size: 2rem; font-weight: 700; margin-bottom: 1.5rem; }
.about-text p { font-size: 1.125rem; color: var(--muted-foreground); line-height: 1.7; }
.about-media { flex: 1; width: 100%; max-width: 36rem; }
.about-frame {
  position: relative; aspect-ratio: 16/9; border-radius: 1rem; overflow: hidden;
  padding: 0.5rem;
}
.about-frame .placeholder {
  width: 100%; height: 100%; background: rgba(8,7,20,0.8); border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center; color: rgba(163,71,232,0.2);
}
.about-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 0.75rem; }
@media (min-width: 1024px) { .about-grid { flex-direction: row; gap: 6rem; } }

/* ===== Features ===== */
.features-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.feature-card { padding: 2rem; border-radius: 1rem; transition: transform 0.3s; }
.feature-card:hover { transform: translateY(-8px); }
.feature-icon {
  width: 3.5rem; height: 3.5rem; border-radius: 0.75rem;
  background: rgba(163,71,232,0.1); color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem;
}
.feature-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }
.feature-card p { color: var(--muted-foreground); }
@media (min-width: 768px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: 1fr 1fr 1fr; } }

/* ===== Stats ===== */
.stats-section { padding: 5rem 0; background: rgba(163,71,232,0.05); border-top: 1px solid rgba(163,71,232,0.2); border-bottom: 1px solid rgba(163,71,232,0.2); }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; text-align: center; }
.stat-icon { display: flex; justify-content: center; margin-bottom: 1rem; }
.stat-value { font-family: var(--font-mono); font-size: 2.5rem; font-weight: 900; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.875rem; color: var(--muted-foreground); font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4,1fr); } .stat-value { font-size: 3.75rem; } }

/* ===== Community Links ===== */
.links-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: 64rem; margin: 0 auto; }
.link-card {
  padding: 1.5rem; border-radius: 1rem; display: flex; align-items: center; justify-content: space-between;
  transition: all 0.2s;
}
.link-card:hover { transform: scale(1.03); border-color: rgba(163,71,232,0.5); }
.link-card-left { display: flex; align-items: center; gap: 1rem; }
.link-icon { width: 3rem; height: 3rem; border-radius: 50%; background: rgba(8,7,20,0.5); display: flex; align-items: center; justify-content: center; }
.link-card span { font-weight: 600; font-size: 1.125rem; }
@media (min-width: 640px) { .links-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .links-grid { grid-template-columns: 1fr 1fr 1fr; } }

/* ===== Gallery ===== */
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.gallery-item { aspect-ratio: 1/1; border-radius: 0.75rem; overflow: hidden; padding: 0.25rem; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 0.5rem; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.1); }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4,1fr); } }

/* ===== Contact / Forms ===== */
.contact-box { padding: 2rem; border-radius: 1.5rem; max-width: 48rem; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .form-row { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.field label { font-size: 0.875rem; font-weight: 500; }
.field input, .field textarea, .field select {
  background: rgba(8,7,20,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  color: var(--foreground);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: rgba(163,71,232,0.5); }
.field textarea { min-height: 150px; resize: none; }
.field-error { font-size: 0.8rem; color: var(--destructive); }

/* ===== Footer ===== */
footer { background: var(--card); border-top: 1px solid rgba(255,255,255,0.05); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-grid h4 { font-weight: 700; margin-bottom: 1.5rem; font-size: 1.125rem; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-grid ul a { color: var(--muted-foreground); transition: color 0.2s; }
.footer-grid ul a:hover { color: var(--primary); }
.footer-about p { color: var(--muted-foreground); max-width: 24rem; margin-top: 1.5rem; }
.footer-social { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-social a {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--background); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.footer-social a:hover { background: var(--primary); border-color: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05); padding-top: 2rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  font-size: 0.875rem; color: var(--muted-foreground); text-align: center;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3,1fr); } }

/* ===== Toast ===== */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 100; display: flex; flex-direction: column; gap: 0.75rem; }
.toast {
  min-width: 280px; padding: 1rem 1.25rem; border-radius: 0.75rem;
  background: var(--card); border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: toast-in 0.3s ease;
}
.toast strong { display: block; margin-bottom: 0.25rem; }
.toast.success { border-color: rgba(34,197,94,0.4); }
.toast.error { border-color: rgba(239,68,68,0.4); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ===== Auth / Login page ===== */
.auth-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem;
  position: relative; overflow: hidden;
}
.auth-glow-1 { position: absolute; top: 25%; left: -8rem; width: 24rem; height: 24rem; background: rgba(163,71,232,0.2); border-radius: 50%; filter: blur(100px); }
.auth-glow-2 { position: absolute; bottom: 25%; right: -8rem; width: 24rem; height: 24rem; background: rgba(51,212,240,0.2); border-radius: 50%; filter: blur(100px); }
.auth-card { width: 100%; max-width: 28rem; padding: 2rem; border-radius: 1.5rem; position: relative; z-index: 10; }
.auth-head { display: flex; flex-direction: column; align-items: center; margin-bottom: 2rem; text-align: center; }
.auth-icon {
  width: 4rem; height: 4rem; border-radius: 0.75rem; background: rgba(163,71,232,0.2);
  color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.auth-head h1 { font-size: 1.875rem; font-weight: 700; margin-bottom: 0.5rem; }
.auth-head p { color: var(--muted-foreground); font-size: 0.875rem; }

/* ===== Dashboard ===== */
.dash-layout { display: flex; min-height: 100vh; }
.dash-sidebar {
  width: 16rem; background: var(--card); border-right: 1px solid rgba(255,255,255,0.05);
  display: none; flex-direction: column; padding: 1.5rem 1rem; position: fixed; top: 0; bottom: 0; left: 0;
}
.dash-sidebar.open { display: flex; z-index: 60; }
.dash-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 2rem; padding: 0 0.5rem; }
.dash-nav { display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.dash-nav button {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem;
  border-radius: 0.5rem; background: none; border: none; color: var(--muted-foreground);
  font-size: 0.95rem; text-align: right; transition: all 0.2s;
}
.dash-nav button:hover { background: rgba(255,255,255,0.05); color: var(--foreground); }
.dash-nav button.active { background: rgba(163,71,232,0.15); color: var(--primary); }
.dash-logout { margin-top: auto; }
.dash-main { flex: 1; padding: 1.5rem; }
.dash-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.dash-topbar h1 { font-size: 1.5rem; font-weight: 700; }
.dash-panel { display: none; }
.dash-panel.active { display: block; }
@media (min-width: 1024px) {
  .dash-sidebar { display: flex; position: sticky; }
  .dash-main { padding: 2rem 3rem; }
}

.table-wrap { overflow-x: auto; border-radius: 0.75rem; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.875rem 1rem; text-align: right; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.9rem; }
th { color: var(--muted-foreground); font-weight: 600; }
tr.unread { background: rgba(163,71,232,0.06); }
.badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.badge-unread { background: rgba(163,71,232,0.2); color: var(--primary); }
.badge-read { background: rgba(255,255,255,0.08); color: var(--muted-foreground); }
.row-actions { display: flex; gap: 0.5rem; justify-content: flex-end; }
.icon-btn { background: none; border: 1px solid rgba(255,255,255,0.1); border-radius: 0.5rem; padding: 0.4rem 0.6rem; color: var(--muted-foreground); }
.icon-btn:hover { color: var(--primary); border-color: rgba(163,71,232,0.5); }

.card-block { padding: 1.5rem; border-radius: 1rem; margin-bottom: 1.5rem; }
.card-block h3 { margin-bottom: 1rem; font-size: 1.1rem; font-weight: 700; }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted-foreground); }

.loading { text-align: center; padding: 3rem; color: var(--muted-foreground); }

.hidden { display: none !important; }