/* ============================================
   App Shell — matches course design system
   (idea.css / claude.css / cursor.css)
   ============================================ */

/* --- Sidebar (Desktop) --- */
.app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid rgba(17, 24, 39, 0.08);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-sidebar__brand {
  padding: 20px 20px 18px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
}
.app-sidebar__brand a {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: #111827;
  text-decoration: none;
}
.app-sidebar__brand a span {
  color: #5b5cf6;
}

.app-sidebar__nav {
  flex: 1;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-sidebar__section {
  padding: 12px 10px 6px;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.app-sidebar__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: #596277;
  text-decoration: none;
  transition: all 0.18s ease;
  line-height: 1.3;
}
.app-sidebar__link:hover {
  background: rgba(91, 92, 246, 0.06);
  color: #111827;
  transform: translateX(2px);
}
.app-sidebar__link.active {
  background: linear-gradient(135deg, #5b5cf6, #4338ca);
  color: #fff;
  box-shadow: 0 4px 12px rgba(91, 92, 246, 0.25);
}
.app-sidebar__link.active:hover {
  transform: none;
}
.app-sidebar__icon {
  font-size: 17px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.app-sidebar__badge {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
}

.app-sidebar__footer {
  padding: 16px;
  border-top: 1px solid rgba(17, 24, 39, 0.06);
  font-size: 13px;
}
.app-sidebar__user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.app-sidebar__email {
  color: #596277;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s;
  min-width: 0;
  flex: 1;
}
.app-sidebar__email:hover { color: #06b6d4; }
.app-sidebar__logout {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  background: transparent;
  color: #596277;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}
.app-sidebar__logout:hover {
  border-color: #ef4444;
  color: #ef4444;
}
.app-sidebar__login-btn {
  display: block;
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #5b5cf6, #4338ca);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.18s;
  box-shadow: 0 2px 8px rgba(91, 92, 246, 0.2);
}
.app-sidebar__login-btn:hover {
  box-shadow: 0 4px 16px rgba(91, 92, 246, 0.3);
  transform: translateY(-1px);
}

/* Content offset for sidebar */
.app-shell-content {
  margin-left: 260px;
  min-height: 100vh;
}

/* --- Mobile Topbar (brand + burger in one bar) --- */
.app-topbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  height: 56px;
  padding: 0 16px;
  background: rgba(248, 249, 254, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
  align-items: center;
  justify-content: space-between;
}
.app-topbar__brand {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: #111827;
  text-decoration: none;
}
.app-topbar__brand span {
  color: #5b5cf6;
}
.app-topbar__burger {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.18s;
}
.app-topbar__burger:hover {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.app-burger__icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}
.app-burger__line {
  display: block;
  width: 18px;
  height: 2px;
  background: #111827;
  border-radius: 2px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Backdrop */
.app-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s;
}
.app-backdrop.visible {
  opacity: 1;
}

/* --- Mobile --- */
@media (max-width: 768px) {
  .app-sidebar {
    transform: translateX(-100%);
    width: 280px;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.96);
  }
  .app-sidebar.open {
    transform: translateX(0);
  }
  .app-topbar {
    display: flex;
  }
  /* Hide original course topbar on mobile — app-topbar replaces it */
  .topbar {
    display: none !important;
  }
  .app-shell-content {
    margin-left: 0;
    padding-top: 56px;
  }
  .app-backdrop.show {
    display: block;
  }
}

/* --- Modal (shared base) --- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay.visible {
  display: flex;
}

.modal-card {
  background: #fff;
  border-radius: 22px;
  padding: 32px 28px;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(17, 24, 39, 0.04);
  animation: modalIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92) translateY(16px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-size: 22px;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
}
.modal-close:hover {
  background: #f1f4ff;
  color: #111827;
}

.modal-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: #111827;
}
.modal-subtitle {
  font-size: 14px;
  color: #596277;
  margin: 0 0 22px;
}

/* --- OAuth buttons --- */
.auth-modal__oauth {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
}
.auth-modal__oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
  transition: all 0.18s;
  font-family: Inter, system-ui, -apple-system, sans-serif;
}
.auth-modal__oauth-btn:hover {
  background: #f8f9fe;
  border-color: rgba(17, 24, 39, 0.18);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.auth-modal__oauth-btn svg {
  flex-shrink: 0;
}
.auth-modal__oauth-btn--google:hover {
  border-color: rgba(66, 133, 244, 0.3);
}
.auth-modal__oauth-btn--yandex {
  background: #fff;
}
.auth-modal__oauth-btn--yandex:hover {
  border-color: rgba(252, 63, 29, 0.3);
}
.auth-modal__vk-wrap {
  border-radius: 12px;
  overflow: hidden;
  min-height: 44px;
}

/* Divider */
.auth-modal__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
}
.auth-modal__divider::before,
.auth-modal__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(17, 24, 39, 0.08);
}

/* --- Auth Card (clean design) --- */
.auth-card {
  padding: 36px 32px 28px;
}
.auth-header {
  text-align: center;
  margin-bottom: 24px;
}
.auth-header__logo {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: #5b5cf6;
  margin-bottom: 16px;
}
.auth-header__title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111827;
  margin: 0 0 4px;
}
.auth-header__sub {
  font-size: 14px;
  color: #94a3b8;
  margin: 0;
}

/* OAuth provider buttons — icon-only row */
.auth-providers {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 0;
}
.auth-provider {
  width: 56px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
}
.auth-provider:hover {
  border-color: rgba(17, 24, 39, 0.2);
  background: #fafbff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}
.auth-provider svg { flex-shrink: 0; }

/* Email form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-input {
  padding: 14px 14px;
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  font-size: 16px;
  background: #f8f9fe;
  color: #111827;
  outline: none;
  transition: all 0.18s;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  -webkit-appearance: none;
  appearance: none;
}
.auth-input:focus {
  border-color: #5b5cf6;
  box-shadow: 0 0 0 3px rgba(91, 92, 246, 0.08);
  background: #fff;
}
.auth-submit {
  padding: 13px;
  border-radius: 12px;
  border: none;
  background: #111827;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  font-family: Inter, system-ui, -apple-system, sans-serif;
}
.auth-submit:hover {
  background: #1e293b;
}
.auth-submit:disabled { opacity: 0.4; cursor: not-allowed; }

/* Messages */
.auth-message {
  font-size: 13px;
  text-align: center;
  min-height: 0;
  color: #ef4444;
}
.auth-message:empty { display: none; }
.auth-message--ok { color: #16a34a; }

/* Switch login/register */
.auth-switch {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: #94a3b8;
}
.auth-switch__btn {
  background: none;
  border: none;
  color: #5b5cf6;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
}
.auth-switch__btn:hover { text-decoration: underline; }

/* Legal notice */
.auth-legal {
  text-align: center;
  margin-top: 14px;
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
}
.auth-legal a {
  color: #94a3b8;
  text-decoration: underline;
}
.auth-legal a:hover { color: #5b5cf6; }

/* --- Paywall Modal --- */
.paywall-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.paywall-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  text-align: left;
}
.paywall-option:hover {
  border-color: rgba(91, 92, 246, 0.3);
  background: rgba(91, 92, 246, 0.02);
  box-shadow: 0 4px 12px rgba(91, 92, 246, 0.08);
  transform: translateY(-1px);
}
.paywall-option--popular {
  border-color: rgba(91, 92, 246, 0.25);
  background: linear-gradient(135deg, rgba(91, 92, 246, 0.04), rgba(139, 92, 246, 0.02));
}
.paywall-option--popular:hover {
  border-color: #5b5cf6;
}
.paywall-option__info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.paywall-option__title {
  font-weight: 700;
  font-size: 14px;
  color: #111827;
}
.paywall-option__desc {
  font-size: 12px;
  color: #596277;
}
/* Paywall loading */
.paywall-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #596277;
  padding: 8px 0;
}
.paywall-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(91, 92, 246, 0.15);
  border-top-color: #5b5cf6;
  border-radius: 50%;
  animation: paywallSpin 0.6s linear infinite;
}
@keyframes paywallSpin {
  to { transform: rotate(360deg); }
}

.paywall-option__price {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  background: linear-gradient(135deg, #5b5cf6, #4338ca);
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: -0.01em;
}

/* --- Lesson lock --- */
a.lesson-card-locked,
div.lesson-card-locked {
  opacity: 0.5;
  position: relative;
  cursor: pointer;
  pointer-events: auto;
  transition: opacity 0.18s;
  padding-right: 40px !important;
  overflow: hidden;
}
a.lesson-card-locked:hover,
div.lesson-card-locked:hover {
  opacity: 0.65;
}
a.lesson-card-locked::after,
div.lesson-card-locked::after {
  content: '\1F512';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 17px;
}

/* Locked lesson page placeholder */
.lesson-locked-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  text-align: center;
  padding: 40px 20px;
  animation: fadeUp 0.4s ease;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.lesson-locked-page__icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.lesson-locked-page__title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111827;
  margin-bottom: 8px;
}
.lesson-locked-page__text {
  font-size: 14px;
  color: #596277;
  margin-bottom: 24px;
  max-width: 320px;
  line-height: 1.5;
}
.lesson-locked-page__btn {
  padding: 13px 28px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #5b5cf6, #4338ca);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  box-shadow: 0 4px 14px rgba(91, 92, 246, 0.25);
}
.lesson-locked-page__btn:hover {
  box-shadow: 0 6px 20px rgba(91, 92, 246, 0.35);
  transform: translateY(-2px);
}

/* --- Shared animations --- */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}
.app-sidebar__link {
  animation: slideInLeft 0.3s ease both;
}
.app-sidebar__link:nth-child(2) { animation-delay: 0.03s; }
.app-sidebar__link:nth-child(3) { animation-delay: 0.06s; }
.app-sidebar__link:nth-child(4) { animation-delay: 0.09s; }
.app-sidebar__link:nth-child(5) { animation-delay: 0.12s; }
.app-sidebar__link:nth-child(6) { animation-delay: 0.15s; }

@media (prefers-reduced-motion: reduce) {
  .app-sidebar__link,
  .modal-card,
  .lesson-locked-page {
    animation: none;
  }
  .app-sidebar__link:hover,
  .app-sidebar__login-btn:hover,
  .auth-modal__btn:hover,
  .lesson-locked-page__btn:hover {
    transform: none;
  }
}

/* === Auth-modal: mobile fixes === */
@media (max-width: 480px) {
  .modal-overlay { padding: 12px; align-items: flex-start; padding-top: 32px; }
  .modal-card { border-radius: 18px; }
  .auth-card { padding: 24px 20px 20px; }
  .auth-header { margin-bottom: 18px; }
  .auth-header__title { font-size: 21px; }
  .auth-header__sub { font-size: 13px; }
  .auth-providers { gap: 10px; }
  .auth-provider { width: 52px; height: 46px; border-radius: 11px; }
  .auth-modal__divider { font-size: 12px; margin: 14px 0; }
  .auth-form { gap: 9px; }
  .auth-input { padding: 13px 13px; }
  .auth-submit { padding: 13px; }
  .auth-switch { margin-top: 12px; font-size: 12.5px; }
  .auth-legal { font-size: 11px; margin-top: 10px; }
  .modal-close { top: 10px; right: 10px; }
}

/* === Guest Checkout Modal === */
.guest-card {
  padding: 32px 28px 24px;
  max-width: 420px;
}
.guest-header {
  text-align: center;
  margin-bottom: 22px;
}
.guest-header__product {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6e6e73;
  background: #f1f3f6;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.guest-header__price {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #06b6d4;
  line-height: 1;
  margin-bottom: 14px;
}
.guest-header__title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 6px;
  color: #0a0a0a;
}
.guest-header__sub {
  font-size: 13.5px;
  color: #6e6e73;
  line-height: 1.5;
  margin: 0;
}
.guest-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.guest-input {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  font-size: 16px;
  background: #f8f9fe;
  color: #111827;
  outline: none;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  -webkit-appearance: none;
  appearance: none;
}
.guest-input:focus {
  border-color: #06b6d4;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.12);
  background: #fff;
}
.guest-submit {
  position: relative;
  margin-top: 4px;
  padding: 16px;
  border-radius: 14px;
  border: none;
  background: #0a0a0a;
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.005em;
  cursor: pointer;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  transition: background 0.18s, transform 0.18s;
}
.guest-submit:hover:not(:disabled) {
  background: #06b6d4;
  transform: translateY(-1px);
}
.guest-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.guest-spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: guestSpin 0.8s linear infinite;
  margin-right: 6px;
  vertical-align: -2px;
}
@keyframes guestSpin { to { transform: rotate(360deg); } }
.guest-message {
  font-size: 13px;
  color: #ef4444;
  text-align: center;
  min-height: 0;
  margin-bottom: 8px;
}
.guest-message:empty { display: none; }
.guest-legal {
  font-size: 11.5px;
  color: #94a3b8;
  text-align: center;
  margin-top: 6px;
  line-height: 1.5;
}
.guest-legal a {
  color: #6e6e73;
  text-decoration: underline;
}
.guest-legal a:hover { color: #06b6d4; }

@media (max-width: 480px) {
  .guest-card { padding: 26px 22px 20px; max-width: 100%; }
  .guest-header { margin-bottom: 18px; }
  .guest-header__price { font-size: 32px; }
  .guest-header__title { font-size: 19px; }
  .guest-form { gap: 9px; }
  .guest-submit { padding: 15px; font-size: 15px; }
}

/* === Magic-link notice on /cabinet/welcome.html === */
.welcome-magic-notice {
  max-width: 640px;
  margin: 0 auto 28px;
  display: flex;
  gap: 16px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(6,182,212,0.08), rgba(126,164,149,0.08));
  border: 1px solid rgba(6,182,212,0.25);
  border-radius: 18px;
  align-items: flex-start;
}
.welcome-magic-notice__icon { font-size: 28px; line-height: 1; flex-shrink: 0; padding-top: 2px; }
.welcome-magic-notice__title {
  font-size: 16px;
  font-weight: 700;
  color: #0a0a0a;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.welcome-magic-notice__text {
  font-size: 14px;
  color: #4a4a4f;
  line-height: 1.5;
}
.welcome-magic-notice__text b { color: #06b6d4; font-weight: 600; }
@media (max-width: 600px) {
  .welcome-magic-notice { padding: 16px 18px; gap: 12px; margin: 0 16px 22px; }
  .welcome-magic-notice__icon { font-size: 24px; }
}

/* === Magic-link button in auth-modal === */
.auth-magic-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(6,182,212,0.3);
  background: rgba(6,182,212,0.06);
  color: #06b6d4;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: Inter, system-ui, sans-serif;
  letter-spacing: -0.005em;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}
.auth-magic-btn:hover:not(:disabled) {
  background: rgba(6,182,212,0.12);
  border-color: rgba(6,182,212,0.5);
  transform: translateY(-1px);
}
.auth-magic-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* === Post-login setup banner (предложение установить пароль) === */
.post-login-banner {
  position: fixed;
  bottom: 18px;
  left: 18px;
  right: 18px;
  max-width: 520px;
  margin: 0 auto;
  z-index: 100;
  background: #fff;
  border: 1px solid rgba(6,182,212,0.25);
  border-radius: 18px;
  box-shadow: 0 24px 56px rgba(0,0,0,0.18);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.post-login-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.post-login-banner__inner {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  align-items: flex-start;
  position: relative;
}
.post-login-banner__icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
  padding-top: 2px;
}
.post-login-banner__body { flex: 1; min-width: 0; }
.post-login-banner__title {
  font-size: 15px;
  font-weight: 700;
  color: #0a0a0a;
  letter-spacing: -0.01em;
  margin-bottom: 3px;
}
.post-login-banner__desc {
  font-size: 12.5px;
  color: #6e6e73;
  line-height: 1.5;
  margin-bottom: 12px;
}
.post-login-banner__form {
  display: flex;
  gap: 8px;
}
.post-login-banner__input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.1);
  font-size: 14px;
  background: #f8f9fe;
  outline: none;
  font-family: Inter, system-ui, sans-serif;
  -webkit-appearance: none;
  appearance: none;
}
.post-login-banner__input:focus {
  border-color: #06b6d4;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(6,182,212,0.12);
}
.post-login-banner__submit {
  flex-shrink: 0;
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  background: #06b6d4;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: Inter, system-ui, sans-serif;
  transition: background 0.18s;
}
.post-login-banner__submit:hover:not(:disabled) { background: #0891b2; }
.post-login-banner__submit:disabled { opacity: 0.6; cursor: not-allowed; }
.post-login-banner__msg {
  font-size: 12.5px;
  margin-top: 8px;
  min-height: 1em;
}
.post-login-banner__dismiss {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.post-login-banner__dismiss:hover {
  background: #f1f4ff;
  color: #0a0a0a;
}
@media (max-width: 480px) {
  .post-login-banner { left: 12px; right: 12px; bottom: 14px; }
  .post-login-banner__form { flex-direction: column; gap: 6px; }
  .post-login-banner__submit { padding: 11px; }
}

/* Согласие при регистрации */
.auth-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: #596277;
  line-height: 1.5;
  cursor: pointer;
  text-align: left;
  margin: 2px 0;
}
.auth-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  flex-shrink: 0;
  accent-color: #06b6d4;
  cursor: pointer;
}
.auth-consent a { color: #0891b2; }
