/* ═══════════════════════════════════════════════════════════════════════
   NightGirl — live layer styles  (ng-live.css)
   Only UI that did not exist before the store went live: the route-change
   loading screen, the global toast (a copy of the cart page's own .toast so it
   looks identical everywhere), and a quiet "updating" state for grids while a
   filter change loads. Nothing here restyles existing components.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Route-change loading screen ─────────────────────────────────────── */
.ng-route-loader {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 60% 45% at 50% 50%, rgba(138, 43, 226, .10), transparent 70%),
    rgba(0, 0, 0, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 1;
  animation: ngRlIn .18s ease-out both;
  transition: opacity .38s cubic-bezier(.19, 1, .22, 1);
}
.ng-route-loader.is-leaving { opacity: 0; pointer-events: none; }
/* The veil is now a permanent element owned outside React, so a click can
   raise it in the same frame instead of waiting for a render. Parked here
   when idle: no paint, no hit-testing, no animation running. */
.ng-route-loader.is-idle { display: none; }

.ng-rl-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  transform: translateY(0);
  transition: transform .38s cubic-bezier(.19, 1, .22, 1);
}
.ng-route-loader.is-leaving .ng-rl-center { transform: translateY(-6px) scale(.985); }

.ng-rl-logo {
  width: 150px;
  height: auto;
  opacity: .95;
  filter: drop-shadow(0 0 14px rgba(186, 85, 211, .35));
  animation: ngRlPulse 1.8s ease-in-out infinite;
  user-select: none;
  -webkit-user-drag: none;
}
.ng-rl-line {
  position: relative;
  width: 132px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, .08);
}
.ng-rl-line span {
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #8a2be2, #ba55d3, transparent);
  box-shadow: 0 0 8px rgba(186, 85, 211, .8);
  animation: ngRlSweep 1.15s cubic-bezier(.65, 0, .35, 1) infinite;
}
.ng-rl-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  overflow: hidden;
}
.ng-rl-bar span {
  position: absolute;
  top: 0;
  left: 0;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #8a2be2 40%, #ba55d3 60%, transparent);
  box-shadow: 0 0 10px rgba(186, 85, 211, .7);
  animation: ngRlBar 1.3s cubic-bezier(.65, 0, .35, 1) infinite;
}

@keyframes ngRlIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ngRlPulse { 0%, 100% { opacity: .62; } 50% { opacity: 1; } }
@keyframes ngRlSweep { 0% { transform: translateX(-110%); } 100% { transform: translateX(250%); } }
@keyframes ngRlBar { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }

/* keep the page from scrolling under the veil */
html.ng-routing, html.ng-routing body { overflow: hidden; }

@media (max-width: 768px) {
  .ng-rl-logo { width: 118px; }
  .ng-rl-line { width: 104px; }
}
@media (prefers-reduced-motion: reduce) {
  .ng-route-loader, .ng-rl-center { transition: none; animation: none; }
  .ng-rl-logo, .ng-rl-line span, .ng-rl-bar span { animation: none; }
}

/* ── Toast (mirrors .toast from the cart page) ───────────────────────── */
.ng-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translate(-50%) translateY(20px);
  background: #0a0a0af2;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(138, 43, 226, .2);
  border-radius: 3px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2147482000;
  opacity: 0;
  transition: all .4s cubic-bezier(.19, 1, .22, 1);
  pointer-events: none;
  max-width: calc(100vw - 32px);
}
.ng-toast.show { opacity: 1; transform: translate(-50%) translateY(0); pointer-events: auto; }
.ng-toast.success { border-color: #4caf5040; }
.ng-toast.error { border-color: #ff444440; }
.ng-toast i { font-size: 12px; flex-shrink: 0; }
.ng-toast.success i { color: #4caf50; }
.ng-toast.error i { color: #ff4d5e; }
.ng-toast span { font-size: 11px; font-weight: 400; color: #ffffffc0; letter-spacing: .3px; line-height: 1.5; }
@media (max-width: 768px) { .ng-toast { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } }

/* ── Grids refreshing in place (filters, sort, review pages) ─────────── */
.ng-updating { opacity: .45; transition: opacity .2s ease; pointer-events: none; }
.ng-ready-fade { animation: ngFadeUp .45s cubic-bezier(.19, 1, .22, 1) both; }
@keyframes ngFadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Stripe's secure card fields sit inside the existing .form-input boxes */
.ng-stripe-field { display: flex; align-items: center; min-height: 40px; }
.ng-stripe-field > div { width: 100%; }
.ng-hidden-input { display: none !important; }

/* sold-out size / colour options */
.size-option[disabled], .size-option.ng-unavailable { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.color-option.ng-unavailable { opacity: .35; }

/* ── Product reviews: write / reply / report ─────────────────────────── */
.ng-review-form { display: flex; flex-direction: column; gap: 10px; }
.ng-rf-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(138, 43, 226, .22);
  border-radius: 2px;
  color: #fff;
  font: inherit;
  font-size: 12px;
  padding: 10px 12px;
  outline: none;
  resize: vertical;
  transition: border-color .25s ease, background .25s ease;
}
.ng-rf-input:focus { border-color: rgba(186, 85, 211, .6); background: rgba(138, 43, 226, .06); }
.ng-rf-input::placeholder { color: rgba(255, 255, 255, .35); }
.ng-rating-input .star { cursor: pointer; }
.ng-review-reply {
  margin-top: 10px;
  padding: 8px 10px;
  border-left: 2px solid rgba(186, 85, 211, .6);
  background: rgba(138, 43, 226, .06);
  font-size: .95em;
  color: rgba(255, 255, 255, .75);
}
.ng-review-reply i { color: #ba55d3; margin-right: 4px; }
.ng-report-select { background: #0b0b0d; color: rgba(255, 255, 255, .8); border: 1px solid rgba(138, 43, 226, .3); }

/* ── Journal: comment composer (the review form's look, on the article page) ── */
.ng-comment-form { margin-bottom: 18px; }
.ng-cf-row { display: flex; gap: 10px; flex-wrap: wrap; }
.ng-cf-row > .ng-rf-input { flex: 1 1 180px; }
.ng-cf-row > .load-more-btn { width: auto; min-width: 150px; }
.ng-cf-note { font-size: 10px; color: rgba(255, 255, 255, .35); letter-spacing: .3px; }
.ng-cf-note a { color: #ba55d3; text-decoration: none; }
.comment .comment { border-top: 1px solid rgba(255, 255, 255, .04); padding-top: 12px; }
.page-btn[disabled] { opacity: .35; cursor: default; }

/* ── Account dashboard screens (the checkout form's own rules, so every
      form in the member area reads exactly like checkout) ───────────── */
.ng-dash-form { display: flex; flex-direction: column; gap: 16px; }
.ng-dash-form .form-section, .ng-dash-form.form-section { border: 1px solid rgba(255,255,255,.04); border-radius: 2px; background: #ffffff04; padding: 20px; transition: border-color .4s ease; }
.ng-dash-form .form-section:hover, .ng-dash-form.form-section:hover { border-color: #8a2be214; }
.ng-dash-form .form-section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.04); }
.ng-dash-form .form-section-title i { font-size: 13px; color: #8a2be2; opacity: .6; }
.ng-dash-form .form-section-title span { font-size: 11px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: #ffffffc0; }
.ng-dash-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.ng-dash-form .form-grid.single { grid-template-columns: 1fr; }
.ng-dash-form .form-group { display: flex; flex-direction: column; gap: 5px; }
.ng-dash-form .form-label { font-size: 9px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: #ffffff50; }
.ng-dash-form .form-label.required:after { content: " *"; color: #ba55d3; opacity: .6; }
.ng-dash-form .form-input, .ng-dash-form .form-select { padding: 10px 12px; background: #ffffff08; border: 1px solid rgba(255,255,255,.06); border-radius: 2px; color: #fff; font-size: 12px; font-family: Roboto, sans-serif; outline: none; transition: border-color .3s ease; caret-color: #8a2be2; width: 100%; box-sizing: border-box; }
.ng-dash-form .form-input:focus, .ng-dash-form .form-select:focus { border-color: #8a2be259; }
.ng-dash-form .form-input::placeholder { color: #ffffff30; }
.ng-dash-form .form-input[readonly] { opacity: .55; }
.ng-dash-form .form-select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23ffffff40'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.ng-dash-form .form-select option { background: #111; color: #fff; }
.ng-dash-form .action-btn { align-self: flex-start; cursor: pointer; }
/* the dashboard's own .action-btn, so member-area forms reused on other pages (Help Center) look identical */
.ng-dash-form .action-btn { background: #8a2be20f; border: 1px solid rgba(138,43,226,.2); border-radius: 2px; color: #ffffffa0; padding: 10px 18px; font-size: 9px; font-weight: 500; text-transform: uppercase; letter-spacing: 1.5px; transition: all .4s cubic-bezier(.19,1,.22,1); text-decoration: none; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; position: relative; overflow: hidden; font-family: inherit; }
.ng-dash-form .action-btn:hover { border-color: rgba(138,43,226,.45); color: #fff; background: #8a2be21f; }
.ng-dash-form .action-btn[disabled] { opacity: .5; cursor: default; }
.ng-dash-form textarea.form-input { resize: vertical; min-height: 96px; line-height: 1.6; }
.ng-check-row { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #ffffffa0; cursor: pointer; padding: 10px 0; }
.ng-check-row input, .ng-toggle-row input { accent-color: #8a2be2; width: 15px; height: 15px; }
.ng-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.04); border-radius: 2px; background: #ffffff04; cursor: pointer; transition: border-color .3s ease; }
.ng-toggle-row:hover { border-color: #8a2be226; }
.ng-toggle-row span { display: flex; flex-direction: column; gap: 3px; }
.ng-toggle-row strong { font-size: 12px; font-weight: 400; color: #ffffffe6; }
.ng-toggle-row em { font-style: normal; font-size: 9.5px; color: #ffffff50; letter-spacing: .2px; }
.ng-thread { margin: -4px 0 12px; padding: 14px 16px; border: 1px solid rgba(138,43,226,.12); border-top: 0; background: #ffffff03; display: flex; flex-direction: column; gap: 10px; }
.ng-msg { padding: 10px 12px; border-left: 2px solid rgba(255,255,255,.12); background: #ffffff05; }
.ng-msg.staff { border-left-color: #ba55d3; background: rgba(138,43,226,.06); }
.ng-msg-meta { font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: #ffffff50; margin-bottom: 5px; }
.ng-msg-body { font-size: 12px; color: #ffffffc8; line-height: 1.6; white-space: pre-wrap; }
@media (max-width: 768px) { .ng-dash-form .form-grid { grid-template-columns: 1fr; } }

/* ── pass 2: mobile overflow fixes ─────────────────────────────────────
   Three places where the captured design assumed a wrapper it no longer
   has, and pushed the page sideways on a phone. */

/* the "you may also like" strip is a full-bleed carousel on mobile; give
   it its own scroller so all six looks are reachable by swiping and the
   page itself never scrolls sideways */
@media (max-width: 768px) {
  .product-page .recommendations-full-width {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .product-page .recommendations-full-width::-webkit-scrollbar { display: none; }
  .product-page .recommendations-grid > * { scroll-snap-align: start; }
}

/* The Edit's See More button bleeds 12px either side, which needs a
   padded parent — on a phone the column has no padding */
@media (max-width: 768px) {
  .main-content > .view-all-section-btn { margin-left: 0; width: 100%; }
}

/* the breadcrumb is a horizontal scroller on a phone, but the column
   layout let it size to its content (a long article title) and push the
   whole page sideways — cap it so it scrolls instead */
.timeline-path { min-width: 0; }
.timeline-item { min-width: 0; }
@media (max-width: 768px) {
  .timeline-path { max-width: 100%; }
}

/* ── pass 3: "email me when it's back" (product page) ──────────────────
   Sold out used to be a dead end. The bag button becomes the alert
   button, and guests get one inline field in the page's own idiom. */
.ng-bis { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.ng-bis-note { font-size: 10px; font-weight: 300; letter-spacing: .4px; color: rgba(255,255,255,.42); line-height: 1.5; }
.ng-bis-link {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 7px;
  background: rgba(138,43,226,.06); border: 1px solid rgba(138,43,226,.22); border-radius: 2px;
  color: #ffffffa0; font-family: inherit; font-size: 9px; font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 10px 16px; cursor: pointer;
  transition: all .4s cubic-bezier(.19,1,.22,1);
}
.ng-bis-link:hover { border-color: rgba(138,43,226,.45); background: rgba(138,43,226,.12); color: #fff; }
.ng-bis-link i { font-size: 10px; color: #ba55d3; }
.ng-bis-form {
  display: flex; max-width: 380px; width: 100%; overflow: hidden;
  border: 1px solid rgba(138,43,226,.25); border-radius: 2px; background: rgba(0,0,0,.3);
  transition: border-color .4s ease;
}
.ng-bis-form:focus-within { border-color: rgba(138,43,226,.5); }
.ng-bis-form input {
  flex: 1; min-width: 0; padding: 11px 14px; background: transparent; border: none; outline: none;
  color: #fff; font-size: 12px; font-family: inherit; caret-color: #ba55d3;
}
.ng-bis-form input::placeholder { color: rgba(255,255,255,.3); }
.ng-bis-form button {
  flex-shrink: 0; padding: 0 18px; border: none; cursor: pointer; font-family: inherit;
  background: linear-gradient(135deg, #8a2be2, #ba55d3); color: #fff;
  font-size: 9px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
  transition: opacity .3s ease;
}
.ng-bis-form button:hover { opacity: .88; }
.ng-bis-form button:disabled { opacity: .6; cursor: default; }

/* the invoice button joins the confirmation page's action row; the design
   colours each button by class, so the new one gets its own */
.btn-invoice { background: #2f2f38; }
.btn-invoice:hover { background: #3a3a45; }

/* ── pass 4: a route that is slow, or that fails, is never a blank page ──
   The placeholder holds the page while a chunk arrives (the veil gives up
   after 6s); the error panel is the last resort when it won't load. */
.ng-route-pending {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 60px 20px;
}
.ng-rp-logo { width: 130px; max-width: 60vw; opacity: .5; filter: drop-shadow(0 0 22px rgba(138,43,226,.25)); }
.ng-rp-line { width: 160px; height: 1px; background: rgba(255,255,255,.08); overflow: hidden; }
.ng-rp-line span {
  display: block; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, #ba55d3, transparent);
  animation: ngRpSlide 1.15s ease-in-out infinite;
}
@keyframes ngRpSlide { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }
.ng-rp-note { font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: rgba(255,255,255,.3); margin: 0; }

.ng-page-error {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 70px 22px;
  text-align: center;
}
.ng-pe-logo { width: 140px; max-width: 55vw; opacity: .75; margin-bottom: 6px; }
.ng-pe-title { font-size: 19px; font-weight: 300; letter-spacing: 3px; text-transform: uppercase; color: #fff; margin: 0; }
.ng-pe-text { max-width: 440px; font-size: 12.5px; font-weight: 300; line-height: 1.7; color: rgba(255,255,255,.55); margin: 0; }
.ng-pe-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.ng-pe-btn {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer; text-decoration: none;
  padding: 11px 20px; border: 1px solid rgba(138,43,226,.25); border-radius: 2px;
  background: rgba(138,43,226,.06); color: rgba(255,255,255,.75);
  font-family: inherit; font-size: 9px; font-weight: 500; letter-spacing: 1.8px; text-transform: uppercase;
  transition: all .4s cubic-bezier(.19,1,.22,1);
}
.ng-pe-btn:hover { border-color: rgba(138,43,226,.5); background: rgba(138,43,226,.14); color: #fff; }
.ng-pe-btn.primary { background: linear-gradient(135deg, #8a2be2, #ba55d3); border-color: transparent; color: #fff; }
.ng-pe-btn.primary:hover { opacity: .9; }

/* ── Carrier checkpoints (shop pass 4) ───────────────────────────────────
   Appended inside the existing Order Status section on /confirmation. Same
   type scale and purple as the panel it sits in — no new visual language. */
.ng-ckpts { margin-top: 22px; border-top: 1px solid rgba(255,255,255,.06); padding-top: 16px; }
.ng-ckpt-eta {
  font-size: 9px; letter-spacing: 1.8px; text-transform: uppercase;
  color: #ba55d3; margin-bottom: 12px;
}
.ng-ckpt {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  padding: 7px 0 7px 14px; position: relative;
  font-size: 11.5px; font-weight: 300; color: rgba(255,255,255,.5);
}
.ng-ckpt::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.18);
}
.ng-ckpt.done::before { background: #ba55d3; box-shadow: 0 0 8px rgba(186,85,211,.6); }
.ng-ckpt.warn::before { background: #e0855b; }
.ng-ckpt-when { min-width: 104px; font-size: 10px; letter-spacing: .6px; color: rgba(255,255,255,.32); }
.ng-ckpt-what { color: rgba(255,255,255,.72); }
.ng-ckpt-where { font-size: 10px; color: rgba(255,255,255,.3); }
@media (max-width: 480px) {
  .ng-ckpt { gap: 2px 8px; }
  .ng-ckpt-when { min-width: 100%; }
}

