/* =========================================
   BaliTiket - Sistem Pembayaran Fasilitas
   Custom Stylesheet
   ========================================= */

:root {
    --primary:       #1e3a8a;
    --primary-dark:  #1e2f6b;
    --primary-light: #3b82f6;
    --accent:        #06b6d4;
    --success:       #10b981;
    --warning:       #f59e0b;
    --danger:        #ef4444;
    --bg:            #f0f4f8;
    --card-bg:       #ffffff;
    --sidebar-width: 260px;
    --navbar-height: 64px;
    --text-muted:    #6b7280;
    --border:        #e5e7eb;
    --shadow-sm:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow:        0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
    --shadow-md:     0 10px 15px rgba(0,0,0,.08), 0 4px 6px rgba(0,0,0,.05);
    --shadow-lg:     0 20px 25px rgba(0,0,0,.08), 0 10px 10px rgba(0,0,0,.04);
    --radius:        .75rem;
    --radius-sm:     .5rem;
    --radius-lg:     1rem;
    --transition:    all .2s ease;
}

/* ── Reset / Base ── */
*, *::before, *::after { box-sizing: border-box; }
body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: #1f2937;
    min-height: 100vh;
}

/* =========================================
   AUTH / LOGIN PAGE
   ========================================= */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, var(--accent) 100%);
    padding: 1rem;
}
.auth-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 440px;
    padding: 2.5rem 2rem;
}
.auth-logo {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.75rem;
    margin: 0 auto 1rem;
}
.auth-title { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.auth-sub   { font-size: .875rem; color: var(--text-muted); }

/* =========================================
   LAYOUT — SIDEBAR + NAVBAR
   ========================================= */
.layout-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ── Sidebar ── */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1040;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 2px; }

.sidebar-brand {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
    color: #fff;
    min-height: var(--navbar-height);
}
.sidebar-brand-icon {
    width: 38px; height: 38px;
    background: rgba(255,255,255,.15);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.sidebar-brand-text { line-height: 1.2; }
.sidebar-brand-text strong { font-size: .95rem; font-weight: 700; display: block; }
.sidebar-brand-text small  { font-size: .7rem; opacity: .7; }

.sidebar-nav { padding: .75rem 0; flex: 1; }
.sidebar-section {
    padding: .5rem 1.5rem .25rem;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    opacity: .5;
    margin-top: .5rem;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .625rem 1.5rem;
    color: rgba(255,255,255,.75);
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: var(--transition);
    position: relative;
}
.sidebar-link:hover,
.sidebar-link.active {
    color: #fff;
    background: rgba(255,255,255,.1);
    border-left-color: var(--accent);
}
.sidebar-link .icon {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.sidebar-badge {
    margin-left: auto;
    background: var(--accent);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    padding: .15rem .45rem;
    border-radius: 999px;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,.1);
}
.sidebar-user {
    display: flex; align-items: center; gap: .75rem;
    color: rgba(255,255,255,.8);
}
.sidebar-avatar {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--accent), var(--primary-light));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .875rem; font-weight: 700; color: #fff;
    flex-shrink: 0;
}
.sidebar-user-info { line-height: 1.3; overflow: hidden; }
.sidebar-user-info strong { font-size: .8rem; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-info span  { font-size: .7rem; opacity: .65; }

/* ── Top Navbar ── */
.topbar {
    height: var(--navbar-height);
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0; right: 0;
    left: var(--sidebar-width);
    z-index: 1030;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.topbar-toggle {
    background: none; border: none; padding: .375rem;
    color: #6b7280; cursor: pointer; border-radius: var(--radius-sm);
    display: none;
    font-size: 1.1rem;
}
.topbar-toggle:hover { background: var(--bg); color: var(--primary); }
.topbar-breadcrumb { flex: 1; }
.topbar-breadcrumb .breadcrumb { margin: 0; font-size: .8rem; }
.topbar-breadcrumb .breadcrumb-item a { color: var(--primary-light); text-decoration: none; }
.topbar-actions { display: flex; align-items: center; gap: .5rem; }

.topbar-btn {
    width: 38px; height: 38px;
    border-radius: var(--radius-sm);
    border: none;
    background: var(--bg);
    color: #6b7280;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1rem;
    position: relative;
    transition: var(--transition);
}
.topbar-btn:hover { background: #e5e7eb; color: var(--primary); }
.topbar-notif-dot {
    width: 8px; height: 8px;
    background: var(--danger);
    border-radius: 50%;
    position: absolute;
    top: 6px; right: 6px;
    border: 1.5px solid #fff;
}

/* ── Main Content ── */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--navbar-height);
    padding: 1.75rem;
    min-height: calc(100vh - var(--navbar-height));
    transition: var(--transition);
}

/* ── Page Header ── */
.page-header {
    margin-bottom: 1.5rem;
}
.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}
.page-subtitle { color: var(--text-muted); font-size: .875rem; margin: .25rem 0 0; }

/* =========================================
   CARDS
   ========================================= */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
}
.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: transparent;
    display: flex; align-items: center; justify-content: space-between;
    gap: .75rem;
}
.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}
.card-body { padding: 1.25rem; }
.card-footer {
    padding: .875rem 1.25rem;
    border-top: 1px solid var(--border);
    background: #fafafa;
}

/* ── Stat Cards ── */
.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    padding: 1.25rem;
    display: flex; align-items: center; gap: 1rem;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: inherit; }
.stat-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.stat-icon.blue   { background: #eff6ff; color: var(--primary-light); }
.stat-icon.green  { background: #ecfdf5; color: var(--success); }
.stat-icon.amber  { background: #fffbeb; color: var(--warning); }
.stat-icon.red    { background: #fef2f2; color: var(--danger); }
.stat-icon.cyan   { background: #ecfeff; color: var(--accent); }
.stat-info { flex: 1; min-width: 0; }
.stat-value { font-size: 1.5rem; font-weight: 700; color: #1f2937; line-height: 1.2; }
.stat-label { font-size: .8rem; color: var(--text-muted); margin-top: .15rem; }
.stat-change {
    font-size: .75rem; font-weight: 600;
    margin-top: .25rem;
    display: flex; align-items: center; gap: .2rem;
}
.stat-change.up   { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ── Paket Cards ── */
.paket-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
    overflow: hidden;
    display: flex; flex-direction: column;
    height: 100%;
}
.paket-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.paket-card.featured {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 2px rgba(59,130,246,.15), var(--shadow-md);
}
.paket-header {
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.paket-header::after {
    content: '';
    position: absolute;
    right: -20px; top: -20px;
    width: 100px; height: 100px;
    background: rgba(255,255,255,.08);
    border-radius: 50%;
}
.paket-header.green {
    background: linear-gradient(135deg, #065f46 0%, var(--success) 100%);
}
.paket-header.amber {
    background: linear-gradient(135deg, #92400e 0%, var(--warning) 100%);
}
.paket-badge {
    position: absolute;
    top: .75rem; right: .75rem;
    background: var(--accent);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    padding: .25rem .6rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .05em;
    z-index: 1;
}
.paket-name   { font-size: 1.1rem; font-weight: 700; margin-bottom: .25rem; }
.paket-price  { font-size: 1.75rem; font-weight: 800; line-height: 1; }
.paket-price span { font-size: .9rem; font-weight: 500; opacity: .8; }
.paket-body   { padding: 1.25rem; flex: 1; }
.paket-desc   { font-size: .875rem; color: var(--text-muted); margin-bottom: 1rem; }
.paket-features { list-style: none; padding: 0; margin: 0; }
.paket-features li {
    display: flex; align-items: flex-start; gap: .5rem;
    font-size: .85rem; color: #374151;
    padding: .3rem 0;
    border-bottom: 1px solid #f3f4f6;
}
.paket-features li:last-child { border-bottom: none; }
.paket-features li .check { color: var(--success); margin-top: 1px; flex-shrink: 0; }
.paket-footer { padding: 1rem 1.25rem; border-top: 1px solid var(--border); }
.kuota-badge {
    background: #eff6ff;
    color: var(--primary);
    font-size: .75rem;
    font-weight: 600;
    padding: .3rem .75rem;
    border-radius: 999px;
    display: inline-flex; align-items: center; gap: .35rem;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: inline-flex; align-items: center; gap: .4rem;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    color: #fff;
    box-shadow: 0 2px 8px rgba(30,58,138,.25);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    box-shadow: 0 4px 12px rgba(30,58,138,.35);
    transform: translateY(-1px);
}
.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
}
.btn-success {
    background: linear-gradient(135deg, #065f46, var(--success));
    border: none; color: #fff;
    box-shadow: 0 2px 8px rgba(16,185,129,.25);
}
.btn-success:hover {
    box-shadow: 0 4px 12px rgba(16,185,129,.35);
    transform: translateY(-1px);
    color: #fff;
}
.btn-accent {
    background: linear-gradient(135deg, #0891b2, var(--accent));
    border: none; color: #fff;
}
.btn-danger-soft {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--danger);
}
.btn-danger-soft:hover { background: var(--danger); color: #fff; }
.btn-lg { padding: .75rem 1.5rem; font-size: 1rem; }
.btn-sm { padding: .35rem .75rem; font-size: .8rem; }

/* =========================================
   FORMS
   ========================================= */
.form-control, .form-select {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .625rem .875rem;
    font-size: .9rem;
    transition: var(--transition);
    color: #1f2937;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59,130,246,.12);
    outline: none;
}
.form-label { font-size: .85rem; font-weight: 600; color: #374151; margin-bottom: .4rem; }
.input-group-text {
    background: var(--bg);
    border: 1.5px solid var(--border);
    color: var(--text-muted);
}
.form-control.is-invalid { border-color: var(--danger); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 3px rgba(239,68,68,.12); }
.invalid-feedback { font-size: .8rem; color: var(--danger); }

/* ── Quantity Input ── */
.qty-control {
    display: flex; align-items: center; gap: 0;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    width: fit-content;
}
.qty-btn {
    width: 36px; height: 36px;
    border: none; background: var(--bg);
    color: #374151; font-size: 1rem; font-weight: 700;
    cursor: pointer; transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: var(--primary); color: #fff; }
.qty-input {
    width: 60px; height: 36px;
    border: none; border-left: 1.5px solid var(--border); border-right: 1.5px solid var(--border);
    text-align: center; font-weight: 700; font-size: .9rem;
    outline: none;
}

/* =========================================
   BADGES / STATUS
   ========================================= */
.badge {
    font-weight: 600;
    border-radius: 999px;
    padding: .3rem .75rem;
    font-size: .72rem;
    letter-spacing: .02em;
}
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-info    { background: #e0f2fe; color: #075985; }
.badge-primary { background: #eff6ff; color: var(--primary); }
.badge-gray    { background: #f3f4f6; color: #4b5563; }

/* =========================================
   PAYMENT METHODS
   ========================================= */
.payment-method-card {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    background: #fff;
}
.payment-method-card:hover { border-color: var(--primary-light); background: #f8fbff; }
.payment-method-card.selected {
    border-color: var(--primary);
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(30,58,138,.08);
}
.payment-method-card input[type="radio"] { accent-color: var(--primary); }

.bank-option {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .875rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex; align-items: center; gap: .875rem;
    background: #fff;
}
.bank-option:hover { border-color: var(--primary-light); background: #f8fbff; }
.bank-option.selected { border-color: var(--primary); background: #eff6ff; }
.bank-logo {
    width: 56px; height: 32px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}
.bank-logo-placeholder {
    width: 56px; height: 32px;
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-size: .65rem; font-weight: 800;
    flex-shrink: 0;
}

.qris-container {
    background: #fff;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
}
.qris-code {
    width: 200px; height: 200px;
    background: linear-gradient(135deg, #1f2937 25%, transparent 25%) -20px 0,
                linear-gradient(225deg, #1f2937 25%, transparent 25%) -20px 0,
                linear-gradient(315deg, #1f2937 25%, transparent 25%),
                linear-gradient(45deg, #1f2937 25%, transparent 25%);
    background-size: 40px 40px;
    background-color: #f9fafb;
    border-radius: var(--radius-sm);
    margin: 0 auto 1rem;
    display: flex; align-items: center; justify-content: center;
    font-size: .75rem; color: #6b7280;
    border: 8px solid #fff;
    box-shadow: var(--shadow);
    position: relative;
}
.qris-inner {
    background: rgba(255,255,255,.9);
    border-radius: 4px;
    padding: .5rem .75rem;
    font-weight: 700; font-size: .8rem;
    color: var(--primary);
}

/* =========================================
   KERANJANG / CART
   ========================================= */
.cart-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex; align-items: flex-start; gap: 1rem;
    box-shadow: var(--shadow-sm);
}
.cart-item-icon {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: #fff;
    flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name  { font-weight: 700; font-size: .95rem; color: #1f2937; }
.cart-item-price { color: var(--text-muted); font-size: .85rem; }
.cart-summary {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.cart-summary-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: .75rem 1.25rem;
    font-size: .9rem;
    border-bottom: 1px solid var(--border);
}
.cart-summary-row:last-child { border-bottom: none; }
.cart-summary-total {
    font-weight: 700; font-size: 1.1rem;
    color: var(--primary);
    background: #eff6ff;
}

/* ── Empty State ── */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}
.empty-state-icon {
    width: 80px; height: 80px;
    background: var(--bg);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.25rem;
    color: #d1d5db;
}
.empty-state h5 { font-weight: 700; color: #374151; margin-bottom: .5rem; }
.empty-state p  { font-size: .875rem; max-width: 320px; margin: 0 auto 1.25rem; }

/* =========================================
   INVOICE / DETAIL PEMBAYARAN
   ========================================= */
.invoice-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    color: #fff;
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}
.invoice-header::before {
    content: '';
    position: absolute;
    right: -40px; top: -40px;
    width: 180px; height: 180px;
    background: rgba(255,255,255,.05);
    border-radius: 50%;
}
.invoice-header::after {
    content: '';
    position: absolute;
    left: -20px; bottom: -20px;
    width: 120px; height: 120px;
    background: rgba(255,255,255,.04);
    border-radius: 50%;
}
.invoice-no    { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.invoice-label { font-size: .8rem; opacity: .7; text-transform: uppercase; letter-spacing: .08em; }
.invoice-table { width: 100%; }
.invoice-table td { padding: .6rem .25rem; vertical-align: top; }
.invoice-table td:first-child { color: var(--text-muted); font-size: .85rem; width: 45%; }
.invoice-table td:last-child  { font-weight: 600; font-size: .9rem; color: #1f2937; }
.invoice-divider { border: none; border-top: 2px dashed var(--border); margin: 1rem 0; }
.status-timeline { list-style: none; padding: 0; margin: 0; }
.status-timeline li {
    display: flex; gap: .875rem;
    padding: .625rem 0;
    position: relative;
}
.status-timeline li:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 11px; top: 28px;
    width: 2px; height: calc(100% - 4px);
    background: var(--border);
}
.timeline-dot {
    width: 24px; height: 24px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .65rem;
    flex-shrink: 0;
    margin-top: 1px;
}
.timeline-dot.done    { background: var(--success); color: #fff; }
.timeline-dot.active  { background: var(--warning); color: #fff; }
.timeline-dot.pending { background: var(--border); color: #9ca3af; }
.timeline-content strong { font-size: .85rem; font-weight: 600; display: block; color: #1f2937; }
.timeline-content span   { font-size: .77rem; color: var(--text-muted); }

/* =========================================
   TABLE
   ========================================= */
.table-responsive { border-radius: var(--radius-sm); overflow: hidden; }
.table { margin: 0; font-size: .875rem; }
.table thead th {
    background: #f8fafc;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    padding: .875rem 1rem;
    white-space: nowrap;
}
.table tbody td {
    padding: .875rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
    color: #374151;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #fafbff; }

/* =========================================
   ALERTS
   ========================================= */
.alert {
    border: none;
    border-radius: var(--radius-sm);
    padding: .875rem 1.1rem;
    font-size: .875rem;
    display: flex; align-items: flex-start; gap: .625rem;
    box-shadow: var(--shadow-sm);
}
.alert-danger  { background: #fef2f2; color: #991b1b; border-left: 4px solid var(--danger); }
.alert-success { background: #f0fdf4; color: #166534; border-left: 4px solid var(--success); }
.alert-warning { background: #fffbeb; color: #92400e; border-left: 4px solid var(--warning); }
.alert-info    { background: #eff6ff; color: #1e40af; border-left: 4px solid var(--primary-light); }

/* =========================================
   FOOTER
   ========================================= */
.main-footer {
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 1rem 1.75rem;
    font-size: .8rem;
    color: var(--text-muted);
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 2rem;
    flex-wrap: wrap; gap: .5rem;
}
.main-footer a { color: var(--primary-light); text-decoration: none; }
.main-footer a:hover { text-decoration: underline; }

/* =========================================
   SIDEBAR OVERLAY (mobile)
   ========================================= */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1039;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .sidebar-overlay.open { display: block; }
    .topbar {
        left: 0;
    }
    .topbar-toggle { display: flex; }
    .main-content  { margin-left: 0; }
    .main-footer   { margin-left: 0; }
}

@media (max-width: 575.98px) {
    .main-content { padding: 1rem; }
    .page-title   { font-size: 1.25rem; }
    .paket-price  { font-size: 1.4rem; }
    .invoice-header { padding: 1.25rem; }
    .invoice-no   { font-size: 1.2rem; }
    .auth-card    { padding: 1.75rem 1.25rem; }
}

/* ── Utility ── */
.text-primary  { color: var(--primary) !important; }
.text-accent   { color: var(--accent) !important; }
.bg-primary-soft { background: #eff6ff !important; }
.rounded-xl { border-radius: var(--radius-lg) !important; }
.gap-3 { gap: .75rem !important; }
.fw-700 { font-weight: 700 !important; }
.font-mono { font-family: 'JetBrains Mono', 'Fira Code', monospace !important; }
.transition { transition: var(--transition); }
