:root {
    --ink: #102033;
    --muted: #65758b;
    --navy: #12355b;
    --green: #f6c453;
    --red: #d94f45;
    --green: #4baa4a;
    --surface: #ffffff;
    --line: #e5eaf1;
    --white: #ffffff;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: #f4f7fb; letter-spacing: 0; }
a { text-decoration: none; }
.login-body { min-height: 100vh; background: radial-gradient(circle at top left, #e9f5ff 0, transparent 32%), linear-gradient(135deg, #0b1c30, #12355b 56%, #4baa4a); display: grid; place-items: center; padding: 24px; }
.login-wrap { width: min(100%, 460px); }
.login-card { background: rgba(255,255,255,.94); border: 1px solid rgba(255,255,255,.55); border-radius: 28px; padding: 28px; box-shadow: 0 24px 70px rgba(4,17,32,.28); backdrop-filter: blur(12px); }
.login-brand { display: flex; gap: 16px; align-items: center; }
.login-brand h1 { margin: 0; font-weight: 850; font-size: 2.25rem; }
.login-brand p { margin: 4px 0 0; color: var(--muted); }
.brand-mark { width: 52px; height: 52px; display: inline-grid; place-items: center; border-radius: 17px; background: var(--green); color: var(--navy); box-shadow: 0 12px 30px rgba(75,170,74,.32); font-size: 1.4rem; flex: 0 0 auto; }
.pin-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; margin-top: 10px; }
.pin-box { width: 100%; aspect-ratio: 1; border-radius: 16px; border: 1px solid #d5deea; text-align: center; font-size: 1.45rem; font-weight: 800; background: #f8fafc; }
.pin-box:focus { outline: 3px solid rgba(75,170,74,.45); border-color: var(--green); background: #fff; }
.btn-gold { background: var(--green); color: var(--white); border: 0; font-weight: 600; box-shadow: 0 12px 24px rgba(75,170,74,.25); }
.btn-gold:hover { background: var(--navy); color: var(--white); }
.btn-outline-primary  { background: none; color: var(--navy); border: 1px solid var(--navy); font-weight: 600;}
.btn-outline-primary:hover { background: var(--surface); color: var(--navy); }
.btn-success { background: var(--green); color: var(--white); border: 0; font-weight: 600;}
.btn-success:hover { background: var(--navy); color: var(--white); }

.app-shell { min-height: 100vh; }
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 280px; min-height: 100vh; background: #0e2238; color: #fff; padding: 22px; position: sticky; top: 0; flex-direction: column; gap: 20px; }
.brand { display: flex; gap: 12px; align-items: center; color: #fff; margin-bottom: 6px; }
.brand small { display: block; color: #aab9ca; font-size: .78rem; }
.sidebar nav { display: grid; gap: 4px; }
.sidebar nav a, .logout-link, .mobile-menu a { color: #dbe7f4; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; font-weight: 650; }
.sidebar nav a:hover, .logout-link:hover, .mobile-menu a:hover { background: rgba(255,255,255,.08); color: #fff; }
.logout-link { margin-top: auto; }
.content { flex: 1; padding: 22px 24px 96px; min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 22px; }
.topbar h1 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.2rem); font-weight: 850; }
.eyebrow { text-transform: uppercase; letter-spacing: .11em; color: var(--muted); font-size: .72rem; font-weight: 800; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 13px; box-shadow: 0 8px 22px rgba(16,32,51,.06); white-space: nowrap; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.stat-card, .panel, .guest-card, .empty-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: 0 12px 30px rgba(16,32,51,.06); }
.stat-card .value { font-size: 2rem; font-weight: 850; }
.stat-card .label { color: var(--muted); font-weight: 700; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.table img.avatar, .avatar { width: 48px; height: 48px; object-fit: cover; border-radius: 14px; background: #e8eef6; }
.avatar-lg { width: 128px; height: 128px; border-radius: 32px; object-fit: cover; }
.badge-soft { border-radius: 999px; padding: .45rem .65rem; font-weight: 800; }
.mobile-card-list { display: none; }
.form-control, .form-select { border-radius: 14px; border-color: #dbe3ee; }
.modal-content { border: 0; border-radius: 22px; }
.offcanvas { border: 0; }
.bottom-nav { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 1030; background: #102033; border-radius: 22px; padding: 8px; display: grid; grid-template-columns: repeat(5, 1fr); box-shadow: 0 18px 50px rgba(0,0,0,.28); }
.bottom-nav a { color: #dbe7f4; display: grid; place-items: center; gap: 3px; font-size: .72rem; font-weight: 700; min-height: 50px; }
.bottom-nav i { font-size: 1rem; }
.toast-container-checka { position: fixed; top: 16px; right: 16px; z-index: 2000; }
.text-muted-strong { color: var(--muted); font-weight: 700; }
@media (max-width: 991px) {
    .content { padding: 16px 14px 92px; }
    .topbar { align-items: flex-start; }
    .user-chip span { display: none; }
    .desktop-table-wrap { display: none; }
    .mobile-card-list { display: grid; gap: 12px; }
    .stat-card, .panel, .guest-card { border-radius: 16px; padding: 15px; }
}
