


:root {
  --vz-bg: #080b14;
  --vz-surface: rgba(255,255,255,0.02);
  --vz-surface-hover: rgba(255,255,255,0.04);
  --vz-border: rgba(255,255,255,0.05);
  --vz-border-hover: rgba(255,255,255,0.08);
  --vz-text: #eef2f8;
  --vz-text-secondary: rgba(255,255,255,0.5);
  --vz-text-tertiary: rgba(255,255,255,0.3);
  --vz-brand-from: #a78bfa;
  --vz-brand-to: #38bdf8;
  --vz-primary: #7c3aed;
  --vz-primary-gradient: linear-gradient(135deg, #7c3aed, #4f46e5);
  --vz-success: #10b981;
  --vz-danger: #ef4444;
  --vz-radius-sm: 12px;
  --vz-radius: 20px;
  --vz-radius-lg: 24px;
  --vz-radius-xl: 32px;
  --vz-radius-pill: 60px;
}


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


body {
  background: var(--vz-bg);
  background-image:
    radial-gradient(ellipse at 20% 30%, rgba(88,60,250,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(0,200,255,0.04) 0%, transparent 60%);
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--vz-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}


::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); border-radius: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }


.header {
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  padding: 0.8rem 1.5rem;
}
.nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}
.nav a {
  text-decoration: none;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.4rem 1.2rem;
  border-radius: var(--vz-radius-pill);
  transition: all 0.2s;
  border: 1px solid transparent;
}
.nav > a:not(.brand):hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.06);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.4rem;
  text-decoration: none;
  color: inherit;
  margin-right: 1rem;
  flex-shrink: 0;
}
.brand:hover {
  background: none !important;
  border-color: transparent !important;
}
.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
}
.brand-text {
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--vz-brand-from), var(--vz-brand-to));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}
.user-menu {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.user-menu a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}
.user-menu a:hover { color: #fff; }


.shield-desktop-only { display: inline-block; }
@media (max-width: 640px) {
  .shield-desktop-only { display: none !important; }
}


.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.2rem;
  line-height: 1;
  transition: color 0.2s;
}
.nav-toggle:hover { color: #fff; }


.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 998;
}
.nav-overlay.show { display: block; }

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: #0d0f1a;
  border-left: 1px solid rgba(255,255,255,0.04);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer .drawer-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.2rem;
  margin-bottom: 0.5rem;
}
.nav-drawer .drawer-close:hover { color: #fff; }
.nav-drawer .drawer-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.nav-drawer a {
  display: block;
  padding: 0.7rem 1rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 12px;
  transition: all 0.2s;
}
.nav-drawer a:hover {
  color: #fff;
  background: rgba(255,255,255,0.04);
}
.nav-drawer a.active {
  color: #a78bfa;
  background: rgba(167,139,250,0.06);
}
.nav-drawer .drawer-user {
  padding: 1rem;
  border-top: 1px solid rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.btn-login {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--vz-primary-gradient);
  border: none;
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: var(--vz-radius-pill);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.25s;
  text-decoration: none;
}
.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(124,58,237,0.3);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--vz-primary-gradient);
  border: none;
  color: #fff;
  padding: 0.6rem 1.8rem;
  border-radius: var(--vz-radius-pill);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.25s;
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(124,58,237,0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  padding: 0.6rem 1.8rem;
  border-radius: var(--vz-radius-pill);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.25s;
  text-decoration: none;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: none;
  color: #fff;
  padding: 0.4rem 1.2rem;
  border-radius: var(--vz-radius-pill);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.25s;
}
.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(239,68,68,0.3);
}


.main-content {
  flex: 1;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  width: 100%;
}


.section-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--vz-text);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}


.post-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--vz-radius);
  padding: 1.2rem;
  margin-bottom: 1.2rem;
  transition: all 0.3s cubic-bezier(0.2,0,0,1);
  cursor: pointer;
}
.post-card:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.post-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--vz-text);
  margin-bottom: 0.5rem;
  text-decoration: none;
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.post-title:hover { color: var(--vz-brand-from); }

.post-meta {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.8rem;
}

.post-summary,
.post-preview {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.post-date {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.3);
}


input, textarea, select {
  width: 100%;
  padding: 0.7rem 1.2rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  margin-bottom: 0.8rem;
  outline: none;
  transition: all 0.25s;
}
input:focus, textarea:focus, select:focus {
  border-color: rgba(167,139,250,0.3);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 0 4px rgba(167,139,250,0.04);
}
textarea { min-height: 200px; resize: vertical; }
select option { background: #12152a; }


.admin-actions { margin-top: 0.8rem; display: flex; gap: 0.5rem; }
.admin-actions button {
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border: none;
  border-radius: var(--vz-radius-pill);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}
.btn-edit {
  background: rgba(167,139,250,0.08);
  color: #a78bfa;
}
.btn-edit:hover { background: rgba(167,139,250,0.15); }
.btn-delete {
  background: rgba(239,68,68,0.08);
  color: #f87171;
}
.btn-delete:hover { background: rgba(239,68,68,0.15); }


.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal {
  background: #11142a;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--vz-radius-xl);
  padding: 2rem;
  max-width: 480px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6);
  animation: modalIn 0.3s ease;
}
.modal-content {
  background: #11142a;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--vz-radius-xl);
  padding: 1.5rem;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6);
}
.modal-content input,
.modal-content textarea {
  width: 100%;
  padding: 0.6rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  color: #fff;
  font-family: inherit;
  margin-top: 0.3rem;
  box-sizing: border-box;
  outline: none;
}
.modal-content label { display: block; margin-top: 0.8rem; font-weight: 500; color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.modal-content textarea { min-height: 120px; }

@keyframes modalIn {
  from { transform: scale(0.9) translateY(20px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}


.footer {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.03);
  padding: 1rem;
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.3);
}
.footer-links a {
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--vz-text); }


.hidden { display: none !important; }


.tag {
  display: inline-block;
  padding: 0.25rem 1.2rem;
  border-radius: var(--vz-radius-pill);
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.6);
}
.tag-purple { background: rgba(167,139,250,0.08); border-color: rgba(167,139,250,0.12); color: #a78bfa; }
.tag-blue   { background: rgba(56,189,248,0.08); border-color: rgba(56,189,248,0.12); color: #38bdf8; }
.tag-green  { background: rgba(52,211,153,0.08); border-color: rgba(52,211,153,0.12); color: #34d399; }
.tag-orange { background: rgba(251,146,60,0.08); border-color: rgba(251,146,60,0.12); color: #fb923c; }


details {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding: 0.8rem 0;
}
details:last-child { border-bottom: none; }
summary {
  cursor: pointer;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  outline: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  font-size: 1.2rem;
  color: rgba(255,255,255,0.2);
  transition: transform 0.3s;
}
details[open] summary::after { content: '−'; }
details .content {
  padding-top: 0.8rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.95rem;
  line-height: 1.6;
}


[data-tooltip] {
  position: relative;
  cursor: default;
  display: inline-block;
}
[data-tooltip]:before {
  content: attr(data-tooltip);
  position: absolute;
  padding: 0.3rem 0.9rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(20,24,40,0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.05);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
}
[data-tooltip]:hover:before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }


@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav > a:not(.brand) { display: none; }
  .nav-toggle { display: inline-block; }
  .header .nav {
    gap: 0.5rem;
  }
  .header-right {
    margin-left: auto;
  }
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .main-content {
    margin: 1rem auto;
  }
  .modal {
    padding: 1.5rem;
  }
}
