/* Nexra Shop - Glassmorphic System, Buttons, Modals & Utility Elements */

/* Glass surface */
.glass {
  position: relative;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 28px;
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -1px 0 rgba(255, 255, 255, 0.04), 0 14px 44px rgba(5, 2, 15, 0.45);
  overflow: hidden;
  min-width: 0;
}

.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.16), transparent 62%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.glass:hover::after {
  opacity: 1;
}

.lift {
  transition: transform 0.35s var(--spring), border-color 0.25s, box-shadow 0.3s;
}

.lift:hover {
  transform: translateY(-6px) scale(1.012);
  border-color: rgba(196, 165, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 20px 60px rgba(154, 107, 255, 0.28);
}

/* Interactive Buttons */
.btn {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.25s var(--spring), background 0.2s, border-color 0.2s, box-shadow 0.25s;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.btn svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.btn:hover {
  border-color: rgba(196, 165, 255, 0.6);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn:active {
  transform: scale(0.95);
}

.btn.pri {
  background: linear-gradient(135deg, var(--lilac2), var(--lilac));
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3) inset, 0 8px 28px rgba(154, 107, 255, 0.5);
}

.btn.pri:hover {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4) inset, 0 12px 38px rgba(154, 107, 255, 0.7);
}

.btn.ghost {
  background: transparent;
}

.btn.big {
  padding: 14px 28px;
  font-size: 15px;
}

.rp {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  pointer-events: none;
  animation: ripple 0.65s ease-out forwards;
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 3, 16, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 50;
  overflow-y: auto;
  animation: fade 0.25s both;
}

.modal.out {
  animation: fadeout 0.2s both;
}

.box {
  width: 100%;
  max-width: 470px;
  padding: 28px;
  display: grid;
  gap: 16px;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 32px;
  animation: pop 0.5s var(--spring) both;
}

.modal.out .box {
  animation: popout 0.2s both;
}

.box h3 {
  font-size: 23px;
}

.box p {
  margin: 0;
  color: var(--mute);
  font-size: 14px;
}

.x {
  justify-self: end;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  color: var(--mute);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  margin: -8px -8px 0 0;
  transition: 0.25s var(--spring);
}

.x:hover {
  transform: rotate(90deg);
  color: var(--fg);
}

/* Form inputs */
textarea, select, input[type=text], input[type=email], input[type=number] {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--fg);
  padding: 12px 16px;
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

textarea:focus, input:focus, select:focus {
  border-color: var(--lilac);
  outline: none;
  box-shadow: 0 0 0 3px rgba(196, 165, 255, 0.2);
}

label {
  font-size: 13px;
  color: var(--mute);
  display: block;
  margin-bottom: 6px;
}

select option {
  background: #1a1230;
  color: var(--fg);
}

/* Segmented controls & pills */
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.seg.three {
  grid-template-columns: repeat(3, 1fr);
}

.seg button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--mute);
  transition: 0.25s var(--spring);
}

.seg button.on {
  background: linear-gradient(135deg, var(--lilac2), var(--lilac));
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(154, 107, 255, 0.5);
}

.pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 24px 0 26px;
}

.pill {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 600;
  font-size: 14px;
  color: var(--mute);
  transition: 0.25s var(--spring);
}

.pill:hover {
  color: var(--fg);
  transform: translateY(-2px);
}

.pill.on {
  color: var(--ink);
  background: linear-gradient(135deg, var(--lilac2), var(--lilac));
  border-color: transparent;
  box-shadow: 0 6px 24px rgba(154, 107, 255, 0.5);
}

/* Info and warning callouts */
.sum {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
}

.sum span {
  min-width: 0;
  font-weight: 600;
}

.sum b {
  font: 700 20px var(--display);
  white-space: nowrap;
}

.addr {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px 12px 10px 16px;
  background: rgba(255, 255, 255, 0.05);
}

.addr code {
  font: 500 12.5px var(--mono);
  overflow-wrap: anywhere;
  flex: 1;
  min-width: 0;
}

.dcbox {
  border: 1px solid rgba(170, 180, 255, 0.35);
  background: rgba(170, 180, 255, 0.08);
  border-radius: 18px;
  padding: 11px 16px;
  font-size: 13px;
  color: #c5ccff;
}

.steps {
  margin: 0;
  padding-left: 18px;
  color: var(--mute);
  font-size: 13.5px;
  display: grid;
  gap: 6px;
}

.steps a {
  color: var(--lilac2);
  text-decoration: underline;
}

.warn {
  border: 1px solid rgba(252, 211, 77, 0.35);
  background: rgba(252, 211, 77, 0.07);
  color: #ecd593;
  border-radius: 18px;
  padding: 11px 16px;
  font-size: 13px;
}

/* Particles & Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  translate: -50% 0;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  z-index: 60;
  animation: pop 0.5s var(--spring) both;
  white-space: nowrap;
}

.spark {
  position: fixed;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 70;
  animation: spark 0.9s ease-out forwards;
}

