/* ------------ Root + global ------------ */

:root {
  --neon-pink:   #ff00cc;
  --neon-blue:   #00eaff;
  --neon-green:  #39ff14;
  --neon-purple: #b100ff;
  --neon-gold:   #ffb347;
  --neon-red:    #ff3366;
  --bg-dark:     #050510;
  --bg-panel:    #0a0c1a;
  --border-subtle: rgba(255, 255, 255, 0.12);
  --text-main:   #f7f7ff;
  --text-muted:  #9ca3c7;

  /* unified topbar height */
  --topbar-height: 58px;

  /* shared hero / card gradient */
  --panel-gradient:
    radial-gradient(circle at top left, rgba(0, 234, 255, 0.35), transparent 55%),
    radial-gradient(circle at top right, rgba(255, 0, 204, 0.32), transparent 60%),
    linear-gradient(160deg, #090b1b 0%, #040414 55%, #040412 100%);

  --app-background: radial-gradient(circle at top right, #141a3a 0, #060711 55%);  
}

html,
body {
  height: 100%;
  margin: 0;
  background: var(--app-background);
  background-color: var(--bg-dark);
  overflow: hidden; /* app controls scrolling */

  
}


body.has-background-dark {
  background-color: var(--bg-dark) !important;
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* App root & main layout */

#app-root {
  display: flex;
  height: 100vh;   /* full viewport app */
  overflow: hidden;
}

.main-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
  overflow: hidden; /* inner main-section scrolls */

  /* Use same background as sidebar */
  background: transparent;
}

/* Scrollable main area */

.main-section {
  overflow-y: auto;
  min-height: calc(100vh - 3.25rem);
  padding-top: var(--topbar-height); /* make room for fixed topbar */
  padding-bottom: 1rem;  /* tighter on mobile */

  background: var(--app-background);
}

/* Utility */

.is-size-7 {
  font-size: 0.78rem;
}

/* Misc text */

.help {
  color: var(--text-muted) !important;
  font-size: 1rem;
}

/* Gradient text for 'AI' */

.gradient-text {
  background: linear-gradient(120deg, var(--neon-blue), var(--neon-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------ Neon toast / alerts ------------ */

.neon-toast-container {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none; /* let clicks pass through except on toasts */
}

.neon-toast {
  min-width: 220px;
  max-width: 360px;
  padding: 0.65rem 0.9rem;
  border-radius: 0.9rem;
  background-color: rgba(5, 5, 20, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-main);
  font-size: 0.85rem;
  display: flex;
  align-items: center; /* center icon + text vertically */
  gap: 0.5rem;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.85),
    0 0 18px rgba(0, 234, 255, 0.25);
  pointer-events: auto; /* clickable */
  opacity: 0;
  transform: translateY(8px);
  animation: neon-toast-in 0.18s ease-out forwards;
}

.neon-toast--info {
  border-color: rgba(0, 234, 255, 0.65);
}

.neon-toast--success {
  border-color: rgba(57, 255, 20, 0.7);
}

.neon-toast--error {
  border-color: rgba(255, 51, 102, 0.8);
}

.neon-toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.neon-toast-icon i {
  display: block;
  line-height: 1;
}

.neon-toast-message {
  flex: 1;
  line-height: 1.3;
}

.neon-toast-close {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 0;
  margin-left: 0.3rem;
}

.neon-toast-close:hover {
  color: var(--text-main);
}

/* Slide-in animation */
@keyframes neon-toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade-out animation */
@keyframes neon-toast-out {
  to {
    opacity: 0;
    transform: translateY(6px);
  }
}

.fastbuy-footer-inline {
  opacity: 0.8;
}
.fastbuy-footer-inline a:hover {
  text-decoration: underline;
}


/* -----------------------------
   Mobile layout: allow full-page scroll
   ----------------------------- */
@media screen and (max-width: 768px) {
  html,
  body {
    height: auto;
    min-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;

    /* keep the same background when the page gets taller */
    background: var(--app-background);
    background-color: var(--bg-dark);
  }

  #app-root {
    height: auto;
    min-height: 100vh;
  }

  .main-panel {
    height: auto;
    min-height: 100vh;
    overflow: visible;

    /* Also transparent on mobile */
    background: transparent;
  }

.main-section {
    overflow-y: auto;
    min-height: calc(100vh - 3.25rem);
    padding-bottom: 1rem;  /* tighter on mobile */

    /* Keep same background on mobile */
    background: var(--app-background);
}

.main-section > .container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

  /* Prevent iOS Safari from zooming on input focus */
  input[type="text"],
  input[type="search"],
  input[type="email"],
  input[type="number"],
  input[type="tel"],
  textarea,
  select {
    font-size: 16px !important;
  }
}