/* ==========================================================================
   BRAHMASTRA TOOLS AND BOTS — NOVA launcher theme
   Loaded after quest-option.css. Dark console look over the video backdrop:
   crisp tiles, per-product accent colours, mono labels, grid texture.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

.video-launcher {
  --ink: #f2f4fa;
  --ink-soft: #a9b0c6;
  --panel: rgba(10, 12, 19, 0.78);
  --edge: rgba(255, 255, 255, 0.09);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-family: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: #07080c;
  color: var(--ink);
}

/* ---------- backdrop ---------- */
.video-launcher__background { filter: saturate(0.9) contrast(1.08) brightness(0.62); transform: scale(1.04); }

.video-launcher__shade {
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(129, 140, 248, 0.28), transparent 70%),
    linear-gradient(180deg, rgba(7, 8, 12, 0.6) 0%, rgba(7, 8, 12, 0.35) 40%, rgba(7, 8, 12, 0.95) 100%);
}

.video-launcher::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 20%, transparent 80%);
}

/* ---------- layout ---------- */
.video-launcher__content { gap: 0; padding: clamp(2rem, 6vh, 4rem) 0; width: min(100% - 2rem, 940px); }

/* ---------- header ---------- */
.video-launcher__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.4rem;
  padding: 0.45rem 0.85rem;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--edge);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  animation: launcher-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.video-launcher__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #3ddc97;
  box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.18), 0 0 12px rgba(61, 220, 151, 0.8);
}

.video-launcher__title {
  max-width: 100%;
  font-size: clamp(2.5rem, 9vw, 6.2rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.045em;
  text-shadow: none;
  color: var(--ink);
  filter: drop-shadow(0 8px 40px rgba(0, 0, 0, 0.6));
  animation: launcher-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

.video-launcher__title span {
  display: block;
  margin-top: 0.04em;
  background: linear-gradient(95deg, #818cf8 0%, #22d3ee 55%, #3ddc97 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.video-launcher__tagline {
  max-width: 34rem;
  margin: 1.3rem 0 clamp(1.8rem, 5vh, 3rem);
  color: var(--ink-soft);
  font-size: clamp(0.92rem, 2.6vw, 1.05rem);
  line-height: 1.6;
  animation: launcher-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

/* ---------- tile grid ---------- */
.video-launcher__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  width: 100%;
  flex-wrap: initial;
  justify-content: initial;
  counter-reset: tile;
}

.video-launcher__options > .video-launcher__option:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ---------- tile ---------- */
.video-launcher__option {
  --accent: 129, 140, 248;
  --mx: 50%;
  --my: 0%;
  counter-increment: tile;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  flex: none;
  min-width: 0;
  width: 100%;
  padding: 1rem 1.1rem;
  overflow: hidden;
  color: var(--ink);
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  font: inherit;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(var(--accent), 0.1), transparent 70%),
    var(--panel);
  border: 1px solid var(--edge);
  border-top: 1px solid rgba(var(--accent), 0.55);
  border-radius: 14px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s, box-shadow 0.25s;
  animation: launcher-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  -webkit-tap-highlight-color: transparent;
}

/* tile index (01, 02 …) */
.video-launcher__option::before {
  content: "0" counter(tile);
  position: absolute;
  top: 0.55rem;
  right: 0.8rem;
  z-index: 1;
  color: rgba(var(--accent), 0.7);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  opacity: 0.9;
  transition: opacity 0.25s;
}

/* pointer spotlight */
.video-launcher__option::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(240px circle at var(--mx) var(--my), rgba(var(--accent), 0.22), transparent 70%);
  transition: opacity 0.3s;
}

.video-launcher__option:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--accent), 0.55);
  border-top-color: rgb(var(--accent));
  box-shadow: 0 26px 56px -20px rgba(0, 0, 0, 0.9), 0 0 40px -8px rgba(var(--accent), 0.4);
}
.video-launcher__option:hover::after { opacity: 1; }
.video-launcher__option:active { transform: translateY(-1px) scale(0.99); }
.video-launcher__option:focus-visible { outline: 2px solid rgb(var(--accent)); outline-offset: 3px; }

/* per-tile accent colours (r, g, b) */
.video-launcher__option--self { --accent: 61, 220, 151; background-color: transparent; }
.video-launcher__option--app { --accent: 34, 211, 238; background-color: transparent; }
.video-launcher__option--quest { --accent: 251, 191, 36; background-color: transparent; }
.video-launcher__option--buy { --accent: 244, 114, 182; }
.video-launcher__option--admin { --accent: 148, 163, 184; }
.video-launcher__option--discord { --accent: 129, 140, 248; }

/* ---------- tile parts ---------- */
.video-launcher__option-icon {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  color: rgb(var(--accent));
  background: rgba(var(--accent), 0.12);
  border: 1px solid rgba(var(--accent), 0.4);
  border-radius: 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.25s, color 0.25s;
}

.video-launcher__option:hover .video-launcher__option-icon {
  color: #07080c;
  background: rgb(var(--accent));
  transform: scale(1.05);
}

.video-launcher__option-icon svg { width: 1.35rem; height: 1.35rem; }

.video-launcher__option-text { display: grid; gap: 0.3rem; min-width: 0; }

.video-launcher__option-title {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.video-launcher__option-desc {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-launcher__option-arrow {
  box-sizing: border-box;
  width: 2rem;
  height: 2rem;
  padding: 0.55rem;
  color: var(--ink-soft);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), color 0.25s, background-color 0.25s, border-color 0.25s;
}

.video-launcher__option:hover .video-launcher__option-arrow {
  color: #07080c;
  background: rgb(var(--accent));
  border-color: rgb(var(--accent));
  transform: translateX(3px);
}

/* staggered entrance */
.video-launcher__option:nth-child(1) { animation-delay: 0.18s; }
.video-launcher__option:nth-child(2) { animation-delay: 0.24s; }
.video-launcher__option:nth-child(3) { animation-delay: 0.30s; }
.video-launcher__option:nth-child(4) { animation-delay: 0.36s; }
.video-launcher__option:nth-child(5) { animation-delay: 0.42s; }
.video-launcher__option:nth-child(6) { animation-delay: 0.48s; }

@keyframes launcher-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- phones ---------- */
@media (max-width: 640px) {
  .video-launcher__content { justify-content: flex-start; padding-top: clamp(2.2rem, 9vh, 4rem); padding-bottom: 2.5rem; }
  .video-launcher__eyebrow { margin-bottom: 1.1rem; font-size: 0.6rem; }
  .video-launcher__title { font-size: clamp(2.5rem, 14vw, 4.2rem); }
  .video-launcher__tagline { margin: 1rem 0 1.6rem; }
  .video-launcher__options { grid-template-columns: 1fr; gap: 0.65rem; }
  .video-launcher__option { gap: 0.85rem; padding: 0.8rem 0.9rem; border-radius: 12px; }
  .video-launcher__option-icon { width: 2.6rem; height: 2.6rem; }
  .video-launcher__option-title { font-size: 0.76rem; }
  .video-launcher__option-desc { font-size: 0.74rem; }
}

@media (prefers-reduced-motion: reduce) {
  .video-launcher__eyebrow, .video-launcher__title, .video-launcher__tagline, .video-launcher__option { animation: none; }
  .video-launcher__option, .video-launcher__option-icon, .video-launcher__option-arrow { transition: none; }
}

/* ==========================================================================
   Admin sign-in + store dialogs
   ========================================================================== */
.admin-login,
.storefront {
  background: radial-gradient(ellipse at 50% 25%, rgba(129, 140, 248, 0.16), rgba(3, 4, 8, 0.9) 70%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: 'Space Grotesk', system-ui, sans-serif;
}

.admin-login__panel,
.storefront__panel {
  background: linear-gradient(180deg, rgba(129, 140, 248, 0.08), transparent 160px), #0d0f16;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(129, 140, 248, 0.65);
  border-radius: 18px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(0, 0, 0, 0.4);
  animation: launcher-rise 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.admin-login__eyebrow,
.storefront__eyebrow {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.3rem 0.65rem;
  color: #c7ccff;
  background: rgba(129, 140, 248, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.35);
  border-radius: 6px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.18em;
}

.admin-login__title,
.storefront__title { letter-spacing: -0.035em; }

.admin-login__form input,
.storefront__form input,
.storefront__form select {
  background: #080a11;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.admin-login__form input:focus,
.storefront__form input:focus,
.storefront__form select:focus {
  outline: none;
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.22);
}

.admin-login__submit,
.storefront__pay,
.storefront__submit {
  color: #07080c;
  font-weight: 700;
  background: #818cf8;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 10px 28px -8px rgba(129, 140, 248, 0.8);
  transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
}

.admin-login__submit:hover:not(:disabled),
.storefront__pay:hover,
.storefront__submit:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 14px 34px -8px rgba(129, 140, 248, 0.95);
}

.admin-login__cancel { border-radius: 10px; }

.admin-login__close,
.storefront__close { transition: background-color 0.2s, transform 0.2s; }
.storefront__close:hover { background: rgba(255, 255, 255, 0.14); transform: rotate(90deg); }

.storefront__service {
  background: #11141f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.storefront__service:hover:not(:disabled) {
  background: rgba(129, 140, 248, 0.1);
  border-color: rgba(129, 140, 248, 0.7);
  box-shadow: 0 14px 36px -14px rgba(129, 140, 248, 0.5);
}

.storefront__service-mark {
  color: #07080c;
  background: #818cf8;
  border: 0;
  border-radius: 9px;
  box-shadow: 0 6px 18px -4px rgba(129, 140, 248, 0.6);
}

.storefront__total,
.storefront__history-item,
.storefront__qr,
.storefront__reference { border-radius: 12px; }
