/* ============================================================
   LaundryKu - Custom Theme
   ============================================================ */
:root {
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --primary-light: #818cf8;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg-body: #f4f6fb;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e7ebf3;
    --border-strong: #d8dfeb;
    --sidebar-bg: linear-gradient(180deg, #0a1020 0%, #101a33 52%, #0b1327 100%);
    --sidebar-text: #aab6d0;
    --sidebar-text-active: #ffffff;
    --sidebar-hover: rgba(255, 255, 255, 0.06);
    --sidebar-active: rgba(99, 102, 241, 0.16);
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 20px 50px rgba(15, 23, 42, 0.1);
    --shadow-lg: 0 30px 80px rgba(15, 23, 42, 0.18);
    --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
    margin: 0;
    background: var(--bg-body);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    height: 100vh;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    z-index: 1050;
    transition: transform 0.25s ease;
    box-shadow: 4px 0 24px rgba(15, 23, 42, 0.12);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 21px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.brand-text {
    color: #ffffff;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.sidebar-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 14px 0 18px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.sidebar-scroll::-webkit-scrollbar { width: 5px; }
.sidebar-scroll::-webkit-scrollbar-track { background: transparent; }
.sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 99px;
}

.menu-label {
    padding: 8px 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 2px 12px;
    padding: 12px 20px;
    border-left: 3px solid transparent;
    border-radius: 8px;
    color: var(--sidebar-text);
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sidebar-link i {
    width: 20px;
    font-size: 17px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-link:hover {
    background: var(--sidebar-hover);
    color: #ffffff;
}

.sidebar-link.active {
    background: var(--sidebar-active);
    color: var(--sidebar-text-active);
    border-left-color: #ffffff;
    font-weight: 600;
}

.sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 12px 0;
}

.sidebar-user {
    flex-shrink: 0;
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.16);
}

.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
}

.sidebar-user .user-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.sidebar-user .user-name {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    max-width: 118px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.role-badge {
    display: inline-block;
    align-self: flex-start;
    padding: 2px 8px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.16);
    color: #e2e8f0;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.sidebar-logout {
    margin-left: auto;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #cbd5e1;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.sidebar-logout:hover {
    background: rgba(239, 68, 68, 0.28);
    color: #ffffff;
}

/* Avatar */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.avatar-sm {
    width: 36px;
    height: 36px;
    font-size: 13px;
}

.topbar .avatar,
.table-app .avatar {
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary);
}

/* Overlay mobile */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1045;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
    position: fixed;
    top: 0;
    left: 260px;
    right: 0;
    height: 64px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 24px;
    z-index: 1030;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.btn-hamburger {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: #ffffff;
    border-radius: 10px;
    font-size: 20px;
    color: var(--text-main);
    place-items: center;
    flex-shrink: 0;
}

.topbar-heading { min-width: 0; }

.topbar-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

.topbar-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.topbar-date {
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 99px;
    background: #f8fafc;
    border: 1px solid var(--border);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-muted);
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px 4px 4px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    transition: background 0.2s ease;
}

.topbar-user:hover { background: #f8fafc; }

.topbar-user-name {
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
    text-align: left;
}

.topbar-user-name strong {
    font-size: 13px;
    color: var(--text-main);
    font-weight: 600;
}

.topbar-user-name small {
    font-size: 11px;
    color: var(--text-muted);
}

.topbar-caret {
    font-size: 11px;
    color: var(--text-muted);
}

.topbar-dropdown {
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 6px;
    min-width: 210px;
}

.topbar-dropdown .dropdown-item {
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 13.5px;
}

.topbar-dropdown .dropdown-header { padding: 10px 12px; }

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
    padding: 88px 24px 40px;
    background: var(--bg-body);
}

.content-wrap {
    max-width: 1440px;
    margin: 0 auto;
}

/* ============================================================
   CARDS
   ============================================================ */
.card-app {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.card-app .card-body { padding: 20px; }

.card-app .card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.card-app .card-head h2,
.card-app .card-head h5 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.page-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

/* Stat cards */
.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 24px;
    flex-shrink: 0;
}

.stat-icon.blue   { background: rgba(37, 99, 235, 0.12);  color: var(--primary); }
.stat-icon.green  { background: rgba(16, 185, 129, 0.13); color: var(--success); }
.stat-icon.amber  { background: rgba(245, 158, 11, 0.14); color: var(--warning); }
.stat-icon.red    { background: rgba(239, 68, 68, 0.12);  color: var(--danger); }
.stat-icon.cyan   { background: rgba(6, 182, 212, 0.13);  color: var(--accent); }
.stat-icon.violet { background: rgba(139, 92, 246, 0.13); color: #7c3aed; }

.stat-body { min-width: 0; }

.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
    letter-spacing: -0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-label {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 3px;
}

.stat-sub {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============================================================
   TABLES
   ============================================================ */
.table-app {
    margin-bottom: 0;
    font-size: 14px;
    color: var(--text-main);
}

.table-app > :not(caption) > * > * {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.table-app thead th {
    background: #f8fafc;
    border-bottom: 2px solid var(--border);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    white-space: nowrap;
}

.table-app tbody tr:last-child td { border-bottom: 0; }
.table-app tbody tr:hover { background: #f8fafc; }

.table-app tfoot th {
    background: #f8fafc;
    border-top: 2px solid var(--border);
    border-bottom: 0;
    font-size: 13px;
    color: var(--text-main);
    padding: 12px 16px;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.table-responsive { border-radius: 12px; }

/* ============================================================
   BADGES
   ============================================================ */
.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.badge-lunas   { background: #d1fae5; color: #065f46; }
.badge-dp      { background: #fef3c7; color: #92400e; }
.badge-belum   { background: #fee2e2; color: #991b1b; }
.badge-antri   { background: #dbeafe; color: #1e40af; }
.badge-proses  { background: #fef3c7; color: #92400e; }
.badge-selesai { background: #d1fae5; color: #065f46; }
.badge-diambil { background: #e2e8f0; color: #475569; }
.badge-aktif   { background: #d1fae5; color: #065f46; }
.badge-nonaktif{ background: #e2e8f0; color: #475569; }
.badge-role-admin { background: #dbeafe; color: #1e40af; }
.badge-role-super { background: #ede9fe; color: #5b21b6; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    border-radius: 8px;
    font-weight: 600;
    font-size: 13.5px;
    transition: all 0.2s ease;
}

.btn:not(.btn-sm):not(.btn-lg):not(.btn-close) {
    padding: 10px 20px;
}

.btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 7px; }

.btn-primary {
    --bs-btn-bg: #2563eb;
    --bs-btn-border-color: #2563eb;
    --bs-btn-hover-bg: #1e40af;
    --bs-btn-hover-border-color: #1e40af;
    --bs-btn-active-bg: #1e40af;
    --bs-btn-active-border-color: #1e40af;
    --bs-btn-disabled-bg: #93c5fd;
    --bs-btn-disabled-border-color: #93c5fd;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.25);
}

.btn-outline-secondary {
    --bs-btn-color: #1e293b;
    --bs-btn-border-color: #e2e8f0;
    --bs-btn-hover-bg: #f8fafc;
    --bs-btn-hover-color: #1e293b;
    --bs-btn-hover-border-color: #cbd5e1;
    --bs-btn-active-bg: #f1f5f9;
    --bs-btn-active-color: #1e293b;
    --bs-btn-active-border-color: #cbd5e1;
}

.btn-outline-primary {
    --bs-btn-color: #2563eb;
    --bs-btn-border-color: #bfdbfe;
    --bs-btn-hover-bg: #2563eb;
    --bs-btn-hover-border-color: #2563eb;
}

.btn-soft-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid transparent;
}
.btn-soft-danger:hover { background: #fecaca; color: #7f1d1d; }

/* ============================================================
   FORMS
   ============================================================ */
.form-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
}

.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid var(--border);
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-main);
    background-color: #ffffff;
}

.form-control::placeholder { color: #94a3b8; }

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control-sm,
.form-select-sm {
    padding: 7px 11px;
    font-size: 13px;
    border-radius: 7px;
}

.input-group-text {
    border-radius: 8px;
    border-color: var(--border);
    background: #f8fafc;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-text { font-size: 12px; color: var(--text-muted); }

/* Search box dengan ikon */
.search-box { position: relative; }
.search-box > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
}
.search-box .form-control { padding-left: 38px; }

/* ============================================================
   MODALS
   ============================================================ */
.modal-content {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.22);
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid var(--border);
    padding: 18px 24px;
}

.modal-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}

.modal-body { padding: 24px; }

.modal-footer {
    border-top: 1px solid var(--border);
    background: #f8fafc;
    padding: 14px 24px;
}

/* ============================================================
   ALERTS
   ============================================================ */
.flash-alert {
    border: 0;
    border-radius: 10px;
    font-size: 13.5px;
    padding: 13px 16px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
}

.flash-alert.alert-success { background: #d1fae5; color: #065f46; }
.flash-alert.alert-danger  { background: #fee2e2; color: #991b1b; }
.flash-alert.alert-warning { background: #fef3c7; color: #92400e; }
.flash-alert.alert-info    { background: #dbeafe; color: #1e40af; }
.flash-alert .btn-close { opacity: 0.55; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}

.empty-state i {
    display: block;
    font-size: 52px;
    color: #cbd5e1;
    margin-bottom: 12px;
    line-height: 1;
}

.empty-state h6 {
    margin: 0 0 4px;
    font-weight: 700;
    color: var(--text-main);
    font-size: 15px;
}

.empty-state p { margin: 0 0 14px; font-size: 13px; }

/* ============================================================
   PAYMENT PAGE
   ============================================================ */
.payment-method-card {
    height: 100%;
    padding: 24px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: #ffffff;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.payment-method-card:hover,
.payment-method-card.active {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.14);
}

.payment-method-card.active {
    background: #eff6ff;
}

.payment-method-card .pm-icon {
    font-size: 40px;
    line-height: 1;
    color: var(--primary);
}

.payment-method-card .pm-name {
    margin-top: 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}

.payment-method-card .pm-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
}

.sisa-box {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    padding: 24px;
}

.sisa-label {
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--primary-dark);
}

.sisa-value {
    font-size: 34px;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-top: 4px;
}

.payment-panel {
    display: none;
}

.payment-panel.show { display: block; }

.payment-instructions {
    padding: 16px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: #eff6ff;
}

.payment-qr-image {
    display: block;
    width: min(100%, 260px);
    max-height: 320px;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
}

.kembalian-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
}

.kembalian-box strong { font-size: 18px; color: var(--primary-dark); }
.kembalian-box.kurang strong { color: var(--danger); }

/* ============================================================
   TRANSAKSI BARU
   ============================================================ */
.item-row {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fafc;
}

.item-row .form-label { font-size: 11.5px; }

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 13.5px;
    color: var(--text-muted);
}

.summary-row span:last-child { color: var(--text-main); font-weight: 600; }

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    margin-top: 8px;
    border-top: 1px solid var(--border);
}

.summary-total .label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.summary-total .value {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.03em;
}

/* Detail transaksi */
.detail-list { margin: 0; }

.detail-list .row-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 13.5px;
}

.detail-list .row-line:last-child { border-bottom: 0; }
.detail-list .row-line span:first-child { color: var(--text-muted); }
.detail-list .row-line span:last-child { font-weight: 600; text-align: right; }

.info-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 99px;
    background: #f8fafc;
    border: 1px solid var(--border);
    font-size: 12.5px;
    color: var(--text-muted);
}

/* ============================================================
   LOGIN
   ============================================================ */
.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 20%, rgba(6, 182, 212, 0.35), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(59, 130, 246, 0.35), transparent 45%),
        linear-gradient(135deg, #0f172a 0%, #1e3a8a 45%, #2563eb 100%);
}

.login-page::before,
.login-page::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.login-page::before { width: 420px; height: 420px; top: -160px; right: -120px; }
.login-page::after  { width: 320px; height: 320px; bottom: -140px; left: -100px; }

.login-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 430px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 22px;
    padding: 36px 32px 30px;
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.45);
    backdrop-filter: blur(8px);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.login-brand .brand-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    font-size: 26px;
    box-shadow: none;
}

.login-brand h1 {
    margin: 0;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.login-brand p {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
}

.login-title {
    margin: 18px 0 4px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

.login-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.login-card .form-control {
    padding: 12px 14px;
    background: #f8fafc;
}

.login-card .form-control:focus { background: #ffffff; }

.login-card .btn-primary { padding: 12px 20px; font-size: 14px; }

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 14px;
    color: #94a3b8;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.quick-login {
    display: grid;
    gap: 10px;
}

.quick-login-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    text-align: left;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.quick-login-btn:hover,
.quick-login-btn:focus-visible {
    border-color: var(--primary);
    background: #f8faff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
    outline: none;
}

.quick-login-btn:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.quick-login-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 18px;
}

.quick-login-icon-super { background: rgba(124, 58, 237, 0.12); color: #7c3aed; }
.quick-login-icon-admin { background: rgba(37, 99, 235, 0.12); color: #2563eb; }

.quick-login-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    line-height: 1.3;
}

.quick-login-text strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.quick-login-text small {
    font-size: 11px;
    color: var(--text-muted);
}

.quick-login-arrow {
    font-size: 17px;
    color: #cbd5e1;
    transition: color 0.18s ease;
}

.quick-login-btn:hover .quick-login-arrow { color: var(--primary); }

.quick-login-note {
    margin: 10px 0 0;
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
}

.login-footer {
    margin-top: 22px;
    text-align: center;
    font-size: 11.5px;
    color: #94a3b8;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--text-muted);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    z-index: 5;
}

.password-toggle:hover { background: #eef2f7; }

/* ============================================================
   MISC
   ============================================================ */
.text-muted-2 { color: var(--text-muted) !important; }
.fw-800 { font-weight: 800; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.chart-wrap { position: relative; height: 300px; }

.divider-soft {
    height: 1px;
    background: var(--border);
    margin: 16px 0;
}

.hint-box {
    background: #f8fafc;
    border: 1px dashed var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 12.5px;
    color: var(--text-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }

    .topbar {
        left: 0;
        padding: 0 16px;
    }

    .main-content {
        margin-left: 0;
        padding: 84px 16px 32px;
    }

    .btn-hamburger { display: inline-grid; }
    .topbar-date { display: none !important; }
}

@media (max-width: 575.98px) {
    .main-content { padding: 80px 12px 28px; }
    .topbar { padding: 0 12px; }
    .stat-card { padding: 16px; gap: 12px; }
    .stat-icon { width: 48px; height: 48px; border-radius: 14px; font-size: 20px; }
    .stat-value { font-size: 19px; }
    .card-app .card-body { padding: 16px; }
    .modal-body { padding: 18px; }
    .modal-header, .modal-footer { padding-left: 18px; padding-right: 18px; }
    .login-card { padding: 28px 22px 24px; }
    .sisa-value { font-size: 27px; }
    .topbar-user-name { display: none; }
}

/* ============================================================
   PREMIUM VISUAL OVERRIDES
   ============================================================ */
html { scroll-behavior: smooth; }

body {
    background:
        radial-gradient(1100px 650px at 100% -10%, rgba(99, 102, 241, 0.13), transparent 60%),
        radial-gradient(900px 600px at -10% 110%, rgba(6, 182, 212, 0.1), transparent 55%),
        linear-gradient(180deg, #f7f8fd 0%, #f1f4fa 100%);
    background-attachment: fixed;
}

::selection { background: rgba(79, 70, 229, 0.16); color: #1e1b4b; }

h1, h2, h3, h4, h5, h6,
.brand-text, .stat-value, .section-title, .topbar-title, .login-title {
    font-family: var(--font-display);
}

* {
    scrollbar-width: thin;
    scrollbar-color: #c7cfdf transparent;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #c7cfdf; border-radius: 99px; }
::-webkit-scrollbar-track { background: transparent; }

/* Sidebar */
.sidebar {
    background:
        radial-gradient(circle at 15% 0%, rgba(99, 102, 241, 0.3), transparent 42%),
        radial-gradient(circle at 100% 100%, rgba(6, 182, 212, 0.13), transparent 45%),
        var(--sidebar-bg);
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 18px 0 55px rgba(7, 13, 28, 0.22);
}

.sidebar > * { position: relative; z-index: 1; }

.sidebar::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 100% 68px;
    mask-image: linear-gradient(180deg, #000, transparent 75%);
}

.sidebar-brand {
    padding: 26px 22px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
    box-shadow: 0 12px 26px rgba(79, 70, 229, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    font-size: 21px;
    color: #ffffff;
}

.brand-text {
    font-size: 20px;
    letter-spacing: -0.04em;
    color: #ffffff;
}

.sidebar-scroll { padding: 18px 0 22px; }

.menu-label {
    padding: 14px 22px 7px;
    font-size: 9.5px;
    letter-spacing: 0.14em;
    color: rgba(148, 163, 184, 0.62);
}

.sidebar-link {
    gap: 11px;
    margin: 3px 12px;
    padding: 9px 13px;
    border-left: 0;
    border-radius: 12px;
    color: var(--sidebar-text);
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-link i {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.045);
    font-size: 16px;
    transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.055);
    color: #ffffff;
    transform: translateX(2px);
}

.sidebar-link:hover i { background: rgba(255, 255, 255, 0.1); }

.sidebar-link.active {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.36), rgba(99, 102, 241, 0.08));
    color: #ffffff;
    font-weight: 600;
    box-shadow: inset 3px 0 0 #a5b4fc, 0 10px 24px rgba(3, 8, 20, 0.2);
}

.sidebar-link.active i {
    background: rgba(255, 255, 255, 0.12);
    color: #c7d2fe;
}

.sidebar-divider {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.13), transparent);
    margin: 14px 0;
}

.sidebar-user {
    padding: 12px 12px 16px;
    background: rgba(5, 10, 24, 0.34);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.sidebar-user-card {
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.sidebar .avatar {
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    box-shadow: 0 8px 18px rgba(3, 8, 20, 0.28);
}

.role-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

.sidebar-logout { border-radius: 10px; }

/* Topbar */
.topbar {
    height: 70px;
    padding: 0 28px;
    background: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.045);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.topbar-title {
    font-size: 18px;
    letter-spacing: -0.025em;
}

.topbar-subtitle { color: #7c879d; }

.topbar-date {
    background: rgba(255, 255, 255, 0.7);
    border-color: #e7ebf3;
    color: #64748b;
    box-shadow: inset 0 1px 0 #ffffff;
}

.topbar-user { border-radius: 14px; }
.topbar-user:hover { background: rgba(241, 245, 249, 0.9); }

.topbar .avatar {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.14), rgba(6, 182, 212, 0.14));
    color: var(--primary);
    box-shadow: inset 0 0 0 1px rgba(79, 70, 229, 0.12);
}

.topbar-dropdown {
    border-color: #e7ebf3;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.btn-hamburger {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 1px 0 #ffffff;
}

/* Main area */
.main-content {
    padding: 96px 28px 48px;
    background: transparent;
}

.content-wrap { max-width: 1500px; }

/* Cards */
.card-app {
    position: relative;
    border: 1px solid rgba(226, 232, 240, 0.82);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.card-app::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.32), transparent);
    pointer-events: none;
}

.card-app .card-head {
    padding: 18px 22px;
    border-bottom: 1px solid #eef1f8;
    background: linear-gradient(180deg, #fcfdff, #ffffff);
}

.card-app .card-head h2,
.card-app .card-head h5 {
    font-size: 15.5px;
    letter-spacing: -0.02em;
}

.card-app .card-body { padding: 22px; }

.page-toolbar { margin-bottom: 20px; }

/* Stat cards */
.stat-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border: 1px solid rgba(226, 232, 240, 0.82);
    border-radius: 20px;
    background: linear-gradient(145deg, #ffffff 0%, #fbfcff 100%);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -75px;
    right: -55px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.14), transparent 68%);
    pointer-events: none;
}

.stat-card::after {
    content: '';
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.45), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.12);
}

.stat-card:hover::after { opacity: 1; }

.stat-icon {
    width: 58px;
    height: 58px;
    border-radius: 17px;
    color: #ffffff;
    font-size: 24px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.stat-icon.blue   { background: linear-gradient(135deg, #4f46e5, #6366f1); }
.stat-icon.green  { background: linear-gradient(135deg, #059669, #10b981); }
.stat-icon.amber  { background: linear-gradient(135deg, #d97706, #f59e0b); }
.stat-icon.red    { background: linear-gradient(135deg, #dc2626, #ef4444); }
.stat-icon.cyan   { background: linear-gradient(135deg, #0891b2, #06b6d4); }
.stat-icon.violet { background: linear-gradient(135deg, #7c3aed, #a78bfa); }

.stat-value {
    font-size: 26px;
    letter-spacing: -0.045em;
    color: #0b1220;
}

.stat-label {
    color: #6b778c;
    font-weight: 500;
}

/* Tables */
.table-app thead th {
    padding: 12px 18px;
    background: #f8faff;
    border-bottom: 1px solid #e8edf6;
    color: #7c879d;
    font-size: 10px;
    letter-spacing: 0.1em;
}

.table-app > :not(caption) > * > * {
    padding: 14px 18px;
    border-bottom-color: #eef2f8;
}

.table-app tbody tr { transition: background 0.16s ease; }

.table-app tbody tr:hover {
    background: linear-gradient(90deg, rgba(79, 70, 229, 0.04), rgba(6, 182, 212, 0.02));
}

.table-app tbody tr:last-child td { border-bottom: 0; }

.table-app tfoot th {
    background: #f8faff;
    border-top: 1px solid #e8edf6;
    font-family: var(--font-display);
}

.table-app .mono { color: #312e81; }

.table-app .avatar {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.14), rgba(6, 182, 212, 0.14));
    color: var(--primary);
    box-shadow: inset 0 0 0 1px rgba(79, 70, 229, 0.1);
}

/* Badges */
.badge-soft {
    gap: 6px;
    padding: 5px 11px;
    border: 1px solid transparent;
    font-size: 11.5px;
    letter-spacing: -0.01em;
}

.badge-soft::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.75;
    flex-shrink: 0;
}

.badge-lunas    { background: rgba(16, 185, 129, 0.1); color: #047857; border-color: rgba(16, 185, 129, 0.18); }
.badge-dp       { background: rgba(245, 158, 11, 0.1); color: #b45309; border-color: rgba(245, 158, 11, 0.2); }
.badge-belum    { background: rgba(239, 68, 68, 0.09); color: #b91c1c; border-color: rgba(239, 68, 68, 0.16); }
.badge-antri    { background: rgba(79, 70, 229, 0.09); color: #3730a3; border-color: rgba(79, 70, 229, 0.16); }
.badge-proses   { background: rgba(245, 158, 11, 0.1); color: #b45309; border-color: rgba(245, 158, 11, 0.2); }
.badge-selesai  { background: rgba(16, 185, 129, 0.1); color: #047857; border-color: rgba(16, 185, 129, 0.18); }
.badge-diambil  { background: rgba(100, 116, 139, 0.1); color: #475569; border-color: rgba(100, 116, 139, 0.16); }
.badge-aktif    { background: rgba(16, 185, 129, 0.1); color: #047857; border-color: rgba(16, 185, 129, 0.18); }
.badge-nonaktif { background: rgba(100, 116, 139, 0.1); color: #475569; border-color: rgba(100, 116, 139, 0.16); }
.badge-role-admin { background: rgba(79, 70, 229, 0.09); color: #3730a3; border-color: rgba(79, 70, 229, 0.16); }
.badge-role-super { background: rgba(124, 58, 237, 0.09); color: #6d28d9; border-color: rgba(124, 58, 237, 0.16); }

/* Buttons */
.btn {
    border-radius: 11px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.btn-primary {
    --bs-btn-bg: #4f46e5;
    --bs-btn-border-color: transparent;
    --bs-btn-hover-bg: #4338ca;
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-bg: #3730a3;
    --bs-btn-active-border-color: transparent;
    --bs-btn-disabled-bg: #a5b4fc;
    --bs-btn-disabled-border-color: transparent;
    background-image: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%);
    border: 0;
    box-shadow: 0 10px 22px rgba(79, 70, 229, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background-image: linear-gradient(135deg, #4338ca 0%, #1d4ed8 100%);
    box-shadow: 0 14px 28px rgba(79, 70, 229, 0.3);
    transform: translateY(-1px);
}

.btn-primary:active { transform: translateY(0); }

.btn-outline-secondary {
    --bs-btn-color: #334155;
    --bs-btn-border-color: #dfe5ef;
    --bs-btn-hover-bg: #f7f9fd;
    --bs-btn-hover-color: #1e293b;
    --bs-btn-hover-border-color: #cbd5e1;
    --bs-btn-active-bg: #f1f5f9;
    --bs-btn-active-color: #1e293b;
    --bs-btn-active-border-color: #cbd5e1;
    background: #ffffff;
}

.btn-outline-primary {
    --bs-btn-color: #4f46e5;
    --bs-btn-border-color: #c7d2fe;
    --bs-btn-hover-bg: #4f46e5;
    --bs-btn-hover-border-color: #4f46e5;
    background: #ffffff;
}

.btn-soft-danger {
    background: rgba(239, 68, 68, 0.09);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.12);
}

.btn-soft-danger:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #991b1b;
}

/* Forms */
.form-label {
    font-size: 12px;
    letter-spacing: 0.01em;
    color: #334155;
}

.form-control,
.form-select {
    border-color: #e3e8f1;
    border-radius: 11px;
    background-color: #fbfcff;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.form-control:hover,
.form-select:hover { border-color: #cfd8e6; }

.form-control:focus,
.form-select:focus {
    border-color: #818cf8;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.input-group-text {
    border-color: #e3e8f1;
    background: #f8faff;
    color: #7c879d;
}

.search-box .form-control { background: #ffffff; }

/* Modals */
.modal-content {
    border-radius: 22px;
    box-shadow: 0 40px 100px rgba(15, 23, 42, 0.3);
}

.modal-header { background: linear-gradient(180deg, #fcfdff, #ffffff); }

.modal-footer { background: #f8faff; }

/* Alerts */
.flash-alert {
    border: 1px solid transparent;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.flash-alert.alert-success { border-color: rgba(16, 185, 129, 0.16); }
.flash-alert.alert-danger  { border-color: rgba(239, 68, 68, 0.16); }
.flash-alert.alert-warning { border-color: rgba(245, 158, 11, 0.18); }
.flash-alert.alert-info    { border-color: rgba(79, 70, 229, 0.16); }

/* Empty state */
.empty-state i {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    margin: 0 auto 16px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.09), rgba(6, 182, 212, 0.09));
    color: #818cf8;
    font-size: 34px;
}

/* Payment */
.payment-method-card {
    border: 1.5px solid #e7ebf3;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #fbfcff);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.payment-method-card:hover,
.payment-method-card.active {
    border-color: #a5b4fc;
    transform: translateY(-3px);
    box-shadow: 0 20px 38px rgba(79, 70, 229, 0.14);
}

.payment-method-card.active {
    border-color: #6366f1;
    background: linear-gradient(180deg, #eef2ff, #f8faff);
}

.payment-method-card .pm-icon {
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: rgba(79, 70, 229, 0.09);
    color: #4f46e5;
    font-size: 27px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.payment-method-card:hover .pm-icon,
.payment-method-card.active .pm-icon {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #ffffff;
    transform: scale(1.04);
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.28);
}

.sisa-box {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0%, rgba(99, 102, 241, 0.48), transparent 52%),
        linear-gradient(135deg, #0d152b 0%, #1e1b4b 100%);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.24);
}

.sisa-label { color: #a5b4fc; letter-spacing: 0.1em; }

.sisa-value {
    color: #ffffff;
    font-size: 36px;
    text-shadow: 0 2px 20px rgba(165, 180, 252, 0.25);
}

.kembalian-box {
    border: 1px dashed #cfd8e6;
    background: #f8faff;
    border-radius: 12px;
}

.kembalian-box strong { color: #3730a3; }
.kembalian-box.kurang strong { color: var(--danger); }

/* Transaction items */
.item-row {
    border: 1px dashed #dbe3f0;
    border-radius: 14px;
    background: linear-gradient(180deg, #fbfcff, #f7f9fe);
}

.summary-total .value { color: #3730a3; }

.info-chip {
    border-color: #e7ebf3;
    background: #f8faff;
}

/* ============================================================
   PREMIUM LOGIN
   ============================================================ */
.login-page {
    padding: 32px;
    overflow-x: hidden;
    overflow-y: auto;
    background:
        radial-gradient(circle at 12% 12%, rgba(99, 102, 241, 0.32), transparent 36%),
        radial-gradient(circle at 88% 88%, rgba(6, 182, 212, 0.2), transparent 38%),
        linear-gradient(135deg, #060b18 0%, #0b1428 45%, #101a36 100%);
}

.login-page::before {
    position: fixed;
    width: 560px;
    height: 560px;
    top: -240px;
    right: -170px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.32), transparent 65%);
    filter: blur(20px);
}

.login-page::after {
    position: fixed;
    width: 460px;
    height: 460px;
    bottom: -230px;
    left: -160px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.22), transparent 65%);
    filter: blur(20px);
}

.login-shell {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    width: min(1040px, 100%);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 45px 110px rgba(2, 6, 23, 0.58);
}

.login-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 42px 42px 36px;
    color: #ffffff;
    background:
        radial-gradient(circle at 15% 0%, rgba(99, 102, 241, 0.38), transparent 52%),
        radial-gradient(circle at 100% 100%, rgba(6, 182, 212, 0.18), transparent 48%),
        linear-gradient(160deg, #0a1122 0%, #111c3a 55%, #0a1122 100%);
}

.login-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(circle at 40% 30%, #000, transparent 78%);
}

.login-visual::after {
    content: '';
    position: absolute;
    right: -110px;
    bottom: -130px;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    border: 1px solid rgba(129, 140, 248, 0.22);
    box-shadow: 0 0 0 38px rgba(129, 140, 248, 0.05), 0 0 0 78px rgba(129, 140, 248, 0.03);
    pointer-events: none;
}

.login-visual > * { position: relative; z-index: 1; }

.login-visual-brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.login-visual-brand .brand-icon {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    box-shadow: 0 14px 30px rgba(79, 70, 229, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    font-size: 22px;
}

.login-visual-brand strong {
    display: block;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.login-visual-sub {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #8b9ac0;
}

.login-visual-body {
    margin-top: auto;
    margin-bottom: auto;
    padding: 38px 0 30px;
}

.login-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border: 1px solid rgba(165, 180, 252, 0.2);
    border-radius: 99px;
    background: rgba(99, 102, 241, 0.12);
    color: #c7d2fe;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-visual-body h2 {
    margin: 20px 0 14px;
    font-size: clamp(30px, 3.2vw, 40px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.045em;
}

.login-visual-body h2 span {
    background: linear-gradient(90deg, #a5b4fc, #67e8f9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.login-visual-body > p {
    max-width: 390px;
    margin: 0;
    color: #98a6c6;
    font-size: 13.5px;
    line-height: 1.7;
}

.login-features {
    display: grid;
    gap: 13px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.login-features li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-feature-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.055);
    color: #a5b4fc;
    font-size: 16px;
}

.login-features strong {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #eef2ff;
}

.login-features div > span {
    display: block;
    margin-top: 1px;
    font-size: 11.5px;
    color: #8592b3;
}

.login-visual-footer {
    display: flex;
    gap: 26px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.login-visual-footer div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.login-visual-footer strong {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.login-visual-footer div span {
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7d8bab;
}

.login-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: none;
    padding: 42px 40px 32px;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
    backdrop-filter: none;
}

.login-card .login-brand { display: none; }

.login-title {
    margin: 0 0 5px;
    font-size: 24px;
    letter-spacing: -0.035em;
    color: #0b1220;
}

.login-sub {
    margin-bottom: 24px;
    font-size: 13px;
    line-height: 1.6;
    color: #7c879d;
}

.login-card .form-control {
    padding: 12px 15px;
    border-color: #e3e8f1;
    background: #f8faff;
}

.login-card .form-control:focus {
    border-color: #818cf8;
    background: #ffffff;
}

.login-card .input-group-text {
    border-color: #e3e8f1;
    background: #f1f4fb;
    color: #818cf8;
}

.login-card .btn-primary {
    padding: 13px 20px;
    font-size: 14px;
}

.login-divider {
    margin: 22px 0 15px;
    color: #9aa6bb;
}

.login-divider::before,
.login-divider::after { background: linear-gradient(90deg, transparent, #e3e8f1); }

.login-divider::after { background: linear-gradient(90deg, #e3e8f1, transparent); }

.quick-login { gap: 9px; }

.quick-login-btn {
    padding: 10px 13px;
    border: 1px solid #e7ebf3;
    border-radius: 13px;
    background: #fbfcff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
}

.quick-login-btn:hover,
.quick-login-btn:focus-visible {
    border-color: #c7d2fe;
    background: #f8faff;
    box-shadow: 0 12px 26px rgba(79, 70, 229, 0.1);
    transform: translateY(-1px);
}

.quick-login-icon {
    width: 39px;
    height: 39px;
    border-radius: 11px;
    font-size: 18px;
}

.quick-login-icon-super {
    background: linear-gradient(135deg, #ede9fe, #f5f3ff);
    color: #7c3aed;
    box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.08);
}

.quick-login-icon-admin {
    background: linear-gradient(135deg, #e0e7ff, #eef2ff);
    color: #4f46e5;
    box-shadow: inset 0 0 0 1px rgba(79, 70, 229, 0.08);
}

.quick-login-note { color: #9aa6bb; }

.login-footer {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #eef1f8;
    color: #9aa6bb;
}

.password-toggle { border-radius: 10px; color: #94a3b8; }
.password-toggle:hover { background: #eef2ff; color: #4f46e5; }

/* Tasteful entrance motion */
@keyframes premiumRise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.stat-card { animation: premiumRise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; }
.card-app { animation: premiumRise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Responsive */
@media (max-width: 991.98px) {
    .topbar { height: 66px; padding: 0 18px; }
    .main-content { padding: 88px 18px 36px; }

    .login-shell {
        grid-template-columns: 1fr;
        max-width: 465px;
        border-radius: 26px;
    }

    .login-visual { display: none; }

    .login-card { padding: 36px 30px 30px; }

    .login-card .login-brand {
        display: flex;
        margin-bottom: 18px;
    }

    .login-card .login-brand .brand-icon {
        background: linear-gradient(135deg, #4f46e5, #06b6d4);
        color: #ffffff;
        box-shadow: 0 12px 26px rgba(79, 70, 229, 0.28);
    }
}

@media (max-width: 575.98px) {
    .topbar { height: 62px; padding: 0 14px; }
    .main-content { padding: 80px 14px 30px; }

    .stat-card { padding: 18px; }
    .stat-icon { width: 50px; height: 50px; border-radius: 15px; font-size: 20px; }
    .stat-value { font-size: 21px; }
    .card-app { border-radius: 17px; }
    .card-app .card-body { padding: 17px; }
    .card-app .card-head { padding: 16px 17px; }

    .login-page { padding: 16px; }
    .login-shell { border-radius: 22px; }
    .login-card { padding: 30px 22px 24px; }
    .login-title { font-size: 21px; }
    .sisa-value { font-size: 29px; }
}
