/* ==========================================================================
   MATI MAZZAGATTI - ESTILOS OFICIALES DE MARCA
   Fuentes: Anton (Títulos) & IBM Plex Mono (Bloques de texto)
   Colores: #0F1E34 (Oscuro), #E0D7C7 (Beige), #F4BE44 (Amarillo), #E65348 (Rojo)
   ========================================================================== */

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

:root {
  /* Paleta de Colores Extraída de Marca */
  --bg-dark: #0F1E34;
  --bg-darker: #091220;
  --text-beige: #E0D7C7;
  --text-muted: #A39B8B;
  --yellow-accent: #F4BE44;
  --red-accent: #E65348;
  
  /* Tamaños y Espaciados Personalizables */
  --btn-padding-y: 0.85rem;
  --btn-padding-x: 1.8rem;
  --btn-font-size: 1.2rem;
  --title-scale: 4.5rem;
  --section-padding: 5rem;
  
  /* Superficies y Bordes */
  --card-bg: rgba(224, 215, 199, 0.04);
  --card-border: rgba(224, 215, 199, 0.15);
  --card-hover-border: #F4BE44;
  
  /* Fuentes de Marca Directas */
  --font-heading: 'Anton', sans-serif;
  --font-body: 'IBM Plex Mono', monospace;

  /* Animaciones y Transiciones */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-glow: 0 10px 30px rgba(244, 190, 68, 0.2);
}

/* Reset y Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-beige);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Tipografía Anton para Títulos */
h1, h2, h3, h4, .font-anton, .logo-title, .section-title, .hero-title, .badge-label {
  font-family: var(--font-heading);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 400;
}

a {
  color: var(--text-beige);
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Contenedor General */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header & Navegación */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(15, 30, 52, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  padding: 1rem 0;
  transition: var(--transition-fast);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-avatar {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid var(--yellow-accent);
}

.brand-name {
  font-size: 1.6rem;
  color: var(--yellow-accent);
  line-height: 1;
}

.brand-tag {
  font-size: 0.75rem;
  color: var(--red-accent);
  font-family: var(--font-body);
  font-weight: 600;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--yellow-accent);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--yellow-accent);
  transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-beige);
  font-size: 1.8rem;
  cursor: pointer;
}

/* Section Styling */
section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-header {
  margin-bottom: 3rem;
  text-align: left;
}

.section-tag {
  display: inline-block;
  background-color: var(--red-accent);
  color: #FFF;
  font-family: var(--font-heading);
  font-size: 1rem;
  padding: 0.2rem 0.8rem;
  transform: rotate(-2deg);
  margin-bottom: 0.75rem;
  border-radius: 4px;
}

.section-title {
  font-size: 3rem;
  color: var(--text-beige);
  line-height: 1.1;
}

.section-title span {
  color: var(--yellow-accent);
}

/* HERO SECTION */
.hero-section {
  padding-top: 9rem;
  padding-bottom: var(--section-padding);
  background: radial-gradient(circle at 80% 20%, rgba(244, 190, 68, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(230, 83, 72, 0.08) 0%, transparent 50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(244, 190, 68, 0.12);
  border: 1px solid var(--yellow-accent);
  color: var(--yellow-accent);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: var(--title-scale);
  line-height: 1;
  color: var(--text-beige);
  margin-bottom: 1.5rem;
}

.hero-title .highlight-yellow {
  color: var(--yellow-accent);
  display: block;
}

.hero-title .highlight-red {
  color: var(--red-accent);
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-beige);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: var(--btn-padding-y) var(--btn-padding-x);
  font-family: var(--font-heading);
  font-size: var(--btn-font-size);
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
  text-transform: uppercase;
}

.btn-primary {
  background-color: var(--yellow-accent);
  color: var(--bg-darker);
  box-shadow: 0 4px 15px rgba(244, 190, 68, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-beige);
  border: 1.5px solid var(--card-border);
}

.btn-secondary:hover {
  border-color: var(--yellow-accent);
  color: var(--yellow-accent);
  transform: translateY(-2px);
}

/* Card del perfil en Hero */
.profile-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--yellow-accent), var(--red-accent));
}

.profile-image-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 1px solid var(--card-border);
  position: relative;
}

.profile-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.stat-item {
  background: rgba(15, 30, 52, 0.6);
  border: 1px solid var(--card-border);
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--yellow-accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.3rem;
}

/* REDES SOCIALES SECTION */
.socials-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.social-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-fast);
}

.social-card:hover {
  transform: translateY(-4px);
  border-color: var(--yellow-accent);
  background: rgba(224, 215, 199, 0.08);
}

.social-icon-wrapper {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--yellow-accent);
}

.social-name {
  font-size: 1.5rem;
  color: var(--text-beige);
}

.social-handle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.social-subscribers {
  font-size: 0.8rem;
  color: var(--yellow-accent);
  font-weight: 600;
}

/* VIDEOS & TV SECTION */
.category-filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-beige);
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--yellow-accent);
  color: var(--bg-darker);
  border-color: var(--yellow-accent);
  font-weight: 700;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.video-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-5px);
  border-color: var(--yellow-accent);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.video-thumbnail-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
}

.video-thumbnail-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.video-card:hover .video-thumbnail-wrapper img {
  transform: scale(1.05);
}

.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 30, 52, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition-fast);
}

.video-thumbnail-wrapper:hover .play-overlay {
  opacity: 1;
}

.play-icon-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--yellow-accent);
  color: var(--bg-darker);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.video-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red-accent);
  color: #FFF;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.video-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.video-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.video-title {
  font-size: 1.4rem;
  color: var(--text-beige);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.video-description {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* BLOG SECTION */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
  transition: var(--transition-fast);
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--yellow-accent);
}

.blog-image {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
}

.blog-body {
  padding: 1.5rem;
}

.blog-tag {
  color: var(--yellow-accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.blog-title {
  font-size: 1.5rem;
  color: var(--text-beige);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.blog-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.blog-meta-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(224, 215, 199, 0.08);
  padding-top: 0.75rem;
}

/* SECCIÓN DESCARGAS */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.download-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-fast);
}

.download-card:hover {
  border-color: var(--yellow-accent);
  transform: translateY(-3px);
}

.download-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.download-icon {
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  background: rgba(244, 190, 68, 0.1);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(244, 190, 68, 0.3);
}

.download-title {
  font-size: 1.4rem;
  color: var(--text-beige);
  line-height: 1.2;
}

.download-tag-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--yellow-accent);
  color: var(--bg-darker);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.download-specs {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.download-description {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* BRANDS / MEDIA FOOTER */
.brands-section {
  background: rgba(9, 18, 32, 0.6);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  padding: 3rem 0;
}

.brands-title {
  text-align: center;
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.brands-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.brand-chip {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text-muted);
  opacity: 0.6;
  transition: var(--transition-fast);
  letter-spacing: 1px;
}

.brand-chip:hover {
  opacity: 1;
  color: var(--yellow-accent);
}

/* FOOTER */
.site-footer {
  padding: 4rem 0 2rem;
  background-color: var(--bg-darker);
  border-top: 1px solid var(--card-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand-title {
  font-size: 2rem;
  color: var(--yellow-accent);
  margin-bottom: 0.75rem;
}

.footer-description {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 400px;
}

.footer-column-title {
  font-size: 1.2rem;
  color: var(--text-beige);
  margin-bottom: 1rem;
}

.footer-links-list {
  list-style: none;
}

.footer-links-list li {
  margin-bottom: 0.5rem;
}

.footer-links-list a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links-list a:hover {
  color: var(--yellow-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(224, 215, 199, 0.08);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* MODAL SYSTEM (Para Videos y Lector de Blog) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 18, 32, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-dark);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  width: 100%;
  max-width: 850px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px rgba(0,0,0,0.6);
  padding: 2rem;
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-beige);
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--red-accent);
}

.video-iframe-container {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 1.5rem;
  border: 1px solid var(--card-border);
}

.video-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.blog-modal-content h3 {
  color: var(--yellow-accent);
  margin: 1.5rem 0 0.5rem;
}

.blog-modal-content p {
  margin-bottom: 1rem;
  color: var(--text-beige);
}

/* ==========================================================================
   MATI VISBUG PRO v2 - INTERACTIVE DRAG & DROP VISUAL EDITOR
   ========================================================================== */

/* Status Bar */
.admin-status-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, var(--yellow-accent), #e6a817);
  color: var(--bg-darker);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  padding: 0.4rem 1rem;
  z-index: 9999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

body.admin-edit-active {
  padding-top: 36px;
}

/* Hover outline on any element in edit mode */
.admin-edit-active *:hover {
  outline: 2px dashed rgba(244, 190, 68, 0.5) !important;
  cursor: crosshair !important;
}

/* Exclude editor UI from hover outline */
.admin-edit-active .visbug-pro-toolbar *,
.admin-edit-active .visbug-multi-panel *,
.admin-edit-active .admin-status-bar *,
.admin-edit-active .visbug-dimension-label,
.admin-edit-active .visbug-props-panel *,
.admin-edit-active .visbug-context-menu * {
  outline: none !important;
  cursor: default !important;
}

/* Selected element highlight */
.visbug-selected-multi {
  outline: 2px solid var(--yellow-accent) !important;
  box-shadow: 0 0 0 1px var(--yellow-accent), 0 0 20px rgba(244, 190, 68, 0.3) !important;
}

/* Element being dragged */
.visbug-dragging {
  opacity: 0.85 !important;
  z-index: 9000 !important;
  cursor: grabbing !important;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 0 2px var(--yellow-accent) !important;
}

/* ===== RESIZE OVERLAY & HANDLES ===== */
#visbug-resize-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 999990;
}

.visbug-resize-box {
  position: absolute;
  box-sizing: border-box;
  border: 1.5px solid var(--yellow-accent);
  pointer-events: none;
  z-index: 999995;
}

.visbug-resize-handle {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--yellow-accent);
  border: 2px solid #091220;
  border-radius: 50%;
  z-index: 1000000;
  pointer-events: auto !important;
  box-shadow: 0 0 6px rgba(0,0,0,0.6);
  transition: transform 0.1s ease;
}

.visbug-resize-handle:hover {
  background: #ffffff;
  transform: scale(1.35);
}

.visbug-resize-handle.handle-tl { top: -6px; left: -6px; cursor: nwse-resize !important; }
.visbug-resize-handle.handle-tr { top: -6px; right: -6px; cursor: nesw-resize !important; }
.visbug-resize-handle.handle-bl { bottom: -6px; left: -6px; cursor: nesw-resize !important; }
.visbug-resize-handle.handle-br { bottom: -6px; right: -6px; cursor: nwse-resize !important; }
.visbug-resize-handle.handle-t  { top: -6px; left: calc(50% - 6px); cursor: ns-resize !important; }
.visbug-resize-handle.handle-b  { bottom: -6px; left: calc(50% - 6px); cursor: ns-resize !important; }
.visbug-resize-handle.handle-l  { top: calc(50% - 6px); left: -6px; cursor: ew-resize !important; }
.visbug-resize-handle.handle-r  { top: calc(50% - 6px); right: -6px; cursor: ew-resize !important; }

/* ===== DIMENSION LABEL (shows WxH near element) ===== */
.visbug-dimension-label {
  position: absolute;
  bottom: -26px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(9, 18, 32, 0.95);
  color: var(--yellow-accent);
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--yellow-accent);
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
  z-index: 1000001;
}

/* ===== LEFT TOOLBAR ===== */
.visbug-pro-toolbar {
  position: fixed;
  top: 80px;
  left: 12px;
  z-index: 10000;
  background: rgba(9, 18, 32, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(244, 190, 68, 0.4);
  border-radius: 14px;
  padding: 0.5rem;
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.7);
}
.visbug-pro-toolbar.active {
  display: flex;
}
.visbug-tool-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(224, 215, 199, 0.05);
  border: 1px solid rgba(224, 215, 199, 0.15);
  color: var(--text-beige);
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.15s ease;
  position: relative;
}
.visbug-tool-btn:hover, .visbug-tool-btn.active {
  background: var(--yellow-accent);
  color: var(--bg-darker);
  border-color: var(--yellow-accent);
}
.visbug-tool-btn[title]:hover::after {
  content: attr(title);
  position: absolute;
  left: 48px;
  top: 8px;
  background: var(--bg-darker);
  color: var(--yellow-accent);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(244, 190, 68, 0.4);
  font-size: 0.7rem;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10001;
  font-family: var(--font-body);
}

/* ===== PIXEL RULERS ===== */
.visbug-ruler-top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background: rgba(9, 18, 32, 0.95);
  border-bottom: 1px solid var(--yellow-accent);
  z-index: 9998;
  display: none;
  font-size: 9px;
  color: var(--yellow-accent);
  pointer-events: none;
}
.visbug-ruler-left {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 100%;
  background: rgba(9, 18, 32, 0.95);
  border-right: 1px solid var(--yellow-accent);
  z-index: 9998;
  display: none;
  font-size: 9px;
  color: var(--yellow-accent);
  pointer-events: none;
}
.visbug-rulers-active .visbug-ruler-top,
.visbug-rulers-active .visbug-ruler-left {
  display: block;
}

/* ===== BOTTOM CONTROL PANEL (floating) ===== */
.visbug-multi-panel {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  background: rgba(9, 18, 32, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(244, 190, 68, 0.4);
  border-radius: 16px;
  padding: 0.6rem 1.2rem;
  display: none;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 15px 40px rgba(0,0,0,0.85);
  color: var(--text-beige);
  font-size: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 95vw;
}
.visbug-multi-panel.active {
  display: flex;
}
.visbug-badge-count {
  background: var(--yellow-accent);
  color: var(--bg-darker);
  font-family: var(--font-heading);
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
  font-size: 0.85rem;
}
.visbug-control-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.popover-step-btn {
  background: rgba(244, 190, 68, 0.1);
  border: 1px solid rgba(244, 190, 68, 0.4);
  color: var(--yellow-accent);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.15s ease;
  font-family: var(--font-body);
}
.popover-step-btn:hover {
  background: var(--yellow-accent);
  color: var(--bg-darker);
}

/* ===== STEP SIZE INPUT ===== */
.visbug-step-input {
  width: 42px;
  background: rgba(224, 215, 199, 0.08);
  border: 1px solid rgba(244, 190, 68, 0.3);
  color: var(--yellow-accent);
  text-align: center;
  font-size: 0.75rem;
  font-family: var(--font-body);
  font-weight: bold;
  border-radius: 4px;
  padding: 0.2rem;
  outline: none;
}
.visbug-step-input:focus {
  border-color: var(--yellow-accent);
  box-shadow: 0 0 6px rgba(244, 190, 68, 0.3);
}

/* ===== PROPERTIES PANEL (right side) ===== */
.visbug-props-panel {
  position: fixed;
  top: 80px;
  right: 12px;
  width: 220px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  z-index: 10000;
  background: rgba(9, 18, 32, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(244, 190, 68, 0.3);
  border-radius: 14px;
  padding: 0.8rem;
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.7);
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-beige);
}
.visbug-props-panel.active {
  display: flex;
}
.visbug-props-panel h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--yellow-accent);
  margin: 0;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(244, 190, 68, 0.2);
}
.visbug-prop-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0;
}
.visbug-prop-row label {
  color: var(--text-muted);
  font-size: 0.7rem;
  min-width: 55px;
  text-transform: uppercase;
}
.visbug-prop-row input[type="number"] {
  width: 55px;
  background: rgba(224, 215, 199, 0.08);
  border: 1px solid rgba(244, 190, 68, 0.2);
  color: var(--text-beige);
  text-align: center;
  font-size: 0.75rem;
  font-family: var(--font-body);
  border-radius: 4px;
  padding: 0.2rem;
  outline: none;
}
.visbug-prop-row input[type="number"]:focus {
  border-color: var(--yellow-accent);
}
.visbug-prop-row input[type="color"] {
  width: 32px;
  height: 24px;
  border: 1px solid rgba(244, 190, 68, 0.2);
  border-radius: 4px;
  cursor: pointer;
  background: none;
  padding: 0;
}
.visbug-prop-section-title {
  font-size: 0.7rem;
  color: var(--yellow-accent);
  text-transform: uppercase;
  margin-top: 0.4rem;
  font-weight: bold;
  letter-spacing: 0.5px;
}

/* ===== CONTEXT MENU (right click) ===== */
.visbug-context-menu {
  position: fixed;
  z-index: 10002;
  background: rgba(9, 18, 32, 0.97);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(244, 190, 68, 0.4);
  border-radius: 10px;
  padding: 0.4rem 0;
  min-width: 180px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.7);
  display: none;
}
.visbug-context-menu.active {
  display: block;
}
.visbug-context-menu button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  background: none;
  border: none;
  color: var(--text-beige);
  font-family: var(--font-body);
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  text-align: left;
  transition: background 0.1s;
}
.visbug-context-menu button:hover {
  background: rgba(244, 190, 68, 0.15);
  color: var(--yellow-accent);
}
.visbug-context-sep {
  height: 1px;
  background: rgba(244, 190, 68, 0.15);
  margin: 0.3rem 0;
}

/* ===== GUIDE LINES (snap lines) ===== */
.visbug-guide-h, .visbug-guide-v {
  position: fixed;
  z-index: 9400;
  pointer-events: none;
}
.visbug-guide-h {
  left: 0; width: 100%; height: 1px;
  background: rgba(230, 83, 72, 0.6);
}
.visbug-guide-v {
  top: 0; height: 100%; width: 1px;
  background: rgba(230, 83, 72, 0.6);
}

/* ===== COORDINATE TOOLTIP (follows mouse during drag) ===== */
.visbug-coords-tooltip {
  position: fixed;
  z-index: 9600;
  background: var(--bg-darker);
  color: var(--yellow-accent);
  font-family: var(--font-body);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(244, 190, 68, 0.4);
  pointer-events: none;
  white-space: nowrap;
  display: none;
}
.visbug-coords-tooltip.active {
  display: block;
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-title {
    font-size: 3.2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--bg-darker);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--card-border);
    transform: translateY(-150%);
    transition: var(--transition-smooth);
  }

  .nav-links.active {
    transform: translateY(0);
  }
}
