/* Bottom-right Get Email Stock dock (FAB + drop-up order panel) */
.stock-buy-dock {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  max-width: min(24.5rem, calc(100vw - 2rem));
  pointer-events: none;
}
.stock-buy-dock > * { pointer-events: auto; }

.stock-buy-fab-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  width: min(24.5rem, calc(100vw - 2rem));
  max-width: 100%;
  animation: stockFabWrapIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes stockFabWrapIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.stock-buy-fab {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.92rem 1.15rem 0.92rem 0.88rem;
  border: 0;
  border-radius: 1.25rem;
  cursor: pointer;
  color: #f8fafc;
  font-family: 'Sora', 'Outfit', sans-serif;
  text-align: left;
  background:
    linear-gradient(125deg, #0f766e 0%, #1d4ed8 42%, #2563eb 68%, #0ea5e9 100%);
  background-size: 180% 180%;
  box-shadow:
    0 16px 40px rgba(37, 99, 235, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 0 28px rgba(14, 165, 233, 0.28);
  transition:
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.28s ease,
    background-position 0.45s ease;
  animation: stockFabPulse 3.2s ease-in-out infinite;
}
@keyframes stockFabPulse {
  0%, 100% {
    box-shadow:
      0 16px 40px rgba(37, 99, 235, 0.42),
      0 0 0 1px rgba(255, 255, 255, 0.18) inset,
      0 0 24px rgba(14, 165, 233, 0.22);
  }
  50% {
    box-shadow:
      0 18px 46px rgba(37, 99, 235, 0.52),
      0 0 0 1px rgba(255, 255, 255, 0.22) inset,
      0 0 36px rgba(45, 212, 191, 0.38);
  }
}
.stock-buy-fab-glow {
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(45, 212, 191, 0.45), transparent 40%, rgba(96, 165, 250, 0.35));
  opacity: 0.7;
  z-index: -1;
  filter: blur(14px);
  pointer-events: none;
  animation: stockFabGlow 2.8s ease-in-out infinite;
}
@keyframes stockFabGlow {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.03); }
}
.stock-buy-fab-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.28) 48%,
    transparent 62%
  );
  transform: translateX(-120%);
  pointer-events: none;
  z-index: 1;
}
.stock-buy-fab:hover .stock-buy-fab-shine {
  animation: stockFabShine 0.85s ease;
}
@keyframes stockFabShine {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}
.stock-buy-fab-brand {
  position: relative;
  z-index: 2;
  width: 2.85rem;
  height: 2.85rem;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border-radius: 1rem;
  color: #ffffff;
  background:
    radial-gradient(120% 120% at 18% 12%, rgba(255, 255, 255, 0.45), transparent 42%),
    linear-gradient(145deg, #14b8a6 0%, #2563eb 52%, #1e3a8a 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28) inset,
    0 10px 22px rgba(15, 23, 42, 0.28),
    0 0 18px rgba(45, 212, 191, 0.35);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.28s ease, box-shadow 0.2s ease;
}
.stock-buy-fab-brand-ring {
  position: absolute;
  inset: 3px;
  border-radius: 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  pointer-events: none;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.12) inset;
  animation: stockFabBrandRing 2.8s ease-in-out infinite;
}
@keyframes stockFabBrandRing {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}
.stock-buy-fab-mark {
  position: relative;
  z-index: 1;
  display: block;
  color: #ffffff;
  filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.35));
  animation: stockFabMarkFloat 3s ease-in-out infinite;
}
@keyframes stockFabMarkFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1px); }
}
.stock-buy-fab-logo {
  width: 1.55rem;
  height: 1.55rem;
  object-fit: contain;
  display: block;
}
.stock-buy-fab-icon {
  position: relative;
  z-index: 2;
  width: 2.7rem;
  height: 2.7rem;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.2);
  font-size: 1.15rem;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16) inset,
    0 8px 18px rgba(15, 23, 42, 0.18);
  transition: transform 0.28s ease, background 0.2s ease;
}
.stock-buy-fab-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  flex: 1 1 auto;
}
.stock-buy-fab-copy strong {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-shadow: 0 1px 10px rgba(15, 23, 42, 0.25);
}
.stock-buy-fab-chevron {
  position: relative;
  z-index: 2;
  margin-left: 0.1rem;
  font-size: 0.82rem;
  opacity: 0.9;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.stock-buy-fab:hover {
  transform: translateY(-4px) scale(1.015);
  background-position: 100% 50%;
  box-shadow:
    0 22px 48px rgba(37, 99, 235, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.24) inset,
    0 0 40px rgba(45, 212, 191, 0.4);
  animation: none;
}
.stock-buy-fab:hover .stock-buy-fab-icon,
.stock-buy-fab:hover .stock-buy-fab-brand {
  transform: scale(1.07) rotate(-4deg);
}
.stock-buy-fab:hover .stock-buy-fab-icon {
  background: rgba(255, 255, 255, 0.28);
}
.stock-buy-fab:hover .stock-buy-fab-brand {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.4) inset,
    0 12px 26px rgba(15, 23, 42, 0.32),
    0 0 26px rgba(45, 212, 191, 0.5);
}
.stock-buy-fab:hover .stock-buy-fab-mark {
  animation: none;
  transform: scale(1.05);
}
.stock-buy-fab:active {
  transform: translateY(-1px) scale(0.995);
}
.stock-buy-fab:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.stock-buy-dock.is-open .stock-buy-fab-chevron {
  transform: rotate(180deg);
}
.stock-buy-panel {
  position: relative;
  width: min(24.5rem, calc(100vw - 2rem));
  height: min(72vh, 36rem);
  max-height: min(72vh, 36rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
  padding: 0;
  border-radius: 1.25rem;
  background: #f8fafc;
  color: var(--auth-ink, #1e293b);
  box-shadow:
    0 28px 60px rgba(2, 6, 23, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.55) inset;
  transform-origin: bottom right;
  transform: translateY(10px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.22s ease;
  isolation: isolate;
}
.stock-buy-dock.is-open .stock-buy-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.stock-buy-panel[hidden] { display: none !important; }
.stock-buy-dock.is-open .stock-buy-panel[hidden] { display: flex !important; }

.stock-buy-sticky {
  flex: 0 0 auto;
  position: relative;
  z-index: 6;
  padding: 1.05rem 1.05rem 0.55rem;
  background: #f8fafc;
  border-bottom: 1px solid transparent;
  transition:
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease;
}
.stock-buy-sticky.is-stuck {
  border-bottom-color: rgba(148, 163, 184, 0.35);
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  background: #ffffff;
  animation: stockStickyIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes stockStickyIn {
  from { box-shadow: 0 0 0 transparent; }
  to {
    box-shadow:
      0 10px 28px rgba(15, 23, 42, 0.1),
      0 1px 0 rgba(255, 255, 255, 0.8) inset;
  }
}
.stock-buy-panel-body {
  flex: 1 1 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.35rem 1.05rem 1.75rem;
  -webkit-overflow-scrolling: touch;
  background: #f8fafc;
}

.stock-buy-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}
.stock-buy-sub--compact {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.stock-buy-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f766e;
}
.stock-buy-panel-head h2 {
  margin: 0;
  font-family: 'Sora', 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}
.stock-buy-sub {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--auth-muted, #64748b);
}
.stock-buy-close {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #334155;
  background: rgba(15, 23, 42, 0.06);
  display: inline-grid;
  place-items: center;
}
.stock-buy-close:hover { background: rgba(15, 23, 42, 0.1); }
.stock-panel-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
  padding: 0.28rem;
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.06);
}
.stock-panel-tabs--solo {
  grid-template-columns: 1fr;
  justify-items: stretch;
  padding: 0.35rem;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(99, 102, 241, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.16);
  animation: stockOrderStripIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.stock-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 0.7rem;
  padding: 0.55rem 0.65rem;
  cursor: pointer;
  font-family: 'Sora', 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  color: #475569;
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.2s ease;
}
.stock-tab.is-active {
  color: #0f172a;
  background: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}
.stock-tab--solo {
  width: 100%;
  justify-content: center;
  padding: 0.72rem 1rem;
  border-radius: 0.8rem;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
}
.stock-tab--solo .stock-tab-label {
  display: inline-block;
  animation: stockOrderLabelPulse 2.8s ease-in-out infinite;
}
.stock-tab--solo:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
}
@keyframes stockOrderStripIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes stockOrderLabelPulse {
  0%, 100% { letter-spacing: 0.04em; text-shadow: none; }
  50% { letter-spacing: 0.08em; text-shadow: 0 0 18px rgba(59, 130, 246, 0.28); }
}
.stock-tab-live {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
  animation: dealPulse 1.8s ease-out infinite;
}
@keyframes dealPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.stock-pane[hidden] { display: none !important; }
.stock-order-closed {
  padding: 0.9rem 0.95rem;
  border-radius: 0.9rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: #92400e;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.45;
}
.stock-buy-rate {
  margin: 0 0 0.65rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #0f172a;
  background: rgba(15, 118, 110, 0.1);
}

.live-deal-shell { display: flex; flex-direction: column; gap: 0.6rem; }
.live-deal-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.75rem;
  border-radius: 0.95rem;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.1), rgba(14, 165, 233, 0.08));
  border: 1px solid rgba(37, 99, 235, 0.16);
}
.live-deal-banner-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.live-deal-banner-left strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}
.live-deal-avatar {
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border-radius: 0.8rem;
  color: #fff;
  background: linear-gradient(145deg, #1d4ed8, #0ea5e9);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}
.live-deal-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.15rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #047857;
}
.live-deal-avail {
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 0.8rem;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.45;
  color: #334155;
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.18);
}
.live-deal-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}
.live-deal-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}
/* Reset login neumorphic input styles inside stock panel — fixes invisible text */
body .stock-buy-panel input.live-deal-field,
body .stock-buy-panel input.live-deal-input,
body .stock-buy-panel .live-deal-field {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  border: 1px solid #cbd5e1 !important;
  border-radius: 12px !important;
  padding: 0.7rem 0.85rem !important;
  font: 600 0.88rem "Sora", "Outfit", sans-serif !important;
  line-height: 1.35 !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  caret-color: #1d4ed8 !important;
  background: #fff !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04) !important;
  outline: none;
}
body .stock-buy-panel input.live-deal-field::placeholder,
body .stock-buy-panel input.live-deal-input::placeholder {
  color: #94a3b8 !important;
  -webkit-text-fill-color: #94a3b8 !important;
  opacity: 1;
}
body .stock-buy-panel input.live-deal-field:focus,
body .stock-buy-panel input.live-deal-input:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18) !important;
}
.live-deal-log {
  min-height: 11.5rem;
  max-height: 15.5rem;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0.7rem;
  border-radius: 1rem;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(37, 99, 235, 0.08), transparent 55%),
    linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid rgba(148, 163, 184, 0.4);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.live-deal-msg { display: flex; max-width: 92%; }
.live-deal-msg p {
  margin: 0;
  padding: 0.58rem 0.75rem;
  border-radius: 0.9rem;
  font-size: 0.8rem;
  line-height: 1.45;
  font-weight: 600;
  white-space: pre-wrap;
  word-break: break-word;
}
.live-deal-msg--bot,
.live-deal-msg--admin { align-self: flex-start; }
.live-deal-msg--bot p,
.live-deal-msg--admin p {
  background: #eef2ff;
  color: #0f172a;
  border-bottom-left-radius: 0.28rem;
}
.live-deal-msg--admin p {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(37, 99, 235, 0.12));
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.live-deal-msg--user {
  align-self: flex-end;
  margin-left: auto;
}
.live-deal-msg--user p {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #fff;
  border-bottom-right-radius: 0.28rem;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.22);
}
.live-deal-compose {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}
.live-deal-input { flex: 1 1 auto; min-width: 0; }
.live-deal-send {
  flex: 0 0 auto;
  width: 2.85rem;
  height: 2.85rem;
  min-width: 2.85rem;
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
  border-radius: 0.9rem;
  cursor: pointer;
  color: #fff;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(145deg, #2563eb, #1d4ed8);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.32);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.live-deal-send:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.4);
}
.live-deal-hint {
  margin: 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.4;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
@media (max-width: 560px) {
  .live-deal-meta { grid-template-columns: 1fr; }
}
.stock-buy-form { margin-top: 0.15rem; }
.stock-buy-submit {
  margin-top: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-weight: 800;
}
.stock-buy-foot {
  margin: 0.9rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--auth-muted, #64748b);
}
.stock-buy-foot a {
  color: var(--auth-accent-deep, #1d4ed8);
  font-weight: 700;
  text-decoration: none;
}
.stock-buy-foot a:hover { text-decoration: underline; }

.stock-portal-perk {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 0 0 0.85rem;
  padding: 0.8rem 0.85rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(16, 185, 129, 0.28);
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(59, 130, 246, 0.08));
  animation: stockPerkIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.stock-portal-perk-ico {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  color: #047857;
  background: rgba(255, 255, 255, 0.75);
}
.stock-portal-perk strong {
  display: block;
  font-size: 0.84rem;
  color: #0f172a;
  margin-bottom: 0.2rem;
}
.stock-portal-perk p {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: #475569;
  font-weight: 500;
}
@keyframes stockPerkIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.stock-pay-popup {
  margin: 0.55rem 0 0.85rem;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  filter: none;
  background: #f8fafc;
  transition:
    max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.28s ease,
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.stock-pay-popup[hidden]:not(.is-visible) {
  display: none !important;
  pointer-events: none;
}
.stock-pay-popup.is-visible {
  display: block !important;
  max-height: 18rem;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.stock-pay-popup.is-switching .stock-pay-popup-inner {
  animation: stockPaySwitch 0.35s ease;
}
.stock-pay-popup-inner {
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: #ffffff;
  box-shadow:
    0 12px 28px rgba(15, 23, 42, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.9) inset;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  filter: none;
}
.stock-pay-popup-top {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
}
.stock-pay-popup-badge {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  color: #1d4ed8;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  font-size: 0.95rem;
  padding: 0;
}
.stock-pay-popup-badge .stock-pay-brand-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: inherit;
  background: #ffffff;
  padding: 0;
  box-sizing: border-box;
}
.stock-pay-popup-badge .stock-pay-brand-img[data-method="bank"] {
  width: 118%;
  height: 118%;
  max-width: none;
  transform: scale(1.12);
}
.stock-pay-popup-badge .stock-pay-brand-img[data-method="easypaisa"] {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  background: #ffffff;
}
.stock-pay-popup-badge .stock-pay-brand-img[data-method="nayapay"] {
  object-fit: cover;
  background: transparent;
}
.stock-pay-brand-img {
  display: block;
  border-radius: 0.45rem;
  object-fit: contain;
  background: #ffffff;
  flex: 0 0 auto;
}
.stock-pay-brand-fallback {
  width: 1.35rem;
  height: 1.35rem;
  display: inline-grid;
  place-items: center;
  color: #64748b;
  font-size: 0.8rem;
}

/* Custom Preferred Payment select with brand logos */
.stock-pay-select {
  position: relative;
  z-index: 2;
  margin-bottom: 0.15rem;
}
.stock-pay-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.stock-pay-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0.62rem 0.85rem;
  background: #ffffff;
  color: #0f172a;
  font: 600 0.9rem "Sora", "Outfit", sans-serif;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
}
.stock-pay-select-trigger:hover {
  border-color: rgba(37, 99, 235, 0.45);
}
.stock-pay-select.is-open .stock-pay-select-trigger,
.stock-pay-select-trigger:focus-visible {
  outline: none;
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}
.stock-pay-select-icon {
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  overflow: hidden;
  display: inline-grid;
  place-items: center;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.28);
}
.stock-pay-select-icon .stock-pay-brand-img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: contain;
  background: #ffffff;
}
.stock-pay-select-icon .stock-pay-brand-img[data-method="bank"] {
  width: 122%;
  height: 122%;
  max-width: none;
  transform: scale(1.14);
}
.stock-pay-select-icon .stock-pay-brand-img[data-method="easypaisa"] {
  object-fit: cover;
  padding: 0;
  box-sizing: border-box;
  background: #ffffff;
}
.stock-pay-select-icon .stock-pay-brand-img[data-method="nayapay"] {
  object-fit: cover;
  background: transparent;
}
.stock-pay-select-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stock-pay-select-caret {
  flex: 0 0 auto;
  font-size: 0.72rem;
  color: #64748b;
  transition: transform 0.2s ease;
}
.stock-pay-select.is-open .stock-pay-select-caret {
  transform: rotate(180deg);
}
.stock-pay-select-menu {
  position: fixed;
  z-index: 10060;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: #ffffff;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.28);
  max-height: 15rem;
  overflow: auto;
  opacity: 1;
  filter: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  animation: stockPayMenuIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  /* Menu only — never cover / whiten the panel chrome */
  pointer-events: auto;
}
.stock-pay-select-menu[hidden] {
  display: none !important;
}
@keyframes stockPayMenuIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.stock-pay-select-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.6rem;
  border-radius: 0.7rem;
  cursor: pointer;
  color: #0f172a;
  background: #ffffff;
  font: 600 0.86rem "Sora", "Outfit", sans-serif;
  transition: background 0.15s ease;
}
.stock-pay-select-option:hover,
.stock-pay-select-option[aria-selected="true"] {
  background: #eff6ff;
}
.stock-pay-popup-head-text { min-width: 0; flex: 1 1 auto; }
.stock-pay-popup-kicker {
  margin: 0 0 0.15rem;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}
.stock-pay-popup-label {
  margin: 0;
  font-family: 'Sora', 'Outfit', sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.stock-pay-popup-title {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: #475569;
  font-weight: 600;
  line-height: 1.35;
}
.stock-pay-popup-number-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.75rem;
  border-radius: 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.stock-pay-popup-number {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.03em;
  line-height: 1.3;
  word-break: break-all;
  display: block;
}
.stock-pay-popup-number.is-flip {
  animation: stockNumberFlip 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.stock-pay-popup-copy {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem;
  border-radius: 0.65rem;
  font-size: 0.75rem;
  font-weight: 800;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.28);
  transition: transform 0.15s ease, background 0.15s ease;
}
.stock-pay-popup-copy:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  color: #fff;
}
.stock-pay-popup-copy.is-copied,
.stock-pay-popup-copy.shop-copy.is-copied {
  background: #059669;
  color: #fff;
}
.stock-pay-popup-hint {
  margin: 0.65rem 0 0;
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 500;
  line-height: 1.4;
}
@keyframes stockPaySwitch {
  0% { opacity: 0.4; transform: translateY(6px); }
  100% { opacity: 1; transform: none; }
}
@keyframes stockNumberFlip {
  0% { opacity: 0; transform: translateY(8px) scale(0.98); }
  100% { opacity: 1; transform: none; }
}
.stock-buy-panel--premium .stock-buy-panel-head,
.stock-buy-panel--premium .stock-buy-form > * {
  animation: stockFieldIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.stock-buy-panel--premium .stock-buy-form > *:nth-child(1) { animation-delay: 0.04s; }
.stock-buy-panel--premium .stock-buy-form > *:nth-child(2) { animation-delay: 0.08s; }
.stock-buy-panel--premium .stock-buy-form > *:nth-child(3) { animation-delay: 0.12s; }
.stock-buy-panel--premium .stock-buy-form > *:nth-child(4) { animation-delay: 0.16s; }
.stock-buy-panel--premium .stock-buy-form > *:nth-child(5) { animation-delay: 0.2s; }
.stock-buy-panel--premium .stock-buy-form > *:nth-child(6) { animation-delay: 0.24s; }
.stock-buy-panel--premium .stock-buy-form > *:nth-child(7) { animation-delay: 0.28s; }
.stock-buy-panel--premium .stock-buy-form > *:nth-child(8) { animation-delay: 0.32s; }
.stock-buy-panel--premium .stock-buy-form > *:nth-child(9) { animation-delay: 0.36s; }
.stock-buy-panel--premium .stock-buy-form > *:nth-child(n+10) { animation-delay: 0.4s; }
/* Keep popup/select sharp — do not inherit form entrance opacity animation */
.stock-buy-panel--premium .stock-buy-form > .stock-pay-popup,
.stock-buy-panel--premium .stock-buy-form > .stock-pay-select {
  animation: none !important;
}
@keyframes stockFieldIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.stock-buy-panel--premium .shop-input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.stock-buy-panel--premium .stock-buy-submit {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.stock-buy-panel--premium .stock-buy-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.28);
}

@media (max-width: 560px) {
  .stock-buy-dock {
    left: 0;
    right: 0;
    bottom: 0;
    max-width: none;
    align-items: stretch;
    padding: 0 max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
  }
  .stock-buy-fab-wrap {
    width: 100%;
  }
  .stock-buy-fab {
    width: 100%;
    justify-content: flex-start;
    border-radius: 1.1rem;
  }
  .stock-buy-fab-copy { flex: 1; }
  .stock-buy-panel {
    width: 100%;
    height: min(78vh, 40rem);
    max-height: min(78vh, 40rem);
    border-radius: 1.15rem 1.15rem 1rem 1rem;
    transform-origin: bottom center;
  }
}

