/* ═══ দহন — লগইন / রেজিস্টার (Ember design) ═══ */
.auth-page-wrapper {
    min-height: calc(100vh - 160px);
    display: flex; align-items: center; justify-content: center;
    padding: clamp(1rem, 3vw, 2.5rem) 0;
    position: relative; overflow: hidden;
    background:
        radial-gradient(900px 500px at 8% 0%, rgba(198,40,40,.10), transparent 60%),
        radial-gradient(800px 480px at 100% 100%, rgba(46,125,50,.10), transparent 60%),
        #faf7f5;
}
.auth-page-wrapper .container { position: relative; z-index: 1; }

.auth-split-card {
    background: #fff; border-radius: 28px; overflow: hidden; border: 1px solid rgba(0,0,0,.05);
    box-shadow: 0 30px 80px rgba(60,20,10,.16), 0 6px 20px rgba(60,20,10,.06);
    max-width: 1060px; margin: 0 auto;
}

/* ── Showcase (left) ── */
.auth-brand-panel {
    position: relative; overflow: hidden; color: #fff;
    padding: 2.6rem 2.3rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1.6rem;
    min-height: 560px;
    background:
        radial-gradient(420px 300px at 85% 8%, rgba(255,193,7,.38), transparent 65%),
        radial-gradient(380px 300px at 0% 100%, rgba(255,87,34,.45), transparent 65%),
        linear-gradient(160deg, #7f0f12 0%, #a61b1b 45%, #d84315 100%);
}
.auth-brand-panel::before, .auth-brand-panel::after { content: none; }
.auth-brand-logo { background: rgba(255,255,255,.95); border-radius: 14px; padding: 8px 14px; display: inline-flex; align-self: flex-start; box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.auth-brand-logo img { height: 44px !important; width: auto; }
.auth-brand-panel h2 { font-weight: 800; letter-spacing: -.01em; }
.auth-brand-sub { color: rgba(255,255,255,.78); font-size: .92rem; margin: 0; }

.auth-collage { position: relative; height: 230px; margin: .2rem 0; }
.auth-collage .ph {
    position: absolute; width: 38%; aspect-ratio: 3/4; border-radius: 16px; overflow: hidden;
    border: 3px solid rgba(255,255,255,.92); box-shadow: 0 16px 34px rgba(0,0,0,.35);
    animation: authFloat 6s ease-in-out infinite;
}
.auth-collage .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.auth-collage .ph:nth-child(1) { left: 2%;  top: 18%; transform: rotate(-7deg); animation-delay: 0s; }
.auth-collage .ph:nth-child(2) { left: 31%; top: 0;   transform: rotate(2deg);  z-index: 2; animation-delay: -2s; }
.auth-collage .ph:nth-child(3) { right: 2%; top: 20%; transform: rotate(8deg);  animation-delay: -4s; }
@keyframes authFloat { 0%,100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@media (prefers-reduced-motion: reduce) { .auth-collage .ph { animation: none; } }

.auth-chips { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.auth-chip {
    display: flex; align-items: center; gap: .55rem; padding: .55rem .75rem; font-size: .8rem; line-height: 1.3;
    background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.2); border-radius: 12px; backdrop-filter: blur(6px);
}
.auth-chip i { color: #ffd54f; font-size: .95rem; flex-shrink: 0; }
.auth-stats { display: flex; gap: 1.1rem; padding: .8rem 1rem; background: rgba(0,0,0,.18); border-radius: 14px; }
.auth-stats > div { text-align: center; flex: 1; }
.auth-stats b { display: block; font-size: 1.25rem; }
.auth-stats span { font-size: .7rem; color: rgba(255,255,255,.7); }
.auth-quote { font-size: .85rem; font-weight: 700; color: rgba(255,255,255,.85); margin: 0; border-top: 1px solid rgba(255,255,255,.18); padding-top: .9rem; }

/* legacy item classes kept (not used by new markup) */
.auth-feature-item, .auth-feature-icon { display: none; }

/* ── Form side (right) ── */
.auth-form-panel { padding: clamp(1.6rem, 3.2vw, 2.8rem); display: flex; flex-direction: column; justify-content: center; }

.auth-tabs { display: flex; gap: .3rem; padding: .3rem; background: #f3f1ef; border-radius: 999px; margin-bottom: 1.5rem; }
.auth-tabs a { flex: 1; text-align: center; padding: .6rem 1rem; border-radius: 999px; font-weight: 700; font-size: .92rem; text-decoration: none; color: #6b6560; transition: all .2s; }
.auth-tabs a:hover { color: #a61b1b; }
.auth-tabs a.on { background: #fff; color: #a61b1b; box-shadow: 0 4px 12px rgba(0,0,0,.09); }

.auth-input-group { position: relative; margin-bottom: 1.1rem; }
.auth-input-label { display: block; font-size: .8rem; font-weight: 700; color: #3b3633; margin-bottom: 6px; }
.auth-input {
    width: 100%; padding: 13px 44px 13px 46px; border: 1.5px solid #e8e3df; border-radius: 14px;
    font-size: .95rem; color: #1f1b19; background: #fcfbfa; transition: border-color .2s, box-shadow .2s, background .2s; outline: none; font-family: inherit;
}
.auth-input:hover { border-color: #d6cfc9; }
.auth-input:focus { border-color: #c62828; background: #fff; box-shadow: 0 0 0 4px rgba(198,40,40,.12); }
.auth-input::placeholder { color: #a8a19b; font-size: .86rem; }
.auth-input-icon { position: absolute; left: 16px; bottom: 15px; color: #a8a19b; font-size: .95rem; pointer-events: none; transition: color .2s; }
.auth-input-group:focus-within .auth-input-icon { color: #c62828; }
.auth-input-toggle { position: absolute; right: 12px; bottom: 9px; background: none; border: 0; color: #a8a19b; padding: 6px; cursor: pointer; }
.auth-input-toggle:hover { color: #c62828; }

.auth-check-wrapper { display: flex; align-items: center; gap: 8px; margin: .2rem 0 1.2rem; }
.auth-check-wrapper input[type=checkbox] { width: 17px; height: 17px; accent-color: #c62828; cursor: pointer; }
.auth-check-wrapper label { font-size: .85rem; color: #6b6560; cursor: pointer; user-select: none; }

.auth-submit-btn {
    position: relative; overflow: hidden; width: 100%; padding: 14px 24px; border: 0; border-radius: 14px; cursor: pointer;
    color: #fff; font-weight: 800; font-size: 1rem; letter-spacing: .01em; font-family: inherit;
    display: flex; align-items: center; justify-content: center; gap: 9px;
    background: #c62828;
    box-shadow: 0 10px 24px rgba(198,40,40,.34); transition: transform .2s, box-shadow .2s;
}
.auth-submit-btn::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .6s; }
.auth-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(198,40,40,.42); }
.auth-submit-btn:hover::after { left: 120%; }
.auth-submit-btn:active { transform: translateY(0); }

.auth-divider { display: flex; align-items: center; gap: 12px; margin: 1.3rem 0 1rem; color: #a8a19b; font-size: .8rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: #ece7e3; }

.demo-role-card {
    display: flex; align-items: center; gap: 9px; padding: 10px 12px; width: 100%; text-align: left; font-family: inherit; cursor: pointer;
    border: 1.5px solid #ece7e3; border-radius: 14px; background: #fcfbfa; transition: all .2s;
}
.demo-role-card:hover { border-color: #c62828; background: #fff5f4; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(198,40,40,.12); }
.demo-role-icon { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Register: role cards */
.role-selector-card {
    display: block; position: relative; padding: 14px 14px 12px; border: 1.5px solid #e8e3df; border-radius: 16px; background: #fcfbfa;
    cursor: pointer; transition: all .2s; height: 100%;
}
.role-selector-card:hover { border-color: #c62828; background: #fff; transform: translateY(-2px); }
.role-selector-card::after {
    content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; top: 10px; right: 10px;
    width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .65rem;
    background: #fff; color: transparent; border: 1.5px solid #e0d9d4; transition: all .2s;
}
.btn-check:checked + .role-selector-card.buyer-card { border-color: #c62828; background: #fff5f4; box-shadow: 0 0 0 4px rgba(198,40,40,.10); }
.btn-check:checked + .role-selector-card.seller-card { border-color: #d4a017; background: #fffbea; box-shadow: 0 0 0 4px rgba(212,160,23,.14); }
.btn-check:checked + .role-selector-card.buyer-card::after { background: #c62828; border-color: #c62828; color: #fff; }
.btn-check:checked + .role-selector-card.seller-card::after { background: #d4a017; border-color: #d4a017; color: #fff; }
.role-icon-wrap { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; font-size: 1.05rem; }

.pass-strength-bar { height: 5px; border-radius: 5px; margin-top: 8px; background: #eee9e5; overflow: hidden; }
.pass-strength-fill { height: 100%; border-radius: 5px; width: 0%; transition: width .3s, background .3s; }

.auth-trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.1rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid #f1ece8; }
.auth-trust > div { text-align: center; font-size: .7rem; color: #a8a19b; }
.auth-trust i { display: block; font-size: 1.05rem; margin-bottom: 3px; }

/* ── Responsive ── */
@media (max-width: 991.98px) {
    .auth-split-card { max-width: 560px; }
    .auth-brand-panel { min-height: 0; padding: 1.5rem 1.4rem; gap: 1rem; }
    .auth-collage, .auth-chips, .auth-stats, .auth-quote { display: none; }
    .auth-brand-panel h2 { font-size: 1.35rem !important; }
}
@media (max-width: 575.98px) {
    .auth-page-wrapper { padding: .75rem 0; }
    .auth-split-card { border-radius: 20px; }
    .auth-form-panel { padding: 1.4rem 1.1rem; }
    .demo-role-card { flex-direction: column; text-align: center; gap: 4px; padding: 10px 6px; }
    .demo-role-card .small-sub { display: none; }
}

/* ── Login: minimal centered card ── */
.auth-solo { width: 100%; max-width: 440px; margin: 0 auto; background: #fff; border-radius: 26px; padding: 2.2rem 2rem 1.6rem;
    border: 1px solid rgba(0,0,0,.05); box-shadow: 0 24px 60px rgba(60,20,10,.13), 0 4px 14px rgba(60,20,10,.05); position: relative; }
.auth-solo::before { content: ''; position: absolute; top: 0; left: 50%; translate: -50% 0; width: 90px; height: 4px; border-radius: 0 0 6px 6px; background: #c62828; }
.auth-solo-logo { text-align: center; margin-bottom: 1.2rem; }
.auth-solo-logo img { height: 46px; width: auto; }
.auth-solo h1 { font-size: 1.35rem; font-weight: 800; text-align: center; margin: 0 0 .25rem; color: #1f1b19; }
.auth-solo .sub { text-align: center; font-size: .86rem; color: #8a817a; margin-bottom: 1.4rem; }
.auth-solo .demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.auth-solo .demo-grid form { margin: 0; }
.auth-solo .demo-role-card { flex-direction: column; text-align: center; gap: 4px; padding: 10px 4px; }
.auth-solo .demo-role-card .small-sub { display: block; }
@media (max-width: 575.98px) { .auth-solo { padding: 1.8rem 1.2rem 1.3rem; border-radius: 22px; } }

/* ── Compact scale for centered auth cards (login + register) ── */
.auth-solo.wide { max-width: 620px; }
.auth-solo { padding: 1.7rem 1.7rem 1.3rem; }
.auth-solo-logo { margin-bottom: .7rem; } .auth-solo-logo img { height: 38px; }
.auth-solo h1 { font-size: 1.2rem; } .auth-solo .sub { font-size: .8rem; margin-bottom: 1rem; }
.auth-solo .auth-tabs { margin-bottom: 1rem; } .auth-solo .auth-tabs a { padding: .45rem .8rem; font-size: .86rem; }
.auth-solo .auth-input-group { margin-bottom: .75rem; }
.auth-solo .auth-input-label { font-size: .74rem; margin-bottom: 4px; }
.auth-solo .auth-input { padding: 9px 38px 9px 38px; font-size: .88rem; border-radius: 11px; }
.auth-solo .auth-input-icon { left: 13px; bottom: 11px; font-size: .85rem; }
.auth-solo .auth-input-toggle { bottom: 5px; }
.auth-solo .auth-input-group.ta .auth-input-icon { top: 30px; }
.auth-solo textarea.auth-input { min-height: 56px; }
.auth-solo .auth-submit-btn { padding: 11px 20px; font-size: .93rem; border-radius: 12px; }
.auth-solo .role-selector-card { padding: 9px 8px; text-align: center; border-radius: 12px; }
.auth-solo .role-selector-card::after { display: none; }
.auth-solo .reg-note { font-size: .74rem; padding: .45rem .7rem; margin-bottom: .75rem; }
.auth-solo .auth-trust { margin-top: .8rem; padding-top: .7rem; gap: .9rem; }
.auth-solo .auth-trust i { font-size: .9rem; display: inline; margin-right: 4px; }
.auth-solo .kind-lbl { padding: .45rem .4rem !important; font-size: .8rem !important; border-radius: 10px !important; }
@media (max-width: 575.98px) { .auth-solo { padding: 1.4rem 1rem 1.1rem; } }

.suggest-btn { border: 0; background: #fff3e0; color: #b45309; font-size: .7rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; cursor: pointer; margin-bottom: 4px; font-family: inherit; transition: background .2s; }
.suggest-btn:hover { background: #ffe0b2; }
.suggest-btn i { margin-right: 3px; }

/* ── Phone / tablet safety ── */
.auth-solo, .auth-solo * { box-sizing: border-box; }
.auth-solo { overflow: hidden; word-wrap: break-word; }
.auth-solo .form-text, .auth-solo .reg-note, .auth-solo label { overflow-wrap: anywhere; }
@media (max-width: 767.98px) {
    .auth-page-wrapper .container { padding-left: 12px; padding-right: 12px; }
    .auth-solo .auth-input { font-size: 16px; }              /* iOS zoom বন্ধ */
    .auth-solo .auth-trust { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 400px) {
    .auth-solo { padding: 1.2rem .85rem 1rem; border-radius: 18px; }
    .auth-solo .demo-role-card { padding: 8px 2px; }
    .auth-solo .demo-role-card .fw-bold { font-size: .72rem !important; }
    .auth-solo .demo-role-icon { width: 30px; height: 30px; }
    .auth-solo .kind-pill, .auth-solo .kind-pill + * { gap: .35rem; }
}
@media (min-width: 992px) { .auth-page-wrapper { min-height: calc(100vh - 200px); } }

/* ── Register: ল্যান্ডস্কেপ ডাবল-কার্ড, ল্যাপটপে স্ক্রল ছাড়া ── */
.reg-page { min-height: auto !important; padding: .9rem 0 !important; align-items: flex-start; }
.auth-solo.wide2 { max-width: 1020px; padding: 1.1rem 1.5rem 1rem; border-radius: 22px; }
.auth-solo.wide2::before { width: 70px; }
.reg-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .8rem; }
.reg-brand { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.reg-brand img { height: 36px; width: auto; flex-shrink: 0; }
.reg-brand h1 { font-size: 1.1rem; text-align: left; margin: 0; }
.reg-brand .sub { text-align: left; font-size: .76rem; margin: 0; }
.auth-solo .reg-tabs { margin: 0; min-width: 210px; }
.reg-card { background: #fcfaf8; border: 1px solid #f0e9e3; border-radius: 16px; padding: .85rem 1rem; height: 100%; }
.reg-card-title { font-size: .76rem; font-weight: 800; color: #a61b1b; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .6rem; display: flex; align-items: center; gap: 6px; }
.reg-extra.reg-card { height: auto; }
.reg-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .8rem; flex-wrap: wrap; }
.reg-bottom .reg-terms { flex: 1 1 320px; }
.reg-bottom .reg-submit { width: auto; min-width: 280px; flex: 0 0 auto; }
.auth-solo.wide2 .auth-input-group { margin-bottom: .55rem; }
.auth-solo.wide2 .auth-input { padding-top: 8px; padding-bottom: 8px; }
.auth-solo.wide2 .auth-input-icon { bottom: 10px; }
.auth-solo.wide2 .auth-input-toggle { bottom: 4px; }
.auth-solo.wide2 .auth-input-group.ta .auth-input-icon { top: 28px; bottom: auto; }
.auth-solo.wide2 textarea.auth-input { min-height: 0; }
.auth-solo.wide2 .pass-strength-bar { margin-top: 5px; }
.auth-solo.wide2 .kind-pill { margin-bottom: .55rem; }
@media (max-width: 991.98px) {
    .auth-solo.wide2 { max-width: 640px; }
    .reg-bottom .reg-submit { width: 100%; min-width: 0; }
}
@media (max-width: 575.98px) {
    .auth-solo.wide2 { padding: 1rem .8rem; border-radius: 18px; }
    .reg-brand .sub { display: none; }
    .auth-solo .reg-tabs { width: 100%; }
    .reg-card { padding: .75rem .75rem; }
}

/* ── আইকন/ইনপুট র‍্যাপার: আইকন সবসময় ইনপুটের ঠিক ভেতরে ── */
.auth-input-group .fld { position: relative; }
.auth-input-group .fld .auth-input-icon { top: 50%; bottom: auto; transform: translateY(-50%); }
.auth-input-group .fld .auth-input-toggle { top: 50%; bottom: auto; transform: translateY(-50%); }
.auth-input-group.ta .fld .auth-input-icon { top: 16px; transform: none; }
.auth-solo .auth-input-group.ta .auth-input-icon { top: auto; }
.auth-solo .auth-input-group.ta .fld .auth-input-icon { top: 16px; }
.auth-solo .fld .auth-input-icon { bottom: auto; }
.auth-solo .fld .auth-input-toggle { bottom: auto; }
/* রেজিস্টার বাটন: সাদামাটা, কোনো অ্যানিমেশন নেই */
.reg-submit { background: #c62828; box-shadow: none !important; transform: none !important; }
.reg-submit::after { display: none; }
.reg-submit:hover { filter: brightness(1.06); }

/* ── মার্জিন/প্যাডিং/সেন্টার ঠিক করা ── */
.auth-page-wrapper { background: none !important; width: 100%; display: flex; align-items: center; justify-content: center;
    padding: clamp(1rem, 3vh, 2rem) 0 !important; }
.auth-page-wrapper > .container { display: flex; justify-content: center; width: 100%; padding-left: clamp(12px, 3vw, 24px); padding-right: clamp(12px, 3vw, 24px); }
.auth-solo { margin-left: auto; margin-right: auto; width: 100%; }
.reg-page { align-items: center; }
@media (max-width: 575.98px) { .auth-page-wrapper { padding: .75rem 0 !important; } }

/* ── লেবেল সারি: সবগুলো সমান উচ্চতা, তাই ইনপুটগুলো এক লাইনে ── */
.lbl-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 26px; margin-bottom: 3px; }
.lbl-row .auth-input-label { margin: 0 !important; line-height: 1.2; }
.lbl-left { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.lbl-row .suggest-btn { margin: 0; flex-shrink: 0; }
.info-wrap { position: relative; display: inline-flex; }
.info-btn { border: 0; background: none; padding: 0 2px; color: #9a8f86; font-size: .85rem; cursor: pointer; line-height: 1; transition: color .2s; }
.info-btn:hover, .info-btn:focus-visible { color: #a61b1b; outline: none; }
.info-pop { display: none; position: absolute; top: 24px; left: -6px; z-index: 30; width: 250px; max-width: 70vw; background: #fff; border: 1px solid #eadfd6;
    border-radius: 12px; padding: .65rem .8rem; box-shadow: 0 12px 28px rgba(60,20,10,.18); font-size: .76rem; color: #4b443f; text-align: left; line-height: 1.45; }
.info-pop b { display: block; color: #a61b1b; margin-bottom: 4px; font-size: .78rem; }
.info-pop ul { margin: 0; padding-left: 1.05rem; }
.info-pop li { margin-bottom: 2px; }
.info-wrap:hover .info-pop, .info-pop.open { display: block; }
.auth-solo { overflow: visible; }

/* ── ⓘ বাক্স: কাটা পড়বে না, লেখা বাইরে যাবে না ── */
.auth-page-wrapper, .auth-page-wrapper > .container { overflow: visible !important; }
.info-pop { width: 270px; max-width: calc(100vw - 48px); white-space: normal; overflow-wrap: break-word; line-height: 1.55; padding: .75rem .9rem; z-index: 50; }
.info-pop ul { padding-left: 1.1rem; }
.info-pop li { margin-bottom: 5px; }
.info-pop li:last-child { margin-bottom: 0; }
.info-pop b { margin-bottom: 6px; }
/* নিচের দিকের ঘরগুলোয় বাক্সটা উপরের দিকে খোলে */
.info-wrap.up .info-pop { top: auto; bottom: 26px; }
@media (max-width: 575.98px) { .info-pop { position: fixed; left: 50% !important; top: auto !important; bottom: 16px !important; transform: translateX(-50%); width: min(320px, calc(100vw - 32px)); } }

/* ── লগইন: চ্যাপ্টা কার্ড, বাঁ পাশে ডেমো সাইডবার ── */
.auth-solo.login-wide { max-width: 460px; padding: 0; overflow: hidden; }
.auth-solo.login-wide::before { display: none; }
.login-main { padding: 1.6rem 2rem 1.3rem; }
.login-side { height: 100%; padding: 1.6rem 1.4rem; background: linear-gradient(170deg, #fdf3ee 0%, #faf4ef 100%); border-right: 1px solid #f0e6de;
    display: flex; flex-direction: column; justify-content: center; gap: .9rem; }
.login-side-title { font-size: .78rem; font-weight: 800; color: #a61b1b; letter-spacing: .02em; display: flex; align-items: center; gap: 6px; }
.login-side-title i { color: #f59e0b; }
.login-side-list { display: flex; flex-direction: column; gap: .55rem; }
.login-side-list form { margin: 0; }
.demo-role-card.demo-row { flex-direction: row; text-align: left; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; }
.login-side-note { font-size: .72rem; color: #9a8f86; margin: 0; }
.login-main .auth-solo-logo { margin-bottom: .5rem; }
@media (max-width: 767.98px) {
    .auth-solo.login-wide { max-width: 460px; }
    .login-main { padding: 1.4rem 1.2rem 1.1rem; }
    .login-side { border-right: 0; border-top: 1px solid #f0e6de; padding: 1.1rem 1.2rem; }
}

/* ⓘ বাক্স এখন শুধু JS দিয়ে (.show) দেখায় */
.info-wrap:hover .info-pop { display: none; }
.info-wrap .info-pop.show { display: block; }

/* ── পাসওয়ার্ড ভুলে গেলে: লিংক ও পপআপ ── */
.fp-open-row { text-align: center; margin: -.2rem 0 .9rem; }
.fp-open-btn { background: none; border: 0; padding: 8px 12px; min-height: 40px; font-size: .88rem; font-weight: 700; color: #c0392b; cursor: pointer; border-radius: 10px; font-family: inherit; }
.fp-open-btn:hover, .fp-open-btn:focus-visible { background: rgba(198,40,40,.08); outline: none; text-decoration: underline; }

.fp-overlay { position: fixed; inset: 0; z-index: 2100; background: rgba(15,23,15,.5); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 12px; overflow-y: auto; overscroll-behavior: contain; animation: fpFade .18s ease; }
.fp-overlay[hidden], .fp-step[hidden], .fp-alert[hidden], .fp-spin[hidden] { display: none !important; }
.fp-box { position: relative; background: #fff; border-radius: 22px; width: 100%; max-width: 500px; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 28px 26px 22px; box-shadow: 0 24px 70px rgba(0,0,0,.3); margin: auto; outline: none; animation: fpPop .25s cubic-bezier(.2,1.2,.4,1); }
.fp-x { position: absolute; top: 8px; right: 12px; width: 40px; height: 40px; border: 0; background: none; font-size: 1.7rem; line-height: 1; color: #888; cursor: pointer; border-radius: 50%; }
.fp-x:hover { background: #f3f1ef; color: #333; }
.fp-icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; color: #fff; background: linear-gradient(135deg,#ef5350,#a61b1b); box-shadow: 0 8px 20px rgba(198,40,40,.32); }
.fp-icon.fp-ok { background: linear-gradient(135deg,#66bb6a,#1b5e20); box-shadow: 0 8px 20px rgba(46,125,50,.35); }
.fp-icon.fp-warn { background: linear-gradient(135deg,#ffca28,#f57f17); box-shadow: 0 8px 20px rgba(245,127,23,.32); }
.fp-title { font-size: 1.3rem; font-weight: 800; color: #1f2937; text-align: center; margin: 0 0 6px; }
.fp-sub { color: #4b5563; font-size: .9rem; text-align: center; margin: 0 0 16px; line-height: 1.55; }
.fp-alert { background: #fef2f2; color: #a61b1b; border-radius: 12px; padding: 10px 12px; font-size: .86rem; margin-bottom: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.fp-box select.auth-input { appearance: auto; padding-right: 12px; }
.fp-submit { margin-top: .3rem; }
.fp-spin { width: 16px; height: 16px; border: 2.5px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: fpSpin .7s linear infinite; flex-shrink: 0; }
.fp-link { display: block; margin: 12px auto 0; background: none; border: 0; padding: 8px 12px; min-height: 40px; font-size: .86rem; font-weight: 700; color: #6b6560; cursor: pointer; border-radius: 10px; font-family: inherit; }
.fp-link:hover { color: #c0392b; background: rgba(198,40,40,.06); }
.fp-ch-label { font-size: .78rem; font-weight: 800; color: #6b6560; margin: 14px 0 6px; letter-spacing: .02em; }
.fp-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; padding: 11px 16px; border-radius: 14px; font-weight: 800; font-size: 1rem; text-decoration: none; color: #fff; overflow-wrap: anywhere; text-align: center; transition: transform .15s, box-shadow .15s; }
.fp-btn:hover { color: #fff; }
@media (hover: hover) { .fp-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,.18); } }
.fp-btn:active { transform: scale(.98); }
.fp-btn, .fp-open-btn, .fp-link, .fp-x, .fp-submit { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.fp-btn i { font-size: 1.2rem; flex-shrink: 0; width: 1.4em; height: 1.2em; line-height: 1.2em; text-align: center; }
.fp-wa { background: #1faa59; }
.fp-mail { background: #c62828; }
.fp-tel { background: #1f2937; }
.fp-guide { margin: 16px 0 0; padding: 12px 14px 12px 32px; background: #faf6f2; border-radius: 14px; font-size: .84rem; color: #4b5563; line-height: 1.6; }
.fp-guide li { margin-bottom: 6px; }
.fp-guide li:last-child { margin-bottom: 0; }
@keyframes fpFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fpPop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
@keyframes fpSpin { to { transform: rotate(360deg); } }
@media (max-width: 575.98px) {
    .fp-box { padding: 24px 16px 18px; border-radius: 18px; }
    .fp-box .auth-input { font-size: 16px; }
    .fp-title { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) { .fp-overlay, .fp-box { animation: none; } .fp-btn { transition: none; } }
