.hb-wrap{width:100%;max-width:none;margin:20px 0}
.hb-hero{display:grid;grid-template-columns:1.4fr 1fr;gap:20px;padding:28px;border-radius:28px;background:linear-gradient(135deg,#0f172a,#1e3a8a 55%,#312e81);color:#fff;box-shadow:0 20px 40px rgba(15,23,42,.15);margin-bottom:20px}
.hb-chip{display:inline-block;padding:8px 14px;border-radius:999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);font-weight:700;margin-bottom:14px}
.hb-hero h1{margin:0 0 10px;font-size:34px;line-height:1.2}
.hb-hero p{margin:0;color:#dbeafe;line-height:1.6}
.hb-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;align-self:end}
.hb-stat{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);backdrop-filter:blur(8px);padding:18px;border-radius:18px}
.hb-stat span{display:block;color:#bfdbfe;font-size:12px;text-transform:uppercase;letter-spacing:.1em}
.hb-stat strong{display:block;font-size:30px;margin-top:8px}
.hb-stat-wide{grid-column:span 2}
.hb-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(320px,1fr);gap:20px}
.hb-sidebar{display:flex;flex-direction:column;gap:20px}
.hb-card{background:#fff;border-radius:24px;box-shadow:0 10px 24px rgba(15,23,42,.08);overflow:hidden}
.hb-card-head{padding:20px;border-bottom:1px solid #eef2f7}
.hb-card-head h2{margin:0;font-size:24px}
.hb-card-body{padding:20px}
.hb-message{padding:14px 16px;border-radius:18px;margin-bottom:16px}
.hb-message.info{background:#eff6ff;border:1px solid #bfdbfe;color:#1d4ed8}
.hb-message.error{background:#fef2f2;border:1px solid #fecaca;color:#b91c1c}
.hb-week-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}
.hb-week-tab{border:none;background:#f1f5f9;color:#334155;padding:10px 14px;border-radius:999px;font-weight:700;cursor:pointer}
.hb-week-tab.active{background:#0f172a;color:#fff}
.hb-week-panel{display:none}
.hb-week-panel.active{display:block}
.hb-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px}
.hb-day{border:1px solid #e2e8f0;border-radius:22px;padding:14px;background:#fff}
.hb-day-head{display:flex;justify-content:space-between;gap:12px;margin-bottom:12px}
.hb-day-weekday{font-weight:700;color:#64748b}
.hb-day-date{font-size:28px;font-weight:800;color:#0f172a;line-height:1.1}
.hb-day-sub{font-size:12px;color:#64748b;margin-top:4px}
.hb-day-badge{background:#f1f5f9;color:#334155;border-radius:999px;padding:8px 10px;font-size:12px;font-weight:700;height:fit-content}
.hb-slot-list{display:grid;gap:12px}
.hb-slot{width:100%;text-align:left;border:1px solid #e5e7eb;border-radius:18px;background:#fff;padding:12px;cursor:pointer;transition:.2s;box-shadow:0 6px 14px rgba(15,23,42,.05)}
.hb-slot:hover:not([disabled]){transform:translateY(-2px);box-shadow:0 10px 20px rgba(15,23,42,.1)}
.hb-slot.booked{background:#f8fafc;color:#94a3b8;cursor:not-allowed}
.hb-slot.selected{border-color:#2563eb;box-shadow:0 0 0 4px #dbeafe}
.hb-slot-top{display:flex;justify-content:space-between;gap:10px}
.hb-slot-left{display:flex;gap:10px;min-width:0}
.hb-slot-left span:last-child{display:flex;flex-direction:column;min-width:0}
.hb-slot-left strong,.hb-slot-left small{overflow-wrap:anywhere}
.hb-slot-icon{width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:14px;background:#0f172a;color:#fff;font-weight:700;flex-shrink:0}
.hb-slot.booked .hb-slot-icon{background:#cbd5e1;color:#475569}
.hb-slot-state{padding:6px 9px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}
.hb-slot-state.available{background:#0f172a;color:#fff}
.hb-slot-state.booked{background:#fff;border:1px solid #e2e8f0;color:#475569}
.hb-slot-booking{margin-top:10px;padding:10px;border-radius:14px;background:#fff;border:1px solid #eef2f7;color:#475569;font-size:12px;line-height:1.5}
.hb-form{display:grid;gap:14px}
.hb-form-group{display:grid;gap:8px}
.hb-form-group label{font-weight:700;color:#334155}
.hb-form-group input,.hb-form-group textarea{width:100%;border:1px solid #cbd5e1;border-radius:16px;padding:12px 14px;outline:none}
.hb-form-group input:focus,.hb-form-group textarea:focus{border-color:#60a5fa;box-shadow:0 0 0 4px rgba(191,219,254,.8)}
.hb-submit{border:none;border-radius:18px;background:#0f172a;color:#fff;padding:14px 16px;font-weight:700}
.hb-booking-list{display:grid;gap:12px}
.hb-booking-item{border:1px solid #e2e8f0;background:linear-gradient(to right,#fff,#f8fafc);border-radius:18px;padding:14px}
.hb-booking-top{display:flex;justify-content:space-between;gap:12px}
.hb-booking-item strong{display:block}
.hb-booking-purpose{margin-top:8px;color:#475569;line-height:1.6}
.hb-table td,.hb-table th{vertical-align:middle}
@media (max-width:1100px){.hb-hero,.hb-layout{grid-template-columns:1fr}.hb-stats{grid-template-columns:repeat(2,1fr)}}
@media (max-width:700px){.hb-stats,.hb-grid{grid-template-columns:1fr}.hb-hero h1{font-size:28px}.hb-stat-wide{grid-column:span 1}}

.hb-hero,
.hb-layout,
.hb-card{width:100%}
.hb-main{min-width:0}


/* Toi uu cho theme NukeViet co cot/phu tro sidebar ben ngoai */
.hb-hero{
    grid-template-columns:1fr !important;
}
.hb-layout{
    grid-template-columns:1fr !important;
}
.hb-sidebar{
    width:100%;
}
.hb-main,
.hb-sidebar,
.hb-card{
    min-width:0;
}

/* Neu theme cha co padding/container hep, module van full trong vung noi dung */
.hb-wrap *{
    box-sizing:border-box;
}

/* Lich co the co 1-4 cot tuy chieu rong thuc te, khong ep 7 cot */
.hb-grid{
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr)) !important;
}

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