/**
 * ============================================================
 *  GUSTA DEV — DESIGN SYSTEM & STYLESHEET
 *  Aesthetic: Deep Space Dark, Glassmorphism, Electric Accents
 * ============================================================
 */

:root {
  --bg-main: #07070c;
  --bg-card: rgba(18, 18, 30, 0.72);
  --bg-card-hover: rgba(26, 26, 44, 0.85);
  --bg-inset: rgba(10, 10, 18, 0.65);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(129, 140, 248, 0.35);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: #818cf8;
  --primary-glow: rgba(99, 102, 241, 0.35);

  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-cyan: #06b6d4;

  --status-criacao: #f59e0b;
  --status-criacao-glow: rgba(245, 158, 11, 0.3);
  --status-concluido: #10b981;
  --status-concluido-glow: rgba(16, 185, 129, 0.3);
  --status-pausado: #64748b;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);
  --font-mono: 'JetBrains Mono', monospace;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 30px var(--primary-glow);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Proteção contra seleção de texto indevida se configurado */
body[data-protect="1"] {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
body[data-protect="1"] pre,
body[data-protect="1"] code,
body[data-protect="1"] input,
body[data-protect="1"] textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}

/* Orbs de Luz no Fundo */
.bg-orbs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bg-orbs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.22;
  animation: floatOrb 22s infinite ease-in-out alternate;
}
.bg-orbs span:nth-child(1) {
  top: -10%;
  left: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary), transparent 70%);
}
.bg-orbs span:nth-child(2) {
  top: 35%;
  right: -5%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--accent-purple), transparent 70%);
  animation-delay: -7s;
}
.bg-orbs span:nth-child(3) {
  bottom: -10%;
  left: 30%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-cyan), transparent 70%);
  animation-delay: -14s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.1); }
  100% { transform: translate(-30px, 40px) scale(0.95); }
}

/* Grid sutil no fundo */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 80%);
  pointer-events: none;
  z-index: 1;
}

/* Containers */
.container {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  position: relative;
  z-index: 2;
}

.container-fluid {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  z-index: 2;
}

/* Efeito Glassmorphic */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.glass-inset {
  background: var(--bg-inset);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 7, 12, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
  transition: all 0.3s ease;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 0 15px var(--primary-glow);
}
.brand-mark.lg {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 1.35rem;
  margin-bottom: 12px;
}
.brand-dot {
  background: linear-gradient(135deg, var(--primary-light), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.topnav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.topnav a:hover {
  color: var(--text-main);
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
.btn-sm {
  padding: 7px 14px;
  font-size: 0.85rem;
}
.btn-lg {
  padding: 13px 26px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}
.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  color: #fff;
  box-shadow: 0 4px 18px var(--primary-glow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover), var(--primary));
  box-shadow: 0 6px 24px var(--primary-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-color);
  color: var(--text-main);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-color-hover);
  color: #fff;
}

.btn-danger-ghost {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}
.btn-danger-ghost:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #fff;
}

.btn-secondary {
  background: #1e1e30;
  border-color: var(--border-color);
  color: var(--text-main);
}
.btn-secondary:hover {
  background: #2a2a44;
}

/* Profile Hero */
.profile {
  margin-top: 24px;
  margin-bottom: 32px;
}
.profile-banner {
  height: 190px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(135deg, #18182a, #0b0b14, #14142b);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-bottom: none;
}
.profile-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 25%, rgba(99, 102, 241, 0.3), transparent 60%);
  pointer-events: none;
}

.profile-card {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  padding: 0 32px 32px;
  position: relative;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #1f1f33;
  color: #fff;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-sm {
  width: 42px;
  height: 42px;
  font-size: 0.95rem;
}
.avatar-xl {
  width: 108px;
  height: 108px;
  font-size: 2.2rem;
  margin-top: -54px;
  margin-bottom: 18px;
  border: 4px solid var(--bg-main);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 5;
}
.avatar.ring {
  box-shadow: 0 0 0 2px var(--primary), 0 8px 24px rgba(0, 0, 0, 0.6);
}

.profile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}
.profile-name {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.verified {
  color: var(--primary-light);
  flex-shrink: 0;
}
.profile-handle {
  font-size: 0.95rem;
  margin-top: 2px;
}

.available {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-full);
  color: #34d399;
  font-size: 0.85rem;
  font-weight: 600;
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseDot 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}
@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.profile-bio {
  color: #cbd5e1;
  font-size: 1.05rem;
  max-width: 820px;
  margin-bottom: 18px;
}

.profile-extra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.social-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.2s ease;
}
.social-btn:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--primary-light);
  color: #fff;
  transform: translateY(-2px);
}
.social-row.small .social-btn {
  width: 36px;
  height: 36px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Layout Geral: Feed + Sidebar */
.layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  margin-bottom: 60px;
  align-items: start;
}

.feed-toolbar {
  padding: 14px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tab {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}
.tab.active {
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  color: #fff;
  box-shadow: 0 2px 10px var(--primary-glow);
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-inset);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  color: var(--text-muted);
  transition: border-color 0.2s ease;
}
.search:focus-within {
  border-color: var(--primary-light);
  color: var(--primary-light);
}
.search input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 0.88rem;
  width: 170px;
}
.search input::placeholder {
  color: var(--text-dim);
}

.filter-info {
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-info .link {
  color: var(--primary-light);
  text-decoration: none;
  margin-left: auto;
}
.filter-info .link:hover {
  text-decoration: underline;
}

/* Post Cards (Social Feed) */
.post {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.post:hover {
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(99, 102, 241, 0.1);
}

.post-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.post-meta {
  flex: 1;
}
.post-author {
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.post-time {
  font-size: 0.8rem;
}

.chip-pin {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-full);
  color: var(--primary-light);
  font-size: 0.75rem;
  font-weight: 600;
}

.post-body {
  text-decoration: none;
  color: inherit;
  display: block;
}
.post-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 8px;
  transition: color 0.2s ease;
}
.post:hover .post-title {
  color: var(--primary-light);
}
.post-summary {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 16px;
}

/* Status e Barra de Progresso */
.status-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  background: var(--bg-inset);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}
.status-row.big {
  padding: 12px 18px;
  margin-top: 14px;
  margin-bottom: 20px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.status-em_criacao {
  color: var(--status-criacao);
}
.status-em_criacao .status-dot {
  background: var(--status-criacao);
  box-shadow: 0 0 8px var(--status-criacao);
  animation: pulseDot 2s infinite;
}
.status-concluido {
  color: var(--status-concluido);
}
.status-concluido .status-dot {
  background: var(--status-concluido);
  box-shadow: 0 0 8px var(--status-concluido);
}
.status-pausado {
  color: var(--status-pausado);
}
.status-pausado .status-dot {
  background: var(--status-pausado);
}

.progress {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}
.progress.small {
  height: 6px;
}
.progress-bar {
  height: 100%;
  width: var(--p, 0%);
  background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px var(--primary-glow);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Grid de Mídias nos Cards */
.media-grid {
  display: grid;
  gap: 8px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  max-height: 440px;
  background: #000;
  text-decoration: none;
}
.media-1 { grid-template-columns: 1fr; }
.media-2 { grid-template-columns: 1fr 1fr; }
.media-3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.media-3 .media-cell:first-child { grid-row: span 2; }
.media-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }

.media-cell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0f0f18;
}
.media-1 .media-cell {
  aspect-ratio: 16 / 9;
}
.media-cell img,
.media-cell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.post:hover .media-cell img {
  transform: scale(1.03);
}

.play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, background 0.2s ease;
}
.media-cell:hover .play-badge {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--primary);
}

.embed-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-dim);
  background: #12121d;
}

.media-more {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
}

/* Tags */
.tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--primary-light);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}
.tag:hover,
.tag.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--primary-light);
  color: #fff;
}
.tag small {
  opacity: 0.6;
}

/* Ações dos Posts */
.post-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}
.action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.15s ease;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
}
.action:hover {
  color: var(--text-main);
}
.action.static {
  cursor: default;
}
.action.static:hover {
  color: var(--text-muted);
}

.like-btn:hover {
  color: #f43f5e;
}
.like-btn.is-liked {
  color: #f43f5e;
}
.like-btn.is-liked svg {
  fill: #f43f5e;
  stroke: #f43f5e;
}
.heart-burst svg {
  animation: heartPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.post-open {
  margin-left: auto;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.widget {
  padding: 22px;
}
.widget-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.building-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.building-list li a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.92rem;
  display: block;
  margin-bottom: 4px;
  transition: color 0.2s ease;
}
.building-list li a:hover {
  color: var(--primary-light);
}
.small-text {
  font-size: 0.78rem;
}

.widget-cta {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
  border-color: rgba(99, 102, 241, 0.3);
}

/* Paginação */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}
.page:hover {
  color: #fff;
  border-color: var(--primary-light);
}
.page.active {
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px var(--primary-glow);
}

/* Página de Detalhes do Projeto */
.project {
  margin-top: 20px;
  margin-bottom: 60px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 20px;
  transition: color 0.2s ease, transform 0.2s ease;
}
.back-link:hover {
  color: #fff;
  transform: translateX(-4px);
}

.project-hero {
  padding: 32px;
  margin-bottom: 32px;
}
.project-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 12px;
}
.project-summary {
  font-size: 1.15rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 20px;
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.section {
  margin-bottom: 36px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

/* Galeria Completa */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.gallery-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  padding: 0;
  cursor: pointer;
  aspect-ratio: 16 / 10;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.gallery-item:hover {
  transform: translateY(-3px);
  border-color: var(--primary-light);
}
.gallery-item.featured {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Vídeos */
.videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
}
.video-wrap {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #000;
}
.video-wrap video,
.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Descrição Prose */
.prose {
  padding: 28px 32px;
}
.description {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #cbd5e1;
}

/* Snippets de Código */
.code-block {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
  background: #0f0f18;
}
.code-head {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background: #141424;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
}
.dots {
  display: flex;
  gap: 6px;
  margin-right: 14px;
}
.dots i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #334155;
}
.dots i:nth-child(1) { background: #ef4444; }
.dots i:nth-child(2) { background: #f59e0b; }
.dots i:nth-child(3) { background: #10b981; }
.code-title {
  font-weight: 600;
  color: #e2e8f0;
}
.code-lang {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--primary-light);
  background: rgba(99, 102, 241, 0.12);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-right: 12px;
}

.btn-copy-code {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-copy-code:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.btn-copy-code.copied {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #34d399;
}

.code-block pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Projetos Relacionados */
.related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.related-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.related-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-light);
}
.related-thumb {
  width: 90px;
  height: 70px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
}
.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.related-body h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #fff;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 8, 0.94);
  backdrop-filter: blur(20px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox.active {
  opacity: 1;
}
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox-close {
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
}
.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }
.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--primary);
  transform: translateY(-50%) scale(1.08);
}
.lightbox-close:hover {
  transform: scale(1.08);
}

/* Toast Notificações */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: #1c1c30;
  border: 1px solid var(--primary-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px var(--primary-glow);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  z-index: 200;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Shield de Proteção DevTools */
.shield {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 7, 12, 0.98);
  backdrop-filter: blur(25px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.shield.active {
  display: flex;
}
.shield-box {
  background: #141424;
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 460px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
}
.shield-box svg {
  color: #ef4444;
  margin-bottom: 16px;
}
.shield-box h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.shield-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Footer Público */
.footer {
  border-top: 1px solid var(--border-color);
  background: rgba(10, 10, 18, 0.6);
  padding: 60px 0 30px;
  position: relative;
  z-index: 2;
}
.footer-inner {
  text-align: center;
}
.footer-cta {
  max-width: 580px;
  margin: 0 auto 40px;
}
.footer-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.footer-cta .social-row {
  justify-content: center;
  margin-top: 24px;
}
.footer-copy {
  color: var(--text-dim);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

/* 404 */
.not-found {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 0;
}
.not-found-card {
  padding: 50px 40px;
  max-width: 540px;
}
.code-badge {
  font-family: var(--font-mono);
  font-size: 4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.not-found h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.not-found p {
  color: var(--text-muted);
  margin-bottom: 24px;
}
.not-found-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Animação reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   ADMIN AREA STYLES
   ============================================================ */

.admin-body {
  background: #09090f;
}
.admin-topbar {
  background: #11111d;
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.admin-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.badge-admin {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: var(--primary-light);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}

.admin-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
.admin-nav a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.admin-nav a.active {
  background: var(--primary);
  color: #fff;
}

.admin-user-menu {
  display: flex;
  align-items: center;
  gap: 14px;
}
.user-greeting {
  font-size: 0.88rem;
  color: var(--text-muted);
}
.user-greeting strong {
  color: #fff;
}

.admin-main {
  padding-top: 32px;
  padding-bottom: 60px;
  min-height: calc(100vh - 160px);
}

.admin-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.admin-page-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: #fff;
}

/* Stats Cards Admin */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}
.stat-card {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-icon.stat-warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.stat-icon.stat-success { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.stat-icon.stat-danger  { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.stat-icon.stat-info    { background: rgba(6, 182, 212, 0.15); color: #38bdf8; }

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.admin-card {
  padding: 24px;
}
.card-subtitle {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Tabelas Admin */
.table-responsive {
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.admin-table th {
  padding: 12px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-color);
}
.admin-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
  font-size: 0.9rem;
}
.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.table-thumb {
  width: 56px;
  height: 42px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #11111d;
  display: flex;
  align-items: center;
  justify-content: center;
}
.table-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.table-thumb-ph {
  color: var(--text-dim);
}

.project-table-title {
  color: #fff;
  font-size: 0.95rem;
}
.badge-pin {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-light);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  margin-left: 6px;
}

.table-counts {
  display: flex;
  align-items: center;
  gap: 12px;
}
.table-counts span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-btn {
  border: none;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.badge-btn:hover {
  opacity: 0.85;
}
.badge-published {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.badge-draft {
  background: rgba(100, 116, 139, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.3);
}

.table-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.btn-icon.active-pin {
  background: rgba(99, 102, 241, 0.2);
  color: var(--primary-light);
  border-color: var(--primary);
}
.btn-icon.edit-icon:hover {
  color: var(--primary-light);
  border-color: var(--primary-light);
}
.btn-icon.delete-icon:hover {
  color: #ef4444;
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}

/* Formulários Admin */
.project-form-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: #e2e8f0;
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-inset);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
.form-control-lg {
  font-size: 1.15rem;
  padding: 12px 16px;
  font-weight: 600;
}
.form-control-sm {
  padding: 6px 10px;
  font-size: 0.85rem;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-dim);
  pointer-events: none;
}
.input-with-icon .form-control {
  padding-left: 42px;
}

.input-with-prefix {
  display: flex;
  align-items: center;
}
.input-prefix {
  padding: 10px 14px;
  background: #141424;
  border: 1px solid var(--border-color);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.input-with-prefix .form-control {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.form-range {
  width: 100%;
  accent-color: var(--primary);
  cursor: pointer;
}

.checkbox-group {
  margin-bottom: 14px;
}
.custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  color: #cbd5e1;
}
.custom-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  margin-top: 2px;
  cursor: pointer;
}

/* Snippets de Código no Editor */
.code-snippet-item {
  padding: 14px;
  position: relative;
}
.code-editor-area {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: #090912;
}

/* Mídias no Admin */
.media-previews-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}
.media-preview-card {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #000;
}
.media-preview-card img,
.media-preview-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-type-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(0, 0, 0, 0.7);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
}
.btn-delete-media {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(239, 68, 68, 0.85);
  border: none;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.btn-delete-media:hover {
  transform: scale(1.15);
}

.cover-preview {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  aspect-ratio: 16 / 9;
  background: #000;
}
.cover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Alertas e Flash messages */
.alert {
  padding: 12px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 0.92rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}
.alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}
.alert-warning {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}
.alert-info {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: var(--primary-light);
}

/* Tela de Login */
.login-body {
  background: #08080f;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-container {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 2;
}
.login-card {
  padding: 36px 32px;
}
.login-header {
  text-align: center;
  margin-bottom: 28px;
}
.login-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.login-footer {
  text-align: center;
  margin-top: 24px;
}
.link-subtle {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}
.link-subtle:hover {
  color: var(--text-main);
}

.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.admin-footer {
  border-top: 1px solid var(--border-color);
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
}

/* Helpers */
.muted { color: var(--text-muted); }
.small { font-size: 0.85rem; }
.font-mono { font-family: var(--font-mono); }
.font-sans { font-family: var(--font-sans); }
.text-danger { color: #f87171; }
.text-primary { color: var(--primary-light); }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 4px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 14px !important; }
.mb-4 { margin-bottom: 24px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 14px !important; }
.mt-4 { margin-top: 24px !important; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }

/* Responsividade */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .project-form-grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    order: 2;
  }
  .gallery-item.featured {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .topbar-inner {
    flex-wrap: wrap;
    gap: 12px;
  }
  .topnav {
    gap: 14px;
    font-size: 0.88rem;
  }
  .profile-card {
    padding: 0 18px 24px;
  }
  .profile-name {
    font-size: 1.45rem;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .post {
    padding: 18px;
  }
  .post-title {
    font-size: 1.15rem;
  }
  .project-title {
    font-size: 1.6rem;
  }
  .grid-2-col {
    grid-template-columns: 1fr;
  }
  .admin-topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
