:root{
    --bg:#eef4ff;
    --panel:#ffffff;
    --surface:#f8fbff;
    --text:#1b2430;
    --muted:#64748b;
    --accent:#2563eb;
    --accent-soft:#dbeafe;
    --success:#16a34a;
    --danger:#dc2626;
}

*{
    box-sizing:border-box;
    font-family:Inter,Arial,sans-serif;
}

body{
    margin:0;
    background:linear-gradient(135deg,#eef4ff,#f8fbff);
    color:var(--text);
}

.hidden{
    display:none !important;
}

.screen{
    min-height:100vh;
}

.center{
    text-align:center;
}

.muted{
    color:var(--muted);
}

.btn{
    border:none;
    border-radius:14px;
    padding:14px 18px;
    font-weight:700;
    cursor:pointer;
    width:100%;
    margin-top:10px;
}

.btn-primary{
    background:var(--accent);
    color:#fff;
}

.btn-secondary{
    background:var(--accent-soft);
    color:var(--text);
}

.btn-danger{
    background:var(--danger);
    color:#fff;
}

.input{
    width:100%;
    padding:12px;
    border:1px solid #cbd5e1;
    border-radius:12px;
    background:#fff;
    color:var(--text);
    margin-top:10px;
}

.panel,
.card,
.content,
.sidebar{
    background:#fff;
    border-radius:20px;
    padding:20px;
    box-shadow:0 12px 28px rgba(30,60,120,.10);
}

.login-wrap{
    max-width:580px;
    margin:40px auto;
    padding:24px;
}

.pin-display{
    font-size:44px;
    letter-spacing:12px;
    margin:20px 0;
}

.pin-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
}

.icon-card{
    background:#f8fbff;
    margin:16px 0;
}

.icon-big{
    font-size:52px;
}

.employee-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
    gap:14px;
    margin-top:20px;
}

.employee{
    cursor:pointer;
    border-left:5px solid var(--success);
}

.shell{
    display:grid;
    grid-template-columns:280px 1fr;
    gap:20px;
    padding:20px;
}

.sidebar{
    height:fit-content;
}

.navbtn{
    display:block;
    width:100%;
    text-align:left;
}

.products{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
    gap:14px;
    margin-top:20px;
}

.product{
    cursor:pointer;
}

.product h3{
    margin-top:10px;
}

.stats{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:14px;
}

.modal{
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.35);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
    z-index:999;
}

.modal-box{
    background:#fff;
    border-radius:20px;
    padding:24px;
    max-width:520px;
    width:100%;
    box-shadow:0 12px 28px rgba(0,0,0,.2);
}

.qty{
    display:flex;
    justify-content:center;
    gap:18px;
    align-items:center;
    margin:18px 0;
}

.qty button{
    width:70px;
    height:70px;
    font-size:28px;
}

.history-item{
    margin-bottom:10px;
}

@media(max-width:900px){
    .shell{
        grid-template-columns:1fr;
    }

    .sidebar{
        order:2;
    }

    .content{
        order:1;
    }
}

.legal-links{
    display:flex;
    gap:10px;
    justify-content:center;
    flex-wrap:wrap;
    margin-top:20px;
}

.linkbtn{
    border:none;
    background:none;
    color:var(--accent);
    cursor:pointer;
    font-size:14px;
    text-decoration:underline;
    padding:4px;
}

.legal-note{
    margin-top:18px;
    font-size:13px;
    color:var(--muted);
    line-height:1.5;
    text-align:center;
}

.history-item.sponsored {
    opacity: 0.65;
}

.history-sponsored-note {
    text-decoration: line-through;
    font-style: italic;
}