:root {
    --gold: #b8860b;
    --gold-2: #d4a72c;
    --gold-soft: #f6eedb;
    --ink: #1c1a17;
    --paper: #faf8f4;
    --line: #ece6da;
}
body { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; background: var(--paper); color: #26231e; }
.bg-cust { background: radial-gradient(1200px 500px at 50% -200px, #f3e6c4 0%, var(--paper) 60%) fixed; min-height: 100vh; }
.bg-app { background: #f4f2ee; min-height: 100vh; }
.bg-ink { background: var(--ink) !important; }
.text-gold { color: var(--gold) !important; }
.ls-1 { letter-spacing: .08em; }
.min-w-0 { min-width: 0; }
.border-gold { border: 1px solid var(--gold-2) !important; }

.btn-gold { --bs-btn-color: #fff; --bs-btn-bg: var(--gold); --bs-btn-border-color: var(--gold);
    --bs-btn-hover-bg: #9a7009; --bs-btn-hover-border-color: #9a7009; --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: #87620a; --bs-btn-disabled-bg: #c9b48a; --bs-btn-disabled-border-color: #c9b48a; font-weight: 600; }

.card-soft { border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 8px 24px rgba(60,40,0,.05); background: #fff; }
.brand-mark { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; color: #fff;
    background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: 0 6px 18px rgba(184,134,11,.35); }
.brand-logo { display: block; width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(184,134,11,.3)); }
.nav-logo { width: 28px; height: 28px; object-fit: contain; }
.nav-logo-sm { width: 16px; height: 16px; object-fit: contain; vertical-align: -2px; }
.svc-logo { width: 32px; height: 32px; object-fit: contain; }
.icon-pill { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); font-size: 18px; }

/* Pilihan layanan */
.service-card { display: block; cursor: pointer; padding: 16px 14px; border-radius: 14px; border: 2px solid var(--line);
    background: #fff; transition: .15s; height: 100%; }
.service-card > i { font-size: 28px; color: var(--svc); }
.service-card:hover { border-color: color-mix(in srgb, var(--svc) 50%, white); }
.btn-check:checked + .service-card { border-color: var(--svc); background: color-mix(in srgb, var(--svc) 8%, white); box-shadow: 0 0 0 3px color-mix(in srgb, var(--svc) 18%, transparent); }
.btn-check:focus-visible + .service-card { outline: 2px solid var(--svc); outline-offset: 2px; }
.svc-wait { color: var(--svc); font-weight: 600; }

/* Tiket */
.ticket { border-radius: 20px; overflow: hidden; background: #fff; }
.ticket-top { background: linear-gradient(140deg, var(--svc), color-mix(in srgb, var(--svc) 70%, black)); color: #fff; text-align: center; padding: 22px 16px 26px; position: relative; }
.ticket-top::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; border-bottom: 2px dashed rgba(255,255,255,.0); }
.ticket-number { font-size: clamp(64px, 22vw, 104px); font-weight: 800; line-height: 1; margin: 10px 0 8px; letter-spacing: .02em; }
.ticket-body { padding: 20px; border-top: 2px dashed var(--line); }
.ticket-mini { min-width: 64px; padding: 8px 10px; border-radius: 10px; background: var(--gold); color: #fff; font-weight: 800; text-align: center; }
.now-serving { display: flex; justify-content: space-between; align-items: center; background: var(--paper); border-radius: 12px; padding: 10px 14px; }
.call-alert { display: flex; gap: 12px; align-items: center; background: #e9f7ef; color: #14532d; border: 1px solid #a7e3bf; border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; animation: pulse 1.2s ease-in-out infinite; }
.call-alert i { font-size: 28px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(34,197,94,.15); } }

/* Petugas */
.op-number { font-size: clamp(72px, 10vw, 120px); font-weight: 800; line-height: 1.1; color: var(--ink); }
.count-tile { border-radius: 14px; padding: 14px 16px; color: #fff; }
.count-tile .n { font-size: 32px; font-weight: 800; line-height: 1; }
kbd { background: #eee; color: #333; }

/* Laporan */
.bars { display: flex; gap: 4px; align-items: flex-end; height: 140px; overflow-x: auto; }
.bar { flex: 1 0 22px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.bar span { width: 100%; background: linear-gradient(var(--gold-2), var(--gold)); border-radius: 4px 4px 0 0; min-height: 2px; }
.bar small { font-size: 10px; color: #888; margin-top: 2px; }
.qr-box { flex: 0 0 110px; }
.qr-box img, .qr-box canvas { width: 110px; height: 110px; }

/* ---------- Login ---------- */
.login-body { background: var(--paper); min-height: 100vh; }
.login-wrap { display: grid; grid-template-columns: minmax(380px, 46%) 1fr; min-height: 100vh; }
.login-brand { position: relative; overflow: hidden; color: #f5efe2; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between;
    background:
        radial-gradient(600px 400px at 85% 10%, rgba(212,167,44,.22), transparent 70%),
        radial-gradient(500px 500px at 0% 100%, rgba(184,134,11,.18), transparent 70%),
        #16140f; }
.login-brand::after { content: ''; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; opacity: .06;
    background: var(--login-logo, none) center / contain no-repeat; transform: rotate(-12deg); pointer-events: none; }
.login-brand-inner { position: relative; z-index: 1; margin: auto 0; max-width: 440px; }
.login-brand-logo { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 8px 24px rgba(212,167,44,.35)); margin-bottom: 28px; }
.login-brand-title { font-size: 2.2rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: 8px;
    background: linear-gradient(180deg, #fff3cf, #d4a72c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-brand-sub { color: #b9ad96; font-size: 1.05rem; margin-bottom: 36px; }
.login-features { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.login-features li { display: flex; gap: 14px; align-items: flex-start; }
.login-features i { flex: 0 0 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; color: #e6c063;
    background: rgba(212,167,44,.12); border: 1px solid rgba(212,167,44,.25); }
.login-features span { color: #a99e88; font-size: .92rem; line-height: 1.45; }
.login-features b { display: block; color: #f5efe2; font-weight: 600; }
.login-brand-foot { position: relative; z-index: 1; color: #6f6656; font-size: .82rem; }

.login-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px;
    background: radial-gradient(800px 400px at 50% -150px, #f3e6c4 0%, transparent 70%); }
.login-box { width: 100%; max-width: 400px; }
.login-mobile-head { display: none; text-align: center; margin-bottom: 24px; }
.login-field { position: relative; }
.login-field > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #a39a8a; font-size: 1.1rem; pointer-events: none; z-index: 2; }
.login-field .form-control { padding-left: 46px; border-radius: 12px; border-color: #e2dbcd; background: #fff; font-size: 1rem; height: 52px; }
.login-field .form-control:focus { border-color: var(--gold-2); box-shadow: 0 0 0 4px rgba(212,167,44,.18); }
.login-field .form-control.is-invalid { background-image: none; }
.login-field:has(.login-eye) .form-control { padding-right: 48px; }
.login-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #8a8173;
    width: 40px; height: 40px; border-radius: 10px; z-index: 2; }
.login-eye:hover { background: #f4efe4; color: var(--ink); }
.login-submit { height: 52px; border-radius: 12px; box-shadow: 0 8px 20px rgba(184,134,11,.25); }
.login-submit i { transition: transform .15s; }
.login-submit:hover i { transform: translateX(3px); }
.login-help { margin-top: 24px; padding: 12px 14px; border-radius: 12px; background: #f4efe4; color: #6f6656; font-size: .86rem; display: flex; gap: 8px; }
.login-back { display: inline-flex; gap: 6px; align-items: center; margin-top: 18px; color: #8a8173; text-decoration: none; font-size: .9rem; }
.login-back:hover { color: var(--gold); }

@media (max-width: 991.98px) {
    .login-wrap { grid-template-columns: 1fr; }
    .login-brand { display: none; }
    .login-mobile-head { display: block; }
    .login-main { align-items: flex-start; padding-top: 48px; }
}
