*{
    box-sizing:border-box;
}

body{
    margin:0;
    font-family:system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:#f4f7fb;
    color:#0f172a;
}

.client-header{
    background:#0b0f19;
    color:#fff;
    padding:18px 0;
    box-shadow:0 12px 30px rgba(15,23,42,.18);
}

.client-container{
    width:92%;
    max-width:1180px;
    margin:auto;
}

.client-nav{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}

.client-brand{
    display:flex;
    align-items:center;
    gap:12px;
    font-weight:900;
    letter-spacing:.4px;
}

.client-brand img{
    height:46px;
    background:#fff;
    padding:6px;
    border-radius:10px;
}

.client-nav a{
    color:#fff;
    text-decoration:none;
    font-weight:700;
}

.logout-btn{
    background:#d7b07a;
    color:#0f172a !important;
    padding:10px 16px;
    border-radius:999px;
}

.client-main{
    padding:46px 0;
}

.welcome-card{
    background:linear-gradient(135deg,#0f172a,#1e293b);
    color:#fff;
    border-radius:26px;
    padding:34px;
    box-shadow:0 24px 70px rgba(15,23,42,.18);
    margin-bottom:28px;
}

.welcome-card h1{
    margin:0 0 8px;
    font-size:34px;
}

.welcome-card p{
    margin:0;
    color:#cbd5e1;
}

.stats-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
    margin-bottom:28px;
}

.stat-card{
    background:#fff;
    border-radius:22px;
    padding:26px;
    box-shadow:0 18px 45px rgba(15,23,42,.08);
    border:1px solid rgba(15,23,42,.06);
}

.stat-card span{
    display:block;
    font-size:14px;
    font-weight:900;
    color:#64748b;
    text-transform:uppercase;
    letter-spacing:.9px;
    margin-bottom:12px;
}

.stat-card strong{
    font-size:44px;
    color:#0f172a;
}

.action-card{
    background:#fff;
    border-radius:22px;
    padding:26px;
    box-shadow:0 18px 45px rgba(15,23,42,.08);
    border:1px solid rgba(15,23,42,.06);
}

.btn-primary{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:#0f172a;
    color:#fff;
    text-decoration:none;
    padding:14px 22px;
    border-radius:999px;
    font-weight:900;
}

@media(max-width:768px){
    .client-nav{
        flex-direction:column;
        align-items:flex-start;
    }

    .stats-grid{
        grid-template-columns:1fr;
    }

    .welcome-card h1{
        font-size:28px;
    }
}
.client-brand img{
    height:46px !important;
    width:auto !important;
    max-width:90px !important;
    object-fit:contain !important;
    display:block !important;
}

.client-brand{
    display:flex !important;
    align-items:center !important;
    gap:12px !important;
}
/* === CLIENT LOGIN PREMIUM === */

.login-page{
    min-height:100vh;
    background:
        radial-gradient(circle at top left, rgba(215,176,122,.22), transparent 32%),
        linear-gradient(135deg,#0b0f19,#111827);
    display:flex;
    align-items:center;
    justify-content:center;
}

.login-wrapper{
    width:100%;
    padding:24px;
}

.login-card{
    max-width:430px;
    margin:auto;
    background:#fff;
    border-radius:28px;
    padding:38px 34px;
    box-shadow:0 35px 90px rgba(0,0,0,.35);
    text-align:center;
}

.login-logo img{
    height:86px;
    width:auto;
    max-width:190px;
    object-fit:contain;
    margin-bottom:18px;
}

.login-card h1{
    margin:0 0 8px;
    font-size:32px;
    color:#0f172a;
}

.login-card p{
    margin:0 0 26px;
    color:#64748b;
    line-height:1.5;
}

.login-card .form-group{
    text-align:left;
    margin-bottom:16px;
}

.login-card label{
    display:block;
    margin-bottom:6px;
    font-weight:800;
    color:#334155;
}

.login-card input{
    width:100%;
    padding:14px;
    border-radius:12px;
    border:1px solid #e2e8f0;
    background:#f8fafc;
    font-size:15px;
    outline:none;
}

.login-card input:focus{
    border-color:#d7b07a;
    background:#fff;
    box-shadow:0 0 0 3px rgba(215,176,122,.22);
}

.login-btn{
    width:100%;
    border:0;
    padding:15px;
    border-radius:999px;
    background:#0f172a;
    color:#fff;
    font-weight:900;
    font-size:16px;
    cursor:pointer;
}

.login-btn:hover{
    background:#000;
}

.login-error{
    background:#fee2e2;
    color:#991b1b;
    padding:12px;
    border-radius:12px;
    margin-bottom:18px;
    font-weight:800;
}

.login-footer{
    margin-top:18px;
}

.login-footer a{
    color:#b08345;
    font-weight:800;
    text-decoration:none;
}

@media(max-width:520px){
    .login-card{
        padding:30px 22px;
        border-radius:22px;
    }

    .login-card h1{
        font-size:28px;
    }
}

/* CLIENT PORTAL APPOINTMENTS */
.client-ticket-card{
    background:#fff;
    border-radius:18px;
    padding:24px;
    margin-bottom:22px;
    box-shadow:0 10px 30px rgba(15,23,42,.08);
}

.ticket-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:16px;
    margin-bottom:20px;
}

.ticket-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
}

.ticket-grid div{
    background:#f8fafc;
    border-radius:14px;
    padding:14px;
}

.ticket-grid strong{
    display:block;
    font-size:12px;
    margin-bottom:6px;
    color:#64748b;
    text-transform:uppercase;
}

.client-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:7px 12px;
    border-radius:999px;
    background:#e0f2fe;
    color:#075985;
    font-size:12px;
    font-weight:800;
}

.client-note{
    margin-top:18px;
    background:#f8fafc;
    border-left:4px solid #0f172a;
    border-radius:0 12px 12px 0;
    padding:14px;
}

.client-nav-actions{
    display:flex;
    align-items:center;
    gap:10px;
}

.btn-light{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:10px 14px;
    border-radius:10px;
    background:#e2e8f0;
    color:#0f172a;
    text-decoration:none;
    font-weight:700;
}

@media(max-width:800px){
    .ticket-head,
    .client-nav-actions{
        flex-direction:column;
        align-items:stretch;
    }

    .ticket-grid{
        grid-template-columns:1fr;
    }
}
/* CLIENT LOGIN DESKTOP FIX */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a, #020617);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-wrapper {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.login-card {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.login-logo img {
    max-width: 110px;
    height: auto;
}

@media (min-width: 900px) {
    .login-wrapper {
        max-width: 540px;
    }
}
.back-home{
    text-align:center;
    margin-top:20px;
}

.back-home a{
    color:#64748b;
    text-decoration:none;
    font-weight:600;
    transition:.2s;
}

.back-home a:hover{
    color:#0f172a;
}
.client-summary-line {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 16px;
    color: #334155;
}

.client-summary-line span {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    border-radius: 12px;
}
.client-action-row{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
    margin-top:18px;
}

.client-action-row a{
    text-decoration:none;
}
/* CLIENT REGISTER / AUTH PAGES */

.client-auth-page{
    min-height:100vh;
    background:linear-gradient(135deg,#071426,#0f172a);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:30px 16px;
}

.client-auth-card{
    width:100%;
    max-width:620px;
    background:#fff;
    border-radius:28px;
    padding:38px;
    box-shadow:0 30px 80px rgba(0,0,0,.30);
}

.client-auth-logo{
    display:block;
    width:120px;
    margin:0 auto 24px;
}

.client-auth-card h1{
    margin:0 0 10px;
    text-align:center;
    color:#0f172a;
    font-size:34px;
}

.client-auth-card p{
    text-align:center;
    color:#64748b;
    margin-bottom:26px;
}

.client-auth-card label{
    display:block;
    font-weight:800;
    color:#334155;
    margin:14px 0 7px;
}

.client-auth-card input{
    width:100%;
    min-height:54px;
    border:1px solid #cbd5e1;
    border-radius:15px;
    padding:0 16px;
    font-size:16px;
}

.client-auth-card button{
    width:100%;
    min-height:58px;
    margin-top:22px;
    border:0;
    border-radius:18px;
    background:#0f172a;
    color:#fff;
    font-size:17px;
    font-weight:900;
    cursor:pointer;
}

.client-error{
    background:#fee2e2;
    color:#991b1b;
    padding:13px;
    border-radius:14px;
    margin-bottom:18px;
    font-weight:700;
}

.client-auth-links{
    margin-top:22px;
    display:flex;
    flex-direction:column;
    gap:10px;
    text-align:center;
}

.client-auth-links a{
    color:#b8893d;
    text-decoration:none;
    font-weight:900;
}

@media(max-width:768px){
    .client-auth-card{
        padding:26px 18px;
        border-radius:22px;
    }

    .client-auth-card h1{
        font-size:28px;
    }
}