/* ============================================================
   COMPONENTS — Subscribe button, navbar, pro badge, misc
   ============================================================ */

/* ── Subscribe button ────────────────────────────────────── */

.subscribe-button {
  float: right;
  appearance: none;
  background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
  border: none;
  border-radius: var(--radius-md);
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  min-height: 0;
  min-width: 0;
  outline: none;
  padding: 8px 20px;
  text-align: center;
  text-decoration: none;
  transition: all var(--transition-slow) cubic-bezier(.23, 1, 0.32, 1);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  will-change: transform;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  letter-spacing: 0.01em;
}

.subscribe-button:disabled { pointer-events: none; opacity: 0.4; }

.subscribe-button:hover {
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.45),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.subscribe-button:active {
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
  transform: translateY(0);
}

.subscribe-button:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), 0 8px 24px rgba(99, 102, 241, 0.3);
}

/* ── Navbar ──────────────────────────────────────────────── */

.navbar {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 5px;
  flex-wrap: nowrap;
  overflow: hidden;
}

.nav-left {
  display: flex;
  gap: 0;
  min-width: 0;
  overflow: hidden;
}

.nav-left .nav-home-icon {
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
}

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding-right: 12px;
}

/* ── Pro badge ───────────────────────────────────────────── */

.pro-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary), #7c3aed);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
  line-height: 1;
}

/* When badge sits next to logo in the top bar */
.navbar-wrapper-inner > .pro-badge {
  float: left;
  margin-top: 132px;
  margin-left: -6px;
}

.pro-badge--plus {
  background: linear-gradient(135deg, #f472b6, #a78bfa);
  box-shadow: 0 2px 8px rgba(167, 139, 250, 0.4);
}

/* ── Avatar dropdown ─────────────────────────────────────── */

.nav-avatar-wrap {
  position: relative;
}

.nav-avatar-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--color-background);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  padding: 6px;
  flex-direction: column;
  gap: 2px;
}

.nav-avatar-dropdown.open {
  display: flex;
}

.nav-avatar-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-neutral-600);
  text-decoration: none;
  transition: all 0.12s ease;
}

.nav-avatar-dropdown-item:hover {
  background: var(--color-neutral-50);
  color: var(--color-text);
}

.nav-avatar-dropdown-item i {
  width: 16px;
  text-align: center;
  font-size: 0.75rem;
}

.nav-avatar-dropdown-item--danger {
  color: var(--color-danger);
}

.nav-avatar-dropdown-item--danger:hover {
  background: rgba(239, 68, 68, 0.08);
  color: var(--color-danger);
}

/* ── Misc ────────────────────────────────────────────────── */

a.buy-btn:hover {
  opacity: 0.85;
}
