﻿.member-tools { display: flex; align-items: center; gap: 12px; margin-left: auto; flex-shrink: 0; font-size: 14px; }
.member-tools form { margin: 0; }
.member-primary, .member-submit { background: #f59e0b; color: #0f172a; border: 0; border-radius: 10px; font-weight: 700; cursor: pointer; }
.member-primary { padding: 10px 16px; min-height: 44px; white-space: nowrap; }
.member-header-link { color: #f8fafc; background: transparent; border: 0; padding: 10px 0; cursor: pointer; white-space: nowrap; }
.member-header-link:hover { color: #fcd34d; }
.member-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.member-dialog { position:fixed; inset:0; z-index:10001; overflow:auto; width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: 16px; color: #0f172a; background: #fff; box-shadow: 0 20px 70px rgb(15 23 42 / 28%); font-size: 15px; }
.member-dialog::backdrop { background: rgb(15 23 42 / 66%); }
.member-dialog-content { padding: 32px; position: relative; }
.member-dialog h2 { font-size: 27px; font-weight: 800; margin: 0 32px 10px 0; line-height: 1.3; }
.member-dialog p { line-height: 1.6; }
#member-dialog-description { color: #475569; margin-bottom: 24px; }
.member-dialog-close { position: absolute; top: 15px; right: 15px; width: 44px; height: 44px; display: grid; place-items: center; background: transparent; border: 0; border-radius: 8px; cursor: pointer; color: #475569; }
.member-dialog-close:hover { background: #f1f5f9; }
.member-dialog-close svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.member-switch { display: flex; background: #f1f5f9; padding: 4px; border-radius: 10px; margin-bottom: 22px; }
.member-switch button { flex: 1; min-height: 44px; padding: 10px; border: 0; border-radius: 8px; background: transparent; font-weight: 700; cursor: pointer; color: #475569; }
.member-switch button[aria-pressed="true"] { background: #1e3a8a; color: #fff; }
.member-form label { display: block; font-weight: 600; margin: 16px 0 6px; }
.member-form input:not([type="hidden"]) { width: 100%; min-height: 46px; border: 1px solid #94a3b8; border-radius: 8px; padding: 10px 12px; background: #fff; color: #0f172a; font: inherit; caret-color: #1e3a8a; }
.member-form input::placeholder { color: #64748b; }
.member-password-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.member-submit { display: block; width: 100%; min-height: 48px; padding: 12px; margin-top: 24px; }
.member-primary:hover, .member-submit:hover { background: #fbbf24; }
.member-message { padding: 12px; border-radius: 8px; background: #fff1f2; color: #9f1239; overflow-wrap: anywhere; }
.member-message.is-success { background: #ecfdf5; color: #065f46; }
.member-dialog button:disabled { opacity: .6; cursor: wait; }
.member-dialog-open { overflow: hidden; }
.member-dialog [hidden] { display: none !important; }
.member-dialog :focus-visible, .member-tools :focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
.member-dialog ::selection { color: #fff; background: #1e3a8a; }
.member-dialog { scrollbar-color: #94a3b8 #f1f5f9; }
.catalog-empty { text-align: center; color: #475569; padding: 36px 16px; }
@media (max-width: 640px) {
  .member-dialog-content { padding: 28px 20px; }
  .member-tools { gap: 8px; font-size: 13px; }
  .member-name { max-width: 60px; }
  .member-primary { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) { .member-dialog * { scroll-behavior: auto !important; transition: none !important; } }

.member-backdrop { position:fixed; inset:0; z-index:10000; background:rgb(15 23 42 / 66%); }
.member-backdrop[hidden] { display:none; }
.registration-captcha { margin-top:20px; }
.verification-hint { font-size:13px; color:#526174; margin:8px 0 0; }
.verification-completed { color:#047857; font-size:13px; margin:20px 0 0; }
.mobile-code-row { display:flex; gap:8px; align-items:stretch; }
.mobile-code-row input { min-width:0; flex:1; }
.mobile-code-row button { flex-shrink:0; border:1px solid #94a3b8; border-radius:8px; padding:8px 12px; color:#1e3a8a; background:#f1f5f9; font-weight:600; }
@media(max-width:380px) { .member-dialog-content { padding:28px 14px; } .member-dialog { width:calc(100% - 16px); } .member-password-grid { grid-template-columns:1fr; gap:0; } }
