:root {
  --hb-bg: #0f1d2e;
  --hb-bg-soft: #14263a;
  --hb-accent: #12b886;
  --hb-text: #f3f7fb;
  --hb-muted: #b4c1cf;
}

body.hb-body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(18, 184, 134, 0.20) 0%, rgba(18, 184, 134, 0) 35%),
    radial-gradient(circle at 90% 80%, rgba(61, 123, 228, 0.20) 0%, rgba(61, 123, 228, 0) 35%),
    linear-gradient(160deg, #0b1724, var(--hb-bg));
  color: var(--hb-text);
  min-height: 100vh;
}

.hb-header {
  backdrop-filter: blur(8px);
  background: rgba(7, 16, 28, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hb-brand {
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--hb-text);
}

.hb-nav-link {
  color: var(--hb-muted);
  text-decoration: none;
}

.hb-nav-link:hover {
  color: var(--hb-text);
}

.hb-hero {
  position: relative;
}

.hb-card {
  background: linear-gradient(160deg, rgba(21, 37, 58, 0.95), rgba(15, 29, 46, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.20);
}

.btn-primary {
  background-color: var(--hb-accent);
  border-color: var(--hb-accent);
  color: #08231b;
  font-weight: 600;
}

.btn-primary:hover {
  background-color: #0ea377;
  border-color: #0ea377;
  color: #05150f;
}

.table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(255, 255, 255, 0.04);
}

@media (max-width: 768px) {
  .hb-header .container {
    gap: 12px;
    flex-direction: column;
  }
}

/* ── Design Studio ── */
.studio-block {
  position: relative;
  z-index: 1;
  border: 2px solid transparent;
  border-radius: 4px;
  padding: 4px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.studio-block:hover {
  border-color: rgba(18, 184, 134, 0.4);
}
.studio-block.selected {
  border-color: var(--hb-accent);
  box-shadow: 0 0 0 3px rgba(18, 184, 134, 0.25);
}
.studio-block-type-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  font-size: 10px;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 999px;
  color: #d7fff2;
  background: rgba(18, 184, 134, 0.22);
  border: 1px solid rgba(18, 184, 134, 0.55);
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none;
}
.studio-block:hover .studio-block-type-badge,
.studio-block.selected .studio-block-type-badge {
  opacity: 1;
  transform: translateY(0);
}
.studio-watermark-chip {
  min-height: 60px;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}
.block-controls {
  position: absolute;
  top: -28px;
  right: 4px;
  z-index: 10;
  background: rgba(0,0,0,0.8);
  border-radius: 4px;
  padding: 2px 4px;
}
.page-break-hint {
  opacity: 0.3;
  border-top: 2px dashed #666 !important;
}

/* Studio image drop zone highlight */
.studio-drop-zone {
  transition: background 0.15s, border-color 0.15s;
}
.studio-drop-zone.drag-over {
  background: rgba(18, 184, 134, 0.08) !important;
  border-color: var(--hb-accent) !important;
}

/* Keyboard shortcut badges */
kbd {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 10px;
  font-family: inherit;
  color: #ccc;
}

/* Block palette item hover */
.studio-block .block-body img {
  max-width: 100%;
}

/* Smooth panel transitions */
.btn-group-sm .btn { font-size: 12px; }

/* Range input styling for dark mode */
.form-range { accent-color: var(--hb-accent); }
