/* =========================
🪟 BUSINESS MODAL
========================= */

.business-modal{

    position:fixed;

    inset:0;

    z-index:999999;

    pointer-events:none;

    opacity:0;

    transition:.3s ease;
}






/* =========================
✅ ACTIVE
========================= */

.business-modal.active{

    opacity:1;

    pointer-events:auto;
}


/* =========================
🌑 OVERLAY
========================= */

.business-modal-overlay{

    position:absolute;

    inset:0;

    background:
        rgba(15,23,42,.55);

    backdrop-filter:blur(10px);

    opacity:0;

    transition:.3s ease;
}

.business-modal.active
.business-modal-overlay{

    opacity:1;
}


/* =========================
🖼 LIVE PREVIEW
========================= */

.business-live-preview{

    margin-bottom:40px;
}


/* =========================
🖼 COVER
========================= */

.preview-cover{

    position:relative;

    width:100%;

    height:360px;

    border-radius:34px;

    overflow:hidden;

    background:
        linear-gradient(
            135deg,
            #0f172a,
            #1e293b
        );
}


/* =========================
🖼 COVER IMAGE
========================= */

#preview-cover-image{

    position:absolute;

    inset:0;

    width:100%;

    height:100%;

    object-fit:cover;

    object-position:center;
}


/* =========================
🌑 OVERLAY
========================= */

.preview-overlay{

    position:relative;

    z-index:2;

    width:100%;

    height:100%;

    padding:34px;

    display:flex;

    flex-direction:column;

    justify-content:flex-end;

    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,.08),
            rgba(0,0,0,.72)
        );
}


/* =========================
🖼 LOGO
========================= */

.preview-logo{

    position:relative;

    width:120px;

    height:120px;

    border-radius:30px;

    overflow:hidden;

    border:5px solid rgba(255,255,255,.92);

    background:#fff;

    box-shadow:
        0 14px 40px rgba(0,0,0,.28);

    margin-bottom:22px;
}


/* =========================
🖼 LOGO IMAGE
========================= */

#preview-logo-image{

    width:100%;

    height:100%;

    object-fit:cover;

    object-position:center;

    display:block;
}


/* =========================
📛 META
========================= */

.preview-meta h2{

    margin:0 0 10px;

    font-size:42px;

    line-height:1;

    font-weight:900;

    color:#fff;
}


.preview-meta p{

    margin:0;

    max-width:700px;

    color:
        rgba(255,255,255,.82);

    line-height:1.8;

    font-size:16px;
}


/* =========================
📸 UPLOAD BUTTONS
========================= */

.preview-upload-btn{

    position:absolute;

    z-index:20;

    display:flex;

    align-items:center;

    justify-content:center;

    gap:8px;

    border:none;

    outline:none;

    cursor:pointer;

    pointer-events:auto;

    transition:.25s ease;

    backdrop-filter:blur(14px);

    background:
        rgba(15,23,42,.55);

    color:#fff;

    font-size:13px;

    font-weight:700;

    box-shadow:
        0 10px 24px rgba(0,0,0,.18);
}

.preview-cover,
.preview-logo{

    isolation:isolate;
}



/* =========================
🖼 COVER BUTTON
========================= */

.cover-upload-btn{

    top:22px;

    right:22px;

    min-height:46px;

    padding:0 18px;

    border-radius:16px;

    z-index:5;
}


/* =========================
🖼 LOGO BUTTON
========================= */

.logo-upload-btn{

    top:10px;

    right:10px;

    width:38px;

    height:38px;

    border-radius:14px;

    z-index:6;
}


.preview-upload-btn:hover{

    transform:translateY(-2px);

    background:
        rgba(15,23,42,.78);
}
/* =========================
🧠 DRAWER
========================= */

.business-modal-drawer{

    position:absolute;

    top:0;

    right:0;

    width:100%;

    max-width:720px;

    height:100vh;

    background:#fff;

    box-shadow:
        -20px 0 50px rgba(0,0,0,.18);

    transform:
        translateX(100%);

    transition:.35s ease;

    display:flex;

    flex-direction:column;

    overflow:hidden;
}

.business-modal.active
.business-modal-drawer{

    transform:
        translateX(0);
}


/* =========================
🧩 HEADER
========================= */

.business-modal-header{

    display:flex;

    align-items:flex-start;

    justify-content:space-between;

    gap:20px;

    padding:28px 30px;

    border-bottom:
        1px solid #edf2f7;

    background:#fff;

    position:sticky;

    top:0;

    z-index:5;
}

.business-modal-header h2{

    margin:0 0 8px;

    font-size:30px;

    font-weight:800;

    color:#0f172a;

    letter-spacing:-1px;
}

.business-modal-header p{

    margin:0;

    color:#64748b;

    line-height:1.7;
}


/* =========================
❌ CLOSE
========================= */

.business-modal-x{

    width:46px;

    height:46px;

    border-radius:16px;

    border:none;

    background:#f8fafc;

    color:#0f172a;

    cursor:pointer;

    font-size:18px;

    transition:.25s ease;

    flex-shrink:0;
}

.business-modal-x:hover{

    background:#eef2ff;

    transform:rotate(90deg);
}


/* =========================
📝 FORM
========================= */

.business-profile-form{

    flex:1;

    overflow-y:auto;

    padding:30px;
}


/* =========================
📦 SECTION
========================= */

.business-form-section{

    margin-bottom:38px;
}

.business-form-section h3{

    margin:0 0 22px;

    font-size:22px;

    font-weight:800;

    color:#0f172a;

    letter-spacing:-.5px;
}


/* =========================
🧩 GRID
========================= */

.business-form-grid{

    display:grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(240px,1fr)
        );

    gap:22px;
}


/* =========================
📥 FORM GROUP
========================= */

.form-group{

    display:flex;

    flex-direction:column;

    gap:10px;
}

.form-group label{

    font-size:14px;

    font-weight:700;

    color:#334155;
}


/* =========================
⌨ INPUTS
========================= */

.form-group input,
.form-group textarea{

    width:100%;

    border:
        1px solid #dbe4f0;

    background:#fff;

    border-radius:18px;

    padding:16px 18px;

    font-size:14px;

    color:#0f172a;

    transition:.25s ease;

    outline:none;
}

.form-group textarea{

    resize:vertical;

    min-height:140px;

    line-height:1.8;
}


/* =========================
✨ FOCUS
========================= */

.form-group input:focus,
.form-group textarea:focus{

    border-color:#2563eb;

    box-shadow:
        0 0 0 4px rgba(37,99,235,.08);
}


/* =========================
🚀 ACTIONS
========================= */

.business-modal-actions{

    display:flex;

    align-items:center;

    justify-content:flex-end;

    gap:16px;

    margin-top:40px;

    padding-top:26px;

    border-top:
        1px solid #edf2f7;
}


/* =========================
📱 RESPONSIVE
========================= */

@media(max-width:992px){

    .business-modal-drawer{

        max-width:100%;
    }
}


@media(max-width:768px){

    .business-modal-header{

        padding:24px;
    }

    .business-profile-form{

        padding:24px;
    }

    .business-modal-header h2{

        font-size:24px;
    }

    .business-form-grid{

        grid-template-columns:1fr;
    }

    .business-modal-actions{

        flex-direction:column-reverse;

        align-items:stretch;
    }

    .business-modal-actions button{

        width:100%;
    }
}


@media(max-width:480px){

    .business-modal-header{

        padding:20px;
    }

    .business-profile-form{

        padding:20px;
    }

    .business-modal-header h2{

        font-size:22px;
    }

    .business-modal-x{

        width:42px;

        height:42px;
    }
}



/* =========================
🔔 TOAST
========================= */

.business-toast{

    position:fixed;

    bottom:30px;

    right:30px;

    z-index:9999999;

    min-width:280px;

    padding:18px 22px;

    border-radius:18px;

    background:#0f172a;

    color:#fff;

    font-size:14px;

    font-weight:600;

    box-shadow:
        0 18px 40px rgba(0,0,0,.18);

    transform:
        translateY(30px);

    opacity:0;

    transition:.3s ease;
}

.business-toast.active{

    transform:
        translateY(0);

    opacity:1;
}

.business-toast.error{

    background:#dc2626;
}


/* =========================
⌨ SELECT
========================= */

.form-group select{

    width:100%;

    border:
        1px solid #dbe4f0;

    background:#fff;

    border-radius:18px;

    padding:16px 18px;

    font-size:14px;

    color:#0f172a;

    transition:.25s ease;

    outline:none;

    appearance:none;

    cursor:pointer;
}

.form-group select:focus{

    border-color:#2563eb;

    box-shadow:
        0 0 0 4px rgba(37,99,235,.08);
}