/* =========================================================
   VZUTA_UA — AUTH-PROFILE.CSS
   login / register / profile / favorite auth modal
   ========================================================= */

.auth-page,
.profile-page{
    padding:80px 0 110px;
    background:#f6f6f6;
}

.auth-card,
.profile-card{
    max-width:460px;
    margin:0 auto;
    background:#fff;
    padding:42px;
    border-radius:18px;
    box-shadow:0 10px 36px rgba(0,0,0,.06);
}

.auth-card h1,
.profile-card h1{
    margin-bottom:28px;
    font-size:34px;
    font-weight:900;
    text-align:center;
}

.auth-card input{
    width:100%;
    height:54px;
    margin-bottom:16px;
    padding:0 18px;
    border:1px solid #ddd;
    border-radius:12px;
    font-size:15px;
    outline:none;
}

.auth-card input:focus{
    border-color:#111;
    box-shadow:0 0 0 4px rgba(0,0,0,.04);
}

.auth-card button,
.logout-btn{
    width:100%;
    height:56px;
    border:0;
    background:#111;
    color:#fff;
    border-radius:12px;
    font-size:15px;
    font-weight:900;
    text-transform:uppercase;
    display:flex;
    align-items:center;
    justify-content:center;
}

.auth-card p{
    margin-top:20px;
    text-align:center;
    color:#666;
}

.auth-card a{
    color:#111;
    font-weight:900;
    text-decoration:underline;
}

.auth-error{
    margin-bottom:16px;
    padding:13px 15px;
    background:#fff1f1;
    border:1px solid #ffd0d0;
    border-radius:12px;
    color:#b00020;
    font-size:14px;
    font-weight:800;
    line-height:1.4;
}

.auth-error.small{
    margin:-8px 0 14px;
    padding:0;
    background:transparent;
    border:0;
    font-size:12px;
}

.profile-info{
    margin-bottom:26px;
}

.profile-row{
    display:flex;
    justify-content:space-between;
    gap:20px;
    padding:16px 0;
    border-bottom:1px solid #eee;
}

.profile-row span{
    color:#777;
}

/* favorite auth modal */

.favorite-auth-modal{
    position:fixed;
    inset:0;
    z-index:30000;
    background:rgba(0,0,0,.48);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
    opacity:0;
    visibility:hidden;
    transition:.25s ease;
}

.favorite-auth-modal.active{
    opacity:1;
    visibility:visible;
}

.favorite-auth-card{
    width:min(430px,100%);
    position:relative;
    background:#fff;
    border-radius:22px;
    padding:36px 28px 28px;
    text-align:center;
    box-shadow:0 24px 70px rgba(0,0,0,.18);
}

.favorite-auth-close{
    position:absolute;
    top:14px;
    right:18px;
    border:0;
    background:none;
    color:#111;
    font-size:34px;
    line-height:1;
}

.favorite-auth-icon{
    width:58px;
    height:58px;
    margin:0 auto 18px;
    border-radius:50%;
    background:#111;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:30px;
}

.favorite-auth-card h2{
    margin:0 0 12px;
    color:#111;
    font-size:25px;
    font-weight:900;
}

.favorite-auth-card p{
    max-width:340px;
    margin:0 auto 24px;
    color:#666;
    font-size:15px;
    line-height:1.55;
}

.favorite-auth-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
}

.favorite-auth-actions a{
    height:50px;
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:13px;
    font-weight:900;
    text-transform:uppercase;
}

.favorite-auth-actions a:first-child{
    background:#111;
    color:#fff;
}

.favorite-auth-actions a:last-child{
    background:#f2f2f2;
    color:#111;
}
/* =========================================================
   PROFILE FINAL
   ========================================================= */

.profile-page-final{
    padding:56px 0 90px;
}

.profile-page-final .container{
    max-width:1320px;
}

.profile-hero{
    margin-bottom:22px;
    padding:28px;
    background:#fff;
    border:1px solid #ededed;
    border-radius:24px;
    box-shadow:0 14px 38px rgba(0,0,0,.045);
    display:grid;
    grid-template-columns:82px 1fr auto;
    align-items:center;
    gap:22px;
}

.profile-avatar{
    width:82px;
    height:82px;
    border-radius:50%;
    background:#111;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:36px;
    font-weight:900;
}

.profile-hero h1{
    margin:0 0 8px;
    color:#111;
    font-size:36px;
    font-weight:900;
}

.profile-hero p{
    margin:0 0 6px;
    color:#555;
    font-size:15px;
    font-weight:700;
}

.profile-hero span{
    color:#888;
    font-size:13px;
    font-weight:700;
}

.profile-logout{
    min-width:130px;
    height:48px;
    border-radius:14px;
    background:#111;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:13px;
    font-weight:900;
    text-transform:uppercase;
}

.profile-stats{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:16px;
    margin-bottom:24px;
}

.profile-stat-card{
    min-height:136px;
    padding:22px;
    background:#fff;
    border:1px solid #ededed;
    border-radius:22px;
    box-shadow:0 12px 34px rgba(0,0,0,.04);
    color:#111;
}

.profile-stat-card span{
    display:block;
    margin-bottom:13px;
    font-size:26px;
    line-height:1;
}

.profile-stat-card strong{
    display:block;
    color:#111;
    font-size:26px;
    font-weight:900;
    line-height:1.1;
}

.profile-stat-card p{
    margin-top:7px;
    color:#777;
    font-size:14px;
    font-weight:700;
}

.profile-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) 320px;
    gap:24px;
    align-items:start;
}

.profile-section-head{
    margin-bottom:18px;
    padding:24px;
    background:#fff;
    border:1px solid #ededed;
    border-radius:22px;
}

.profile-section-head h2{
    margin:0 0 8px;
    color:#111;
    font-size:28px;
    font-weight:900;
}

.profile-section-head p{
    color:#777;
    font-size:15px;
}

.profile-orders{
    display:grid;
    gap:16px;
}

.profile-order-card{
    background:#fff;
    border:1px solid #ededed;
    border-radius:22px;
    padding:22px;
    box-shadow:0 12px 34px rgba(0,0,0,.04);
}

.profile-order-top{
    display:flex;
    justify-content:space-between;
    gap:18px;
    align-items:flex-start;
    margin-bottom:18px;
}

.profile-order-top h3{
    margin:0 0 6px;
    color:#111;
    font-size:21px;
    font-weight:900;
}

.profile-order-top p{
    color:#777;
    font-size:14px;
    font-weight:700;
}

.profile-order-meta{
    text-align:right;
}

.profile-order-meta strong{
    display:block;
    margin-top:8px;
    color:#111;
    font-size:20px;
    font-weight:900;
}

.order-status{
    display:inline-flex;
    padding:7px 11px;
    border-radius:999px;
    font-size:12px;
    font-weight:900;
    text-transform:uppercase;
}

.order-status-new{
    background:#fff4d6;
    color:#8a5a00;
}

.order-status-processing{
    background:#e8f1ff;
    color:#0b55b7;
}

.order-status-sent{
    background:#e8fff1;
    color:#047a37;
}

.order-status-done{
    background:#111;
    color:#fff;
}

.order-status-cancelled{
    background:#ffe9e9;
    color:#b00020;
}

.profile-order-delivery{
    margin-bottom:16px;
    padding:14px 16px;
    background:#fafafa;
    border-radius:16px;
    display:flex;
    justify-content:space-between;
    gap:14px;
}

.profile-order-delivery span{
    color:#777;
    font-size:13px;
    font-weight:800;
}

.profile-order-delivery b{
    color:#111;
    font-size:14px;
    font-weight:900;
    text-align:right;
}

.profile-order-items{
    display:grid;
    gap:12px;
}

.profile-order-item{
    display:grid;
    grid-template-columns:62px minmax(0,1fr) auto;
    gap:14px;
    align-items:center;
    padding-top:12px;
    border-top:1px solid #eee;
}

.profile-order-item img{
    width:62px;
    height:78px;
    border-radius:12px;
    object-fit:cover;
    background:#f2f2f2;
}

.profile-order-item strong{
    display:block;
    color:#111;
    font-size:15px;
    font-weight:900;
}

.profile-order-item p{
    margin-top:5px;
    color:#777;
    font-size:13px;
    line-height:1.35;
}

.profile-order-item span{
    color:#111;
    font-size:14px;
    font-weight:900;
    white-space:nowrap;
}

.profile-side{
    display:grid;
    gap:16px;
    position:sticky;
    top:90px;
}

.profile-side-card{
    background:#fff;
    border:1px solid #ededed;
    border-radius:22px;
    padding:22px;
    box-shadow:0 12px 34px rgba(0,0,0,.04);
}

.profile-side-card h3{
    margin:0 0 16px;
    color:#111;
    font-size:20px;
    font-weight:900;
}

.profile-side-card a{
    min-height:48px;
    padding:0 14px;
    margin-bottom:9px;
    border-radius:14px;
    background:#f6f6f6;
    color:#111;
    display:flex;
    align-items:center;
    font-size:14px;
    font-weight:900;
}

.profile-side-card a:hover{
    background:#111;
    color:#fff;
}

.profile-help-card p{
    color:#666;
    font-size:14px;
    line-height:1.6;
}

.profile-empty{
    padding:58px 24px;
    background:#fff;
    border:1px solid #ededed;
    border-radius:22px;
    text-align:center;
}

.profile-empty h3{
    margin:0 0 10px;
    font-size:25px;
    font-weight:900;
}

.profile-empty p{
    color:#777;
    margin-bottom:22px;
}

.profile-empty a{
    min-height:50px;
    padding:0 22px;
    border-radius:14px;
    background:#111;
    color:#fff;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:13px;
    font-weight:900;
    text-transform:uppercase;
}

@media (max-width:768px){
    .profile-page-final{
        padding:32px 0 66px;
    }

    .profile-hero{
        grid-template-columns:64px 1fr;
        padding:22px;
        gap:16px;
    }

    .profile-avatar{
        width:64px;
        height:64px;
        font-size:28px;
    }

    .profile-hero h1{
        font-size:28px;
    }

    .profile-logout{
        grid-column:1 / -1;
        width:100%;
    }

    .profile-stats{
        grid-template-columns:1fr 1fr;
        gap:12px;
    }

    .profile-stat-card{
        min-height:120px;
        padding:18px;
    }

    .profile-stat-card strong{
        font-size:21px;
    }

    .profile-layout{
        display:block;
    }

    .profile-side{
        position:static;
        margin-top:16px;
    }

    .profile-order-top{
        display:block;
    }

    .profile-order-meta{
        text-align:left;
        margin-top:12px;
    }

    .profile-order-item{
        grid-template-columns:56px minmax(0,1fr);
    }

    .profile-order-item span{
        grid-column:2;
    }
}
/* PROFILE ORDER DETAILS */
.profile-order-details{margin-bottom:16px;padding:6px 16px;background:#fafafa;border-radius:16px}
.profile-order-detail{min-height:46px;padding:10px 0;border-bottom:1px solid #eaeaea;display:flex;align-items:center;justify-content:space-between;gap:18px}
.profile-order-detail:last-child{border-bottom:0}
.profile-order-detail span{color:#777;font-size:13px;font-weight:800}
.profile-order-detail b{max-width:68%;color:#111;font-size:14px;font-weight:900;text-align:right;overflow-wrap:anywhere}
.profile-order-ttn b{letter-spacing:.02em}
.payment-status-paid{color:#047a37!important}
.payment-status-pending{color:#8a5a00!important}
.payment-status-failed{color:#b00020!important}
.payment-status-refunded{color:#555!important}
@media (max-width:768px){
    .profile-order-details{padding:4px 14px}
    .profile-order-detail{align-items:flex-start;gap:12px}
    .profile-order-detail b{max-width:62%}
}
