/* Kraybazaar account — Lumen Console (lu-)
   Glass panels, vertical tab rail, fluid type, custom toggles.
   Independent of gl-/mx-/a70 account systems. */

.page-account.lu-lumen {
  --lu-ink: #0b1220;
  --lu-slate: #1a2740;
  --lu-mist: #e8eef8;
  --lu-glass: rgba(255, 255, 255, 0.55);
  --lu-glass-strong: rgba(255, 255, 255, 0.78);
  --lu-line: rgba(11, 18, 32, 0.1);
  --lu-mute: #5b6b82;
  --lu-cyan: #1ec8e0;
  --lu-amber: #f0a202;
  --lu-rose: #e23b5a;
  --lu-display: "Syne", "Segoe UI", sans-serif;
  --lu-sans: "Source Sans 3", "Segoe UI", sans-serif;
  --lu-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body.a70-body.page-account.lu-lumen {
  background:
    radial-gradient(70% 50% at 10% 0%, rgba(30, 200, 224, 0.18), transparent 55%),
    radial-gradient(60% 45% at 90% 20%, rgba(240, 162, 2, 0.14), transparent 50%),
    linear-gradient(165deg, #f4f7fc 0%, var(--lu-mist) 55%, #dbe5f4 100%);
  color: var(--lu-ink);
  font-family: var(--lu-sans);
}

.lu-world {
  position: relative;
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 3.5rem;
  isolation: isolate;
}

.lu-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
  animation: lu-drift 14s ease-in-out infinite alternate;
}

.lu-glow-a {
  width: 18rem;
  height: 18rem;
  top: 4rem;
  right: -4rem;
  background: rgba(30, 200, 224, 0.35);
}

.lu-glow-b {
  width: 14rem;
  height: 14rem;
  top: 18rem;
  left: -3rem;
  background: rgba(240, 162, 2, 0.28);
  animation-delay: -4s;
}

.lu-hero,
.lu-loading,
.lu-logged,
.lu-gate,
.lu-toast {
  position: relative;
  z-index: 1;
}

.lu-hero {
  margin-bottom: 1.5rem;
  animation: lu-rise 0.7s var(--lu-ease) both;
}

.lu-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lu-mute);
}

.lu-hero h1 {
  margin: 0 0 0.55rem;
  font-family: var(--lu-display);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.lu-hero h1 em {
  font-style: normal;
  color: var(--lu-cyan);
}

.lu-lede,
.lu-story-lede,
.lu-panel-lede {
  margin: 0;
  color: var(--lu-mute);
  line-height: 1.5;
  max-width: 42ch;
}

.lu-loading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem;
  background: var(--lu-glass);
  border: 1px solid var(--lu-line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  clip-path: polygon(0 0, 100% 0, 100% 82%, 96% 100%, 0 100%);
}

.lu-spinner {
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid rgba(30, 200, 224, 0.25);
  border-top-color: var(--lu-cyan);
  border-radius: 50%;
  animation: lu-spin 0.8s linear infinite;
}

/* —— Logged-in shell —— */
.lu-shell {
  display: grid;
  gap: 1rem;
}

.lu-identity {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem 1rem;
  align-items: center;
  padding: 1.1rem 1.2rem;
  background: var(--lu-glass-strong);
  border: 1px solid var(--lu-line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  clip-path: polygon(0 0, 100% 0, 100% 86%, 97% 100%, 0 100%);
}

.lu-avatar {
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  background: var(--lu-ink);
  color: var(--lu-cyan);
  font-family: var(--lu-display);
  font-size: 0.95rem;
  clip-path: polygon(20% 0, 100% 0, 100% 80%, 80% 100%, 0 100%, 0 20%);
}

.lu-identity-copy h2 {
  margin: 0;
  font-family: var(--lu-display);
  font-size: 1.35rem;
}

.lu-identity-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.lu-chip,
.lu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid transparent;
  background: var(--lu-ink);
  color: #fff;
  text-decoration: none;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s var(--lu-ease), background 0.2s var(--lu-ease), color 0.2s var(--lu-ease), border-color 0.2s var(--lu-ease);
}

.lu-chip:hover,
.lu-btn:hover {
  transform: translateY(-1px);
}

.lu-chip-ghost,
.lu-btn-ghost {
  background: transparent;
  border-color: var(--lu-ink);
  color: var(--lu-ink);
}

.lu-chip-danger {
  background: transparent;
  border-color: var(--lu-rose);
  color: var(--lu-rose);
}

.lu-btn-cyan {
  background: var(--lu-cyan);
  color: var(--lu-ink);
}

.lu-btn-amber {
  background: var(--lu-amber);
  color: var(--lu-ink);
}

.lu-workspace {
  display: grid;
  grid-template-columns: 11.5rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
}

.lu-tabs {
  position: relative;
  display: grid;
  gap: 0.35rem;
  padding: 0.4rem;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--lu-line);
  backdrop-filter: blur(12px);
}

.lu-tab-glow {
  position: absolute;
  left: 0.4rem;
  right: 0.4rem;
  top: 0.4rem;
  height: 3.2rem;
  background: linear-gradient(135deg, rgba(30, 200, 224, 0.35), rgba(240, 162, 2, 0.2));
  border: 1px solid rgba(30, 200, 224, 0.35);
  transition: transform 0.35s var(--lu-ease), height 0.35s var(--lu-ease), width 0.35s var(--lu-ease);
  pointer-events: none;
  z-index: 0;
}

.lu-tab {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.1rem;
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 0;
  background: transparent;
  color: var(--lu-mute);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: color 0.2s var(--lu-ease);
}

.lu-tab strong {
  font-family: var(--lu-display);
  font-size: 0.92rem;
  font-weight: 700;
}

.lu-tab small {
  font-size: 0.72rem;
}

.lu-tab.is-active,
.lu-tab:hover {
  color: var(--lu-ink);
}

.lu-stage {
  min-width: 0;
}

.lu-panel {
  display: none;
  padding: 1.2rem 1.25rem 1.4rem;
  background: var(--lu-glass-strong);
  border: 1px solid var(--lu-line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  clip-path: polygon(0 0, 100% 0, 100% 94%, 98% 100%, 0 100%);
  animation: lu-rise 0.45s var(--lu-ease) both;
}

.lu-panel.is-active {
  display: block;
}

.lu-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.lu-panel-head h3 {
  margin: 0;
  font-family: var(--lu-display);
  font-size: 1.25rem;
}

.lu-text-link {
  color: var(--lu-cyan);
  font-weight: 700;
  text-decoration: none;
}

.lu-text-link:hover {
  color: var(--lu-ink);
}

.lu-edit-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 0;
  background: transparent;
  color: var(--lu-ink);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.lu-edit-track {
  width: 2.6rem;
  height: 1.4rem;
  padding: 0.15rem;
  background: rgba(11, 18, 32, 0.12);
  border-radius: 999px;
  transition: background 0.25s var(--lu-ease);
}

.lu-edit-track i {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s var(--lu-ease);
}

.lu-edit-toggle.is-on .lu-edit-track,
.lu-edit-toggle[aria-pressed="true"] .lu-edit-track {
  background: var(--lu-cyan);
}

.lu-edit-toggle.is-on .lu-edit-track i,
.lu-edit-toggle[aria-pressed="true"] .lu-edit-track i {
  transform: translateX(1.2rem);
}

.lu-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.lu-profile-grid .profile-item {
  padding: 0.75rem 0.85rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--lu-line);
  transition: border-color 0.25s var(--lu-ease), transform 0.25s var(--lu-ease);
}

.lu-profile-grid.is-editing .profile-item {
  border-color: var(--lu-cyan);
  transform: translateY(-1px);
}

.lu-profile-grid .profile-item .k {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lu-mute);
}

.lu-profile-grid .profile-item .v {
  font-weight: 600;
}

body.lu-compact .lu-profile-grid {
  gap: 0.4rem;
}

body.lu-compact .lu-profile-grid .profile-item {
  padding: 0.5rem 0.65rem;
}

.lu-edit-tray {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(30, 200, 224, 0.08);
  border: 1px dashed rgba(30, 200, 224, 0.45);
}

.lu-edit-tray p {
  margin: 0 0 0.85rem;
  color: var(--lu-mute);
  font-size: 0.9rem;
}

.lu-form {
  display: grid;
  gap: 0.85rem;
}

.lu-form-narrow {
  max-width: 24rem;
}

.lu-field {
  display: grid;
  gap: 0.35rem;
}

.lu-field span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--lu-mute);
}

.lu-field input,
.lu-field textarea {
  width: 100%;
  min-height: 2.7rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--lu-line);
  background: rgba(255, 255, 255, 0.85);
  color: var(--lu-ink);
  font: inherit;
  transition: border-color 0.2s var(--lu-ease), box-shadow 0.2s var(--lu-ease);
}

.lu-field input:focus,
.lu-field textarea:focus {
  outline: none;
  border-color: var(--lu-cyan);
  box-shadow: 0 0 0 3px rgba(30, 200, 224, 0.2);
}

.lu-strength {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.3rem;
}

.lu-strength i {
  height: 0.28rem;
  background: rgba(11, 18, 32, 0.12);
  transition: background 0.25s var(--lu-ease);
}

.lu-strength[data-score="1"] i:nth-child(-n+1) { background: var(--lu-rose); }
.lu-strength[data-score="2"] i:nth-child(-n+2) { background: var(--lu-amber); }
.lu-strength[data-score="3"] i:nth-child(-n+3) { background: var(--lu-cyan); }
.lu-strength[data-score="4"] i { background: #19b36a; }

.lu-toggles {
  display: grid;
  gap: 0.65rem;
}

.lu-toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 0.9rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--lu-line);
  cursor: pointer;
}

.lu-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lu-switch {
  width: 2.7rem;
  height: 1.45rem;
  padding: 0.16rem;
  background: rgba(11, 18, 32, 0.14);
  border-radius: 999px;
  transition: background 0.25s var(--lu-ease);
}

.lu-switch i {
  display: block;
  width: 1.12rem;
  height: 1.12rem;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s var(--lu-ease);
}

.lu-toggle input:checked + .lu-switch {
  background: var(--lu-cyan);
}

.lu-toggle input:checked + .lu-switch i {
  transform: translateX(1.25rem);
}

.lu-toggle-copy {
  display: grid;
  gap: 0.15rem;
}

.lu-toggle-copy small {
  color: var(--lu-mute);
  font-size: 0.82rem;
}

body.lu-orders-pulse .lu-order-list .order-row:first-child {
  animation: lu-pulse 1.6s ease-in-out 2;
}

/* —— Logged-out gate —— */
.lu-gate {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1rem;
  align-items: stretch;
}

.lu-story,
.lu-auth {
  padding: 1.35rem 1.3rem 1.5rem;
  background: var(--lu-glass-strong);
  border: 1px solid var(--lu-line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.lu-story {
  clip-path: polygon(0 0, 100% 0, 100% 92%, 92% 100%, 0 100%);
}

.lu-story h2 {
  margin: 0 0 0.6rem;
  font-family: var(--lu-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.lu-benefits {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.lu-benefits li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  font-size: 0.92rem;
}

.lu-benefits span {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  background: var(--lu-ink);
  color: var(--lu-cyan);
  font-size: 0.7rem;
  font-weight: 700;
}

.lu-mode {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 0.3rem;
  background: rgba(11, 18, 32, 0.05);
}

.lu-mode-glow {
  position: absolute;
  top: 0.3rem;
  left: 0.3rem;
  width: calc(50% - 0.3rem);
  height: calc(100% - 0.6rem);
  background: #fff;
  border: 1px solid rgba(30, 200, 224, 0.35);
  transition: transform 0.3s var(--lu-ease), width 0.3s var(--lu-ease);
  pointer-events: none;
  z-index: 0;
}

.lu-mode-btn {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.1rem;
  padding: 0.7rem 0.6rem;
  border: 0;
  background: transparent;
  color: var(--lu-mute);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.lu-mode-btn.is-active,
.lu-mode-btn:hover {
  color: var(--lu-ink);
}

.lu-mode-btn strong {
  font-family: var(--lu-display);
  font-size: 0.95rem;
}

.lu-mode-btn small {
  font-size: 0.72rem;
}

.lu-auth-panel {
  display: none;
}

.lu-auth-panel.is-active {
  display: block;
  animation: lu-rise 0.4s var(--lu-ease) both;
}

.lu-auth-panel h3 {
  margin: 0 0 0.35rem;
  font-family: var(--lu-display);
  font-size: 1.3rem;
}

.lu-auth-panel .lu-panel-lede {
  margin-bottom: 1rem;
}

.lu-forgot {
  margin-top: 1rem;
}

.lu-forgot summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--lu-mute);
}

.lu-forgot .lu-form {
  margin-top: 0.75rem;
}

.lu-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  max-width: min(22rem, calc(100% - 2rem));
  padding: 0.85rem 1rem;
  background: var(--lu-ink);
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.25s var(--lu-ease), transform 0.25s var(--lu-ease);
}

.lu-toast.visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.lu-toast.success {
  box-shadow: inset 3px 0 0 var(--lu-cyan);
}

.lu-toast.error {
  box-shadow: inset 3px 0 0 var(--lu-rose);
}

@keyframes lu-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes lu-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(12px, 18px, 0); }
}

@keyframes lu-spin {
  to { transform: rotate(360deg); }
}

@keyframes lu-pulse {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 0 3px rgba(30, 200, 224, 0.35); }
}

body.lu-no-motion .lu-glow,
body.lu-no-motion .lu-panel,
body.lu-no-motion .lu-auth-panel,
body.lu-no-motion .lu-hero,
body.lu-no-motion .lu-tab-glow,
body.lu-no-motion .lu-mode-glow,
body.lu-no-motion .lu-spinner {
  animation: none !important;
  transition: none !important;
}

@media (max-width: 859px) {
  .lu-workspace {
    grid-template-columns: 1fr;
  }

  .lu-tabs {
    display: flex;
    overflow-x: auto;
    gap: 0.25rem;
  }

  .lu-tab-glow {
    top: 0.4rem;
    bottom: 0.4rem;
    left: 0.4rem;
    right: auto;
    width: 6rem;
    height: auto;
  }

  .lu-tab {
    flex: 0 0 auto;
    min-width: 6.5rem;
  }

  .lu-gate {
    grid-template-columns: 1fr;
  }

  .lu-profile-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lu-glow,
  .lu-panel,
  .lu-auth-panel,
  .lu-hero,
  .lu-spinner,
  .lu-tab-glow,
  .lu-mode-glow {
    animation: none !important;
  }
}
