/* ========================================================
   LiGaMu Components v1.0 (Fase 2)
   Reusable UI components - dimuat setelah ligamu.css
   ======================================================== */

/* === BREADCRUMB === */
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 6px; padding: 12px 0;
  font-size: .875rem; color: var(--ink-mute);
}
.breadcrumb-item { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb-item a {
  color: var(--ink-soft); transition: color .15s;
  display: inline-flex; align-items: center; gap: 4px;
}
.breadcrumb-item a:hover { color: var(--brand); }
.breadcrumb-item.is-current { color: var(--ink); font-weight: 500; }
.breadcrumb-sep { color: var(--ink-mute); opacity: .5; font-size: .75rem; }
.breadcrumb-item .ti { font-size: 16px; }

/* === PAGINATION === */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 4px; padding: 24px 0; flex-wrap: wrap;
}
.pagination-info {
  font-size: .8125rem; color: var(--ink-mute);
  margin-right: auto;
}
.page-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border-radius: var(--radius-md);
  font-size: .875rem; color: var(--ink-soft);
  background: var(--paper); border: 1px solid var(--border);
  transition: all .15s;
}
.page-link:hover {
  background: var(--brand-light); color: var(--brand);
  border-color: var(--brand-light);
}
.page-link.is-active {
  background: var(--brand); color: white; border-color: var(--brand);
  font-weight: 500;
}
.page-link.is-disabled {
  opacity: .4; pointer-events: none; cursor: not-allowed;
}
.page-link.page-ellipsis {
  background: transparent; border-color: transparent;
  pointer-events: none;
}
.pagination-wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  padding: 16px 0; border-top: 1px solid var(--border);
}

/* === MODAL === */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15, 45, 36, 0.6);
  backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  padding: 20px; overflow-y: auto;
  animation: fadeIn .2s ease-out;
}
.modal-backdrop.is-open { display: flex; }
.modal {
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%; max-width: 520px;
  max-height: 90vh; overflow: hidden;
  display: flex; flex-direction: column;
  animation: modalIn .25s cubic-bezier(.16,1,.3,1);
}
.modal-sm { max-width: 400px; }
.modal-lg { max-width: 720px; }
.modal-xl { max-width: 960px; }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.125rem; color: var(--ink); margin: 0;
}
.modal-close {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-mute); transition: all .15s;
}
.modal-close:hover { background: var(--brand-light); color: var(--brand); }
.modal-body {
  padding: 20px 24px; overflow-y: auto; flex: 1;
  font-size: .9375rem; line-height: 1.7;
}
.modal-footer {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 16px 24px; border-top: 1px solid var(--border);
  background: var(--neutral-warm); flex-shrink: 0;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* === TABS === */
.tabs {
  display: flex; align-items: center;
  border-bottom: 1px solid var(--border);
  gap: 4px; overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 10px 16px; font-size: .9375rem;
  color: var(--ink-soft); border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: all .15s;
  white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer; background: transparent;
}
.tab:hover { color: var(--brand); }
.tab.is-active {
  color: var(--brand); border-bottom-color: var(--brand);
  font-weight: 500;
}
.tab-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--brand-light); color: var(--brand);
  font-size: .6875rem; font-weight: 600;
}
.tab.is-active .tab-count { background: var(--brand); color: white; }
.tab-pane { padding: 20px 0; display: none; }
.tab-pane.is-active { display: block; }

.tabs-pills {
  border-bottom: none; background: var(--brand-light);
  padding: 4px; border-radius: var(--radius-md);
  display: inline-flex; gap: 0;
}
.tabs-pills .tab {
  border: none; margin: 0; border-radius: var(--radius-sm);
  padding: 6px 12px; font-size: .8125rem;
}
.tabs-pills .tab.is-active {
  background: var(--paper); color: var(--brand);
  box-shadow: var(--shadow-sm);
}

/* === ALERT === */
.alert {
  display: flex; gap: 12px; padding: 14px 16px;
  border-radius: var(--radius-md); border: 1px solid;
  font-size: .9375rem; line-height: 1.5;
}
.alert-icon { font-size: 20px; flex-shrink: 0; line-height: 1; margin-top: 1px; }
.alert-content { flex: 1; min-width: 0; }
.alert-title { font-weight: 600; margin-bottom: 2px; }
.alert-body { font-size: .875rem; opacity: .9; }
.alert-close {
  margin-left: auto; opacity: .6; padding: 0 4px;
  transition: opacity .15s;
}
.alert-close:hover { opacity: 1; }

.alert-success {
  background: var(--success-light); border-color: rgba(99, 153, 34, 0.25);
  color: #3B6D11;
}
.alert-warning {
  background: var(--warning-light); border-color: rgba(217, 119, 6, 0.25);
  color: var(--accent-gold-dark);
}
.alert-danger {
  background: var(--danger-light); border-color: rgba(220, 38, 38, 0.25);
  color: #791F1F;
}
.alert-info {
  background: var(--info-light); border-color: rgba(37, 99, 235, 0.25);
  color: #0C447C;
}
.alert-ai {
  background: var(--accent-ai-light); border-color: rgba(124, 58, 237, 0.25);
  color: var(--accent-ai-text);
}
.alert-neutral {
  background: var(--brand-light); border-color: var(--border-strong);
  color: var(--ink);
}

/* === DROPDOWN === */
.dropdown { position: relative; display: inline-block; }
.dropdown-toggle { display: inline-flex; align-items: center; gap: 6px; }
.dropdown-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 200px; max-width: 280px;
  background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); padding: 6px;
  z-index: 90; display: none;
  animation: dropdownIn .15s ease-out;
}
.dropdown-menu.is-left { right: auto; left: 0; }
.dropdown-menu.is-open { display: block; }
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: .875rem; color: var(--ink);
  transition: all .12s;
  cursor: pointer; width: 100%; text-align: left;
}
.dropdown-item:hover { background: var(--brand-light); color: var(--brand); }
.dropdown-item .ti { font-size: 16px; color: var(--ink-mute); }
.dropdown-item:hover .ti { color: var(--brand); }
.dropdown-item.is-danger { color: var(--danger); }
.dropdown-item.is-danger:hover { background: var(--danger-light); color: var(--danger); }
.dropdown-item.is-danger .ti { color: var(--danger); }
.dropdown-divider { height: 1px; background: var(--border); margin: 6px 4px; }
.dropdown-header {
  padding: 8px 12px 4px; font-size: .6875rem;
  color: var(--ink-mute); text-transform: uppercase;
  letter-spacing: .08em; font-weight: 600;
}
@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === EMPTY STATE === */
.empty-state { text-align: center; padding: 48px 24px; color: var(--ink-soft); }
.empty-icon {
  width: 64px; height: 64px; margin: 0 auto 16px;
  background: var(--brand-light); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--brand); font-size: 28px;
}
.empty-title { font-family: var(--font-display); font-size: 1.125rem; color: var(--ink); margin-bottom: 4px; }
.empty-text { font-size: .9375rem; color: var(--ink-soft); max-width: 360px; margin: 0 auto 16px; }

/* === SKELETON === */
.skeleton {
  background: linear-gradient(90deg, var(--border) 0%, var(--neutral-warm) 50%, var(--border) 100%);
  background-size: 200% 100%;
  animation: skeletonShine 1.4s ease-in-out infinite;
  border-radius: var(--radius-sm); display: block;
}
.skeleton-text { height: 12px; margin-bottom: 8px; }
.skeleton-title { height: 18px; width: 60%; margin-bottom: 12px; }
.skeleton-block { height: 80px; }
@keyframes skeletonShine { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* === FORM ADVANCED === */
.input-group {
  display: flex; align-items: stretch;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--paper); overflow: hidden;
  transition: all .15s;
}
.input-group:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(27, 77, 62, 0.1);
}
.input-group .input, .input-group .select { border: none; flex: 1; box-shadow: none; }
.input-group .input:focus { box-shadow: none; }
.input-group-prefix, .input-group-suffix {
  display: flex; align-items: center; padding: 0 12px;
  background: var(--neutral-warm); color: var(--ink-mute);
  font-size: .9375rem; flex-shrink: 0;
}
.input-group-prefix { border-right: 1px solid var(--border); }
.input-group-suffix { border-left: 1px solid var(--border); }

.input-error { border-color: var(--danger); }
.input-error:focus { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1); }
.form-error { font-size: .8125rem; color: var(--danger); margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.form-success { font-size: .8125rem; color: var(--success); margin-top: 4px; display: flex; align-items: center; gap: 4px; }

.check-group { display: flex; flex-direction: column; gap: 8px; }
.check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .9375rem; }
.check input { margin: 3px 0 0; accent-color: var(--brand); }
.check-label { line-height: 1.5; }
.check-hint { display: block; font-size: .8125rem; color: var(--ink-mute); margin-top: 2px; }

.switch { position: relative; display: inline-flex; width: 40px; height: 22px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider {
  position: absolute; inset: 0;
  background: var(--border-strong); border-radius: var(--radius-pill);
  transition: .2s; cursor: pointer;
}
.switch-slider::before {
  content: ''; position: absolute;
  height: 16px; width: 16px; left: 3px; top: 3px;
  background: white; border-radius: 50%;
  transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.switch input:checked + .switch-slider { background: var(--brand); }
.switch input:checked + .switch-slider::before { transform: translateX(18px); }

/* === FILE UPLOAD === */
.file-upload {
  position: relative;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 28px 20px; text-align: center;
  background: var(--paper); cursor: pointer;
  transition: all .2s;
}
.file-upload:hover { border-color: var(--brand); background: var(--brand-light); }
.file-upload.is-dragover { border-color: var(--brand); background: var(--brand-light); transform: scale(1.01); }
.file-upload input[type="file"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}
.file-upload-icon { font-size: 36px; color: var(--brand); margin-bottom: 8px; }
.file-upload-text { font-size: .9375rem; color: var(--ink); font-weight: 500; margin-bottom: 4px; }
.file-upload-hint { font-size: .8125rem; color: var(--ink-mute); }
.file-list { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.file-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; background: var(--neutral-warm);
  border-radius: var(--radius-sm); font-size: .875rem;
}
.file-item-icon { color: var(--brand); font-size: 18px; }
.file-item-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item-size { color: var(--ink-mute); font-size: .8125rem; }
.file-item-remove { color: var(--ink-mute); padding: 4px; border-radius: var(--radius-sm); transition: all .15s; }
.file-item-remove:hover { color: var(--danger); background: var(--danger-light); }

/* === MULTI-SELECT === */
.multiselect { position: relative; }
.multiselect-control {
  min-height: 42px; padding: 6px 10px;
  display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
  background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--radius-md); cursor: pointer;
  transition: all .15s;
}
.multiselect.is-open .multiselect-control,
.multiselect-control:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(27, 77, 62, 0.1);
}
.multiselect-tags { display: contents; }
.multiselect-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 4px 2px 10px; background: var(--brand-light);
  color: var(--brand); border-radius: var(--radius-pill);
  font-size: .8125rem; font-weight: 500;
}
.multiselect-tag-remove {
  width: 18px; height: 18px; display: flex;
  align-items: center; justify-content: center;
  border-radius: 50%; transition: all .15s; color: var(--brand);
}
.multiselect-tag-remove:hover { background: var(--brand); color: white; }
.multiselect-input {
  flex: 1; min-width: 80px; border: none; outline: none;
  padding: 4px; background: transparent; font-size: .9375rem;
}
.multiselect-placeholder { color: var(--ink-mute); font-size: .9375rem; padding: 4px 0; }
.multiselect-arrow { color: var(--ink-mute); flex-shrink: 0; padding: 0 4px; transition: transform .2s; }
.multiselect.is-open .multiselect-arrow { transform: rotate(180deg); }
.multiselect-options {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  max-height: 240px; overflow-y: auto; z-index: 90;
  display: none; padding: 4px;
}
.multiselect.is-open .multiselect-options { display: block; }
.multiselect-option {
  padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: .875rem; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  transition: background .12s;
}
.multiselect-option:hover { background: var(--brand-light); }
.multiselect-option.is-selected { background: var(--brand-light); color: var(--brand); font-weight: 500; }
.multiselect-option.is-selected::after {
  content: '\ea5e'; font-family: 'tabler-icons'; margin-left: auto; color: var(--brand);
}
.multiselect-empty { padding: 16px; text-align: center; font-size: .875rem; color: var(--ink-mute); }

/* === DATE PICKER === */
.datepicker-input-wrap { position: relative; }
.datepicker-input-wrap > .ti {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%); color: var(--ink-mute);
  pointer-events: none; font-size: 18px;
}
.datepicker-panel {
  position: absolute; top: calc(100% + 4px); left: 0;
  background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  padding: 12px; z-index: 90; min-width: 280px; display: none;
}
.datepicker-panel.is-open { display: block; }
.datepicker-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.datepicker-nav {
  width: 28px; height: 28px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); transition: all .15s;
}
.datepicker-nav:hover { background: var(--brand-light); color: var(--brand); }
.datepicker-title { font-weight: 500; font-size: .9375rem; font-family: var(--font-display); }
.datepicker-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.datepicker-day-head {
  text-align: center; font-size: .6875rem;
  color: var(--ink-mute); padding: 6px 0;
  text-transform: uppercase; letter-spacing: .05em; font-weight: 600;
}
.datepicker-day {
  aspect-ratio: 1; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: .8125rem; color: var(--ink);
  cursor: pointer; transition: all .12s;
  background: transparent; border: none;
}
.datepicker-day:hover { background: var(--brand-light); color: var(--brand); }
.datepicker-day.is-other { color: var(--ink-mute); opacity: .4; }
.datepicker-day.is-today { font-weight: 600; color: var(--brand); background: var(--brand-light); }
.datepicker-day.is-selected { background: var(--brand); color: white; }
.datepicker-day.is-disabled { opacity: .3; cursor: not-allowed; pointer-events: none; }
.datepicker-foot {
  display: flex; justify-content: space-between;
  margin-top: 8px; padding-top: 8px;
  border-top: 1px solid var(--border);
}
.datepicker-foot .btn { padding: 4px 10px; font-size: .8125rem; }

/* === TOOLTIP === */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute; bottom: calc(100% + 6px); left: 50%;
  transform: translateX(-50%) translateY(2px);
  background: var(--ink); color: white;
  padding: 4px 8px; border-radius: var(--radius-sm);
  font-size: .75rem; white-space: nowrap;
  pointer-events: none; opacity: 0;
  transition: all .15s; z-index: 200;
}
[data-tooltip]:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* === DIVIDER === */
.divider { height: 1px; background: var(--border); margin: 16px 0; }
.divider-text {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink-mute); font-size: .8125rem;
  margin: 16px 0; text-transform: uppercase;
  letter-spacing: .08em; font-weight: 500;
}
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* === TABLE === */
.table-wrap {
  overflow-x: auto; border: 1px solid var(--border);
  border-radius: var(--radius-md); background: var(--paper);
}
.table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.table thead { background: var(--neutral-warm); border-bottom: 1px solid var(--border); }
.table th {
  text-align: left; padding: 12px 16px;
  font-weight: 600; color: var(--ink-soft);
  font-size: .75rem; text-transform: uppercase;
  letter-spacing: .04em; white-space: nowrap;
}
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: var(--neutral-warm); }
.table-striped tbody tr:nth-child(odd) { background: rgba(232, 224, 208, 0.15); }
.table-sm th, .table-sm td { padding: 8px 12px; }
.table-actions { display: flex; gap: 4px; }
.table-actions .btn { padding: 4px 8px; font-size: .75rem; }

/* === PROGRESS === */
.progress { height: 8px; background: var(--border); border-radius: var(--radius-pill); overflow: hidden; }
.progress-bar { height: 100%; background: var(--brand); transition: width .3s ease; }
.progress-bar.is-success { background: var(--success); }
.progress-bar.is-warning { background: var(--warning); }
.progress-bar.is-danger { background: var(--danger); }
.progress-bar.is-ai { background: var(--accent-ai); }

/* === AVATAR === */
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); color: white;
  font-family: var(--font-display); font-weight: 500;
  font-size: .875rem; flex-shrink: 0; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-xs { width: 24px; height: 24px; font-size: .6875rem; }
.avatar-sm { width: 30px; height: 30px; font-size: .75rem; }
.avatar-lg { width: 48px; height: 48px; font-size: 1rem; }
.avatar-xl { width: 72px; height: 72px; font-size: 1.25rem; }
.avatar-gold { background: var(--accent-gold); color: #2C2416; }
.avatar-ai { background: var(--accent-ai); color: white; }
.avatar-group { display: inline-flex; }
.avatar-group .avatar { border: 2px solid var(--paper); margin-left: -8px; }
.avatar-group .avatar:first-child { margin-left: 0; }

/* === MOBILE NAV === */
@media (max-width: 768px) {
  .main-nav.is-open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--border);
    padding: 12px; gap: 4px; z-index: 99;
    box-shadow: var(--shadow-md);
  }
  .main-nav.is-open .nav-link { padding: 12px 16px; border-radius: var(--radius-md); }
  .pagination-wrap { flex-direction: column; align-items: stretch; }
  .pagination-info { margin-right: 0; text-align: center; }
}

body.no-scroll { overflow: hidden; }

/* ========================================================
   LiGaMu Fase 2B - Public integration & restore polish
   ======================================================== */

/* Restore/strengthen responsive public navigation after component patch */
@media (max-width: 768px) {
  .site-header { position: sticky; }
  .site-header-inner { position: relative; padding: 12px 0; }
  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 110;
    padding: 10px;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2px;
  }
  .main-nav.is-open { display: flex; }
  .main-nav .nav-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 11px 12px;
  }
  .brand-sub { display: none; }
}

/* Homepage quick access */
.quick-access-wrap {
  margin-top: -8px;
  padding: 0 0 56px;
  background: linear-gradient(180deg, var(--neutral-warm) 0%, var(--paper) 100%);
}
.quick-access-panel {
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px;
}
.quick-access-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.quick-access-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  margin: 10px 0 4px;
}
.quick-access-sub {
  color: var(--ink-soft);
  font-size: .9375rem;
  max-width: 620px;
}
.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.quick-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--paper);
  color: var(--ink);
  min-height: 142px;
  transition: all .16s ease;
}
.quick-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-light);
}
.quick-card span:not(.quick-icon) {
  color: var(--ink-soft);
  font-size: .875rem;
  line-height: 1.5;
}
.quick-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--brand-light);
  color: var(--brand);
  font-size: 21px;
}
.quick-card-ai .quick-icon {
  background: var(--accent-ai-light);
  color: var(--accent-ai);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.admin-page-title {
  font-size: 1.625rem;
  margin: 0 0 6px;
}
.admin-page-subtitle {
  color: var(--ink-soft);
  margin: 0;
}
.admin-page-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .quick-access-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .quick-access-head { flex-direction: column; }
  .quick-access-grid { grid-template-columns: 1fr; }
  .admin-page-head { flex-direction: column; }
}

/* ========================================================
   PATCH r10 — Public nav landscape phone fix (2026-05-29)
   Problem: menu panjang seperti "Tentang" tersembunyi saat HP horizontal.
   Solusi: pada layar pendek/lebar HP, nav public ikut mode hamburger/dropdown.
   ======================================================== */
@media (max-width: 1024px) and (max-height: 560px) and (orientation: landscape) {
  .site-header { position: sticky; top: 0; z-index: 120; }
  .site-header-inner {
    position: relative;
    min-height: 58px;
    padding-top: 8px;
    padding-bottom: 8px;
    gap: 10px;
  }
  .brand-logo { width: 38px; height: 38px; border-radius: 10px; }
  .brand-logo::after { border-radius: 0 10px 0 10px; }
  .brand-name { font-size: 1rem; }
  .brand-sub { display: none; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn {
    padding: 7px 10px;
    font-size: .8125rem;
  }
  .mobile-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
  }
  .main-nav {
    display: none !important;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 150;
    max-height: calc(100vh - 78px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2px;
  }
  .main-nav.is-open {
    display: flex !important;
  }
  .main-nav .nav-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 10px 12px;
    font-size: .9rem;
    white-space: normal;
  }
}

/* Tablet sempit/desktop kecil: rapatkan nav agar tidak cepat kepotong. */
@media (min-width: 769px) and (max-width: 1100px) and (min-height: 561px) {
  .site-header-inner { gap: 12px; }
  .main-nav { gap: 2px; }
  .nav-link { padding: 8px 9px; font-size: .875rem; }
  .brand-sub { display: none; }
}
