/* =========================================================
PROFILE PAGE
------------

Consistent with:

* dealer-2fa-setup.css
* GR1P B2B Dashboard UI
  ========================================================= */

.profile-page {


background: #f6f6f7 !important;
min-height: 100vh;

font-family: Inter, sans-serif;


}

/* =========================================================
PAGE HEADER
========================================================= */

.profile-page-title {


font-size: 2rem;
font-weight: 700;

color: #111827;

letter-spacing: -0.03em;

margin-bottom: .5rem;

}

.profile-page-subtitle {


color: #6b7280;

margin-bottom: 0;

line-height: 1.6;


}

/* =========================================================
CARD
========================================================= */

.profile-card {

background: #ffffff;

padding: 2rem;

border-radius: 20px;

margin-bottom: 24px;

box-shadow:
    0 1px 2px rgba(0,0,0,.04),
    0 8px 24px rgba(0,0,0,.06);


}

/* =========================================================
SECTION TITLE
========================================================= */

.profile-section-title {


font-size: 1.25rem;

font-weight: 700;

color: #111827;

margin-bottom: 1.5rem;


}

/* =========================================================
LABELS
========================================================= */

.profile-card .form-label {


font-size: .9rem;

font-weight: 600;

color: #374151;

margin-bottom: .5rem;


}

/* =========================================================
INPUTS
========================================================= */

.profile-input {


height: 56px;

border-radius: 14px;

border: 1px solid #d1d5db;

padding-left: 16px;
padding-right: 16px;

font-size: .95rem;

color: #111827;

transition: all .2s ease;


}

.profile-input::placeholder {

color: #9ca3af;


}

.profile-input:focus {


border-color: #008060;

box-shadow: 0 0 0 .2rem rgba(0,128,96,.12);


}

/* =========================================================
BUTTONS
========================================================= */

.profile-btn {


min-width: 180px;

height: 54px;

border: none;

border-radius: 14px;

background: #111827;

color: #ffffff;

font-weight: 600;

transition: all .2s ease;


}

.profile-btn:hover {


background: #000000;

color: #ffffff;


}

/* =========================================================
OUTLINE BUTTON
========================================================= */

.profile-btn-outline {


height: 48px;

border-radius: 12px;

border: 1px solid #d1d5db;

background: #ffffff;

color: #111827;

font-weight: 600;

padding: 0 16px;

transition: all .2s ease;


}

.profile-btn-outline:hover {


border-color: #008060;

color: #008060;


}

/* =========================================================
TOAST MESSAGE (fixed top-right)
========================================================= */

#profileMsg,
.profile-toast {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 100000;
    min-width: 320px;
    max-width: 440px;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.5;
    box-shadow:
        0 4px 16px rgba(0,0,0,.1),
        0 1px 3px rgba(0,0,0,.06);
    transform: translateX(calc(100% + 40px));
    opacity: 0;
    transition: transform .35s cubic-bezier(.22,1,.36,1),
                opacity .35s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

#profileMsg.show {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

#profileMsg.text-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

#profileMsg.text-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

#profileMsg.text-success::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #10b981;
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    flex-shrink: 0;
}

#profileMsg.text-danger::before {
    content: "!";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    flex-shrink: 0;
}

@media (max-width: 576px) {
    #profileMsg,
    .profile-toast {
        top: 12px;
        right: 12px;
        left: 12px;
        min-width: 0;
        max-width: none;
        padding: 14px 16px;
        font-size: .85rem;
    }
}

/* =========================================================
CARD DIVIDER
========================================================= */

.profile-card hr {


border-color: #e5e7eb;


}

/* =========================================================
TABLET
========================================================= */

@media (max-width: 991px) {


.profile-page-title {

    font-size: 1.75rem;

}

.profile-card {

    padding: 1.5rem;

}


}

/* =========================================================
MOBILE
========================================================= */

@media (max-width: 576px) {


.profile-page {

    padding-top: 1rem;

}

.profile-page-title {

    font-size: 1.5rem;

}

.profile-card {

    padding: 1.25rem;

    border-radius: 16px;

}

.profile-input {

    height: 52px;

}

.profile-btn {

    width: 100%;

}

.profile-btn-outline {

    width: 100%;

}


}

/* =========================================================
RESET PASSWORD MODAL
========================================================= */

.pw-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 1rem;
}

.pw-card {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.pw-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem 0;
}

.pw-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.pw-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.pw-close:hover {
    color: #111827;
}

.pw-card-body {
    padding: 1.5rem 2rem;
}

.pw-card-body .form-label {
    font-size: .875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: .5rem;
}

.input-wrapper {
    position: relative;
}

.input-wrapper .profile-input {
    padding-right: 48px;
}

.toggle-pw {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
}

.toggle-pw:hover {
    color: #111827;
}

.pw-card-footer {
    display: flex;
    gap: 12px;
    padding: 0 2rem 1.5rem;
}

.pw-card-footer .profile-btn,
.pw-card-footer .profile-btn-outline {
    flex: 1;
    height: 48px;
    min-width: 0;
}
