/* ====== Launchpad Sidebar ====== */

/* ── Sidebar Container ── */
.lp-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 64px;
  background: linear-gradient(180deg, #0a1418 0%, #060e12 100%);
  border-right: 1px solid var(--border, #1a2e36);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: width 0.25s ease, transform 0.25s ease;
  overflow: hidden;
}
.lp-sidebar.lp-expanded {
  width: 250px;
}

/* ── Logo ── */
.lp-sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
  flex-shrink: 0;
  border-bottom: 1px solid var(--accent-green, #59e900);
  transition: padding 0.3s ease;
}
.lp-sidebar-logo a {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-sidebar.lp-expanded .lp-sidebar-logo {
  justify-content: flex-start;
  padding-left: 20px;
}
/* Collapsed: round icon */
.lp-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
  transition: opacity 0.2s ease, width 0.3s ease, height 0.3s ease;
}
/* Expanded: full wordmark */
.lp-logo-full {
  display: none;
  height: 28px;
  width: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.lp-sidebar.lp-expanded .lp-logo-icon {
  display: none;
}
.lp-sidebar.lp-expanded .lp-logo-full {
  display: block;
  height: 36px;
  opacity: 0.9;
}
.lp-sidebar.lp-expanded .lp-logo-full:hover {
  opacity: 1;
}

/* ── Nav List ── */
.lp-sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  gap: 2px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  transition: padding 0.3s ease, gap 0.3s ease;
}
.lp-sidebar-nav::-webkit-scrollbar { display: none; }

/* ── External Links Section ── */
.lp-sidebar-external {
  display: flex;
  flex-direction: column;
  position: relative;
  margin-top: 0;
  padding: 0;
  gap: 2px;
  border-top: none;
  flex-shrink: 0;
}
.lp-sidebar-external::before {
  display: none;
}

/* ── WIP (greyed out) ── */
.lp-nav-parent.lp-wip > .lp-nav-parent-header {
  opacity: 0.4;
}
.lp-nav-parent.lp-wip > .lp-nav-parent-header:hover {
  opacity: 0.7;
}

/* ── Nav Item (direct link) ── */
.lp-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 38px;
  min-height: 38px;
  flex-shrink: 0;
  padding: 0 20px;
  gap: 12px;
  color: var(--text-dim, #6b7a82);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, height 0.3s ease, min-height 0.3s ease;
  white-space: nowrap;
  border-left: 3px solid transparent;
}
/* Section break before action items */
.lp-sidebar-section-break {
  display: none;
}
/* Horizontal divider between nav groups */
.lp-nav-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 12px;
  flex-shrink: 0;
  transition: margin 0.3s ease;
}
.lp-nav-item:hover {
  color: var(--text, #f0f2f5);
  background: rgba(255,255,255,0.04);
}
.lp-nav-item.lp-disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}
.lp-coming-soon {
  font-size: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-orange, #ff6b35);
  background: rgba(255, 107, 53, 0.12);
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
}
.lp-nav-item.lp-active {
  color: var(--accent-green, #59e900);
  border-left-color: var(--accent-green, #59e900);
  background: rgba(89,233,0,0.06);
}
.lp-nav-item.lp-active .lp-nav-icon svg {
  stroke: var(--accent-green, #59e900);
}

/* ── Account Item ── */
.lp-nav-account {
  cursor: pointer;
}
.lp-nav-account::after {
  display: none;
}
.lp-nav-account {
  margin-bottom: 0;
}
.lp-nav-account.lp-signed-in {
  color: var(--accent-green, #59e900);
}
.lp-nav-account.lp-signed-in .lp-nav-icon {
  display: flex;
}
.lp-nav-account.lp-signed-in .lp-nav-icon svg {
  stroke: var(--accent-green, #59e900);
}
.lp-account-initials {
  display: none;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-green, #59e900);
  color: #0a1418;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  font-family: 'Archivo', sans-serif;
  text-align: center;
  letter-spacing: 0;
  text-transform: uppercase;
  padding: 0;
}
.lp-sidebar:not(.lp-expanded) .lp-account-label {
  display: none;
}
.lp-nav-account .lp-account-initials {
  display: none !important;
}

/* ── Nav Icon ── */
.lp-nav-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-nav-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Nav Label ── */
.lp-nav-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.lp-sidebar.lp-expanded .lp-nav-label {
  opacity: 1;
  pointer-events: auto;
}

/* ── Parent Item (expandable) ── */
.lp-nav-parent {
  flex-direction: column;
  height: auto;
  padding: 0;
  flex-shrink: 0;
}
.lp-nav-parent-header {
  display: flex;
  align-items: center;
  height: 38px;
  min-height: 38px;
  padding: 0 20px;
  gap: 12px;
  color: var(--text-dim, #6b7a82);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, height 0.3s ease, min-height 0.3s ease;
  white-space: nowrap;
  border-left: 3px solid transparent;
  width: 100%;
}
.lp-nav-parent-header:hover {
  color: var(--text, #f0f2f5);
  background: rgba(255,255,255,0.04);
}
.lp-nav-parent.lp-active > .lp-nav-parent-header {
  color: var(--accent-green, #59e900);
  border-left-color: var(--accent-green, #59e900);
  background: rgba(89,233,0,0.06);
}

/* Chevron for parent items */
.lp-nav-chevron {
  margin-left: auto;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.lp-sidebar.lp-expanded .lp-nav-chevron {
  opacity: 0.5;
}
.lp-nav-parent.lp-open > .lp-nav-parent-header .lp-nav-chevron {
  transform: rotate(90deg);
}

/* ── Sub-items ── */
.lp-nav-children {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.lp-nav-parent.lp-open > .lp-nav-children {
  max-height: 400px;
}
.lp-nav-child {
  display: flex;
  align-items: center;
  height: 34px;
  padding: 0 20px 0 55px;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-dim, #6b7a82);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
  opacity: 0;
}
.lp-sidebar.lp-expanded .lp-nav-child {
  opacity: 1;
}
.lp-nav-child:hover {
  color: var(--text, #f0f2f5);
  background: rgba(255,255,255,0.03);
}
.lp-nav-child.lp-active {
  color: var(--accent-green, #59e900);
}
.lp-nav-child.lp-disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}
.lp-sidebar.lp-expanded .lp-nav-child.lp-disabled {
  opacity: 0.35;
}
/* ── Sub-item Icons (accordion) ── */
.lp-nav-child-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}
.lp-nav-child-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lp-nav-child-badge {
  margin-left: auto;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-dim, #6b7a82);
  opacity: 0.6;
}

/* ── Collapsed: Parent highlight on flyout open ── */
.lp-nav-parent {
  position: relative;
}
.lp-nav-parent.lp-flyout-active > .lp-nav-parent-header {
  color: var(--text, #f0f2f5);
  background: rgba(255,255,255,0.06);
}

/* ── HubSpot-style Flyout Panel ── */
.lp-flyout-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
}
.lp-flyout-panel {
  position: fixed;
  z-index: 1001;
  background: #0d1a1f;
  border: 1px solid var(--border, #1a2e36);
  border-radius: 10px;
  min-width: 240px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  overflow: hidden;
}
.lp-flyout-panel.lp-flyout-panel-visible {
  opacity: 1;
  transform: translateX(0);
}
.lp-flyout-panel-items {
  padding: 6px 0;
}
.lp-flyout-panel-item {
  display: flex;
  align-items: center;
  padding: 10px 24px 10px 18px;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-dim, #6b7a82);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.lp-flyout-panel-item:hover {
  color: var(--text, #f0f2f5);
  background: rgba(255,255,255,0.04);
}
.lp-flyout-panel-item.lp-active {
  color: var(--accent-green, #59e900);
}
.lp-flyout-panel-item.lp-disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}
/* ── Sub-item Icons (flyout) ── */
.lp-flyout-item-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lp-flyout-item-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lp-flyout-panel-badge {
  font-size: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-dim, #6b7a82);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: auto;
  white-space: nowrap;
}

/* ── Collapsed Icon-Only Tooltip (for direct links) ── */
.lp-tooltip {
  display: none;
  position: absolute;
  left: 64px;
  top: 50%;
  transform: translateY(-50%);
  background: #111e24;
  border: 1px solid var(--border, #1a2e36);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text, #f0f2f5);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 1001;
  pointer-events: none;
}
.lp-sidebar:not(.lp-expanded) .lp-nav-item:hover > .lp-tooltip {
  display: block;
}

/* ── Toggle Button ── */
.lp-sidebar-toggle-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 14px;
  margin-top: 0;
  padding-top: 14px;
  border-top: 1px solid var(--border, #1a2e36);
  transition: padding 0.3s ease;
}
.lp-sidebar.lp-expanded .lp-sidebar-toggle-wrap {
  justify-content: flex-end;
  padding-left: 20px;
  padding-right: 18px;
}

/* ── Version Badge ── */
.lp-sidebar-version-wrap {
  display: flex;
  justify-content: center;
  padding: 10px 0;
  align-items: center;
  gap: 6px;
  transition: padding 0.3s ease;
}
.lp-sidebar.lp-expanded .lp-sidebar-version-wrap {
  justify-content: flex-start;
  padding: 10px 20px;
}
.lp-sidebar-mc-label,
.lp-sidebar-version {
  display: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.lp-sidebar.lp-version-visible .lp-sidebar-mc-label,
.lp-sidebar.lp-version-visible .lp-sidebar-version {
  display: inline;
  opacity: 1;
}
.lp-sidebar-mc-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text, #f0f2f5);
  letter-spacing: 0.2px;
}
.lp-sidebar-beta-badge {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #F5A623;
  background: rgba(245,166,35,0.15);
  border: 1px solid rgba(245,166,35,0.3);
  border-radius: 4px;
  padding: 2px 6px;
  flex-shrink: 0;
}
.lp-sidebar-version {
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--text-dim, #6b7a82);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 2px 6px;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lp-sidebar-version:hover {
  color: var(--text, #f0f2f5);
  border-color: rgba(255,255,255,0.25);
}
.lp-sidebar-footer-left {
  display: none;
  align-items: center;
  gap: 5px;
}
.lp-sidebar.lp-expanded .lp-sidebar-footer-left {
  display: flex;
}
.lp-sidebar-divider {
  display: none;
  font-size: 0.6rem;
  color: var(--accent-orange, #f5a623);
  opacity: 0.6;
}
.lp-sidebar.lp-expanded .lp-sidebar-divider {
  display: inline;
}
.lp-sidebar-copyright {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-dim, #6b7a82);
  white-space: nowrap;
  letter-spacing: 0.2px;
}
.lp-sidebar-title {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-dim, #6b7a82);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.2px;
  transition: color 0.2s ease;
}
.lp-sidebar-title:hover {
  color: var(--accent-green, #59e900);
}
.lp-sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--surface-2, #111e24);
  border: 1px solid var(--border, #1a2e36);
  color: var(--text-dim, #6b7a82);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.lp-sidebar-toggle:hover {
  color: var(--text, #f0f2f5);
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.06);
}
.lp-sidebar-toggle svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}
.lp-sidebar:not(.lp-expanded) .lp-sidebar-toggle svg {
  transform: rotate(180deg);
}

/* ── Content Wrapper Push ── */
.lp-content {
  margin-left: 64px;
  transition: margin-left 0.25s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.lp-sidebar.lp-expanded ~ .lp-content {
  margin-left: 64px;
}

/* ── Hamburger Button (hidden on desktop) ── */
.lp-hamburger {
  display: none;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  background: var(--surface-2, #111e24);
  border: 1px solid var(--border, #1a2e36);
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  margin-left: auto;
  box-sizing: border-box;
}
.lp-hamburger-wrap {
  display: none;
  margin-left: auto;
}
.lp-hamburger svg {
  color: #fff;
  transition: opacity 0.2s ease;
}
.lp-hamburger:hover svg {
  opacity: 0.8;
}
.lp-hamburger .lp-hamburger-close {
  display: none;
}
.lp-mobile-menu-open .lp-hamburger .lp-hamburger-menu {
  display: none;
}
.lp-mobile-menu-open .lp-hamburger .lp-hamburger-close {
  display: block;
}

/* ── Mobile Backdrop ── */
.lp-mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.lp-mobile-menu-open .lp-mobile-backdrop {
  opacity: 1;
  pointer-events: auto;
}

/* ── Compact sidebar at short viewport heights ── */
@media (max-height: 750px) {
  .lp-sidebar-nav { padding: 6px 0; gap: 1px; }
  .lp-nav-item {
    height: 30px;
    min-height: 30px;
  }
  .lp-nav-parent-header {
    height: 30px;
    min-height: 30px;
  }
  .lp-nav-divider { margin: 4px 12px; }
  .lp-sidebar-version-wrap { padding: 6px 0; }
  .lp-sidebar.lp-expanded .lp-sidebar-version-wrap { padding: 6px 20px; }
  .lp-sidebar-toggle-wrap { padding-top: 8px; padding-bottom: 8px; }
}
@media (max-height: 600px) {
  .lp-sidebar-nav { padding: 4px 0; gap: 0; }
  .lp-nav-item {
    height: 26px;
    min-height: 26px;
  }
  .lp-nav-parent-header {
    height: 26px;
    min-height: 26px;
  }
  .lp-nav-divider { margin: 2px 12px; }
  .lp-sidebar-version-wrap { padding: 4px 0; }
  .lp-sidebar.lp-expanded .lp-sidebar-version-wrap { padding: 4px 20px; }
  .lp-sidebar-toggle-wrap { padding-top: 6px; padding-bottom: 6px; }
}

/* ── Mobile Logo (hidden on desktop) ── */
.lp-mobile-logo {
  display: none;
  align-items: center;
  flex-shrink: 0;
}
.lp-mobile-logo img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: contain;
}

/* ── Mobile: Hide Sidebar, Show Hamburger ── */
@media (max-width: 768px) {
  .lp-hamburger {
    display: flex;
  }
  .lp-hamburger-wrap {
    display: flex;
  }
  .lp-mobile-logo {
    display: flex;
  }
  .lp-sidebar {
    transform: translateX(-100%);
    width: 280px;
    z-index: 2000;
  }
  .lp-mobile-menu-open .lp-sidebar {
    transform: translateX(0);
  }
  .lp-content {
    margin-left: 0 !important;
  }
  .lp-sidebar-toggle-wrap .lp-sidebar-toggle {
    display: none;
  }
  .lp-tooltip {
    display: none !important;
  }
  /* Hide flyout panels on mobile — use inline accordion instead */
  .lp-flyout-panel,
  .lp-flyout-backdrop {
    display: none !important;
  }
  /* Show accordion children on mobile */
  .lp-nav-child {
    opacity: 1;
  }
  .lp-nav-chevron {
    opacity: 0.5;
  }
}

/* ====== Account Panel (shared across all pages) ====== */
.account-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.account-panel-overlay.active { opacity: 1; pointer-events: auto; }
.account-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 340px;
  max-width: 90vw;
  height: 100vh;
  background: linear-gradient(180deg, #0f1c22 0%, #0a1418 100%);
  border-left: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
  box-shadow: -8px 0 32px rgba(0,0,0,0.3);
}
.account-panel-overlay.active .account-panel {
  transform: translateX(0);
}
.account-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.account-panel-header h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text, #f0f2f5);
  margin: 0;
}
.account-panel-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text-dim, #6b7a82);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.account-panel-close:hover { background: rgba(255,255,255,0.1); }
.account-panel-content { padding: 24px; flex: 1; }
.account-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  margin-bottom: 20px;
}
.account-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-green, #59e900);
  color: #0a1418;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
  font-family: 'Archivo', sans-serif;
}
.account-email {
  font-size: 0.9rem;
  color: var(--text, #f0f2f5);
  margin-bottom: 2px;
  word-break: break-all;
}
.account-uid {
  font-size: 0.72rem;
  color: var(--text-dim, #6b7a82);
  margin-top: 2px;
  font-family: 'Courier New', monospace;
}
.account-signout-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,107,47,0.25);
  background: rgba(255,107,47,0.06);
  color: #ff6b2f;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.account-signout-btn:hover {
  background: rgba(255,107,47,0.1);
  border-color: rgba(255,107,47,0.5);
}
.account-signout-btn svg { stroke: #ff5f2f; }
.account-panel-footer {
  padding: 16px 24px;
  font-size: 0.72rem;
  color: var(--text-dim, #6b7a82);
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  flex-shrink: 0;
}

/* ── Account Panel: Modal Mode ── */
.account-panel-overlay.account-modal-mode {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.80);
}
.account-panel-overlay.account-modal-mode .account-panel {
  position: relative;
  top: auto;
  right: auto;
  width: 380px;
  max-width: 92vw;
  height: auto;
  max-height: 85vh;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  transform: scale(0.95) translateY(10px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), opacity 0.3s ease;
}
.account-panel-overlay.account-modal-mode.active .account-panel {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.account-panel-overlay.account-modal-mode .account-panel-header {
  border-radius: 14px 14px 0 0;
}
.account-panel-overlay.account-modal-mode .account-panel-footer {
  border-radius: 0 0 14px 14px;
}
.account-panel-overlay.account-modal-mode .account-panel-content {
  overflow-y: auto;
}

@media (max-width: 768px) {
  .account-panel-overlay.account-modal-mode .account-panel { width: 400px; max-width: 92vw; height: auto; max-height: 85vh; }
}

/* ── Schedule CTA pulse ── */
@keyframes lp-pulse-orange {
  0%, 75% { color: inherit; }
  80% { color: #59e900; }
  88% { color: #59e900; }
  95%, 100% { color: inherit; }
}
.lp-pulse-orange {
  animation: lp-pulse-orange 12s ease-in-out infinite;
}

/* ── Show Your Support pulse ── */
@keyframes lp-pulse-pink {
  0%, 80% { color: inherit; }
  85% { color: #ff69b4; }
  92% { color: #ff69b4; }
  97%, 100% { color: inherit; }
}
.lp-pulse-pink {
  animation: lp-pulse-pink 20s ease-in-out infinite;
}
