
*{box-sizing:border-box}
body{
    font-family:Arial,Helvetica,sans-serif;
    background:#f4f6fb;
    margin:0;
    color:#1d2a34;
}
a{text-decoration:none}
img{max-width:100%}
body.login-body{
    min-height:100vh;
    background:
        radial-gradient(circle at top right, rgba(255,214,0,.25), transparent 28%),
        linear-gradient(135deg,#e31b1b 0%, #f44a2f 48%, #0c39d8 100%);
}
.login-wrap{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
}
.login-card{
    width:100%;
    max-width:470px;
}
.login-brand{
    text-align:center;
    margin-bottom:14px;
}
.login-brand img{
    width:120px;
    height:120px;
    object-fit:cover;
    border-radius:18px;
    background:#fff;
    padding:6px;
    box-shadow:0 10px 24px rgba(0,0,0,.16);
}
.login-brand-title{
    color:#fff;
    font-weight:bold;
    font-size:30px;
    margin-top:12px;
}
.login-brand-sub{
    color:rgba(255,255,255,.92);
    font-size:13px;
}
.wrap{
    width:94%;
    max-width:1300px;
    margin:0 auto;
}
.topbar{
    position:sticky;
    top:0;
    z-index:30;
    background:linear-gradient(90deg,#e31b1b 0%, #f44336 48%, #1746df 100%);
    color:#fff;
    box-shadow:0 4px 16px rgba(0,0,0,.14);
}
.topbar-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:12px 0;
}
.brand{
    display:flex;
    align-items:center;
    gap:14px;
}
.brand-logo{
    width:60px;
    height:60px;
    object-fit:cover;
    border-radius:14px;
    background:#fff;
    padding:4px;
    box-shadow:0 6px 18px rgba(0,0,0,.16);
}
.brand-title{
    font-size:24px;
    font-weight:bold;
    line-height:1.1;
}
.brand-subtitle{
    font-size:12px;
    opacity:.95;
    margin-top:4px;
}
.topbar-right{
    display:flex;
    align-items:center;
    gap:10px;
}
.user-chip{
    background:rgba(255,255,255,.14);
    padding:10px 14px;
    border-radius:999px;
    font-size:13px;
}
.btn{
    display:inline-block;
    padding:10px 15px;
    border-radius:10px;
    text-decoration:none;
    background:#e9edf6;
    color:#18344b;
    border:0;
    cursor:pointer;
    font-weight:bold;
}
.btn:hover{opacity:.95}
.btn.primary{
    background:#e31b1b;
    color:#fff;
}
.btn.secondary{
    background:#1746df;
    color:#fff;
}
.btn.warning{
    background:#ffd600;
    color:#5f4600;
}
.btn.danger{
    background:#bf2f45;
    color:#fff;
}
.small-btn{padding:8px 10px;font-size:12px}
.full-btn{width:100%}
.enterprise-shell{
    display:flex;
    min-height:calc(100vh - 86px);
}
.sidebar{
    width:260px;
    background:#10233f;
    color:#fff;
    padding:24px 18px;
    flex:0 0 260px;
}
.sidebar-logo{
    text-align:center;
    padding-bottom:18px;
    border-bottom:1px solid rgba(255,255,255,.10);
    margin-bottom:18px;
}
.sidebar-logo img{
    width:88px;
    height:88px;
    border-radius:18px;
    object-fit:cover;
    background:#fff;
    padding:5px;
}
.sidebar-title{
    font-size:16px;
    font-weight:bold;
    margin-top:12px;
}
.sidebar-sub{
    font-size:12px;
    color:rgba(255,255,255,.75);
}
.nav-menu{display:flex;flex-direction:column;gap:8px}
.nav-link{
    color:#fff;
    padding:12px 14px;
    border-radius:12px;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.06);
    transition:.15s ease;
}
.nav-link:hover,
.nav-link.active{
    background:linear-gradient(90deg,#e31b1b,#1746df);
    transform:translateX(2px);
}
.content-area{
    flex:1;
    padding:24px;
}
.page-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:14px;
    margin-bottom:18px;
}
.page-head h1{
    margin:0;
    font-size:32px;
    color:#1746df;
}
.page-head p{
    margin:6px 0 0;
    color:#667587;
}
.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:16px;
    margin-bottom:18px;
}
.stat-card{
    background:#fff;
    border-radius:18px;
    padding:18px;
    box-shadow:0 10px 28px rgba(18,35,63,.08);
    border-top:5px solid #ffd600;
}
.stat-label{
    color:#6d7a89;
    font-size:13px;
}
.stat-value{
    font-size:28px;
    color:#e31b1b;
    font-weight:bold;
    margin-top:8px;
}
.card{
    background:#fff;
    border-radius:18px;
    padding:20px;
    box-shadow:0 10px 28px rgba(18,35,63,.08);
    margin-bottom:18px;
}
.section-header,
.filter-bar,
.navlinks{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
}
label{
    display:block;
    font-weight:bold;
    margin-bottom:7px;
}
.form-group{margin-bottom:14px}
.grid{display:grid;gap:16px}
.grid.two{grid-template-columns:1.25fr 1fr}
.grid.two-equal,.form-inline-grid{grid-template-columns:1fr 1fr}
input[type=text], input[type=email], input[type=number], input[type=date], input[type=time], input[type=password], select, textarea{
    width:100%;
    padding:11px 12px;
    border:1px solid #d4dbea;
    border-radius:10px;
    box-sizing:border-box;
    font-size:14px;
    background:#fff;
}
.table{
    width:100%;
    border-collapse:collapse;
    font-size:14px;
}
.table th,.table td{
    border-bottom:1px solid #e7ecf3;
    padding:11px 10px;
    text-align:left;
    vertical-align:top;
}
.table th{
    background:#f8faff;
    color:#1746df;
}
.alert{
    padding:12px 14px;
    border-radius:12px;
    margin-bottom:16px;
}
.alert.success{background:#e4f8ea;color:#14683b}
.alert.error{background:#ffe4e8;color:#98253a}
.summary-box,.info-box,.muted-box{
    background:#f8fbff;
    border:1px solid #dde7f3;
    border-radius:14px;
    padding:14px;
    margin:14px 0;
}
.price-tag{color:#e31b1b;font-weight:bold;margin:8px 0}
.small{font-size:12px;color:#6a7988}
.badge,.pill{
    display:inline-block;
    padding:6px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:bold;
    margin-bottom:4px;
}
.pending,.pending-verification{background:#fff5cc;color:#7b6000}
.confirmed,.paid,.completed{background:#e3f7e9;color:#17693d}
.cancelled,.refunded,.unpaid{background:#ffe4e8;color:#98253a}
.court-thumb{
    width:78px;
    height:78px;
    object-fit:cover;
    border-radius:12px;
    border:2px solid #ffd600;
    cursor:pointer;
    display:block;
}
.court-list-photo{
    width:100%;
    height:180px;
    object-fit:cover;
    border-radius:14px;
    border:2px solid #ffd600;
    margin-bottom:12px;
    cursor:pointer;
}
.thumb-placeholder{
    width:78px;
    height:78px;
    border-radius:12px;
    border:1px dashed #c5d0df;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    color:#728191;
    font-size:11px;
    background:#f8fbff;
}
.thumb-placeholder.large{
    width:100%;
    height:180px;
    border-radius:14px;
    font-size:14px;
    margin-bottom:12px;
}
.photo-modal{position:fixed;inset:0;z-index:9999}
.photo-modal-backdrop{position:absolute;inset:0;background:rgba(9,16,25,.76)}
.photo-modal-content{
    position:relative;
    z-index:2;
    width:92%;
    max-width:820px;
    margin:34px auto;
    background:#fff;
    border-radius:18px;
    padding:18px;
    box-shadow:0 20px 60px rgba(0,0,0,.28);
}
.photo-modal-title{font-size:20px;font-weight:bold;margin-bottom:14px;padding-right:40px;color:#1746df}
.photo-modal-image{width:100%;max-height:75vh;object-fit:contain;border-radius:12px;background:#f7fbff}
.photo-modal-close{
    position:absolute;top:6px;right:12px;border:0;background:transparent;font-size:34px;line-height:1;cursor:pointer;color:#1d2a34
}
.preview-image{
    width:220px;
    max-width:100%;
    height:150px;
    object-fit:cover;
    border-radius:14px;
    border:1px solid #dbe5ee;
}
.slots{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:8px}
.slot-btn{
    border:0;
    border-radius:22px;
    padding:9px 12px;
    cursor:pointer;
}
.slot-btn.free{background:#e4f8ea;color:#14683b}
.slot-btn.reserved{background:#ffe4e8;color:#98253a;cursor:not-allowed}
.receipt-page{background:#fff}
.receipt-wrap{
    width:760px;
    max-width:96%;
    margin:20px auto;
    border:2px solid #1d2a34;
    padding:20px;
}
.receipt-header{
    display:flex;
    justify-content:space-between;
    gap:20px;
    border-bottom:2px solid #1d2a34;
    padding-bottom:12px;
}
.receipt-no-box{text-align:right}
.receipt-table{width:100%;border-collapse:collapse;margin-top:16px}
.receipt-table td{border:1px solid #1d2a34;padding:10px}
.signature-line{border-top:1px solid #1d2a34;padding-top:8px;margin-top:26px}
.hero-banner{
    background:linear-gradient(135deg,#ffffff,#fff5cc);
    border-radius:22px;
    box-shadow:0 12px 28px rgba(18,35,63,.08);
    overflow:hidden;
    margin:18px auto;
}
.hero-banner-inner{
    display:grid;
    grid-template-columns:1.25fr .75fr;
    gap:12px;
    align-items:center;
    padding:26px;
}
.hero-banner h1{
    margin:0 0 8px;
    font-size:38px;
    color:#e31b1b;
}
.hero-banner p{
    margin:0;
    color:#495869;
    line-height:1.6;
}
.hero-badges{margin-top:14px}
.hero-badge{
    display:inline-block;
    margin-right:8px;
    margin-bottom:8px;
    padding:8px 12px;
    border-radius:999px;
    font-size:12px;
    font-weight:bold;
}
.hero-badge.red{background:#ffe4e8;color:#98253a}
.hero-badge.yellow{background:#fff5cc;color:#7b6000}
.hero-badge.blue{background:#e3ebff;color:#1746df}
.hero-side{
    text-align:center;
}
.hero-side img{
    max-width:240px;
    border-radius:22px;
    background:#fff;
    padding:8px;
    box-shadow:0 12px 24px rgba(0,0,0,.08);
}
.mobile-menu-toggle{display:none}
@media print{
    .receipt-wrap{border:0;width:100%;max-width:100%;margin:0}
}
@media (max-width:980px){
    .enterprise-shell{display:block}
    .sidebar{width:100%;padding:16px}
    .content-area{padding:18px}
    .hero-banner-inner,.grid.two,.grid.two-equal,.form-inline-grid{grid-template-columns:1fr}
    .sidebar-logo{display:none}
}
@media (max-width:720px){
    .topbar-inner{padding:10px 0}
    .brand-title{font-size:18px}
    .brand-logo{width:48px;height:48px}
    .page-head h1{font-size:26px}
    .hero-banner h1{font-size:28px}
    .table{display:block;overflow-x:auto}
}

@media (max-width:768px){
.table{font-size:12px}
.btn{padding:10px;font-size:14px}
input,select{font-size:16px;padding:8px}
}
