.auth-modal { position: fixed; inset: 0; z-index: 320; display: grid; place-items: center; padding: 22px; visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; }
.auth-modal.is-open { visibility: visible; opacity: 1; }
.auth-modal__backdrop { position: absolute; inset: 0; border: 0; background: rgba(13, 13, 15, .68); backdrop-filter: blur(7px); cursor: default; }
.auth-dialog { position: relative; width: min(590px, 100%); max-height: calc(100vh - 44px); overflow: auto; padding: 36px 48px 42px; border-radius: 24px 24px 24px 8px; background: #fff; box-shadow: 0 35px 100px rgba(0,0,0,.3); transform: translateY(18px) scale(.985); transition: transform .25s; }
.auth-modal.is-open .auth-dialog { transform: translateY(0) scale(1); }
.auth-close { position: absolute; top: 19px; right: 19px; width: 39px; height: 39px; display: grid; place-items: center; padding: 0 0 3px; border: 0; border-radius: 50%; color: #444; background: var(--soft); font-size: 27px; line-height: 1; cursor: pointer; }
.auth-dialog__brand { display: flex; align-items: center; justify-content: center; gap: 9px; margin-bottom: 20px; }
.auth-dialog__brand img { width: 35px; height: 35px; display: block; object-fit: contain; }
.auth-dialog__brand strong { color: var(--orange); font-size: 20px; letter-spacing: -.04em; }
.auth-dialog__header { text-align: center; }
.auth-dialog__eyebrow { margin: 0 0 7px; color: var(--orange) !important; font-size: 8px !important; font-weight: 800; letter-spacing: .17em; }
.auth-dialog__header h2 { margin: 0; font-size: 31px; letter-spacing: -.045em; }
.auth-dialog__header > p:last-child { margin: 10px auto 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.auth-progress { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: start; gap: 9px; margin: 29px 15px 27px; }
.auth-progress > span { display: grid; justify-items: center; gap: 6px; color: #aaa; }
.auth-progress i { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid #ddd; border-radius: 50%; background: #fff; font-size: 10px; font-style: normal; font-weight: 700; transition: .2s; }
.auth-progress small { font-size: 7px; font-weight: 700; }
.auth-progress b { height: 1px; margin-top: 14px; background: #e6e6e6; }
.auth-progress span.is-active, .auth-progress span.is-complete { color: var(--orange); }
.auth-progress span.is-active i { border-color: var(--orange); color: #fff; background: var(--orange); box-shadow: 0 0 0 4px rgba(238,0,51,.1); }
.auth-progress span.is-complete i { border-color: var(--orange); color: var(--orange); background: var(--orange-soft); }
.auth-progress b.is-complete { background: var(--orange); }
.auth-alert { margin: -8px 0 18px; padding: 11px 13px; border-radius: 10px; color: #9a0022; background: #fff0f3; font-size: 9px; line-height: 1.55; }
.auth-alert.is-success { color: #146c43; background: #ecf9f2; }
.auth-step { display: none; }
.auth-step.is-active { display: grid; gap: 17px; }
.auth-field { display: grid; gap: 8px; }
.auth-field > span:first-child { font-size: 10px; font-weight: 700; }
.auth-field__control { min-height: 56px; display: flex; align-items: center; gap: 11px; padding: 0 14px; border: 1px solid #dedbd8; border-radius: 12px 12px 12px 4px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.auth-field__control:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(238,0,51,.09); }
.auth-field__control svg { width: 19px; flex: 0 0 auto; fill: none; stroke: var(--orange); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.auth-field__control input { min-width: 0; width: 100%; height: 52px; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.auth-field__control input::placeholder { color: #aaa; }
.auth-field__control--otp { justify-content: center; }
.auth-field__control--otp input { text-align: center; font-size: 25px; font-weight: 700; letter-spacing: .42em; }
.password-toggle { flex: 0 0 auto; padding: 6px; border: 0; color: var(--orange); background: transparent; font-size: 9px; font-weight: 700; cursor: pointer; }
.auth-submit { min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 20px; padding: 0 19px; border: 0; border-radius: 12px 12px 12px 4px; color: #fff; background: var(--orange); box-shadow: 0 12px 24px rgba(238,0,51,.2); font-size: 11px; font-weight: 800; cursor: pointer; transition: transform .2s, background .2s, opacity .2s; }
.auth-submit:hover { transform: translateY(-2px); background: var(--orange-dark); }
.auth-submit:disabled { opacity: .55; transform: none; cursor: wait; }
.auth-submit span { font-size: 18px; font-weight: 400; }
.auth-note { margin: -3px 0 0; color: var(--muted); font-size: 8px; line-height: 1.6; text-align: center; }
.auth-note i { margin-right: 4px; color: #169c59; font-style: normal; }
.auth-step__actions { display: flex; justify-content: space-between; }
.auth-step__actions button { padding: 5px 0; border: 0; color: var(--orange); background: transparent; font-size: 9px; font-weight: 700; cursor: pointer; }
.auth-step__actions button:disabled { color: #aaa; cursor: wait; }
.auth-password-hint { margin: -7px 0 0; color: var(--muted); font-size: 8px; line-height: 1.55; }

.search-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: start center; padding: 9vh 20px 20px; visibility: hidden; opacity: 0; transition: .2s; }
.search-modal.is-open { visibility: visible; opacity: 1; }
.search-modal__backdrop { position: absolute; inset: 0; border: 0; background: rgba(14,14,14,.62); backdrop-filter: blur(5px); cursor: default; }
.search-dialog { position: relative; width: min(640px, 100%); max-height: 82vh; overflow: auto; padding: 30px; border-radius: 20px 20px 20px 7px; background: #fff; box-shadow: 0 30px 90px rgba(0,0,0,.25); transform: translateY(-15px); transition: transform .25s; }
.search-modal.is-open .search-dialog { transform: translateY(0); }
.search-dialog__header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 21px; }
.search-dialog__header p { margin: 0 0 5px; color: var(--orange); font-size: 9px; font-weight: 800; letter-spacing: .17em; }
.search-dialog__header h2 { margin: 0; font-size: 27px; letter-spacing: -.04em; }
.search-close { width: 37px; height: 37px; border: 0; border-radius: 50%; background: var(--soft); color: #555; font-size: 25px; cursor: pointer; }
.search-field { min-height: 57px; display: flex; align-items: center; gap: 11px; padding: 0 16px; border: 1px solid #dcd8d4; border-radius: 12px 12px 12px 4px; }
.search-field:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(238,0,51,.1); }
.search-field svg { color: var(--orange); }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 13px; }
.search-dialog__hint { margin: 23px 0 12px; color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.search-results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.search-result { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; transition: border-color .2s, background .2s; }
.search-result:hover { border-color: #f5a586; background: #fff9f6; }
.search-result__flag { font-size: 25px; }
.search-result strong, .search-result small { display: block; }
.search-result strong { font-size: 11px; } .search-result small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.search-empty { grid-column: 1 / -1; padding: 25px; text-align: center; color: var(--muted); font-size: 11px; }
.toast { position: fixed; left: 50%; bottom: 25px; z-index: 400; min-width: 230px; max-width: calc(100% - 30px); padding: 13px 18px; border-radius: 10px; color: #fff; background: #222; box-shadow: 0 12px 30px rgba(0,0,0,.25); font-size: 11px; text-align: center; visibility: hidden; opacity: 0; transform: translate(-50%, 15px); transition: .2s; }
.toast.is-visible { visibility: visible; opacity: 1; transform: translate(-50%, 0); }
