/* =========================================================
   BRAVO CRM — AUTH PAGES (Login, SignUp, LostPassword, 2FA)
   ========================================================= */

/* -------------------------------------------------------
   AUTH LAYOUT
-------------------------------------------------------- */

body.login-page {
    padding: 0 !important;
    margin: 0 !important;
    justify-content: center !important;
    background: transparent !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden;
}

/* Make sure html root doesn't show a white background around .lp-wrap */
html:has(.lp-wrap),
html:has(.bravo-auth--stack) {
    background: #f8fafc;
    margin: 0;
    padding: 0;
}
:root.theme-dark html:has(.lp-wrap),
:root.theme-dark html:has(.bravo-auth--stack) {
    background: #0b0e11;
}

.auth-top-controls {
    position: fixed;
    top: 18px;
    right: 24px;
    left: auto;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    width: auto;
}

.auth-top-controls .lang-switcher {
    margin: 0;
}

.auth-top-controls .theme-toggle {
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .auth-top-controls {
        top: 14px;
        right: 14px;
        gap: 8px;
    }
}

.bravo-auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
}

/* Stack-вариант: собственного фона нет — фон рисует ::before через fixed */
.bravo-auth.bravo-auth--stack {
    background: transparent !important;
}

:root.theme-dark .bravo-auth.bravo-auth--stack {
    background: transparent !important;
}

.bravo-auth__shell {
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: stretch;
}

/* Stack variant (SignUp / LostPassword / Recover) */
.bravo-auth__shell--stack {
    grid-template-columns: 1fr;
    max-width: 720px;
    gap: 14px;
}

/* 2FA — narrower card, simple form doesn't need full 720px */
.bravo-auth__shell--2fa {
    max-width: 480px;
}


/* -------------------------------------------------------
   HERO PANEL (left side)
-------------------------------------------------------- */

.bravo-auth__hero {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background:
        radial-gradient(1200px 500px at 15% 20%, rgba(237, 192, 22, .30) 0%, rgba(237, 192, 22, 0) 55%),
        radial-gradient(900px 420px at 80% 35%, rgba(242, 135, 57, .28) 0%, rgba(242, 135, 57, 0) 55%),
        linear-gradient(135deg, #0b1220 0%, #111c34 45%, #0b1220 100%);
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 22px 70px rgba(2, 6, 23, .35);
    min-height: 520px;
}

.bravo-auth__heroInner {
    height: 100%;
    padding: 28px 34px 34px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 14px;
}

.bravo-auth__heroBrand {
    margin-bottom: 10px;
}

.bravo-auth__heroLogo {
    height: 80px;
    width: auto;
    display: block;
}

.bravo-auth__heroTitle {
    margin: 0;
    font-size: 34px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: #fff;
}

.bravo-auth__heroText {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(226, 232, 240, .88);
    max-width: 46ch;
}

.bravo-auth__heroList {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
    color: rgba(226, 232, 240, .92);
}

.bravo-auth__heroList li {
    position: relative;
    padding-left: 26px;
    font-size: 14px;
    line-height: 1.35;
}

.bravo-auth__heroList li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 35% 30%, rgba(255,255,255,.85), rgba(255,255,255,0) 55%),
        linear-gradient(135deg,#EDC016 0%,#F28739 100%);
    box-shadow: 0 8px 18px rgba(242, 135, 57, .25);
}


/* -------------------------------------------------------
   AUTH CARD (right side / center)
-------------------------------------------------------- */

.bravo-auth__card {
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 22px;
    background: var(--surface);
    border: 1px solid rgba(15,23,42,.12) !important;
    box-shadow: 0 4px 20px rgba(15,23,42,.07), 0 1px 4px rgba(15,23,42,.04) !important;
    /* overflow: clip не создаёт scroll-container в отличие от overflow: hidden,
       поэтому scrollIntoView() внутри dropdown не сдвигает содержимое карточки.
       Фолбэк: hidden остаётся для браузеров без поддержки clip */
    overflow: hidden;
    overflow: clip;
}

/* Перекрываем AdminLTE .card который сбрасывает наши стили */
.bravo-auth__card.card {
    border: 1px solid rgba(15,23,42,.12) !important;
    box-shadow: 0 4px 20px rgba(15,23,42,.07), 0 1px 4px rgba(15,23,42,.04) !important;
    border-radius: 22px !important;
    background: var(--surface) !important;
}

.bravo-auth__card .card-body,
.bravo-auth__card.card .card-body {
    background: var(--surface) !important;
    border-radius: 22px !important;
}

.bravo-auth__body {
    padding: 34px 34px 26px;
}

.bravo-auth__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.bravo-auth__logo {
    height: 60px;
    width: auto;
}

/* Logo switching — dark theme keeps original logo colors (yellow) */
.bravo-auth__logo--dark    { display: none; }
.bravo-auth__topLogo--dark { display: none; }
:root.theme-dark .bravo-auth__logo--light    { display: none; }
:root.theme-dark .bravo-auth__logo--dark     { display: block; filter: none; }
:root.theme-dark .bravo-auth__topLogo--light { display: none; }
:root.theme-dark .bravo-auth__topLogo--dark  { display: block; filter: none; }
:root.theme-dark .bravo-auth__heroLogo       { filter: none; }

.bravo-auth__links a {
    text-decoration: none;
}


/* -------------------------------------------------------
   AUTH TOP BAR (stack variant)
-------------------------------------------------------- */

.bravo-auth__top {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(15,23,42,.12);
    box-shadow: 0 4px 20px rgba(15,23,42,.07), 0 1px 4px rgba(15,23,42,.04);
}

.bravo-auth__top--muted {
    background: #ffffff;
}

.bravo-auth__topLogo {
    height: 56px;
    width: auto;
}

.bravo-auth__topTitle {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.2px;
    color: #0f172a;
}

.bravo-auth__topSub {
    margin: 4px 0 0;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
}

.bravo-auth__center {
    text-align: center;
}

.bravo-auth__center .form-reset-success img {
    display: block;
    margin: 0 auto;
    max-width: 76px;
}


/* -------------------------------------------------------
   AUTH FORM ELEMENTS
-------------------------------------------------------- */

.bravo-auth .form-group {
    margin-bottom: 14px;
    position: static;
}

.bravo-auth .form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2px;
    line-height: 1.1;
    color: #64748b !important;
}

.bravo-auth .form-control {
    width: 100% !important;
    height: auto !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #0f172a !important;
    border: 1px solid rgba(15,23,42,.10) !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: inset 0 1px 3px rgba(15,23,42,.04) !important;
    outline: none !important;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease !important;
}

.bravo-auth .form-control::placeholder {
    color: #a0aec0 !important;
    font-weight: 400 !important;
}

.bravo-auth .form-control:focus {
    background: #ffffff !important;
    border-color: rgba(37,99,235,.45) !important;
    box-shadow: 0 0 0 4px rgba(37,99,235,.10) !important;
}

.bravo-auth .form-control.has-error {
    border-color: rgba(239,68,68,.55) !important;
    background: #fff5f5 !important;
    box-shadow: inset 0 1px 3px rgba(239,68,68,.06) !important;
}

/* select внутри auth — стрелка через SVG, без нативной */
.bravo-auth select.form-control {
    cursor: pointer;
}

.bravo-auth .btn.btn-primary {
    width: 100%;
    border-radius: 14px !important;
    padding: 13px 18px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
}

.bravo-auth .btn-outline-light,
.bravo-auth a.btn-outline-light {
    padding: 13px 16px !important;
    border-radius: 14px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

/* 2FA code input */
.bravo-auth input[name="verificationCode"] {
    text-align: center !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    letter-spacing: 3px !important;
}

/* Field error */
.bravo-auth .error-message-placeholder {
    display: none;
    position: static !important;
    left: 0 !important;
    top: auto !important;
    width: 100% !important;
    margin: 0 0 6px 0 !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #991b1b !important;
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: 14px !important;
    line-height: 1.45;
    text-align: left;
}

.bravo-auth .error-message-placeholder.active {
    display: block;
}

/* resp flash inside auth */
.bravo-auth .resp {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid transparent;
    margin-bottom: 10px;
}

.bravo-auth .resp p {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    text-align: left;
}

.bravo-auth .resp.resp-success {
    background: #f0fdf4;
    border-color: #86efac;
    color: #166534;
}
.bravo-auth .resp.resp-success p { color: #166534; }
.bravo-auth .resp.resp-success::before {
    content: "✓";
    font-size: 13px;
    font-weight: 700;
    color: #22c55e;
    flex-shrink: 0;
    line-height: 1.45;
}

.bravo-auth .resp.resp-danger {
    background: #fff5f5;
    border-color: #fca5a5;
    color: #991b1b;
}
.bravo-auth .resp.resp-danger p { color: #991b1b; }
.bravo-auth .resp.resp-danger::before {
    content: "✕";
    font-size: 13px;
    font-weight: 700;
    color: #ef4444;
    flex-shrink: 0;
    line-height: 1.45;
}

.bravo-auth .resp:not(.resp-success):not(.resp-danger) {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #334155;
}
.bravo-auth .resp:not(.resp-success):not(.resp-danger) p { color: #334155; }

/* bravo-flash inside auth */
.bravo-auth .bravo-flash {
    margin-bottom: 14px;
}

.bravo-auth .bravo-flash--danger {
    background: #fef2f2;
    border-color: #f87171;
    color: #7f1d1d;
}
.bravo-auth .bravo-flash--danger p { color: #7f1d1d; }

.bravo-auth .bravo-flash--success {
    background: #f0fdf4;
    border-color: #4ade80;
    color: #14532d;
}
.bravo-auth .bravo-flash--success p { color: #14532d; }


/* -------------------------------------------------------
   RESPONSIVE
-------------------------------------------------------- */

@media (max-width: 980px) {
    .bravo-auth__shell {
        grid-template-columns: 1fr;
        max-width: 620px;
    }

    .bravo-auth__hero {
        min-height: 0;
    }

    .bravo-auth__heroInner {
        padding: 28px 26px;
    }

    .bravo-auth__heroTitle {
        font-size: 28px;
    }
}

@media (max-width: 520px) {
    .bravo-auth__top {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@media (max-width: 420px) {
    .bravo-auth {
        padding: 14px;
    }

    .bravo-auth__body {
        padding: 22px 18px 18px;
    }
}


/* -------------------------------------------------------
   DARK THEME — AUTH
-------------------------------------------------------- */

:root.theme-dark body,
:root.theme-dark body.login-page,
:root.theme-dark .bravo-auth {
    background: #0b0e11 !important;
}

:root.theme-dark body.login-page::after {
    display: none !important;
}

:root.theme-dark .bravo-auth {
    background: var(--bg) !important;
}

:root.theme-dark .bravo-auth .card,
:root.theme-dark .bravo-auth__card.card {
    background: #1b2026 !important;
    border-color: rgba(255,255,255,.12) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,.55), 0 1px 4px rgba(0,0,0,.35) !important;
}
:root.theme-dark .bravo-auth .card-body {
    background: transparent !important;
    color: #eaecef !important;
}

:root.theme-dark .bravo-auth__card {
    background: #1b2026;
    border-color: rgba(255,255,255,.12);
}

:root.theme-dark .bravo-auth .form-label { color: var(--muted, rgba(234,236,239,.55)) !important; }
:root.theme-dark .bravo-auth .form-control {
    background: #222830 !important;
    color: #eaecef !important;
    border-color: rgba(255,255,255,.12) !important;
    border-radius: 14px !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.18) !important;
}
:root.theme-dark .bravo-auth .form-control::placeholder { color: rgba(234,236,239,.38) !important; }
:root.theme-dark .bravo-auth .form-control:focus {
    background: #1b2026 !important;
    border-color: rgba(240,185,11,.55) !important;
    box-shadow: 0 0 0 4px rgba(240,185,11,.12) !important;
}
:root.theme-dark .bravo-auth .form-control.has-error {
    background: rgba(246,70,93,.08) !important;
    border-color: rgba(246,70,93,.50) !important;
    box-shadow: none !important;
}

:root.theme-dark .bravo-auth .tc-dblue,
:root.theme-dark .bravo-auth a.tc-dblue { color: #f0b90b !important; }
:root.theme-dark .bravo-auth .tc-dblue:hover,
:root.theme-dark .bravo-auth a.tc-dblue:hover { color: #fcd535 !important; }

:root.theme-dark .bravo-auth__top,
:root.theme-dark .bravo-auth__top--muted {
    background: #1b2026 !important;
    border-color: rgba(255,255,255,.12) !important;
    box-shadow: 0 6px 24px rgba(0,0,0,.45) !important;
    backdrop-filter: none !important;
}
:root.theme-dark .bravo-auth__topTitle { color: #eaecef !important; }
:root.theme-dark .bravo-auth__topSub   { color: rgba(234,236,239,.55) !important; }

:root.theme-dark .bravo-auth .btn-primary,
:root.theme-dark .bravo-auth .btn.btn-primary {
    background: linear-gradient(135deg, #f0b90b 0%, #f28739 100%) !important;
    border-color: rgba(240,185,11,.35) !important;
    color: #1a1209 !important;
    box-shadow: 0 4px 18px rgba(240,185,11,.28) !important;
    font-weight: 700 !important;
}
:root.theme-dark .bravo-auth .btn-primary:hover,
:root.theme-dark .bravo-auth .btn.btn-primary:hover {
    filter: brightness(1.08) !important;
    box-shadow: 0 6px 24px rgba(240,185,11,.42) !important;
    transform: translateY(-1px);
}
:root.theme-dark .bravo-auth .btn-primary:active,
:root.theme-dark .bravo-auth .btn.btn-primary:active {
    filter: brightness(0.96) !important;
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(240,185,11,.22) !important;
}

:root.theme-dark .bravo-auth .btn-outline-light,
:root.theme-dark .bravo-auth a.btn-outline-light {
    color: #eaecef !important;
    background: #222830 !important;
    border-color: rgba(255,255,255,.12) !important;
}
:root.theme-dark .bravo-auth .btn-outline-light:hover,
:root.theme-dark .bravo-auth a.btn-outline-light:hover {
    background: rgba(255,255,255,.06) !important;
    border-color: rgba(255,255,255,.22) !important;
}

:root.theme-dark .bravo-auth .form-checkbox-label { color: #eaecef !important; }
:root.theme-dark .bravo-auth .form-checkbox-box {
    border-color: rgba(255,255,255,.12) !important;
    background: #222830 !important;
}

:root.theme-dark .bravo-auth .bravo-flash--danger {
    background: rgba(246,70,93,.10) !important;
    border-color: rgba(246,70,93,.25) !important;
    color: #f6465d !important;
}
:root.theme-dark .bravo-auth .bravo-flash--danger p { color: #f6465d !important; }

:root.theme-dark .bravo-auth .bravo-flash--success {
    background: rgba(14,203,129,.10) !important;
    border-color: rgba(14,203,129,.25) !important;
    color: #0ecb81 !important;
}
:root.theme-dark .bravo-auth .bravo-flash--success p { color: #0ecb81 !important; }


/* -------------------------------------------------------
   REGISTRATION BACKGROUND (stack variant)
   — same layered gradient as the login page
   + two decorative crypto coins on the sides
     (offset away from the centered card so they're visible)
-------------------------------------------------------- */

.bravo-auth--stack {
    background: transparent;
    position: relative;
}

/* Layer 1 — fixed full-page background:
   layered champagne + pale-blue gradient (matches .lp-wrap)
   + subtle dotted pattern */
.bravo-auth--stack::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        /* dotted grid pattern (same density as login page) */
        radial-gradient(rgba(15,23,42,.10) 1px, transparent 1px) 0 0 / 24px 24px,
        /* layered radial gradients */
        radial-gradient(ellipse 1400px 900px at 20% 40%, rgba(255,237,204,.50) 0%, transparent 54%),
        radial-gradient(ellipse 1000px 800px at 80% 20%, rgba(209,228,255,.46) 0%, transparent 52%),
        radial-gradient(ellipse 800px 600px at 55% 88%, rgba(224,215,255,.28) 0%, transparent 50%),
        #f8fafc;
    pointer-events: none;
    z-index: 0;
}

/* Layer 2 — decorative crypto coins removed as requested */
.bravo-auth--stack::after {
    display: none;
}

.bravo-auth--stack > * { position: relative; z-index: 1; }

/* Dark theme — matches client area dark palette */
:root.theme-dark .bravo-auth--stack::before {
    background:
        radial-gradient(rgba(240,185,11,.04) 1px, transparent 1px) 0 0 / 24px 24px,
        radial-gradient(ellipse 1100px 700px at 18% 22%, rgba(240,185,11,.07) 0%, transparent 58%),
        radial-gradient(ellipse 800px 600px at 82% 8%,  rgba(240,185,11,.04) 0%, transparent 54%),
        #0b0e11;
}

:root.theme-dark .bravo-auth--stack::after {
    display: none;
}

/* On smaller screens — coins already hidden via display:none above */

/* -------------------------------------------------------
   REGISTRATION STEPPER
-------------------------------------------------------- */

.reg-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0 4px;
}

.reg-stepper__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.reg-stepper__dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    background: #e2e8f0;
    color: #94a3b8;
    border: 2px solid transparent;
    transition: background .25s, color .25s, border-color .25s, box-shadow .25s;
}

.reg-stepper__label {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: .03em;
    transition: color .25s;
}

/* active step */
.reg-stepper__item--active .reg-stepper__dot {
    background: linear-gradient(135deg, #EDC016 0%, #F28739 100%);
    color: #fff;
    border-color: rgba(237,192,22,.35);
    box-shadow: 0 4px 14px rgba(237,192,22,.35);
}
.reg-stepper__item--active .reg-stepper__label {
    color: #0f172a;
    font-weight: 700;
}

/* done step */
.reg-stepper__item--done .reg-stepper__dot {
    background: #0f172a;
    color: #fff;
    border-color: transparent;
    font-size: 14px;
}
.reg-stepper__item--done .reg-stepper__label {
    color: #475569;
}

/* connector line */
.reg-stepper__line {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin: 0 6px;
    margin-bottom: 22px;
    border-radius: 1px;
    transition: background .25s;
}
.reg-stepper__line--done {
    background: linear-gradient(90deg, #0f172a, #475569);
}

/* -------------------------------------------------------
   STEP HERO BANNER (inside card, above form)
-------------------------------------------------------- */

.reg-step-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px 16px;
    border-bottom: 1px solid rgba(15,23,42,.07);
    background: linear-gradient(135deg, rgba(237,192,22,.07) 0%, rgba(242,135,57,.05) 100%);
}

.reg-step-hero__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, #EDC016 0%, #F28739 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(237,192,22,.30);
}

.reg-step-hero--phone .reg-step-hero__icon {
    background: linear-gradient(135deg, #EDC016 0%, #F28739 100%);
    box-shadow: 0 4px 14px rgba(237,192,22,.28);
}

.reg-step-hero--email .reg-step-hero__icon {
    background: linear-gradient(135deg, #EDC016 0%, #F28739 100%);
    box-shadow: 0 4px 14px rgba(237,192,22,.28);
}

.reg-step-hero__title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.reg-step-hero__sub {
    font-size: 12px;
    color: #64748b;
    margin-top: 3px;
    font-weight: 500;
}

/* dark */
:root.theme-dark .reg-stepper__dot          { background: #222830; color: rgba(234,236,239,.38); border-color: rgba(255,255,255,.08); }
:root.theme-dark .reg-stepper__label        { color: rgba(234,236,239,.38); }
:root.theme-dark .reg-stepper__line         { background: rgba(255,255,255,.08); }
:root.theme-dark .reg-stepper__line--done   { background: linear-gradient(90deg, #f0b90b, rgba(234,236,239,.38)); }
:root.theme-dark .reg-stepper__item--done .reg-stepper__dot  { background: #f0b90b; color: #1a1209; }
:root.theme-dark .reg-stepper__item--done .reg-stepper__label { color: rgba(234,236,239,.55); }
:root.theme-dark .reg-stepper__item--active .reg-stepper__label { color: #eaecef; }

:root.theme-dark .reg-step-hero {
    background: linear-gradient(135deg, rgba(237,192,22,.06) 0%, rgba(242,135,57,.04) 100%);
    border-bottom-color: rgba(255,255,255,.07);
}
:root.theme-dark .reg-step-hero__title { color: var(--text, #f1f5f9); }
:root.theme-dark .reg-step-hero__sub   { color: var(--muted, #94a3b8); }

/* Убираем дублирующуюся стрелку у select префикса телефона в тёмной теме */
:root.theme-dark .bravo-auth select.form-control,
:root.theme-dark .bravo-auth .form-group select {
    appearance: none !important;
    -webkit-appearance: none !important;
    padding-right: 28px !important;
    background-color: #222830 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23eaecef' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 12px 8px !important;
}

/* Light theme select — тоже убираем двойную стрелку */
.bravo-auth select.form-control {
    appearance: none !important;
    -webkit-appearance: none !important;
    padding-right: 28px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 12px 8px !important;
    background-color: #ffffff !important;
    cursor: pointer;
}

/* ── Password eye toggle ── */
.bravo-input-eye {
    position: relative;
}
.bravo-input-eye .form-control {
    padding-right: 44px !important;
}
.bravo-input-eye__btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
    line-height: 1;
}
.bravo-input-eye__btn:hover {
    color: #475569;
}
:root.theme-dark .bravo-input-eye__btn {
    color: #64748b;
}
:root.theme-dark .bravo-input-eye__btn:hover {
    color: #94a3b8;
}


/* =========================================================
   2FA — OTP INPUT SYSTEM
   ========================================================= */

/* ── Card body extra padding for 2FA screen ── */
.bravo-auth__body--2fa {
    padding: 24px 28px 22px;
}

/* ── Section header (e.g. "Ověření SMS zprávou") ── */
.bravo-2fa__section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(15,23,42,.07);
}

.bravo-2fa__section-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, #172349 0%, #111b3a 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(20,34,74,.20);
}

.bravo-2fa__section-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.1px;
}

/* ── SMS info strip (green) ── */
.bravo-2fa__sms-info {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 9px 12px;
    margin-bottom: 16px;
    background: #eefbf1;
    border: 1px solid #6ad989;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: #217a43;
    line-height: 1.45;
}

.bravo-2fa__sms-info-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    margin-top: 0;
}

/* ── OTP wrap ── */
.bravo-2fa__otp-wrap {
    margin-bottom: 18px;
}

/* Extra top spacing when a second OTP group follows another */
.bravo-2fa__otp-wrap--spaced {
    margin-top: 6px;
    padding-top: 18px;
    border-top: 1px solid rgba(15,23,42,.07);
}

.bravo-2fa__otp-label {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .15px;
    color: #0f172a;
}

/* ── Real Nette input — completely hidden, no visual state ever ── */
.bravo-2fa__real-input,
.bravo-2fa__real-input:focus,
.bravo-2fa__real-input:invalid,
.bravo-2fa__real-input.is-invalid,
.has-error .bravo-2fa__real-input,
.form-group .bravo-2fa__real-input {
    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;
    box-shadow: none !important;
    outline: none !important;
    background: transparent !important;
}

/* ── OTP boxes container ── */
.bravo-otp {
    display: flex;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

/* ── Single OTP cell ── */
.bravo-otp__cell {
    width: 54px;
    height: 58px;
    flex-shrink: 0;
    border-radius: 12px;
    border: 1.5px solid #d9dde7;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 1px 3px rgba(15,23,42,.04);
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #14224a;
    line-height: 1;
    outline: none;
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
    caret-color: transparent;
    -webkit-tap-highlight-color: transparent;
    cursor: text;
}

.bravo-otp__cell::selection {
    background: transparent;
}

/* Focus state */
.bravo-otp__cell:focus {
    border: 2px solid #14224a;
    box-shadow: 0 0 0 3px rgba(20,34,74,.09), inset 0 1px 0 rgba(255,255,255,.7);
    background: #fafbff;
    caret-color: #c09020;
}

/* Filled state */
.bravo-otp__cell.is-filled {
    border-color: #c5cad6;
    background: #ffffff;
}

/* Error state — no red border, only shake animation + text feedback */
.bravo-otp__cell.is-error,
.bravo-2fa__otp-wrap.has-error .bravo-otp__cell {
    /* border and background unchanged — red frame removed */
}

/* Override common.css global .has-error rule which would draw red border on the wrap div */
.bravo-2fa__otp-wrap.has-error,
.bravo-2fa__otp-wrap.has-error:focus {
    border: none !important;
    padding-bottom: 0 !important;
}

/* ── OTP error message ── */
.bravo-2fa__otp-error {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #c73737;
    line-height: 1.4;
}

/* ── Shake animation on error ── */
@keyframes bravo-otp-shake {
    0%   { transform: translateX(0); }
    15%  { transform: translateX(-6px); }
    30%  { transform: translateX(6px); }
    45%  { transform: translateX(-5px); }
    60%  { transform: translateX(5px); }
    75%  { transform: translateX(-3px); }
    90%  { transform: translateX(3px); }
    100% { transform: translateX(0); }
}

.bravo-otp.shake {
    animation: bravo-otp-shake .42s cubic-bezier(.36,.07,.19,.97) both;
}

/* ── Submit button — premium navy ── */
.bravo-2fa__btn {
    display: block;
    width: 100%;
    height: 50px;
    padding: 0 18px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(180deg, #172349 0%, #111b3a 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .1px;
    cursor: pointer;
    transition: filter .2s ease, box-shadow .2s ease, transform .15s ease;
    box-shadow: 0 4px 16px rgba(17,27,58,.26), 0 1px 4px rgba(17,27,58,.16);
}

.bravo-2fa__btn:hover:not(:disabled) {
    filter: brightness(1.12);
    box-shadow: 0 10px 28px rgba(17,27,58,.38), 0 3px 8px rgba(17,27,58,.22);
    transform: translateY(-1px);
}

.bravo-2fa__btn:active:not(:disabled) {
    filter: brightness(.96);
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(17,27,58,.22);
}

.bravo-2fa__btn:disabled {
    opacity: .55;
    cursor: default;
    filter: none;
    transform: none;
    box-shadow: none;
    pointer-events: none;
}

/* ── Submit wrap ── */
.bravo-2fa__submit-wrap {
    margin-top: 6px;
    margin-bottom: 12px;
}

/* ── Resend block ── */
.bravo-2fa__resend {
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    margin-top: 2px;
    padding-bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bravo-2fa__resend-text {
    margin-right: 2px;
}

.bravo-2fa__resend-link {
    font-weight: 600;
    color: #14224a;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color .15s ease;
    cursor: pointer;
}

.bravo-2fa__resend-link:hover {
    color: #0b1428;
}

/* Mini success toast — shown after clicking resend */
.bravo-2fa__resend-toast {
    display: none;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #16a34a;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    padding: 2px 10px 2px 7px;
    line-height: 1.6;
    white-space: nowrap;
}

.bravo-2fa__resend-toast svg {
    flex-shrink: 0;
}

.bravo-2fa__resend-toast--visible {
    display: inline-flex;
}

/* ── Responsive — tablet ── */
@media (max-width: 640px) {
    .bravo-otp {
        gap: 8px;
    }
    .bravo-otp__cell {
        width: 46px;
        height: 52px;
        font-size: 20px;
        border-radius: 10px;
    }
    .bravo-auth__body--2fa {
        padding: 20px 18px 18px;
    }
    .bravo-2fa__btn {
        height: 46px;
        font-size: 14px;
        border-radius: 12px;
    }
}

/* ── Responsive — small mobile ── */
@media (max-width: 420px) {
    .bravo-otp {
        gap: 6px;
    }
    .bravo-otp__cell {
        width: 40px;
        height: 46px;
        font-size: 18px;
        border-radius: 9px;
    }
    .bravo-auth__body--2fa {
        padding: 16px 14px 16px;
    }
}

/* ── Dark theme — 2FA OTP ── */
:root.theme-dark .bravo-2fa__section-header {
    border-bottom-color: rgba(255,255,255,.07);
}

:root.theme-dark .bravo-2fa__otp-wrap--spaced {
    border-top-color: rgba(255,255,255,.07);
}

:root.theme-dark .bravo-2fa__section-icon {
    background: linear-gradient(135deg, #f0b90b 0%, #f28739 100%);
    color: #1a1209;
    box-shadow: 0 6px 18px rgba(240,185,11,.22);
}

:root.theme-dark .bravo-2fa__section-title {
    color: var(--text, #f1f5f9);
}

:root.theme-dark .bravo-2fa__sms-info {
    background: rgba(14,203,129,.10);
    border-color: rgba(14,203,129,.28);
    color: #0ecb81;
}

:root.theme-dark .bravo-2fa__sms-info-icon {
    background: #0ecb81;
    color: #0b0e11;
}

:root.theme-dark .bravo-otp__cell {
    background: #222830;
    border-color: rgba(255,255,255,.12);
    color: #eaecef;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

:root.theme-dark .bravo-otp__cell:focus {
    border-color: #f0b90b;
    background: #1b2026;
    box-shadow: 0 0 0 4px rgba(240,185,11,.12), inset 0 1px 0 rgba(255,255,255,.04);
    caret-color: #f0b90b;
}

:root.theme-dark .bravo-otp__cell.is-filled {
    border-color: rgba(255,255,255,.12);
    background: #222830;
    color: #eaecef;
}

:root.theme-dark .bravo-otp__cell.is-error,
:root.theme-dark .bravo-2fa__otp-wrap.has-error .bravo-otp__cell {
    /* red border removed */
}

:root.theme-dark .bravo-2fa__otp-wrap.has-error,
:root.theme-dark .bravo-2fa__otp-wrap.has-error:focus {
    border: none !important;
    padding-bottom: 0 !important;
}

:root.theme-dark .bravo-2fa__otp-error {
    color: #f6465d;
}

:root.theme-dark .bravo-2fa__btn {
    background: linear-gradient(135deg, #f0b90b 0%, #f28739 100%);
    color: #1a1209;
    box-shadow: 0 6px 22px rgba(240,185,11,.28);
}

:root.theme-dark .bravo-2fa__btn:hover:not(:disabled) {
    filter: brightness(1.08);
    box-shadow: 0 10px 28px rgba(240,185,11,.42);
}

:root.theme-dark .bravo-2fa__resend {
    color: var(--muted, #94a3b8);
}

:root.theme-dark .bravo-2fa__resend-link {
    color: #e2e8f0;
}

:root.theme-dark .bravo-2fa__resend-link:hover {
    color: #fff;
}

:root.theme-dark .bravo-2fa__resend-toast {
    background: rgba(74,222,128,.15);
    color: #4ade80;
    border-color: rgba(74,222,128,.25);
}



/* =========================================================
   LP — NEW LOGIN PAGE  (lp-* namespace)
   Premium light fintech / crypto exchange style
   ========================================================= */

/* ── Root variables – light theme ───────────────────────── */
:root {
    --lp-bg:              #f8fafc;
    --lp-shell-bg:        rgba(255,255,255,0.72);
    --lp-shell-border:    rgba(218,225,240,0.75);
    --lp-shell-shadow:    0 28px 90px rgba(15,23,42,0.08);
    --lp-border:          rgba(226,232,240,0.9);
    --lp-text-h:          #0f172a;
    --lp-text-body:       #475467;
    --lp-text-muted:      #94a3b8;
    --lp-input-bg:        rgba(255,255,255,0.52);
    --lp-input-border:    rgba(203,213,225,0.95);
    --lp-input-focus:     #7068ff;
    --lp-badge-bg:        rgba(112,104,255,0.08);
    --lp-badge-color:     #5f55e8;
    --lp-market-bg:       rgba(255,255,255,0.66);
    --lp-footer-color:    #94a3b8;
    --lp-feature-orange:  rgba(255,145,60,0.12);
    --lp-feature-violet:  rgba(112,104,255,0.10);
    --lp-feature-green:   rgba(34,197,94,0.10);
    --lp-feature-card-bg: rgba(255,255,255,0.58);
}

/* ── Dark theme overrides ── */
:root.theme-dark {
    --lp-bg:              #0b0e11;
    --lp-shell-bg:        rgba(17,24,39,0.88);
    --lp-shell-border:    rgba(255,255,255,0.08);
    --lp-shell-shadow:    0 28px 90px rgba(0,0,0,0.55);
    --lp-border:          rgba(255,255,255,0.10);
    --lp-text-h:          #eaecef;
    --lp-text-body:       rgba(234,236,239,0.65);
    --lp-text-muted:      rgba(234,236,239,0.38);
    --lp-input-bg:        rgba(34,40,48,0.65);
    --lp-input-border:    rgba(255,255,255,0.12);
    --lp-input-focus:     #f0b90b;
    --lp-badge-bg:        rgba(240,185,11,0.12);
    --lp-badge-color:     #f0b90b;
    --lp-market-bg:       rgba(27,32,38,0.80);
    --lp-footer-color:    rgba(234,236,239,0.38);
    --lp-feature-orange:  rgba(240,185,11,0.10);
    --lp-feature-violet:  rgba(240,185,11,0.07);
    --lp-feature-green:   rgba(14,203,129,0.09);
    --lp-feature-card-bg: rgba(27,32,38,0.70);
}

/* Hide old fixed auth controls when lp-wrap is present */
body:has(.lp-wrap) .auth-top-controls { display: none !important; }

/* Remove dotted body::before for login page */
body:has(.lp-wrap)::before { display: none !important; }

/* ── Page wrapper ────────────────────────────────────────── */
.lp-wrap {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background:
        radial-gradient(circle at 15% 20%, rgba(255,220,150,0.16), transparent 32%),
        radial-gradient(circle at 85% 20%, rgba(115,105,255,0.10), transparent 34%),
        linear-gradient(135deg, #f8fafc 0%, #f4f6fb 45%, #eef3fb 100%);
    padding: 0;
    box-sizing: border-box;
}

:root.theme-dark .lp-wrap {
    background:
        radial-gradient(circle at 15% 20%, rgba(240,185,11,0.06), transparent 32%),
        radial-gradient(circle at 85% 20%, rgba(115,105,255,0.08), transparent 34%),
        linear-gradient(135deg, #0b0e11 0%, #0d1117 45%, #0b0e14 100%);
}

/* ── Application shell ──────────────────────────────────── */
.lp-shell {
    max-width: 1500px;
    width: calc(100% - 48px);
    min-height: calc(100vh - 32px);
    margin: 16px auto;
    border-radius: 32px;
    background: var(--lp-shell-bg);
    border: 1px solid var(--lp-shell-border);
    box-shadow:
        var(--lp-shell-shadow),
        inset 0 1px 0 rgba(255,255,255,0.9);
    /* overflow: visible — allows dropdown menus to escape the shell's border-radius clip */
    overflow: visible;
    position: relative;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

:root.theme-dark .lp-shell {
    box-shadow:
        var(--lp-shell-shadow),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

/* ── Header ──────────────────────────────────────────────── */
.lp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 42px 14px;
    position: relative;
    /* z-index: 200 ensures header (and its dropdown) renders above panels with backdrop-filter stacking contexts */
    z-index: 200;
    flex-shrink: 0;
    box-sizing: border-box;
}

.lp-header__brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.lp-header__logo--dark  { display: none; }
.lp-header__logo--light { display: block; }
:root.theme-dark .lp-header__logo--dark  { display: block; }
:root.theme-dark .lp-header__logo--light { display: none; }

.lp-header__controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Theme toggle & lang buttons */
.lp-header__controls .theme-toggle,
.lp-header__controls .lang-compact__btn {
    height: 40px;
    border-radius: 14px;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(220,227,240,0.95);
    box-shadow: 0 8px 24px rgba(15,23,42,0.05);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    cursor: pointer;
    transition: background .15s, border-color .15s, box-shadow .15s;
}

.lp-header__controls .theme-toggle {
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1;
}

.lp-header__controls .theme-toggle:hover,
.lp-header__controls .lang-compact__btn:hover {
    background: rgba(255,255,255,0.90);
    border-color: rgba(200,210,230,0.95);
    box-shadow: 0 8px 24px rgba(15,23,42,0.08);
}

:root.theme-dark .lp-header__controls .theme-toggle,
:root.theme-dark .lp-header__controls .lang-compact__btn {
    background: rgba(34,40,48,0.75);
    border-color: rgba(255,255,255,0.10);
    box-shadow: 0 8px 24px rgba(0,0,0,0.20);
}

:root.theme-dark .lp-header__controls .theme-toggle:hover,
:root.theme-dark .lp-header__controls .lang-compact__btn:hover {
    background: rgba(44,52,62,0.85);
    border-color: rgba(255,255,255,0.16);
}

/* ── Lang dropdown — explicit overrides so login page never relies on nav.css ─── */
.lp-header__controls .lang-compact {
    position: relative;
    z-index: 999;
}

.lp-header__controls .lang-compact__drop {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 160px;
    background: #fff;
    border: 1px solid rgba(220,227,240,0.95);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(15,23,42,0.14), 0 4px 12px rgba(15,23,42,0.08);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .15s, visibility .15s, transform .15s;
    z-index: 9999;
}

.lp-header__controls .lang-compact.is-open .lang-compact__drop {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lp-header__controls .lang-compact__opt {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    text-decoration: none;
    transition: background .1s;
}

.lp-header__controls .lang-compact__opt:hover {
    background: #f1f5f9;
    text-decoration: none;
    color: #0f172a;
}

.lp-header__controls .lang-compact__opt.active {
    font-weight: 600;
    color: #6d63ff;
    background: rgba(112,104,255,.08);
    pointer-events: none;
}

.lp-header__controls .lang-compact__flag {
    font-size: 16px;
    line-height: 1;
}

.lp-header__controls .lang-compact.is-open .lang-compact__btn {
    border-color: #7068ff;
    box-shadow: 0 0 0 3px rgba(112,104,255,.10);
}

.lp-header__controls .lang-compact__chevron {
    transition: transform .15s ease;
}

.lp-header__controls .lang-compact.is-open .lang-compact__chevron {
    transform: rotate(180deg);
}

:root.theme-dark .lp-header__controls .lang-compact__drop {
    background: #1e2433;
    border-color: rgba(255,255,255,.08);
    box-shadow: 0 12px 32px rgba(0,0,0,.35);
}

:root.theme-dark .lp-header__controls .lang-compact__opt {
    color: #e2e8f0;
}

:root.theme-dark .lp-header__controls .lang-compact__opt:hover {
    background: rgba(255,255,255,.06);
    color: #f1f5f9;
}

:root.theme-dark .lp-header__controls .lang-compact__opt.active {
    color: #a5b4fc;
    background: rgba(112,104,255,.12);
}

:root.theme-dark .lp-header__controls .lang-compact.is-open .lang-compact__btn {
    border-color: rgba(112,104,255,.40);
}

/* ── Main grid ───────────────────────────────────────────── */
.lp-main {
    flex: 1;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 0;
    padding: 6px 44px 36px;
    min-height: 560px;
    align-items: center;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

.lp-main::before {
    display: none;
}

/* ── Panels (shared) ─────────────────────────────────────── */
.lp-panel {
    position: relative;
    box-sizing: border-box;
}

/* No glass pseudo-elements — flat surface */
.lp-panel::before,
.lp-panel::after {
    display: none;
}

/* ── Left panel — flat marketing column ───────────────────── */
.lp-panel--left {
    min-height: 560px;
    padding: 32px 36px 32px 4px;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: hidden;
}

:root.theme-dark .lp-panel--left {
    background: transparent;
    border: none;
    box-shadow: none;
}

/* ── Right panel — flat auth column with left divider ─────── */
.lp-panel--right {
    min-height: 560px;
    padding: 32px 4px 32px 56px;
    background: transparent;
    border: none;
    border-left: 1px solid rgba(226,232,240,0.75);
    box-shadow: none;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

:root.theme-dark .lp-panel--right {
    background: transparent;
    border: none;
    border-left: 1px solid rgba(255,255,255,0.10);
    box-shadow: none;
}

/* ── Left panel content ──────────────────────────────────── */
.lp-panel__content {
    position: relative;
    z-index: 2;
}

/* Decorative crypto graphic */
.lp-panel__crypto-bg {
    position: absolute;
    right: 40px;
    top: 180px;
    width: 280px;
    height: 280px;
    opacity: 0.62;
    pointer-events: none;
    z-index: 1;
}

.lp-panel__crypto-svg {
    width: 100%;
    height: 100%;
}

/* Badge */
.lp-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 30px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--lp-badge-bg);
    border: 1px solid rgba(112,104,255,0.14);
    color: var(--lp-badge-color);
    font-size: 13px;
    font-weight: 700;
    width: max-content;
    position: relative;
    z-index: 2;
}

.lp-badge svg { flex-shrink: 0; }

:root.theme-dark .lp-badge { border-color: rgba(240,185,11,0.18); }

/* Heading */
.lp-panel__heading {
    font-size: clamp(32px, 3.2vw, 48px);
    line-height: 1.10;
    letter-spacing: -0.04em;
    font-weight: 800;
    color: var(--lp-text-h);
    margin: 28px 0 0;
    max-width: 620px;
    position: relative;
    z-index: 2;
}

/* Description */
.lp-panel__desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--lp-text-body);
    max-width: 540px;
    margin: 16px 0 0;
    position: relative;
    z-index: 2;
}

/* ── Feature items — flat, no card ──────────────────────── */
.lp-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 28px;
    max-width: 620px;
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(226,232,240,0.75);
    padding-top: 24px;
}

:root.theme-dark .lp-features {
    border-top-color: rgba(255,255,255,0.10);
}

.lp-features__card {
    padding: 0 24px 0 0;
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-right: 1px solid rgba(226,232,240,0.75);
    margin-right: 24px;
}

.lp-features__card:last-child {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
}

:root.theme-dark .lp-features__card {
    background: transparent;
    border-right-color: rgba(255,255,255,0.10);
}

.lp-features__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 6px;
}

.lp-features__icon--orange { background: var(--lp-feature-orange); color: #ea6c0a; }
.lp-features__icon--violet { background: var(--lp-feature-violet); color: #6d63ff; }
.lp-features__icon--green  { background: var(--lp-feature-green);  color: #15803d; }

:root.theme-dark .lp-features__icon--orange { color: #f0b90b; }
:root.theme-dark .lp-features__icon--violet { color: #f0b90b; }
:root.theme-dark .lp-features__icon--green  { color: #0ecb81; }

.lp-features__card strong {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--lp-text-h);
}

.lp-features__card span {
    font-size: 13px;
    line-height: 1.45;
    color: var(--lp-text-body);
}

/* ── Market overview — flat section, no card ─────────────── */
.lp-market {
    margin-top: 28px;
    max-width: 620px;
    background: transparent;
    border: none;
    border-top: 1px solid rgba(226,232,240,0.75);
    box-shadow: none;
    padding: 20px 0 0;
    position: relative;
    z-index: 2;
}

:root.theme-dark .lp-market {
    background: transparent;
    border-top-color: rgba(255,255,255,0.10);
    box-shadow: none;
}

.lp-market__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.lp-market__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--lp-text-h);
}

.lp-market__link {
    font-size: 12.5px;
    font-weight: 500;
    color: #5f55e8;
    text-decoration: none;
    transition: color .15s;
}
.lp-market__link:hover { color: #766cff; }
:root.theme-dark .lp-market__link { color: #f0b90b; }
:root.theme-dark .lp-market__link:hover { color: #fcd535; }

.lp-market__row {
    display: grid;
    grid-template-columns: 30px 1fr auto auto 90px;
    align-items: center;
    gap: 8px;
    height: 50px;
    border-top: 1px solid rgba(226,232,240,0.7);
}

:root.theme-dark .lp-market__row { border-top-color: rgba(255,255,255,0.08); }

.lp-market__coin-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
}

.lp-market__coin-icon--btc { background: rgba(247,147,26,0.12); color: #f7931a; }
.lp-market__coin-icon--eth { background: rgba(99,102,241,0.12);  color: #6366f1; }

.lp-market__name {
    font-size: 13px;
    font-weight: 600;
    color: var(--lp-text-h);
    white-space: nowrap;
}

.lp-market__name em {
    font-style: normal;
    font-size: 11px;
    font-weight: 500;
    color: var(--lp-text-muted);
    margin-left: 4px;
}

.lp-market__price {
    font-size: 13px;
    font-weight: 700;
    color: var(--lp-text-h);
    white-space: nowrap;
    text-align: right;
}

.lp-market__change {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.lp-market__change--down { color: #ef4444; }
.lp-market__change--up   { color: #22c55e; }

.lp-market__spark {
    width: 60px;
    height: 24px;
    flex-shrink: 0;
    overflow: visible;
}

/* ── Auth form (right panel) ─────────────────────────────── */
.lp-auth {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 2;
}

.lp-auth__brand {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.lp-auth__brand img {
    max-width: 180px;
    height: auto;
}

.lp-auth__logo--dark  { display: none; }
.lp-auth__logo--light { display: block; }
:root.theme-dark .lp-auth__logo--dark  { display: block; }
:root.theme-dark .lp-auth__logo--light { display: none; }

.lp-auth__title {
    font-size: 21px;
    font-weight: 750;
    line-height: 1.25;
    color: var(--lp-text-h);
    margin: 0 0 6px;
}

.lp-auth__subtitle {
    font-size: 14px;
    line-height: 1.5;
    color: var(--lp-text-body);
    margin: 0 0 22px;
}

/* Alerts */
.lp-alert {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 500;
    margin-bottom: 18px;
    line-height: 1.4;
}

.lp-alert--success {
    background: rgba(34,197,94,0.10);
    border: 1px solid rgba(34,197,94,0.25);
    color: #15803d;
}

.lp-alert--danger {
    background: rgba(239,68,68,0.09);
    border: 1px solid rgba(239,68,68,0.22);
    color: #b91c1c;
}

:root.theme-dark .lp-alert--success { color: #0ecb81; background: rgba(14,203,129,0.10); border-color: rgba(14,203,129,0.25); }
:root.theme-dark .lp-alert--danger  { color: #f6465d; background: rgba(246,70,93,0.10);  border-color: rgba(246,70,93,0.25); }

/* Maintenance */
.lp-maintenance {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    margin-bottom: 18px;
}

.lp-maintenance svg { flex-shrink: 0; margin-top: 1px; }

.lp-maintenance p {
    font-size: 13px;
    font-weight: 500;
    color: #92400e;
    margin: 0;
    line-height: 1.4;
}

:root.theme-dark .lp-maintenance {
    background: rgba(251,191,36,0.08);
    border-color: rgba(251,191,36,0.25);
}

:root.theme-dark .lp-maintenance p { color: #fbbf24; }

/* ── Form ────────────────────────────────────────────────── */
.lp-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lp-form__group {
    margin-bottom: 16px;
}

.lp-form__label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--lp-text-h);
    margin-bottom: 6px;
}

.lp-form__input {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid var(--lp-input-border);
    background: var(--lp-input-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.85),
        0 4px 12px rgba(15,23,42,0.025);
    color: var(--lp-text-h);
    font-size: 14px;
    font-weight: 400;
    outline: none;
    transition: border-color .18s, box-shadow .18s, background .18s;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.lp-form__input::placeholder { color: var(--lp-text-muted); }

.lp-form__input:focus {
    border-color: #7068ff;
    box-shadow:
        0 0 0 4px rgba(112,104,255,0.12),
        inset 0 1px 0 rgba(255,255,255,0.90);
    outline: none;
}

:root.theme-dark .lp-form__input:focus {
    border-color: rgba(240,185,11,0.55);
    box-shadow:
        0 0 0 4px rgba(240,185,11,0.12),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

.lp-form__input--error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.10);
}

:root.theme-dark .lp-form__input--error {
    border-color: rgba(246,70,93,0.60);
    box-shadow: 0 0 0 3px rgba(246,70,93,0.10);
}

.lp-form__error {
    display: block;
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
    font-weight: 500;
}

:root.theme-dark .lp-form__error { color: #f6465d; }

/* Eye wrap */
.lp-form__eye-wrap {
    position: relative;
}

.lp-form__eye-wrap .lp-form__input {
    padding-right: 48px;
}

.lp-form__eye {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    color: var(--lp-text-muted);
    display: flex;
    align-items: center;
    transition: color .15s;
}

.lp-form__eye:hover { color: var(--lp-text-h); }

/* Meta row (remember + forgot) */
.lp-form__meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0 20px;
    height: 24px;
}

.lp-form__check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--lp-text-h);
    cursor: pointer;
    user-select: none;
}

.lp-form__checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    cursor: pointer;
}

.lp-form__checkmark {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1.5px solid var(--lp-input-border);
    background: var(--lp-input-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .15s, border-color .15s;
    position: relative;
}

.lp-form__checkbox:checked + .lp-form__checkmark {
    background: #6d63ff;
    border-color: #6d63ff;
}

.lp-form__checkbox:checked + .lp-form__checkmark::after {
    content: '';
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    margin-top: -2px;
}

:root.theme-dark .lp-form__checkbox:checked + .lp-form__checkmark {
    background: #f0b90b;
    border-color: #f0b90b;
}

:root.theme-dark .lp-form__checkbox:checked + .lp-form__checkmark::after {
    border-color: #1a1209;
}

.lp-form__forgot {
    font-size: 14px;
    font-weight: 600;
    color: #5f55e8;
    text-decoration: none;
    transition: color .15s;
}
.lp-form__forgot:hover { text-decoration: underline; color: #4a3fd6; }
:root.theme-dark .lp-form__forgot { color: #f0b90b; }
:root.theme-dark .lp-form__forgot:hover { color: #fcd535; }

/* Submit */
.lp-form__submit-wrap {
    margin-top: 0;
    margin-bottom: 0;
}

.lp-form__submit {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(180deg, #111827 0%, #060a18 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 750;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
    box-shadow:
        0 16px 34px rgba(15,23,42,0.24),
        inset 0 1px 0 rgba(255,255,255,0.10);
    position: relative;
    overflow: hidden;
}

.lp-form__submit:hover {
    transform: translateY(-1px);
    box-shadow:
        0 20px 40px rgba(15,23,42,0.28),
        inset 0 1px 0 rgba(255,255,255,0.12);
}

.lp-form__submit:active {
    transform: translateY(0);
    box-shadow:
        0 6px 16px rgba(15,23,42,0.20),
        inset 0 1px 0 rgba(255,255,255,0.08);
}

:root.theme-dark .lp-form__submit {
    background: linear-gradient(135deg, #f0b90b 0%, #f28739 100%);
    color: #1a1209;
    box-shadow:
        0 16px 34px rgba(240,185,11,0.24),
        inset 0 1px 0 rgba(255,255,255,0.15);
}

:root.theme-dark .lp-form__submit:hover {
    box-shadow:
        0 20px 40px rgba(240,185,11,0.35),
        inset 0 1px 0 rgba(255,255,255,0.20);
}

/* Divider */
.lp-auth__divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0 14px;
    color: #8b95a7;
    font-size: 14px;
}

.lp-auth__divider::before,
.lp-auth__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(203,213,225,0.9), transparent);
}

:root.theme-dark .lp-auth__divider { color: var(--lp-text-muted); }
:root.theme-dark .lp-auth__divider::before,
:root.theme-dark .lp-auth__divider::after {
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.12), transparent);
}

/* Google login */
.lp-auth__google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(203,213,225,0.95);
    background: #ffffff;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    font-size: 14px;
    font-weight: 650;
    color: #374151;
    cursor: pointer;
    transition: background .15s, border-color .15s, box-shadow .15s;
}

.lp-auth__google:hover:not(:disabled) {
    background: rgba(255,255,255,0.70);
    border-color: rgba(180,192,216,0.95);
    box-shadow: 0 4px 12px rgba(15,23,42,0.06);
}

.lp-auth__google:disabled {
    opacity: .55;
    cursor: default;
}

.lp-auth__google svg { flex-shrink: 0; }

:root.theme-dark .lp-auth__google {
    background: rgba(34,40,48,0.50);
    border-color: rgba(255,255,255,0.10);
    color: var(--lp-text-h);
}

:root.theme-dark .lp-auth__google:hover:not(:disabled) {
    background: rgba(44,52,62,0.70);
    border-color: rgba(255,255,255,0.18);
}

/* Sign up link */
.lp-auth__signup {
    text-align: center;
    margin-top: 18px;
    font-size: 14px;
    color: var(--lp-text-body);
}

.lp-auth__signup a {
    color: #5f55e8;
    font-weight: 700;
    text-decoration: none;
    transition: color .15s;
}
.lp-auth__signup a:hover { text-decoration: underline; color: #4a3fd6; }
:root.theme-dark .lp-auth__signup a { color: #f0b90b; }
:root.theme-dark .lp-auth__signup a:hover { color: #fcd535; }

/* ── Footer ──────────────────────────────────────────────── */
.lp-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding: 12px 42px 16px;
    border-top: 1px solid rgba(226,232,240,0.7);
    box-sizing: border-box;
    flex-shrink: 0;
}

:root.theme-dark .lp-footer {
    border-top-color: rgba(255,255,255,0.08);
}

.lp-footer__copy {
    font-size: 12px;
    color: var(--lp-footer-color);
}

.lp-footer__links {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.lp-footer__links a {
    font-size: 12px;
    color: var(--lp-footer-color);
    text-decoration: none;
    padding: 0 10px;
    border-left: 1px solid rgba(226,232,240,0.7);
    line-height: 1;
    transition: color .15s;
}

:root.theme-dark .lp-footer__links a {
    border-left-color: rgba(255,255,255,0.08);
}

.lp-footer__links a:first-child { border-left: none; padding-left: 0; }
.lp-footer__links a:hover { color: var(--lp-text-body); }

/* ── Responsive: Tablet (900–1199px) ────────────────────── */
@media (max-width: 1199px) {
    .lp-main {
        grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
        gap: 0;
        padding: 8px 32px 28px;
    }

    .lp-panel--left {
        padding: 28px 28px 28px 4px;
        min-height: auto;
    }

    .lp-panel--right {
        padding: 28px 4px 28px 40px;
        min-height: auto;
    }

    .lp-panel__heading {
        font-size: clamp(28px, 3.5vw, 44px);
    }

    .lp-panel__crypto-bg {
        width: 240px;
        height: 240px;
        opacity: 0.40;
        right: 20px;
        top: 200px;
    }

    .lp-features {
        grid-template-columns: repeat(3, 1fr);
        max-width: 100%;
    }


    .lp-market {
        max-width: 100%;
    }

    .lp-header {
        padding: 22px 40px 16px;
    }

    .lp-footer {
        padding: 16px 40px 20px;
    }
}

/* ── Responsive: Mobile (<900px) ─────────────────────────── */
@media (max-width: 900px) {
    .lp-shell {
        width: calc(100% - 24px);
        margin: 12px auto;
        border-radius: 24px;
    }

    .lp-header {
        padding: 16px 20px;
    }

    .lp-main {
        grid-template-columns: 1fr;
        row-gap: 0;
        column-gap: 0;
        padding: 8px 20px 28px;
        min-height: auto;
        align-items: start;
    }

    .lp-main::before {
        display: none;
    }

    /* On mobile, show login form first */
    .lp-panel--right {
        order: -1;
        padding: 28px 0 24px;
        min-height: auto;
        border-left: none;
        border-bottom: 1px solid rgba(226,232,240,0.75);
        margin-bottom: 24px;
    }

    :root.theme-dark .lp-panel--right {
        border-left: none;
        border-bottom: 1px solid rgba(255,255,255,0.10);
    }

    .lp-panel--left {
        padding: 24px 0;
        min-height: auto;
    }

    .lp-panel__heading {
        font-size: 28px;
        margin-top: 24px;
    }

    .lp-panel__desc {
        font-size: 15px;
    }

    .lp-panel__crypto-bg {
        display: none;
    }

    .lp-features {
        grid-template-columns: 1fr;
        gap: 16px;
        border-top: 1px solid rgba(226,232,240,0.75);
        padding-top: 20px;
    }

    :root.theme-dark .lp-features {
        border-top-color: rgba(255,255,255,0.10);
    }

    .lp-features__card {
        padding: 0;
        border-right: none;
        margin-right: 0;
        border-bottom: 1px solid rgba(226,232,240,0.60);
        padding-bottom: 16px;
        margin-bottom: 0;
    }

    .lp-features__card:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    :root.theme-dark .lp-features__card {
        border-bottom-color: rgba(255,255,255,0.08);
    }

    .lp-market {
        max-width: 100%;
    }

    .lp-market__row {
        grid-template-columns: 28px 1fr auto auto 60px;
        gap: 6px;
        height: auto;
        padding: 8px 0;
    }

    .lp-auth {
        max-width: 100%;
    }

    .lp-auth__brand {
        margin-bottom: 32px;
    }

    .lp-footer {
        padding: 16px 20px 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .lp-footer__links {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .lp-footer__links a {
        border-left: none;
        padding-left: 0;
    }
}


/* =========================================================
   PHONE PREFIX SELECT — кастомный dropdown с флагами и поиском
   (.pp-select)
   ========================================================= */

.pp-select {
    position: relative;
    display: block;
    width: 100%;
}

/* ── Trigger кнопка ── */
.pp-select__trigger {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(15,23,42,.12);
    border-radius: 14px;
    background: #ffffff;
    color: #0f172a;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: border-color .15s, box-shadow .15s, background .15s;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(15,23,42,.04);
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
    min-height: 44px;
}

.pp-select__trigger:hover {
    border-color: rgba(15,23,42,.22);
    background: #f8fbff;
}

.pp-select.is-open .pp-select__trigger,
.pp-select__trigger:focus {
    border-color: rgba(240,185,11,.55);
    box-shadow: 0 0 0 3px rgba(240,185,11,.12);
    background: #ffffff;
}

/* ── Метки внутри trigger ── */
.pp-select__trigger .pp-select__flag {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

.pp-select__trigger-label {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pp-select__chevron {
    flex-shrink: 0;
    color: #94a3b8;
    transition: transform .18s ease;
    margin-left: auto;
}

.pp-select.is-open .pp-select__chevron {
    transform: rotate(180deg);
}

/* ── Dropdown панель ── */
.pp-select__drop {
    /* position/top/left/right/width управляются JS (position:fixed через getBoundingClientRect)
       Здесь только визуальные стили и начальное скрытое состояние */
    position: absolute;   /* fallback до открытия; JS переключает на fixed */
    top: calc(100% + 5px);
    left: 0;
    min-width: 280px;
    max-width: min(360px, 90vw);
    background: #ffffff;
    border: 1px solid rgba(15,23,42,.10);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15,23,42,.14), 0 4px 12px rgba(15,23,42,.08);
    z-index: 99999;
    overflow: hidden;
    /* Скрыт по умолчанию */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .15s ease, visibility .15s, transform .15s ease;
}

.pp-select.is-open .pp-select__drop {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ── Поиск ── */
.pp-select__search-wrap {
    padding: 10px 10px 6px;
    border-bottom: 1px solid rgba(15,23,42,.06);
}

.pp-select__search {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(15,23,42,.12);
    border-radius: 10px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 13px;
    font-weight: 400;
    outline: none;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.pp-select__search::placeholder {
    color: #94a3b8;
    font-size: 12px;
}

.pp-select__search:focus {
    background: #ffffff;
    border-color: rgba(240,185,11,.50);
    box-shadow: 0 0 0 3px rgba(240,185,11,.10);
}

/* ── Список ── */
.pp-select__list {
    list-style: none;
    margin: 0;
    padding: 6px;
    max-height: 240px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.pp-select__list::-webkit-scrollbar { width: 4px; }
.pp-select__list::-webkit-scrollbar-track { background: transparent; }
.pp-select__list::-webkit-scrollbar-thumb {
    background: rgba(15,23,42,.12);
    border-radius: 2px;
}

/* ── Пункт списка ── */
.pp-select__opt {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 9px;
    cursor: pointer;
    transition: background .09s;
    outline: none;
}

.pp-select__opt:hover,
.pp-select__opt:focus {
    background: #f1f5f9;
}

.pp-select__opt.is-selected {
    background: rgba(240,185,11,.10);
    font-weight: 600;
}

.pp-select__opt.is-selected .pp-select__opt-prefix {
    color: #b8860b;
}

.pp-select__flag {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.pp-select__opt-prefix {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 44px;
}

.pp-select__opt-country {
    font-size: 13px;
    color: #475569;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pp-select__empty {
    padding: 12px 10px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

/* ── В контексте tf-form__row (страница настроек) ── */
.tf-form__row .pp-select {
    flex: 0 0 120px;
    min-width: 110px;
    max-width: 140px;
}

.tf-form__row .pp-select__trigger {
    border-radius: 10px;
    padding: 9px 10px;
    min-height: 40px;
    font-size: 14px;
}

/* Позиционирование .pp-select__drop теперь полностью управляется JS (position:fixed)
   Убираем CSS-переопределения left/right/min-width для контекстов */

/* ── В контексте bravo-auth (страница верификации телефона) ── */
.bravo-auth .pp-select__trigger {
    border-radius: 14px;
}

/* ── ТЁМНАЯ ТЕМА ── */
:root.theme-dark .pp-select__trigger {
    background: #222830;
    border-color: rgba(255,255,255,.12);
    color: #eaecef;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.18);
}

:root.theme-dark .pp-select__trigger:hover {
    background: #2a303a;
    border-color: rgba(255,255,255,.20);
}

:root.theme-dark .pp-select.is-open .pp-select__trigger,
:root.theme-dark .pp-select__trigger:focus {
    background: #1b2026;
    border-color: rgba(240,185,11,.55);
    box-shadow: 0 0 0 3px rgba(240,185,11,.12);
}

:root.theme-dark .pp-select__trigger-label {
    color: #eaecef;
}

:root.theme-dark .pp-select__chevron {
    color: rgba(234,236,239,.38);
}

:root.theme-dark .pp-select__drop {
    background: #1b2026;
    border-color: rgba(255,255,255,.12);
    box-shadow: 0 16px 40px rgba(0,0,0,.45), 0 4px 12px rgba(0,0,0,.30);
}

:root.theme-dark .pp-select__search-wrap {
    border-bottom-color: rgba(255,255,255,.08);
}

:root.theme-dark .pp-select__search {
    background: #222830;
    border-color: rgba(255,255,255,.12);
    color: #eaecef;
}

:root.theme-dark .pp-select__search::placeholder {
    color: rgba(234,236,239,.38);
}

:root.theme-dark .pp-select__search:focus {
    background: #1b2026;
    border-color: rgba(240,185,11,.55);
    box-shadow: 0 0 0 3px rgba(240,185,11,.12);
}

:root.theme-dark .pp-select__list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.10);
}

:root.theme-dark .pp-select__opt:hover,
:root.theme-dark .pp-select__opt:focus {
    background: rgba(255,255,255,.06);
}

:root.theme-dark .pp-select__opt.is-selected {
    background: rgba(240,185,11,.10);
}

:root.theme-dark .pp-select__opt.is-selected .pp-select__opt-prefix {
    color: #f0b90b;
}

:root.theme-dark .pp-select__opt-prefix {
    color: #eaecef;
}

:root.theme-dark .pp-select__opt-country {
    color: rgba(234,236,239,.55);
}

:root.theme-dark .pp-select__empty {
    color: rgba(234,236,239,.38);
}

/* ── Responsive — маленький экран ── */
@media (max-width: 480px) {
    .pp-select__drop {
        min-width: 260px;
        max-width: calc(100vw - 32px);
    }

    .pp-select__list {
        max-height: 200px;
    }
}

