/* ==========================================================================
   cleanup.css — versi rapi dari CSS lama (duplikat dihapus, konflik diselesaikan)
   Nilai = deklarasi terakhir yang menang di file lama → tampilan tidak berubah.
   Jangan ubah nama selector: dipakai oleh komponen Vue.
   ========================================================================== */

:root {
  --brand: #ff30a5;
  --brand-2: #ff85d8;
  --brand-3: #ff6b6b;
  --purple: #667eea;
  --purple-2: #764ba2;
  --ink: #2d3748;
  --muted: #718096;
  --line: #e2e8f0;
  --line-2: #e9ecef;
  --bg-soft: #f8f9fa;
  --bg-grad: linear-gradient(135deg, #f5f7fa 0%, #f8f9fa 100%);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 24px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.05);
  --shadow-md: 0 4px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 30px rgba(0,0,0,.12);
  --shadow-brand: 0 4px 12px rgba(255,48,165,.3);
  --ease: cubic-bezier(.4,0,.2,1);
}

/* ==========================================================================
   1. TRANSACTION
   ========================================================================== */
.transaction-container {
  padding: 20px;
  background: var(--bg-grad);
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Status filter */
.status-filter-wrapper { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.status-btn {
  padding: 8px 20px;
  border-radius: 20px !important;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all .3s var(--ease);
}
.status-btn.active { transform: scale(1.05); box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.status-secondary { background: #6c757d; color: #fff; }
.status-warning   { background: #ffc107; color: #212529; }
.status-success   { background: #28a745; color: #fff; }
.status-danger    { background: #dc3545; color: #fff; }
.status-info      { background: #17a2b8; color: #fff; }
.status-dark      { background: #343a40; color: #fff; }

/* Search (nilai final: radius 8px, padding 10/35/10/40) */
.search-wrapper { margin-bottom: 20px; }
.search-box { position: relative; max-width: 400px; }
.search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: #999; font-size: 16px;
}
.search-input {
  width: 100%;
  padding: 10px 35px 10px 40px;
  border: 1px solid #ddd;
  border-radius: var(--r-sm);
  font-size: 14px;
  transition: all .3s var(--ease);
  background: #fff;
}
.search-input:focus { outline: none; border-color: #007bff; box-shadow: 0 0 0 3px rgba(0,123,255,.1); }
.clear-search {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: #999; cursor: pointer; font-size: 14px; transition: color .3s var(--ease);
}
.clear-search:hover { color: #dc3545; }

/* Loading & empty (nilai final: text-align center, radius 20px) */
.loading-wrapper { text-align: center; padding: 60px 20px; min-height: 400px; }
.spinner-wrapper { text-align: center; }
.spinner-border { width: 40px; height: 40px; color: #007bff; }
.loading-text { margin-top: 15px; color: #666; font-size: 14px; }

.empty-state { text-align: center; padding: 60px 20px; background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-sm); }
.empty-icon { font-size: 64px; color: #ccc; margin-bottom: 20px; }
.empty-text { font-size: 18px; color: #4a5568; margin-bottom: 10px; }
.empty-subtext { font-size: 14px; color: #a0aec0; margin-bottom: 8px; }

/* Table */
.table-wrapper { overflow-x: auto; background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.transaction-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.transaction-table thead { background: var(--bg-soft); }
.transaction-table thead th { padding: 12px; text-align: left; font-weight: 600; color: #333; border-bottom: 2px solid var(--line-2); }
.transaction-table td { padding: 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.transaction-row { transition: background .2s var(--ease); }
.transaction-row:hover { background: var(--bg-soft); }
.row-number { font-weight: 500; color: #666; }
.transaction-code { font-family: 'Courier New', monospace; font-weight: 600; color: #007bff; font-size: 13px; }

/* Proof image */
.proof-image { position: relative; display: inline-block; }
.thumbnail-img { width: 50px; height: 50px; object-fit: cover; border-radius: var(--r-sm); cursor: pointer; transition: transform .3s var(--ease); }
.thumbnail-img:hover { transform: scale(1.05); }
.thumbnail-sm { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.image-link { position: relative; display: inline-block; }
.view-link {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,.7); color: #fff; font-size: 10px; text-align: center;
  padding: 2px; border-radius: 0 0 var(--r-sm) var(--r-sm);
  opacity: 0; transition: opacity .3s var(--ease);
}
.image-link:hover .view-link { opacity: 1; }

/* Upload buttons (nilai final: padding 6/12, shopee #ee4d2d) */
.btn-upload { padding: 6px 12px; border: none; border-radius: 6px; font-size: 12px; cursor: pointer; transition: all .3s var(--ease); }
.btn-upload:hover { transform: translateY(-2px); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.btn-upload-bank   { background: #007bff; color: #fff; }
.btn-upload-shopee { background: #ee4d2d; color: #fff; }

.amount { font-weight: 600; color: #28a745; }
.date { color: #666; font-size: 12px; }

/* Status badge (nilai final: padding 4/12, radius 20px) */
.status-badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; text-transform: capitalize; }
.status-badge.status-warning   { background: #fff3cd; color: #856404; }
.status-badge.status-success   { background: #d4edda; color: #155724; }
.status-badge.status-danger    { background: #f8d7da; color: #721c24; }
.status-badge.status-info      { background: #d1ecf1; color: #0c5460; }
.status-badge.status-dark      { background: #d6d8d9; color: #1b1e21; }
.status-badge.status-secondary { background: #e2e3e5; color: #383d41; }
.status-diproses        { background: #fff3cd; color: #856404; }
.status-diterima        { background: #d4edda; color: #155724; }
.status-ditolak         { background: #f8d7da; color: #721c24; }
.status-belum-dibayar   { background: #d1ecf1; color: #0c5460; }
.status-kadarluasa      { background: #e2e3e5; color: #383d41; }

/* Action buttons (nilai final: radius 6px) */
.action-buttons { display: flex; gap: 8px; }
.btn-action { width: 32px; height: 32px; border: none; border-radius: 6px; cursor: pointer; transition: all .3s var(--ease); display: inline-flex; align-items: center; justify-content: center; }
.btn-action i { font-size: 14px; }
.btn-action:hover { transform: translateY(-2px); }
.btn-detail      { background: #17a2b8; color: #fff; }
.btn-angsuran    { background: #ffc107; color: #212529; }
.btn-add-angsuran{ background: #28a745; color: #fff; }

/* Angsuran (nilai final: padding 10, header kuning) */
.angsuran-row { background: #f9f9f9; }
.angsuran-wrapper { padding: 15px; }
.angsuran-header { font-weight: 600; margin-bottom: 10px; color: #ffc107; font-size: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--line-2); }
.angsuran-header i { margin-right: 8px; }
.angsuran-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r-sm); overflow: hidden; }
.angsuran-table th, .angsuran-table td { padding: 10px; text-align: left; border-bottom: 1px solid var(--line-2); }
.angsuran-table th { background: var(--bg-soft); font-weight: 600; font-size: 13px; color: #495057; }

/* Pagination (nilai final: flex + 36px kotak) */
.pagination-wrapper { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding-top: 20px; flex-wrap: wrap; gap: 15px; border-top: 1px solid var(--line-2); }
.pagination-info { color: #666; font-size: 14px; }
.pagination-custom { display: flex; list-style: none; gap: 5px; margin: 0; padding: 0; }
.pagination-custom li { display: inline-block; }
.pagination-custom li a, .pagination-custom li span {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0 8px;
  border: 1px solid #dee2e6; border-radius: 6px;
  color: #007bff; text-decoration: none; font-size: 14px;
  transition: all .3s var(--ease);
}
.pagination-custom li.active a { background: #007bff; color: #fff; border-color: #007bff; }
.pagination-custom li.disabled a, .pagination-custom li.disabled span { color: #ccc; cursor: not-allowed; }
.pagination-custom li:not(.disabled):not(.active) a:hover { background: var(--line-2); }

/* Modal (nilai final: header pakai gradient brand pink) */
.modern-modal { border-radius: var(--r-lg); overflow: hidden; border: none; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal-header-primary { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%); color: #fff; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; }
.modal-header-primary .close { color: #fff; opacity: .8; }
.modal-header-primary .close:hover { opacity: 1; }
.modal-header-primary .modal-title { color: #fff; }
.modal-header-primary .modal-title i { margin-right: 8px; }
.modal-header-success { background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%); color: #155724; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; }
.modal-header-warning { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); color: #856404; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; }
.close-btn { background: none; border: none; color: inherit; font-size: 20px; cursor: pointer; opacity: .8; transition: opacity .3s var(--ease); }
.close-btn:hover { opacity: 1; }
.modal-body { padding: 24px; background: var(--bg-soft); }
.modal-footer { padding: 16px 24px; background: #fff; border-top: 1px solid var(--line-2); display: flex; gap: 12px; justify-content: flex-end; }

/* Info grid (nilai final: gap 15px) */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; }
.info-item { display: flex; flex-direction: column; margin-bottom: 12px; }
.info-item.full-width { grid-column: 1 / -1; }
.info-item label { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.info-label { font-size: 12px; color: #666; margin-bottom: 5px; font-weight: 500; }
.info-value { font-size: 14px; color: #2d3748; font-weight: 500; }
.transaction-info-card { background: var(--bg-soft); border-radius: var(--r-md); padding: 20px; margin-bottom: 20px; }

/* Sub transaksi */
.sub-transactions { display: flex; flex-direction: column; gap: 20px; }
.sub-card { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.sub-header { background: var(--bg-soft); padding: 12px 15px; font-weight: 600; color: #495057; border-bottom: 1px solid var(--line-2); }
.sub-header i { margin-right: 8px; color: #17a2b8; }
.sub-body { padding: 15px; }
.shipping-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--line-2); }
.shipping-item { display: flex; flex-direction: column; }
.shipping-label { font-size: 12px; color: #666; margin-bottom: 4px; display: block; }
.shipping-value { font-size: 14px; color: #333; font-weight: 500; }

/* Produk dalam modal */
.products-table-wrapper { overflow-x: auto; }
.products-table { width: 100%; border-collapse: collapse; }
.products-table th { background: var(--bg-soft); padding: 12px; font-size: 13px; font-weight: 600; color: #495057; text-align: left; }
.products-table td { padding: 12px; border-top: 1px solid var(--line-2); }
.product-info-modern { display: flex; align-items: center; gap: 12px; }
.product-image img { width: 60px; height: 60px; object-fit: cover; border-radius: var(--r-sm); }
.product-details { flex: 1; }
.product-name { font-weight: 600; margin-bottom: 4px; color: #212529; }
.product-variant { font-size: 12px; color: #6c757d; margin-bottom: 2px; }
.product-qty { font-size: 12px; color: #007bff; font-weight: 500; }

/* Form (nilai final: border 1px, radius 6px) */
.form-group-custom { margin-bottom: 15px; }
.form-group-custom label { display: block; margin-bottom: 5px; font-weight: 500; color: #333; font-size: 14px; }
.input-custom { width: 100%; padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; transition: all .3s var(--ease); }
.input-custom:focus { outline: none; border-color: #007bff; box-shadow: 0 0 0 3px rgba(0,123,255,.1); }
.input-custom[readonly] { background: var(--line-2); cursor: not-allowed; }

/* Upload (nilai final: flex) */
.upload-options { display: flex; gap: 15px; margin-bottom: 20px; }
.upload-option { flex: 1; text-align: center; padding: 20px; border: 2px dashed #ccc; border-radius: var(--r-md); cursor: pointer; transition: all .3s var(--ease); background: #fff; }
.upload-option:hover { border-color: #007bff; background: var(--bg-soft); transform: translateY(-2px); }
.upload-option i { font-size: 32px; color: #007bff; margin-bottom: 10px; display: block; }
.upload-option span { font-size: 12px; color: #666; }
.preview-image { text-align: center; margin-bottom: 20px; }
.preview-image img { max-width: 100%; max-height: 200px; border-radius: var(--r-sm); box-shadow: 0 2px 8px rgba(0,0,0,.1); }

.upload-tabs { display: flex; gap: 10px; margin-bottom: 20px; border-bottom: 1px solid #dee2e6; }
.tab-btn { padding: 8px 16px; background: none; border: none; font-size: 14px; font-weight: 500; color: #666; cursor: pointer; transition: all .3s var(--ease); position: relative; }
.tab-btn.active { color: #007bff; }
.tab-btn.active::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: #007bff; }

.uploading-state { position: relative; }
.uploading-overlay {
  position: absolute; inset: 0; background: rgba(255,255,255,.9);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 10; border-radius: var(--r-md);
}
.uploading-overlay .spinner-border { width: 40px; height: 40px; margin-bottom: 16px; }
.uploading-overlay p { color: #666; font-size: 14px; }

.alert-custom { padding: 12px 16px; border-radius: var(--r-sm); margin-top: 15px; }
.alert-info { background: #d1ecf1; color: #0c5460; border-left: 4px solid #17a2b8; }
.alert-custom i { margin-right: 8px; }

/* Tombol custom (nilai final: radius 6px; .btn-primary gradient pink) */
.btn-custom { padding: 8px 20px; border: none; border-radius: 6px; cursor: pointer; font-size: 14px; font-weight: 500; transition: all .3s var(--ease); }
.btn-custom i { margin-right: 8px; }
.btn-custom:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary   { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%); color: #fff; }
.btn-primary:hover   { transform: translateY(-2px); box-shadow: var(--shadow-brand); }
.btn-success   { background: #28a745; color: #fff; }
.btn-success:hover   { background: #1e7e34; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(40,167,69,.3); }
.btn-warning   { background: #ffc107; color: #212529; }
.btn-warning:hover   { background: #e0a800; transform: translateY(-2px); }
.btn-secondary { background: #6c757d; color: #fff; }
.btn-secondary:hover { background: #5a6268; transform: translateY(-2px); }

/* Utility */
.hidden { display: none; }
.text-muted { color: #6c757d; }
.opacity-50 { opacity: .5; }
.pointer-events-none { pointer-events: none; }

/* ==========================================================================
   2. ADDRESS
   ========================================================================== */
.address-container { padding: 24px; background: var(--bg-grad); min-height: 100vh; }
.header-actions { margin-bottom: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.btn-modern {
  padding: 12px 24px; border-radius: var(--r-md) !important; font-weight: 600;
  transition: all .3s var(--ease); border: none !important;
  display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 2px 4px rgba(0,0,0,.1);
}
.btn-modern i { font-size: 16px; }
.btn-modern:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.btn-modern:active { transform: translateY(0); }
.btn-primary-modern { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-3) 100%); color: #fff; }
.btn-primary-modern:hover { background: linear-gradient(135deg, #ff1493 0%, #ff4fc3 100%); box-shadow: 0 6px 20px rgba(255,48,165,.4); }
.btn-secondary-modern { background: var(--line); color: #4a5568; }
.btn-secondary-modern:hover { background: #cbd5e0; }

.loading-modern { text-align: center; padding: 80px 20px; background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-md); }
.spinner-modern {
  width: 48px; height: 48px; border: 3px solid var(--line); border-top-color: var(--purple);
  border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 16px;
}
.loading-text-modern { color: #4a5568; font-size: 14px; font-weight: 500; }

.empty-state-modern { text-align: center; padding: 80px 20px; background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-md); }
.empty-icon-modern { font-size: 80px; color: #cbd5e0; margin-bottom: 20px; }
.empty-text-modern { font-size: 18px; color: #4a5568; margin-bottom: 8px; }
.empty-subtext-modern { font-size: 14px; color: #a0aec0; }

.table-wrapper-modern { background: #fff; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-md); margin-bottom: 24px; }
.address-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.address-table thead th { background: #f7fafc; padding: 16px 20px; font-size: 13px; font-weight: 600; color: #4a5568; text-transform: uppercase; letter-spacing: .5px; border-bottom: 2px solid var(--line); }
.address-table tbody tr { transition: all .2s var(--ease); cursor: pointer; animation: fadeInUp .3s ease-out; }
.address-table tbody tr:hover { background: #f7fafc; transform: scale(1.01); box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.address-table td { padding: 16px 20px; vertical-align: middle; border-bottom: 1px solid #edf2f7; }
.row-number-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(135deg, #ff1493 0%, #ff4fc3 100%);
  color: #fff; font-size: 12px; font-weight: 600;
}
.address-cell { max-width: 300px; }
.address-text { font-size: 13px; line-height: 1.5; color: var(--ink); margin-bottom: 4px; }
.address-detail { font-size: 11px; color: #a0aec0; }
.phone-cell { font-family: 'Courier New', monospace; font-size: 13px; font-weight: 500; color: var(--ink); }

.status-badge-modern { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 30px; font-size: 12px; font-weight: 600; text-transform: capitalize; }
.status-badge-modern i { font-size: 12px; }
.status-active   { background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%); color: #064e3b; }
.status-inactive { background: var(--line); color: #4a5568; }

.action-group { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-action-modern { width: 36px; height: 36px; border: none; border-radius: 10px; cursor: pointer; transition: all .2s var(--ease); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.btn-action-modern:hover { transform: translateY(-2px); }
.btn-edit-modern     { background: linear-gradient(135deg, var(--purple) 0%, var(--purple-2) 100%); color: #fff; }
.btn-edit-modern:hover { box-shadow: 0 4px 12px rgba(102,126,234,.4); }
.btn-delete-modern   { background: linear-gradient(135deg, #f56565 0%, #ed8936 100%); color: #fff; }
.btn-delete-modern:hover { box-shadow: 0 4px 12px rgba(245,101,101,.4); }
.btn-activate-modern { background: linear-gradient(135deg, #48bb78 0%, #38b2ac 100%); color: #fff; padding: 6px 14px; border-radius: 10px; font-size: 12px; font-weight: 500; border: none; transition: all .2s var(--ease); }
.btn-activate-modern:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(72,187,120,.4); }

.pagination-modern { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 20px; }
.pagination-info-modern { color: var(--muted); font-size: 14px; }
.pagination-controls-modern { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pagination-controls-modern li a, .pagination-controls-modern li span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: var(--r-md); font-size: 14px; font-weight: 500;
  color: #4a5568; text-decoration: none; transition: all .2s var(--ease);
  background: #fff; border: 1px solid var(--line);
}
.pagination-controls-modern li a:hover { background: #f7fafc; transform: translateY(-2px); border-color: var(--purple); color: var(--purple); }
.pagination-controls-modern li.active a { background: linear-gradient(135deg, var(--purple) 0%, var(--purple-2) 100%); color: #fff; border-color: transparent; }
.pagination-controls-modern li.disabled a, .pagination-controls-modern li.disabled span { opacity: .5; cursor: not-allowed; }

.modal-modern .modal-content { border-radius: var(--r-2xl); border: none; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal-header-modern { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%); padding: 20px 28px; border: none; }
.modal-header-modern .modal-title { color: #fff; font-weight: 600; font-size: 18px; }
.modal-header-modern .modal-title i { margin-right: 10px; }
.modal-header-modern .close { color: #fff; opacity: .8; text-shadow: none; }
.modal-header-modern .close:hover { opacity: 1; }
.modal-body-modern { padding: 28px; background: #f8fafc; }
.modal-footer-modern { padding: 20px 28px; background: #fff; border-top: 1px solid var(--line); display: flex; gap: 12px; justify-content: flex-end; }

.form-modern { background: #fff; border-radius: var(--r-lg); padding: 20px; }
.form-group-modern { margin-bottom: 20px; animation: fadeInUp .4s ease-out both; }
.form-group-modern label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
.required-star { color: #f56565; margin-left: 4px; }
.label-icon { margin-right: 6px; font-size: 12px; color: var(--purple); }
.form-group-modern:nth-child(1) { animation-delay: .05s; }
.form-group-modern:nth-child(2) { animation-delay: .1s; }
.form-group-modern:nth-child(3) { animation-delay: .15s; }
.form-group-modern:nth-child(4) { animation-delay: .2s; }
.form-group-modern:nth-child(5) { animation-delay: .25s; }
.form-group-modern:nth-child(6) { animation-delay: .3s; }
.form-group-modern:nth-child(7) { animation-delay: .35s; }

.input-modern, .select-modern, .textarea-modern {
  width: 100%; padding: 12px 16px; border: 2px solid var(--line); border-radius: var(--r-md);
  font-size: 14px; transition: all .3s var(--ease); background: #fff; font-family: inherit;
}
.input-modern:focus, .select-modern:focus, .textarea-modern:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(102,126,234,.1); }
.input-modern:read-only, .input-modern[readonly], .input-modern:disabled, .select-modern:disabled { background: #f7fafc; cursor: not-allowed; border-color: var(--line); }
.textarea-modern { resize: vertical; min-height: 100px; }
.input-error { border-color: #f56565; }
.input-error:focus { border-color: #f56565; box-shadow: 0 0 0 3px rgba(245,101,101,.1); }
.error-message { margin-top: 6px; font-size: 12px; color: #f56565; }
.helper-text { margin-top: 6px; font-size: 11px; color: #a0aec0; }

.alert-modern { padding: 14px 20px; border-radius: var(--r-md); margin-top: 20px; border-left: 4px solid; }
.alert-info-modern { background: #ebf8ff; color: #2c5282; border-left-color: #3182ce; }
.alert-danger-modern { background: #fff5f5; color: #c53030; border-left-color: #e53e3e; }
.alert-modern i { margin-right: 10px; }

.modal-overlay-modern { position: absolute; inset: 0; background: rgba(255,255,255,.95); z-index: 10; display: flex; align-items: center; justify-content: center; border-radius: var(--r-2xl); }
.overlay-content { text-align: center; }
.overlay-spinner { width: 48px; height: 48px; border: 3px solid var(--line); border-top-color: var(--purple); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 16px; }
.overlay-text { color: #4a5568; font-size: 14px; font-weight: 500; }

/* Select2 di form alamat */
.select2-modern { width: 100% !important; }
.select2-container--default .select2-selection--single { height: 48px !important; border: 2px solid var(--line) !important; border-radius: var(--r-md) !important; padding: 8px 12px !important; transition: all .3s var(--ease) !important; }
.select2-container--default .select2-selection--single:hover { border-color: #cbd5e0 !important; }
.select2-container--default.select2-container--open .select2-selection--single { border-color: var(--purple) !important; box-shadow: 0 0 0 3px rgba(102,126,234,.1) !important; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 28px !important; color: var(--ink) !important; font-size: 14px !important; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px !important; right: 12px !important; }
.select2-dropdown { border: 2px solid var(--line) !important; border-radius: var(--r-md) !important; overflow: hidden !important; box-shadow: 0 4px 12px rgba(0,0,0,.1) !important; }
.select2-results__option { padding: 10px 16px !important; font-size: 14px !important; }
.select2-results__option--highlighted { background: linear-gradient(135deg, var(--purple) 0%, var(--purple-2) 100%) !important; }

/* ==========================================================================
   3. BANK
   ========================================================================== */
.bank-container { padding: 24px; background: var(--bg-grad); min-height: 100vh; }
.panel-modern { background: #fff; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-md); border: none; }
.panel-header-modern { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%); padding: 24px 28px; border-bottom: none; }
.panel-header-modern h3 { margin: 0; color: #fff; font-weight: 600; font-size: 24px; }
.panel-header-modern h3 i { margin-right: 12px; }
.panel-header-modern h3 strong { font-weight: 700; }
.panel-body-modern { padding: 28px; }

.bank-card { background: #fff; border-radius: var(--r-lg); margin-bottom: 20px; transition: all .3s var(--ease); cursor: pointer; position: relative; overflow: hidden; border: 1px solid var(--line); animation: fadeInUp .4s ease-out both; }
.bank-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #cbd5e0; }
.bank-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--purple), var(--purple-2)); transform: scaleX(0); transition: transform .3s var(--ease); }
.bank-card:hover::before { transform: scaleX(1); }
.bank-card-last { margin-bottom: 0; }
.bank-card:nth-child(1) { animation-delay: .1s; }
.bank-card:nth-child(2) { animation-delay: .2s; }
.bank-card:nth-child(3) { animation-delay: .3s; }
.bank-card:nth-child(4) { animation-delay: .4s; }

.bank-media { display: flex; align-items: center; padding: 20px; gap: 20px; flex-wrap: wrap; }
.bank-logo-wrapper { flex-shrink: 0; position: relative; }
.bank-logo { width: 80px; height: 80px; object-fit: contain; transition: all .3s var(--ease); filter: drop-shadow(0 2px 4px rgba(0,0,0,.1)); }
.bank-card:hover .bank-logo { transform: scale(1.05); }
.bank-info { flex: 1; }
.bank-account-number { font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 8px; font-family: 'Courier New', monospace; letter-spacing: 1px; }
.bank-account-name { font-size: 16px; color: #4a5568; margin-bottom: 12px; }
.bank-account-name strong { color: var(--purple); font-weight: 600; }

.copy-button { background: linear-gradient(135deg, #ff1493 0%, #ff4fc3 100%); color: #fff; border: none; padding: 8px 16px; border-radius: 10px; font-size: 12px; font-weight: 500; cursor: pointer; transition: all .2s var(--ease); display: inline-flex; align-items: center; gap: 6px; }
.copy-button:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(102,126,234,.4); }
.copy-success { background: linear-gradient(135deg, #48bb78 0%, #38b2ac 100%); }
.bank-actions { flex-shrink: 0; }
.qr-button { background: #f7fafc; border: 2px solid var(--line); padding: 10px 16px; border-radius: var(--r-md); font-size: 13px; font-weight: 500; color: #4a5568; cursor: pointer; transition: all .2s var(--ease); display: inline-flex; align-items: center; gap: 8px; }
.qr-button i { font-size: 16px; color: var(--purple); }
.qr-button:hover { background: #fff; border-color: var(--purple); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(102,126,234,.2); }

.qr-modal .modal-content { border-radius: var(--r-2xl); border: none; overflow: hidden; }
.qr-modal-header { background: linear-gradient(135deg, var(--purple) 0%, var(--purple-2) 100%); padding: 20px 24px; border: none; }
.qr-modal-header .modal-title { color: #fff; font-weight: 600; font-size: 18px; }
.qr-modal-header .close { color: #fff; opacity: .8; text-shadow: none; }
.qr-modal-body { padding: 32px; text-align: center; background: #f8fafc; }
.qr-code-wrapper { background: #fff; padding: 24px; border-radius: var(--r-xl); display: inline-block; margin-bottom: 20px; box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.qr-code { max-width: 200px; height: auto; }
.qr-bank-name { font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.qr-account-number { font-size: 16px; color: var(--purple); font-family: 'Courier New', monospace; font-weight: 600; margin-bottom: 16px; }
.qr-footer { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.qr-footer p { color: var(--muted); font-size: 13px; margin: 0; }
.qr-footer i { color: #f56565; }

.bank-loading, .bank-empty { text-align: center; padding: 60px 20px; background: #fff; border-radius: var(--r-xl); }
.loading-spinner { width: 50px; height: 50px; border: 3px solid var(--line); border-top-color: var(--purple); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 16px; }

.toast-notification { position: fixed; bottom: 24px; right: 24px; background: #48bb78; color: #fff; padding: 12px 20px; border-radius: var(--r-md); font-size: 14px; font-weight: 500; z-index: 9999; animation: slideInRight .3s ease; box-shadow: 0 4px 12px rgba(0,0,0,.15); display: flex; align-items: center; gap: 10px; }

/* ==========================================================================
   4. PROFILE
   ========================================================================== */
.profile-container { padding: 24px; background: var(--bg-grad); min-height: 100vh; }
.profile-card { background: #fff; border-radius: var(--r-2xl); overflow: hidden; box-shadow: var(--shadow-md); }
.profile-header { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%); padding: 28px 32px; border-bottom: none; }
.profile-header h3 { margin: 0; color: #fff; font-weight: 600; font-size: 24px; }
.profile-header h3 i { margin-right: 12px; }
.profile-header h3 strong { font-weight: 700; }
.profile-body { padding: 32px; }

.profile-form { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.full-width { grid-column: 1 / -1; }
.form-actions { margin-top: 32px; display: flex; justify-content: flex-end; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); }

/* .alert-modern sudah didefinisikan di atas; tambahan varian profil */
.alert-modern.alert-success { background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%); color: #064e3b; }
.alert-modern.alert-danger  { background: linear-gradient(135deg, #f56565 0%, #ed8936 100%); color: #7b1f1f; }
.alert-modern.alert-warning { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); color: #7c5c10; }
.alert-modern.alert-info    { background: linear-gradient(135deg, #a0c4ff 0%, #c0e0ff 100%); color: #1e3a8a; }
.alert-modern { display: flex; align-items: center; gap: 12px; animation: slideInDown .3s ease; }
.alert-modern i { font-size: 20px; }

.loading-overlay { position: relative; min-height: 400px; }
.loading-overlay::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.9); z-index: 10; display: flex; align-items: center; justify-content: center; }
.loading-spinner-modern { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); text-align: center; z-index: 11; }

.info-card { background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%); border-radius: var(--r-lg); padding: 20px; margin-bottom: 24px; border-left: 4px solid var(--purple); }
.info-card p { margin: 0; color: #4a5568; font-size: 13px; }
.info-card i { color: var(--purple); margin-right: 8px; }

/* ==========================================================================
   5. DASHBOARD
   ========================================================================== */
.dashboard-container { padding: 24px; background: var(--bg-grad); min-height: 100vh; }
.dashboard-card, .dashboard-sidebar, .dashboard-content { background: #fff; border-radius: var(--r-2xl); overflow: hidden; box-shadow: var(--shadow-md); }
.dashboard-sidebar { height: 100%; }
.sidebar-header { background: linear-gradient(135deg, var(--brand) 0%, var(--purple-2) 100%); padding: 24px 20px; text-align: center; border-bottom: none; }
.sidebar-header h4 { margin: 0; color: #fff; font-weight: 600; font-size: 18px; }
.sidebar-header i { font-size: 32px; margin-bottom: 12px; display: block; }

.menu-modern { list-style: none; margin: 0; padding: 12px 0; }
.menu-modern li a { display: flex; align-items: center; gap: 12px; padding: 14px 24px; color: #4a5568; text-decoration: none; font-size: 14px; font-weight: 500; transition: all .3s var(--ease); border-left: 3px solid transparent; }
.menu-modern li a i { width: 20px; font-size: 16px; color: #a0aec0; transition: all .3s var(--ease); }
.menu-modern li a:hover { background: #f7fafc; color: var(--purple); padding-left: 28px; }
.menu-modern li a:hover i { color: var(--purple); }
.menu-modern li.active a { background: linear-gradient(90deg, #f0e6ff 0%, #fff 100%); color: var(--purple); border-left-color: var(--purple); }
.menu-modern li.active a i { color: var(--purple); }

.mobile-menu-btn { width: 100%; padding: 14px 20px; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%); border: none; color: #fff; font-size: 16px; font-weight: 600; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; transition: all .3s var(--ease); }
.mobile-menu-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(102,126,234,.4); }
.mobile-menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 999; animation: fadeIn .3s ease; }
.mobile-menu-panel { position: fixed; top: 0; left: 0; bottom: 0; width: 280px; background: #fff; z-index: 1000; box-shadow: 2px 0 12px rgba(0,0,0,.15); transform: translateX(-100%); transition: transform .3s var(--ease); overflow-y: auto; }
.mobile-menu-panel.show { transform: translateX(0); }
.mobile-menu-header { background: linear-gradient(135deg, var(--purple) 0%, var(--purple-2) 100%); padding: 24px 20px; display: flex; justify-content: space-between; align-items: center; }
.mobile-menu-header h4 { margin: 0; color: #fff; font-weight: 600; }
.mobile-menu-close { background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; opacity: .8; transition: opacity .3s var(--ease); }
.mobile-menu-close:hover { opacity: 1; }
.mobile-menu-panel::-webkit-scrollbar { width: 4px; }
.mobile-menu-panel::-webkit-scrollbar-track { background: #f1f1f1; }
.mobile-menu-panel::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 4px; }

.content-header { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%); padding: 20px 28px; border-bottom: none; }
.content-header h3 { margin: 0; color: #fff; font-weight: 600; font-size: 20px; }
.content-header h3 i { margin-right: 10px; }
.content-body { padding: 28px; }
.dashboard-content { min-height: 500px; }
.tab-pane { animation: slideInRight .3s ease-out; }

/* ==========================================================================
   6. LOGIN
   ========================================================================== */
.login-page, .login-page-modern { font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Barlow', sans-serif; }
.login-page-modern {
  min-height: 100vh; background: linear-gradient(135deg, var(--purple) 0%, var(--purple-2) 100%);
  display: flex; align-items: center; justify-content: center; padding: 20px; font-size: 18px;
}
.login-page .input-modern { height: 52px; font-size: 16px; }
.login-page .form-group-modern label { font-weight: 600; color: #4a5568; margin-bottom: 8px; }
.login-container-modern { width: 100%; max-width: 1200px; margin: 0 auto; }
.login-card-modern { display: flex; background: #fff; border-radius: 32px; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.login-card-modern:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -12px rgba(0,0,0,.3); }
.login-left-modern { flex: 1; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-3) 100%); padding: 48px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.login-left-modern::before { content: ''; position: absolute; top: -50%; right: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,.1) 0%, rgba(255,255,255,0) 70%); animation: pulse 4s ease-in-out infinite; }
.login-brand-modern { position: relative; z-index: 1; text-align: center; color: #fff; }
.login-logo-modern { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin-bottom: 32px; box-shadow: 0 10px 25px rgba(0,0,0,.2); border: 3px solid rgba(255,255,255,.3); animation: fadeInUp .6s ease-out; }
.login-title-modern { font-size: 2.8rem; font-weight: 700; margin-bottom: 20px; line-height: 1.2; animation: fadeInUp .6s ease-out .1s both; }
.login-subtitle-modern { font-size: 1.1rem; line-height: 1.6; opacity: .95; margin-bottom: 40px; animation: fadeInUp .6s ease-out .2s both; }
.login-features-modern { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; animation: fadeInUp .6s ease-out .3s both; }
.feature-item { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: .95rem; }
.feature-item i { font-size: 1.6rem; font-weight: 400; }
.login-right-modern { flex: 1; padding: 48px; background: #fff; display: flex; align-items: center; }
.login-form-container { width: 100%; max-width: 400px; margin: 0 auto; }
.login-header-modern { margin-bottom: 40px; text-align: center; animation: fadeInUp .6s ease-out; }
.login-header-modern h2 { font-size: 2.2rem; font-weight: 700; margin-bottom: 12px; background: linear-gradient(135deg, var(--brand), var(--brand-3)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.login-header-modern p { font-size: 1rem; color: var(--muted); }
.login-form-modern { animation: fadeInUp .6s ease-out .1s both; }
.input-group-modern { margin-bottom: 28px; }
.input-label-modern { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 600; color: #4a5568; margin-bottom: 10px; }
.input-label-modern i { color: var(--brand); font-size: 1rem; }
.input-field-modern { width: 100%; padding: 14px 18px; border: 2px solid var(--line); border-radius: var(--r-md); font-size: 1rem; transition: all .3s var(--ease); background: #f7fafc; font-family: inherit; }
.input-field-modern:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(255,48,165,.1); }
.input-field-modern:disabled { background: #edf2f7; cursor: not-allowed; }
.password-wrapper-modern { position: relative; }
.password-wrapper-modern .input-field-modern { padding-right: 52px; }
.password-toggle-modern { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #a0aec0; cursor: pointer; padding: 8px; transition: color .3s var(--ease); font-size: 1.1rem; }
.password-toggle-modern:hover { color: var(--brand); }
.form-options-modern { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.checkbox-modern { display: flex; align-items: center; position: relative; padding-left: 32px; cursor: pointer; font-size: .95rem; color: #4a5568; user-select: none; }
.checkbox-modern input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.checkmark { position: absolute; top: 0; left: 0; height: 20px; width: 20px; background: #f7fafc; border: 2px solid var(--line); border-radius: 4px; transition: all .3s var(--ease); }
.checkbox-modern:hover input ~ .checkmark { border-color: var(--brand); }
.checkbox-modern input:checked ~ .checkmark { background: var(--brand); border-color: var(--brand); }
.checkmark:after { content: ""; position: absolute; display: none; }
.checkbox-modern input:checked ~ .checkmark:after { display: block; }
.checkbox-modern .checkmark:after { left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.forgot-link-modern { font-size: .95rem; color: var(--brand); text-decoration: none; transition: color .3s var(--ease); }
.forgot-link-modern:hover { color: var(--brand-3); text-decoration: underline; }
.error-message-modern { background: #fed7d7; color: #c53030; padding: 14px 18px; border-radius: var(--r-md); font-size: .95rem; margin-bottom: 28px; display: flex; align-items: center; gap: 10px; animation: shake .5s ease; }
.error-message-modern i { font-size: 1.1rem; }
.login-btn-modern { width: 100%; padding: 16px; background: linear-gradient(135deg, var(--brand), var(--brand-3)); color: #fff; border: none; border-radius: var(--r-md); font-size: 1rem; font-weight: 700; cursor: pointer; transition: all .3s var(--ease); position: relative; overflow: hidden; }
.login-btn-modern::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent); transition: left .5s ease; }
.login-btn-modern:hover::before { left: 100%; }
.login-btn-modern:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(255,48,165,.3); }
.login-btn-modern:active { transform: translateY(0); }
.login-btn-modern:disabled { opacity: .7; cursor: not-allowed; transform: none; }
.login-btn-modern i { margin-right: 10px; font-size: 1rem; }
.login-btn-modern:focus-visible, .input-field-modern:focus-visible, .password-toggle-modern:focus-visible, .forgot-link-modern:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ==========================================================================
   7. DETAIL PRODUK
   ========================================================================== */
.gallery-holder { margin-bottom: 24px; }
#owl-single-product { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); margin-bottom: 12px; }
#owl-single-product img { width: 100%; height: 400px; object-fit: cover; }
.horizontal-thumb { display: block; border-radius: var(--r-md); overflow: hidden; transition: all .3s var(--ease); opacity: .6; border: 2px solid transparent; }
.horizontal-thumb.active { opacity: 1; border-color: var(--purple); box-shadow: 0 0 0 2px rgba(102,126,234,.2); }
.horizontal-thumb:hover { opacity: 1; transform: translateY(-2px); }
.horizontal-thumb img { width: 100%; height: 80px; object-fit: cover; }

.price-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.original-price { text-decoration: line-through; color: #a0aec0; font-size: 16px; }
.selected-price { font-size: 28px; font-weight: 700; color: var(--purple); }
.price-range { color: #337ab7; font-weight: bold; font-size: 18px; }
.price-range small { font-size: 12px; font-weight: normal; color: #666; }

.stock-badge { cursor: pointer; transition: all .2s var(--ease); min-width: 50px; }
.stock-badge:hover { transform: translateY(-1px); }
.stock-badge.status-kadarluasa { cursor: not-allowed; opacity: .5; }
.stock-badge-selected { transform: scale(1.1); box-shadow: 0 4px 12px rgba(0,0,0,.15); }

.quantity-row { display: flex; align-items: center; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.qty-input-wrapper { display: flex; align-items: center; border: 2px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.qty-btn { width: 48px; height: 48px; border: none; background: #f7fafc; font-size: 18px; font-weight: 600; cursor: pointer; transition: all .2s var(--ease); }
.qty-btn:hover { background: var(--purple); color: #fff; }
.qty-input { width: 60px; height: 48px; border: none; text-align: center; font-size: 16px; font-weight: 600; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.qty-input:focus { outline: none; }
.qty-wrapper { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.qty-label { display: flex; align-items: center; gap: 8px; }
.selected-info .well { background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); border: none; }

.product-info .name { font-size: 24px; font-weight: 700; color: var(--ink); margin-bottom: 16px; line-height: 1.3; }
.product-meta { background: var(--bg-soft); padding: 15px; border-radius: var(--r-sm); margin: 15px 0; }
.meta-item { margin-bottom: 8px; display: flex; align-items: center; }
.meta-item i { width: 25px; color: #3498db; margin-right: 10px; }
.meta-label { font-weight: 600; margin-right: 10px; min-width: 100px; color: #555; }
.meta-value { color: #2c3e50; }

.table-stock { border-radius: var(--r-sm); overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.1); }
.table-stock thead tr { background: linear-gradient(135deg, var(--purple) 0%, var(--purple-2) 100%); }
.label-selected { background-color: #27ae60 !important; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #27ae60; }

.btn-primary.disabled { opacity: .65; cursor: not-allowed; }
.fa-spin { animation: fa-spin 2s infinite linear; }

/* ==========================================================================
   8. HEADER
   ========================================================================== */
.header-modern { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: #fff; box-shadow: 0 2px 20px rgba(0,0,0,.08); }
.header-placeholder { height: auto; }
.top-bar { background: linear-gradient(135deg, var(--purple) 0%, var(--purple-2) 100%); color: #fff; padding: 8px 0; font-size: 12px; }
.welcome-text i { margin-right: 8px; }
.top-links { text-align: right; }
.top-links a { color: #fff; margin-left: 20px; text-decoration: none; transition: opacity .3s var(--ease); }
.top-links a:hover { opacity: .8; }
.top-links a i { margin-right: 5px; }

.main-header-modern { padding: 15px 0; background: var(--brand); }
.header-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.mobile-menu-toggle { display: none; background: linear-gradient(135deg, var(--purple) 0%, var(--purple-2) 100%); border: none; width: 44px; height: 44px; border-radius: var(--r-md); color: #fff; font-size: 20px; cursor: pointer; transition: all .3s var(--ease); }
.mobile-menu-toggle:hover { transform: scale(1.05); }
.logo-modern { flex-shrink: 0; }
.logo-img-modern { max-height: 50px; width: auto; }

.search-wrapper-modern { flex: 1; max-width: 500px; min-width: 200px; position: relative; }
.search-box-modern { position: relative; }
.search-icon-modern { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #a0aec0; font-size: 16px; }
.search-input-modern { width: 100%; padding: 12px 40px 12px 44px; border: 2px solid var(--line); border-radius: 30px; font-size: 14px; transition: all .3s var(--ease); background: #f7fafc; }
.search-input-modern:focus { outline: none; border-color: var(--purple); background: #fff; box-shadow: 0 0 0 3px rgba(102,126,234,.1); }
.clear-search-modern { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: #a0aec0; cursor: pointer; font-size: 14px; transition: color .3s var(--ease); }
.clear-search-modern:hover { color: #f56565; }

.header-actions-modern { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.user-dropdown-modern .dropdown { position: relative; }
.user-trigger { display: flex; align-items: center; gap: 8px; text-decoration: none; padding: 8px 12px; border-radius: 30px; transition: all .3s var(--ease); background: #f7fafc; }
.user-trigger:hover { background: #edf2f7; }
.user-avatar { width: 32px; height: 32px; background: linear-gradient(135deg, var(--purple) 0%, var(--purple-2) 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; }
.user-name { color: var(--ink); font-size: 14px; font-weight: 500; }
.user-trigger .fa-chevron-down { font-size: 10px; color: #a0aec0; }

/* User dropdown modern (header lama) */
.user-profile-modern { position: relative; cursor: pointer; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.user-avatar-modern { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.1); transition: transform .2s var(--ease); }
.user-avatar-modern:hover { transform: scale(1.05); }
.user-profile-modern i { color: #fff; font-size: 12px; transition: transform .2s var(--ease); }
.user-profile-modern i.rotated { transform: rotate(180deg); }
.user-desktop-modern { display: flex; align-items: center; gap: 8px; cursor: pointer; background: rgba(255,255,255,.2); padding: 4px 12px 4px 6px; border-radius: 40px; transition: all .2s var(--ease); position: relative; }
.user-desktop-modern:hover { background: rgba(255,255,255,.3); }
.user-name-modern { font-size: 13px; font-weight: 500; color: #fff; }

.dropdown-item-modern { display: flex; align-items: center; gap: 12px; padding: 12px 18px; color: #333; font-size: 14px; transition: all .2s var(--ease); border-bottom: 1px solid #f0f0f0; text-decoration: none; }
.dropdown-item-modern:last-child { border-bottom: none; }
.dropdown-item-modern:hover { background: #fef2f8; color: var(--brand); }
.dropdown-item-modern i { width: 18px; font-size: 14px; color: #888; }
.dropdown-item-modern:hover i { color: var(--brand); }

/* ==========================================================================
   9. CHECKOUT
   ========================================================================== */
.bank-card-item { border: 2px solid #e0e0e0; border-radius: var(--r-md); padding: 12px; margin-bottom: 15px; cursor: pointer; transition: all .3s var(--ease); background: #fff; display: flex; align-items: center; gap: 12px; }
.bank-card-item:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.1); border-color: var(--brand); }
.bank-card-active { border-color: var(--brand); background: linear-gradient(135deg, #fff5f5 0%, #fff 100%); box-shadow: 0 4px 12px rgba(255,48,165,.2); }
.bank-logo-img { width: 50px; height: 50px; object-fit: contain; }
.bank-info-wrapper { flex: 1; }
.bank-name { display: block; font-weight: 600; color: #333; }
.bank-number { font-size: 12px; color: #666; font-family: monospace; }
.bank-radio { font-size: 20px; }

.panel { border-radius: var(--r-md); box-shadow: var(--shadow-sm); border: none; margin-bottom: 24px; animation: fadeInUp .4s ease-out; }
.panel-heading { background: var(--bg-soft); border-radius: var(--r-md) var(--r-md) 0 0 !important; padding: 15px 20px; border-bottom: 1px solid var(--line-2); }
.panel-heading .panel-title { font-size: 16px; font-weight: 600; color: #495057; }
.panel-heading .panel-title i { margin-right: 8px; color: var(--brand); }
.panel-body { padding: 20px; }

.table > thead > tr > th { border-bottom: 2px solid var(--line-2); background: var(--bg-soft); color: #495057; font-weight: 600; }
.table-hover > tbody > tr:hover { background: var(--bg-soft); }
.badge-primary { background: var(--brand); padding: 5px 10px; border-radius: 20px; }
.list-group-item { border: none; border-bottom: 1px solid var(--line-2); padding: 12px 0; }
.list-group-item:last-child { border-bottom: none; }
.list-group-item-success { background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%); color: #155724; border-radius: var(--r-sm); margin-top: 8px; }

/* ==========================================================================
   10. BRAND & UMUM
   ========================================================================== */
.brand-card { animation: fadeInUp .4s ease-out both; }
.brand-card:nth-child(1) { animation-delay: .05s; }
.brand-card:nth-child(2) { animation-delay: .1s; }
.brand-card:nth-child(3) { animation-delay: .15s; }
.brand-card:nth-child(4) { animation-delay: .2s; }
.brand-card:nth-child(5) { animation-delay: .25s; }
.brand-card:nth-child(6) { animation-delay: .3s; }
.brand-card:nth-child(7) { animation-delay: .35s; }
.brand-card:nth-child(8) { animation-delay: .4s; }

/* Scrollbar global */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: linear-gradient(135deg, var(--brand), var(--brand-3)); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(135deg, var(--brand-3), var(--brand)); }
html { scroll-behavior: smooth; }

/* ==========================================================================
   11. ANIMATIONS (satu definisi saja)
   ========================================================================== */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fa-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(359deg); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideInDown { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .3; } 50% { transform: scale(1.1); opacity: .5; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-10px); } 75% { transform: translateX(10px); } }

/* ==========================================================================
   12. RESPONSIVE (digabung, tidak duplikat)
   ========================================================================== */
@media (min-width: 768px) {
  .bank-media { flex-wrap: nowrap; }
}
@media (min-width: 769px) {
  .dashboard-sidebar { position: sticky; top: 20px; }
}
@media (max-width: 968px) {
  .login-page-modern { font-size: 16px; }
  .login-card-modern { flex-direction: column; max-width: 500px; }
  .login-left-modern, .login-right-modern { padding: 40px 32px; }
  .login-title-modern { font-size: 2.4rem; }
  .login-features-modern { gap: 24px; }
}
@media (max-width: 768px) {
  .transaction-container { padding: 12px; }
  .transaction-table th, .transaction-table td { padding: 12px 8px; }
  .action-buttons { flex-direction: column; gap: 4px; }
  .btn-action { width: 28px; height: 28px; }
  .info-grid { grid-template-columns: 1fr; }
  .shipping-info { grid-template-columns: 1fr; }
  .upload-options { grid-template-columns: 1fr; flex-direction: column; }
  .modal-dialog { margin: 16px; }
  .bank-card-item { margin-bottom: 10px; }
  .panel-body { padding: 15px; }

  .address-container { padding: 16px; }
  .header-actions { flex-direction: column; align-items: stretch; }
  .address-table thead { display: none; }
  .address-table tbody tr { display: block; margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; }
  .address-table td { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border: none; }
  .address-table td::before { content: attr(data-label); font-weight: 600; color: #4a5568; margin-right: 16px; }
  .action-group { justify-content: flex-end; }
  .pagination-modern { flex-direction: column; align-items: center; }
  .modal-body-modern { padding: 20px; }
  .form-grid { grid-template-columns: 1fr; gap: 20px; }
  .profile-container { padding: 16px; }
  .profile-header { padding: 20px 24px; }
  .profile-header h3 { font-size: 20px; }
  .profile-body { padding: 20px; }
  .btn-modern { padding: 10px 20px; font-size: 13px; }
  .select2-container--default .select2-selection--single { height: 44px !important; }

  .bank-container { padding: 16px; }
  .panel-header-modern { padding: 18px 20px; }
  .panel-header-modern h3 { font-size: 20px; }
  .panel-body-modern { padding: 20px; }
  .bank-media { flex-direction: column; text-align: center; }
  .bank-logo { width: 60px; height: 60px; }
  .bank-account-number { font-size: 16px; word-break: break-all; }
  .bank-account-name { font-size: 14px; }
  .copy-button, .qr-button, .bank-actions { width: 100%; justify-content: center; }
  .qr-code { max-width: 150px; }

  .dashboard-container { padding: 12px; }
  .dashboard-sidebar { margin-bottom: 16px; }
  .content-header { padding: 16px 20px; }
  .content-header h3 { font-size: 18px; }
  .content-body { padding: 20px; }

  #owl-single-product img { height: 300px; }
  .product-info .name { font-size: 20px; }
  .selected-price { font-size: 24px; }
  .quantity-row { flex-direction: column; align-items: stretch; }
  .btn-modern { justify-content: center; }
  .qty-wrapper { flex-direction: column; align-items: stretch; }
  .meta-item { flex-wrap: wrap; }
  .meta-label { min-width: 80px; }
  .brand-logo { max-width: 80px !important; max-height: 80px !important; }
  .brand-card h3 { font-size: 14px !important; }
  .transaction-info-card h2 { font-size: 24px !important; }
}
@media (max-width: 480px) {
  .login-page-modern { padding: 16px; font-size: 16px; }
  .login-left-modern, .login-right-modern { padding: 32px 24px; }
  .login-title-modern { font-size: 2rem; }
  .login-header-modern h2 { font-size: 1.8rem; }
  .login-logo-modern { width: 80px; height: 80px; }
  .feature-item { font-size: .85rem; }
  .feature-item i { font-size: 1.4rem; }
  .form-options-modern { flex-direction: column; align-items: flex-start; }
  .input-field-modern { padding: 12px 16px; }
  .login-btn-modern { padding: 14px; }
}