/* Auth modal + social buttons (loaded without full CSS rebuild) */
.dd-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}
.dd-auth-modal[hidden] { display: none !important; }
.dd-auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 12, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.dd-auth-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  max-height: min(92dvh, 720px);
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background:
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(61, 111, 255, 0.2), transparent 55%),
    #0b0d14;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  padding: 22px 20px 18px;
  color: #f2f4f8;
}
.dd-auth-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #c5cad6;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.dd-auth-modal-close:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.dd-auth-modal-title {
  margin: 0 36px 6px 0;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.dd-auth-modal-lead {
  margin: 0 0 16px;
  color: rgba(214, 220, 235, 0.68);
  font-size: 0.88rem;
  line-height: 1.45;
}
.dd-auth-modal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 16px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}
.dd-auth-modal-tab {
  border: 0;
  border-radius: 9px;
  padding: 10px 12px;
  background: transparent;
  color: rgba(214, 220, 235, 0.72);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.dd-auth-modal-tab.is-active {
  background: rgba(61, 111, 255, 0.28);
  color: #fff;
}
.dd-auth-modal-error {
  min-height: 1.2em;
  margin: 0 0 10px;
  color: #ff8e8e;
  font-size: 0.84rem;
  line-height: 1.35;
}
.dd-auth-modal-error:empty { display: none; }
.dd-auth-modal-form .dd-auth-field { margin-bottom: 12px; }
.dd-auth-password-wrap {
  position: relative;
  display: block;
}
.dd-auth-password-wrap input {
  padding-right: 48px !important;
}
.dd-auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(154, 163, 175, 0.9);
  cursor: pointer;
}
.dd-auth-password-toggle:hover {
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.06);
}
.dd-auth-password-toggle[aria-pressed='true'] {
  color: #8aa4ff;
}
.dd-auth-password-toggle svg {
  display: block;
  pointer-events: none;
}
.dd-auth-password-toggle .dd-auth-eye-hide[hidden],
.dd-auth-password-toggle .dd-auth-eye-show[hidden] {
  display: none !important;
}
.dd-auth-modal-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  color: rgba(214, 220, 235, 0.72);
}
.dd-auth-modal-form input {
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(7, 9, 14, 0.78);
  color: #f4f6fb;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
}
.dd-auth-modal-form input:focus {
  outline: none;
  border-color: rgba(61, 111, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(61, 111, 255, 0.18);
}
.dd-auth-modal-submit { width: 100%; margin-top: 4px; }
.dd-auth-modal-footer {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(214, 220, 235, 0.62);
}
.dd-auth-modal-footer a { color: #8eb0ff; text-decoration: none; }
.dd-auth-modal-footer a:hover { text-decoration: underline; }
.dd-auth-modal-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 420px) {
  .dd-auth-modal-name-row { grid-template-columns: 1fr; }
}
body.dd-auth-modal-open { overflow: hidden; }

.auth-social { margin: 0 0 4px; }
.auth-social[hidden] { display: none !important; }
.auth-social-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.auth-social-row--single { grid-template-columns: 1fr; }
.auth-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(8, 10, 16, 0.8);
  color: #e8ecf4;
  font-weight: 650;
  font-size: 0.88rem;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  width: 100%;
  font-family: inherit;
}
.auth-social-btn--vk {
  border-color: rgba(0, 119, 255, 0.4);
  background: linear-gradient(180deg, rgba(0, 119, 255, 0.16), rgba(8, 10, 16, 0.85));
}
.auth-social-btn--tg {
  border-color: rgba(34, 158, 217, 0.4);
  background: linear-gradient(180deg, rgba(34, 158, 217, 0.16), rgba(8, 10, 16, 0.85));
}
.auth-social-btn svg { flex-shrink: 0; }
.auth-social-widget { display: flex; justify-content: center; margin-top: 8px; }
.auth-social-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  color: rgba(154, 163, 175, 0.8);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.auth-social-divider::before,
.auth-social-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(148, 163, 184, 0.2);
}
.auth-social-divider span { white-space: nowrap; }

.shop-checkout-auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 14px;
}
.shop-checkout-auth-btn {
  min-height: 44px;
  width: 100%;
  justify-content: center;
}
.shop-checkout-account-or {
  margin: 0 0 12px;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(154, 163, 175, 0.78);
}
