:root {
    --bg: #F8FAFC; --surface: #FFFFFF; --sidebar: #FFFFFF; --sidebar-hover: #F4F4F5;
    --active: #050505; --text: #111827; --muted: #6B7280; --border: #E5E7EB;
    --success: #16A34A; --warning: #F59E0B; --danger: #DC2626; --info: #0891B2; --disabled: #9CA3AF;
    --sidebar-width: 272px; --header-height: 72px; --radius: 12px; --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .06);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text); background: var(--bg);
}
* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--bg); }
button, input { font: inherit; }
button, summary { cursor: pointer; }
a { color: inherit; }
.admin-shell { --current-sidebar-width: var(--sidebar-width); }
.without-sidebar { --current-sidebar-width: 0px; }
.without-sidebar .top-header { padding-left: 32px; }
.app-sidebar { position: fixed; z-index: 30; display: flex; flex-direction: column; width: var(--current-sidebar-width); height: 100vh; overflow: hidden; border-right: 1px solid #E5E7EB; color: #4B5563; background: var(--sidebar); transition: width 220ms ease, transform 220ms ease; }
.sidebar-top { padding: 20px 16px 12px; }
.company-logo { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 8px; color: #fff; text-decoration: none; }
.company-logo-mark, .brand-mark, .profile-avatar { display: inline-grid; flex: 0 0 auto; place-items: center; border-radius: 10px; font-size: 11px; font-weight: 800; letter-spacing: .03em; }
.company-logo-mark { width: 32px; height: 32px; color: #1F2937; background: #fff; }
.company-logo-text { overflow: hidden; font-size: 15px; font-weight: 700; white-space: nowrap; }
.brand-switcher { position: relative; margin-top: 20px; }
.brand-switcher summary, .header-dropdown summary { list-style: none; }
.brand-switcher summary::-webkit-details-marker, .header-dropdown summary::-webkit-details-marker { display: none; }
.brand-switcher summary { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 8px; border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius); transition: background 200ms ease, border-color 200ms ease; }
.brand-switcher summary:hover, .brand-switcher[open] summary { background: var(--sidebar-hover); border-color: rgba(255,255,255,.2); }
.brand-mark { width: 32px; height: 32px; color: #fff; background: #2563EB; }
.brand-mark-muted { color: #374151; background: #E5E7EB; }
.brand-logo { display: block; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 9px; }
.brand-switcher-copy { display: grid; flex: 1; gap: 2px; overflow: hidden; text-align: left; white-space: nowrap; }
.brand-switcher-copy strong { overflow: hidden; color: #fff; font-size: 13px; text-overflow: ellipsis; }
.brand-switcher-copy small { color: #9CA3AF; font-size: 11px; }
.brand-switcher-menu { position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; width: 240px; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: 0 12px 24px rgba(15,23,42,.16); }
.brand-switcher-menu a { display: flex; align-items: center; gap: 10px; padding: 9px; border-radius: 8px; color: #374151; font-size: 13px; font-weight: 600; text-decoration: none; }
.brand-switcher-menu a:hover { background: #F3F4F6; }
.sidebar-nav { display: grid; gap: 4px; padding: 12px 16px; overflow-y: auto; }
.sidebar-section-label { margin: 4px 8px 8px; color: #9CA3AF; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.sidebar-link { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 10px; border: 0; border-radius: 5px; color: #4B5563; background: transparent; font-size: 13px; font-weight: 600; text-align: left; text-decoration: none; transition: background 200ms ease, color 200ms ease; }
.sidebar-link:hover { color: #111827; background: var(--sidebar-hover); }
.sidebar-link.is-active { color: #FFFFFF; background: var(--active); box-shadow: 0 1px 2px rgba(0,0,0,.16); }
.sidebar-link svg { flex: 0 0 auto; width: 18px; height: 18px; stroke-width: 2; }
.sidebar-nested summary { list-style: none; }
.sidebar-nested summary::-webkit-details-marker { display: none; }
.sidebar-nested[open] .nav-chevron { transform: rotate(180deg); }
.nav-chevron { margin-left: auto; transition: transform 200ms ease; }
.nested-links { display: grid; gap: 4px; padding: 5px 10px 7px 40px; }
.sidebar-sub-link { padding: 7px 8px; border-radius: 5px; color: #6B7280; font-size: 12px; font-weight: 600; text-decoration: none; transition: background 200ms ease, color 200ms ease; }
.sidebar-sub-link:hover, .sidebar-sub-link.is-active { color: #111827; background: var(--sidebar-hover); }
.sidebar-subtle { color: #6B7280; font-size: 12px; line-height: 1.4; }
.sidebar-bottom { margin-top: auto; padding: 12px 16px 20px; border-top: 1px solid #E5E7EB; }
.sidebar-logout { color: #4B5563; }
.is-disabled { color: #9CA3AF; cursor: default; }
.app-frame { min-height: 100vh; margin-left: var(--current-sidebar-width); transition: margin-left 220ms ease; }
.top-header { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: var(--header-height); padding: 0 32px; border-bottom: 1px solid #E5E7EB; background: #FFFFFF; }
.header-left, .header-actions, .breadcrumb, .profile-trigger, .notification-button { display: flex; align-items: center; }
.header-left { min-width: 0; gap: 16px; }
.header-actions { gap: 8px; }
.icon-button { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid transparent; border-radius: 9px; color: #4B5563; background: transparent; transition: background 200ms ease, border-color 200ms ease, color 200ms ease; }
.icon-button:hover { border-color: var(--border); color: var(--text); background: #F9FAFB; }
.icon-button svg { width: 19px; height: 19px; }
.breadcrumb { gap: 7px; overflow: hidden; color: var(--muted); font-size: 13px; white-space: nowrap; }
.breadcrumb a { color: #4B5563; text-decoration: none; }
.breadcrumb a:hover { color: #050505; }
.breadcrumb span { overflow: hidden; color: var(--text); font-weight: 600; text-overflow: ellipsis; }
.breadcrumb svg { width: 14px; height: 14px; color: #9CA3AF; }
.global-search { display: flex; align-items: center; gap: 8px; width: min(28vw, 270px); height: 38px; padding: 0 10px; border: 1px solid var(--border); border-radius: 9px; color: #9CA3AF; background: #fff; transition: border-color 200ms ease, box-shadow 200ms ease; }
.global-search:focus-within { border-color: var(--active); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.global-search svg { width: 17px; height: 17px; }
.global-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 13px; }
.global-search kbd { padding: 2px 5px; border: 1px solid var(--border); border-radius: 4px; color: #9CA3AF; background: #F9FAFB; font-size: 10px; white-space: nowrap; }
.header-dropdown { position: relative; }
.header-brand-trigger { display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 3px 8px 3px 3px; border: 1px solid var(--border); border-radius: 9px; color: #374151; background: #fff; font-size: 12px; font-weight: 650; }
.header-brand-trigger:hover, .header-brand-switcher[open] .header-brand-trigger { background: #F9FAFB; }
.header-brand-trigger .brand-mark, .header-brand-trigger .brand-logo { width: 28px; height: 28px; font-size: 10px; }
.header-brand-trigger svg { width: 14px; height: 14px; color: #9CA3AF; }
.brand-picker-panel { width: 190px; padding: 8px; }
.brand-picker-panel a { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 7px; color: #374151; font-size: 13px; font-weight: 600; text-decoration: none; }
.brand-picker-panel a:hover { background: #F3F4F6; }
.brand-picker-panel .brand-logo { width: 28px; height: 28px; }
.notification-button { position: relative; }
.notification-dot { position: absolute; top: 8px; right: 9px; width: 6px; height: 6px; border: 1.5px solid #fff; border-radius: 999px; background: var(--active); }
.profile-trigger { gap: 8px; min-height: 40px; padding: 3px 6px 3px 3px; border-radius: 9px; transition: background 200ms ease; }
.profile-trigger:hover, .profile-dropdown[open] .profile-trigger { background: #F3F4F6; }
.profile-avatar { width: 32px; height: 32px; color: #1D4ED8; background: #DBEAFE; }
.profile-name { max-width: 120px; overflow: hidden; color: #374151; font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.profile-trigger svg { width: 15px; height: 15px; color: #9CA3AF; }
.dropdown-panel { position: absolute; z-index: 40; top: calc(100% + 10px); right: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: 0 14px 30px rgba(15,23,42,.14); }
.notification-panel { width: 340px; }
.dropdown-heading { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--border); font-size: 13px; }
.dropdown-heading button { padding: 0; border: 0; color: var(--active); background: transparent; font-size: 12px; font-weight: 600; }
.notification-empty { display: grid; place-items: center; gap: 7px; padding: 32px 20px; color: var(--muted); text-align: center; }
.notification-empty svg { width: 24px; height: 24px; color: #9CA3AF; }
.notification-empty p { margin: 4px 0 0; color: #374151; font-size: 13px; font-weight: 650; }
.notification-empty span { font-size: 12px; }
.profile-panel { width: 260px; padding: 8px; }
.profile-summary { display: flex; gap: 10px; padding: 8px; }
.profile-summary div { display: grid; min-width: 0; gap: 2px; }
.profile-summary strong, .profile-summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-summary strong { font-size: 13px; }
.profile-summary div span { color: var(--muted); font-size: 12px; }
.dropdown-divider { height: 1px; margin: 7px 0; background: var(--border); }
.profile-panel a, .profile-panel button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px; border: 0; border-radius: 7px; color: #374151; background: transparent; font-size: 13px; text-align: left; text-decoration: none; }
.profile-panel a:hover, .profile-panel button:hover { background: #F3F4F6; }
.profile-panel svg { width: 16px; height: 16px; }
.app-content { max-width: 1440px; min-height: calc(100vh - var(--header-height) - 62px); margin: 0 auto; padding: 32px; }
.app-footer { display: flex; justify-content: space-between; max-width: 1440px; margin: 0 auto; padding: 20px 32px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; }
.page-heading h1, .app-content > h1 { margin: 0; color: var(--text); font-size: clamp(24px, 3vw, 30px); line-height: 1.2; letter-spacing: -.025em; }
.page-heading .muted, .app-content > .muted { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.brand-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.brand-card { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform 200ms ease, box-shadow 200ms ease; }
.brand-card:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(15,23,42,.08); }
.brand-card-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.brand-card-heading .brand-logo { width: 36px; height: 36px; }
.brand-card h2 { margin: 0; font-size: 18px; }
.brand-card .muted { min-height: 44px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.module-placeholder-card { display: flex; align-items: flex-start; gap: 16px; max-width: 720px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.module-placeholder-card > svg { flex: 0 0 auto; width: 24px; height: 24px; color: var(--active); }
.module-placeholder-card h2 { margin: 0 0 8px; font-size: 16px; }
.module-placeholder-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.panel-card { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.panel-card + .panel-card { margin-top: 20px; }
.table-card { overflow: hidden; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.table-toolbar h2 { margin: 0; font-size: 18px; }
.table-toolbar p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.table-search { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.search-field { display: flex; align-items: center; gap: 8px; min-width: 280px; height: 38px; padding: 0 12px; border: 1px solid var(--border); border-radius: 9px; background: #fff; box-shadow: inset 0 1px 2px rgba(15,23,42,.02); }
.search-field:focus-within { border-color: var(--active); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.search-field svg { width: 17px; height: 17px; color: #9CA3AF; }
.search-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 13px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table thead th { padding: 14px 12px; border-bottom: 1px solid var(--border); color: #374151; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table tbody td { padding: 14px 12px; border-bottom: 1px solid #EEF2F7; color: #111827; font-size: 14px; vertical-align: top; }
.data-table tbody tr:hover { background: #FAFAFB; }
.data-table .muted { color: var(--muted); }
.data-table .nowrap { white-space: nowrap; }
.data-table .actions { white-space: nowrap; text-align: right; }
.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-yes { color: #065F46; background: #D1FAE5; }
.badge-no { color: #7C2D12; background: #FFEDD5; }
.badge-neutral { color: #374151; background: #E5E7EB; }
.form-card { display: grid; gap: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { color: #374151; font-size: 13px; font-weight: 650; }
.field .help-text { color: var(--muted); font-size: 12px; line-height: 1.5; }
.field input[type="checkbox"] { width: 16px; height: 16px; margin: 0; }
.field textarea { min-height: 120px; padding-top: 12px; padding-bottom: 12px; resize: vertical; }
.field select[multiple], .field textarea { height: auto; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.table-pagination { display: flex; justify-content: flex-end; padding: 18px 4px 4px; }
.pagination-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; flex-wrap: wrap; }
.pagination-meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.pagination-meta strong { color: var(--text); }
.pagination-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pagination-link, .pagination-ellipsis { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border: 1px solid var(--border); border-radius: 9px; background: #fff; color: #374151; font-size: 13px; text-decoration: none; }
.pagination-link:hover { border-color: #CBD5E1; background: #F8FAFC; }
.pagination-link.is-active { border-color: var(--active); background: var(--active); color: #fff; }
.pagination-link.is-disabled { color: #9CA3AF; background: #F8FAFC; cursor: not-allowed; }
.pagination-ellipsis { border-color: transparent; background: transparent; color: #9CA3AF; }
.empty-state { display: grid; place-items: center; gap: 8px; padding: 40px 20px; color: var(--muted); text-align: center; }
.empty-state svg { width: 28px; height: 28px; color: var(--active); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; margin-top: 20px; padding: 0 14px; border: 1px solid #2563EB; border-radius: 8px; color: #fff; background: var(--active); box-shadow: 0 1px 2px rgba(37,99,235,.18); font-size: 13px; font-weight: 650; text-decoration: none; transition: background 200ms ease, box-shadow 200ms ease; }
.button:hover { background: #1D4ED8; box-shadow: 0 3px 6px rgba(37,99,235,.18); }
.button.button-secondary { color: #374151; background: #F9FAFB; border-color: var(--border); box-shadow: none; }
.button.button-secondary:hover { background: #F3F4F6; box-shadow: none; }
.sidebar-collapsed { --current-sidebar-width: 76px; }
.sidebar-collapsed .sidebar-label, .sidebar-collapsed .sidebar-section-label { display: none; }
.sidebar-collapsed .sidebar-top, .sidebar-collapsed .sidebar-nav, .sidebar-collapsed .sidebar-bottom { padding-left: 12px; padding-right: 12px; }
.sidebar-collapsed .company-logo, .sidebar-collapsed .sidebar-link { justify-content: center; padding-left: 0; padding-right: 0; }
.sidebar-collapsed .brand-switcher { margin-top: 20px; }
.sidebar-collapsed .brand-switcher summary { justify-content: center; padding: 8px; }
.sidebar-collapsed .brand-switcher-menu { left: 64px; }
.sidebar-collapsed .nested-links { display: none; }
.mobile-backdrop { display: none; }
.login-page { display: grid; min-height: 100vh; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 420px; padding: 32px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 16px 32px rgba(15,23,42,.08); }
.login-card h1 { margin: 0; font-size: 26px; letter-spacing: -.025em; }
.login-card .muted { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.login-form { display: grid; gap: 20px; margin-top: 28px; }
.login-form label { display: block; margin-bottom: 7px; color: #374151; font-size: 13px; font-weight: 650; }
.form-control { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #D1D5DB; border-radius: 8px; outline: 0; color: var(--text); background: #fff; transition: border-color 200ms ease, box-shadow 200ms ease; }
.form-control:focus { border-color: var(--active); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.checkbox-label { display: flex !important; align-items: center; gap: 8px; margin: 0 !important; color: var(--muted) !important; font-weight: 500 !important; }
.form-error { margin: 7px 0 0; color: var(--danger); font-size: 12px; }
.button-full { width: 100%; margin-top: 0; }
@media (max-width: 1000px) { .global-search { width: 180px; } .profile-name { display: none; } }
@media (max-width: 900px) { .admin-shell { --current-sidebar-width: 0px; } .app-sidebar { width: var(--sidebar-width); transform: translateX(-100%); } .sidebar-open .app-sidebar { transform: translateX(0); } .sidebar-open .mobile-backdrop { position: fixed; z-index: 25; inset: 0; display: block; background: rgba(15,23,42,.42); } .top-header { padding: 0 20px; } .app-content { padding: 24px 20px; } .app-footer { padding: 18px 20px; } }
@media (max-width: 680px) { .top-header { min-height: 64px; padding: 0 12px; } .global-search, .header-brand-switcher { display: none; } .breadcrumb { max-width: 46vw; } .profile-trigger { padding-right: 2px; } .notification-panel { position: fixed; top: 58px; right: 12px; left: 12px; width: auto; } .brand-grid { grid-template-columns: 1fr; gap: 16px; } .app-content { padding: 24px 16px; } .app-footer { align-items: flex-start; flex-direction: column; gap: 5px; padding: 18px 16px; } .page-heading { margin-bottom: 24px; } }


/* ==========================================================================korus-admin.css================================================================================== */


/* ==========================================================================
   Data module UI — tables, forms, buttons, badges, alerts
   Used by category / product (and similar CRUD) pages
   ========================================================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 16px; border: 1px solid var(--border); border-radius: 9px; color: var(--text); background: #fff; font-size: 13px; font-weight: 650; line-height: 1; text-decoration: none; cursor: pointer; transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.btn:hover { border-color: #D1D5DB; background: #F9FAFB; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 15px; height: 15px; stroke-width: 2.25; }
.btn-primary { border-color: var(--active); color: #fff; background: var(--active); box-shadow: 0 1px 2px rgba(0,0,0,.16); }
.btn-primary:hover { background: #1F1F1F; border-color: #1F1F1F; }
.btn-danger { border-color: #FCA5A5; color: var(--danger); background: #FEF2F2; }
.btn-danger:hover { border-color: var(--danger); color: #fff; background: var(--danger); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12px; border-radius: 7px; }
.btn-outline { background: transparent; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.alert { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 13px 16px; border: 1px solid transparent; border-radius: var(--radius); font-size: 13px; font-weight: 600; }
.alert svg { flex: 0 0 auto; width: 18px; height: 18px; }
.alert-success { border-color: #BBF7D0; color: #166534; background: #F0FDF4; }
.alert-danger { border-color: #FECACA; color: #991B1B; background: #FEF2F2; }

.data-card { padding: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.data-card-scroll { width: 100%; overflow-x: auto; }
.data-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 13px; }
.data-table thead th { padding: 13px 18px; border-bottom: 1px solid var(--border); color: var(--muted); background: #F9FAFB; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table tbody td { padding: 14px 18px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #FAFAFA; }
.data-table .cell-title { font-weight: 650; }
.data-table .cell-sub { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 500; }
.data-table .cell-muted { color: var(--muted); }
.data-table .cell-actions { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.data-empty { display: grid; place-items: center; gap: 10px; padding: 56px 20px; color: var(--muted); text-align: center; }
.data-empty svg { width: 30px; height: 30px; color: #C7CBD1; }
.data-empty strong { color: var(--text); font-size: 14px; }
.data-empty span { font-size: 13px; }
.data-card-footer { display: flex; justify-content: flex-end; padding: 16px 18px; border-top: 1px solid var(--border); background: #FAFAFA; }

.thumb { display: block; width: 46px; height: 46px; border: 1px solid var(--border); border-radius: 9px; object-fit: cover; background: #F3F4F6; }
.thumb-placeholder { display: grid; place-items: center; width: 46px; height: 46px; border: 1px dashed var(--border); border-radius: 9px; color: #C7CBD1; background: #F9FAFB; }
.thumb-placeholder svg { width: 18px; height: 18px; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.badge-success { color: #15803D; background: #DCFCE7; }
.badge-muted { color: #6B7280; background: #F3F4F6; }
.badge-count { color: #1D4ED8; background: #EFF6FF; }

.form-card { max-width: 780px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.form-section-title { margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); color: var(--text); font-size: 14px; font-weight: 700; }
.form-section-title:not(:first-child) { margin-top: 8px; }
.form-collapsible { margin-bottom: 4px; }
.form-collapsible + .form-collapsible { margin-top: 4px; }
.form-collapsible summary.form-section-title { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; user-select: none; }
.form-collapsible summary.form-section-title::-webkit-details-marker { display: none; }
.form-collapsible summary.form-section-title::before { content: ''; flex: 0 0 auto; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform 160ms ease; }
.form-collapsible[open] summary.form-section-title::before { transform: rotate(45deg); }
.form-collapsible summary.form-section-title .badge { margin-left: auto; }
.form-collapsible summary.form-section-title:hover { color: var(--active); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-group { margin-bottom: 20px; }
.form-grid .form-group { margin-bottom: 0; }
.form-group > label { display: block; margin-bottom: 7px; color: #374151; font-size: 13px; font-weight: 650; }
.form-group .hint { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group select,
.form-group textarea { width: 100%; padding: 10px 12px; border: 1px solid #D1D5DB; border-radius: 8px; outline: 0; color: var(--text); background: #fff; font-size: 13px; font-family: inherit; transition: border-color 160ms ease, box-shadow 160ms ease; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--active); box-shadow: 0 0 0 3px rgba(5,5,5,.08); }
.form-group textarea { resize: vertical; }
.image-repeater { display: grid; gap: 10px; }
.text-danger, .form-group .text-danger { margin-top: 6px; color: var(--danger); font-size: 12px; font-weight: 600; }
.form-toggle { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 9px; background: #FAFAFA; }
.form-toggle input { width: 16px; height: 16px; accent-color: var(--active); }
.form-toggle label { margin: 0 !important; color: var(--text) !important; font-size: 13px; font-weight: 650; }
.form-actions { display: flex; align-items: center; gap: 10px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); }
@media (max-width: 680px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 20px; } }

/* ==========================================================================
   Category grid + product list — v2 design
   ========================================================================== */
.toolbar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.toolbar-count { color: var(--muted); font-size: 13px; font-weight: 600; }

.switch-form { display: inline-flex; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.switch-track { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--disabled); transition: background 160ms ease; }
.switch-track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform 160ms ease; }
.switch.is-on .switch-track { background: var(--success); }
.switch.is-on .switch-track::after { transform: translateX(16px); }
.switch-label { color: var(--muted); font-size: 12px; font-weight: 700; }
.switch.is-on .switch-label { color: #15803D; }

.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(252px, 1fr)); gap: 20px; }
.category-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); transition: box-shadow 180ms ease, transform 180ms ease; }
.category-card:hover { box-shadow: 0 10px 24px rgba(15,23,42,.08); transform: translateY(-2px); }
.category-card.is-inactive { opacity: .68; }
.category-card-media { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: #F3F4F6; }
.category-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.category-card-media .thumb-placeholder { width: 100%; height: 100%; border: 0; border-radius: 0; }
.category-card-media .badge { position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,.94); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.category-card-body { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 16px 16px 4px; }
.category-card-body h3 { margin: 0; color: var(--text); font-size: 15px; font-weight: 700; }
.category-card-body .cell-sub { color: var(--muted); font-size: 12px; }
.category-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--border); margin-top: 12px; background: #FAFAFA; }
.category-card-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); background: #fff; transition: background 160ms ease, color 160ms ease, border-color 160ms ease; }
.icon-btn:hover { color: var(--text); background: #F3F4F6; }
.icon-btn.icon-btn-danger:hover { border-color: #FCA5A5; color: var(--danger); background: #FEF2F2; }
.icon-btn svg { width: 15px; height: 15px; }

.product-list { display: flex; flex-direction: column; gap: 12px; }
.product-row { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); transition: box-shadow 180ms ease; }
.product-row:hover { box-shadow: 0 8px 18px rgba(15,23,42,.06); }
.product-row.is-inactive { opacity: .68; }
.product-row-media { flex: 0 0 auto; }
.product-row-media img, .product-row-media .thumb-placeholder { width: 56px; height: 56px; border-radius: 10px; }
.product-row-body { flex: 1; min-width: 0; }
.product-row-body h3 { margin: 0; overflow: hidden; color: var(--text); font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.product-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 5px; }
.product-row-meta .cell-sub { margin: 0; }
.product-row-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
@media (max-width: 680px) {
    .product-row { flex-wrap: wrap; }
    .product-row-actions { width: 100%; justify-content: flex-end; }
}

/* ==========================================================================
   Category list rows — v3, no image (name + toggle + edit/delete only)
   ========================================================================== */
.category-list { display: flex; flex-direction: column; }
.category-list-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--border); transition: background 160ms ease; }
.category-list-row:last-child { border-bottom: 0; }
.category-list-row:hover { background: #FAFAFA; }
.category-list-row.is-inactive { opacity: .6; }
.category-list-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.category-list-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

/* ==========================================================================
   Category list — premium v4
   ========================================================================== */
.premium-card { border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(180deg, #FFFFFF 0%, #FCFCFD 100%); box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 12px 28px rgba(15,23,42,.05); overflow: hidden; }
.premium-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.premium-count-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; color: var(--text); background: #fff; font-size: 12px; font-weight: 700; box-shadow: var(--shadow-sm); }
.premium-count-chip svg { width: 14px; height: 14px; color: var(--muted); }

.premium-list { display: flex; flex-direction: column; }

/* ===== Enquiries (premium rows) ===== */
.premium-row-main { display: flex; align-items: center; gap: 16px; min-width: 0; flex: 1; }
.premium-row.is-unread { background: #F8FEF4; }
.premium-row.is-unread:hover { background: #F2FCED; }
.premium-row-avatar { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #F1F5F9; color: #475569; font-weight: 800; font-size: 17px; }
.premium-row-content { min-width: 0; flex: 1; }
.premium-row-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; color: var(--text); }
.premium-row-sub { margin-top: 2px; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.premium-row-meta { flex: 0 0 auto; display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--muted); }
.premium-row-meta .meta-line { display: inline-flex; align-items: center; gap: 6px; }
.premium-row-meta .meta-line svg { width: 13px; height: 13px; }
.premium-row-meta .meta-line.muted { opacity: .75; }
.badge-new { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; background: #76A713; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.premium-toolbar-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-chip { display: inline-flex; align-items: center; padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; background: #fff; font-size: 12.5px; font-weight: 700; color: var(--muted); transition: all 150ms ease; }
.filter-chip:hover { color: var(--text); border-color: #C7CDD6; }
.filter-chip.active { background: var(--accent, #76A713); border-color: var(--accent, #76A713); color: #fff; }
.premium-search { position: relative; display: inline-flex; align-items: center; }
.premium-search svg { position: absolute; left: 12px; width: 14px; height: 14px; color: var(--muted); pointer-events: none; }
.premium-search input { width: 230px; padding: 8px 12px 8px 34px; border: 1px solid var(--border); border-radius: 10px; font-size: 13px; background: #fff; }
.premium-search input:focus { outline: none; border-color: var(--accent, #76A713); box-shadow: 0 0 0 3px rgba(118,167,19,.12); }
.icon-btn.danger:hover { border-color: #FCA5A5; color: #DC2626; background: #FEF2F2; }
.enquiry-detail-head { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-bottom: 1px solid #F1F2F4; }
.enquiry-message-box { margin: 20px 24px; padding: 18px 20px; border: 1px solid #EDF0F3; border-radius: 12px; background: #FAFAFB; color: var(--text); font-size: 14.5px; line-height: 1.7; white-space: pre-wrap; }
.premium-row-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.premium-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 24px; border-bottom: 1px solid #F1F2F4; transition: background 180ms ease; }
.premium-row:last-child { border-bottom: 0; }
.premium-row:hover { background: #FAFAFB; }
.premium-row.is-inactive { background: #FCFCFD; }
.premium-row.is-inactive .premium-avatar { filter: grayscale(1); opacity: .55; }
.premium-row.is-inactive .premium-name { color: var(--muted); }

.premium-row-left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.premium-avatar { display: grid; flex: 0 0 auto; place-items: center; width: 46px; height: 46px; border-radius: 13px; color: #fff; background: linear-gradient(135deg, #111827 0%, #374151 100%); font-size: 16px; font-weight: 800; letter-spacing: .02em; box-shadow: 0 4px 10px rgba(17,24,39,.18); }
.premium-thumb { flex: 0 0 auto; width: 52px; height: 52px; border: 1px solid var(--border); border-radius: 13px; object-fit: cover; background: #F3F4F6; box-shadow: 0 4px 10px rgba(17,24,39,.08); }
.premium-thumb-placeholder { display: grid; flex: 0 0 auto; place-items: center; width: 52px; height: 52px; border: 1px dashed var(--border); border-radius: 13px; color: #C7CBD1; background: #F9FAFB; }
.premium-thumb-placeholder svg { width: 20px; height: 20px; }
.premium-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.premium-name { overflow: hidden; color: var(--text); font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; }
.premium-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.premium-meta .dot { width: 3px; height: 3px; border-radius: 999px; background: #D1D5DB; }
.premium-chip { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; color: #1D4ED8; background: #EFF6FF; font-size: 11px; font-weight: 700; }

.premium-row-right { display: flex; flex: 0 0 auto; align-items: center; gap: 14px; }
.premium-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.premium-switch-track { position: relative; width: 42px; height: 24px; border-radius: 999px; background: #E5E7EB; box-shadow: inset 0 1px 2px rgba(0,0,0,.06); transition: background 200ms ease; }
.premium-switch-track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.28); transition: transform 200ms cubic-bezier(.4,0,.2,1); }
.premium-switch.is-on .premium-switch-track { background: linear-gradient(135deg, #16A34A, #15803D); }
.premium-switch.is-on .premium-switch-track::after { transform: translateX(18px); }
.premium-switch-text { min-width: 46px; color: var(--muted); font-size: 12px; font-weight: 700; text-align: left; }
.premium-switch.is-on .premium-switch-text { color: #15803D; }

.premium-divider { width: 1px; height: 26px; background: var(--border); }

.premium-icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid transparent; border-radius: 10px; color: var(--muted); background: transparent; transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease; }
.premium-icon-btn:hover { border-color: var(--border); color: var(--text); background: #fff; box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.premium-icon-btn.is-danger:hover { border-color: #FCA5A5; color: var(--danger); background: #FEF2F2; }
.premium-icon-btn svg { width: 16px; height: 16px; }

.premium-empty { display: grid; place-items: center; gap: 12px; padding: 72px 20px; text-align: center; }
.premium-empty-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; color: var(--muted); background: #F4F4F5; }
.premium-empty-icon svg { width: 24px; height: 24px; }
.premium-empty strong { color: var(--text); font-size: 15px; }
.premium-empty span { color: var(--muted); font-size: 13px; }

.premium-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 24px; }
.premium-pagination-info { margin: 0; color: var(--muted); font-size: 13px; font-weight: 500; }
.premium-pagination-info strong { color: var(--text); font-weight: 700; }
.premium-pagination-nav { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); }
.premium-page-link { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 8px; color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; transition: background 150ms ease, color 150ms ease; }
.premium-page-link svg, .premium-page-link i { width: 16px; height: 16px; }
a.premium-page-link:hover { color: var(--text); background: #F3F4F6; }
.premium-page-link.is-current { color: #fff; background: linear-gradient(135deg, #111827 0%, #374151 100%); box-shadow: 0 4px 10px rgba(17,24,39,.18); }
.premium-page-link.is-disabled { color: #D1D5DB; cursor: not-allowed; }
.premium-page-dots { display: inline-grid; place-items: center; min-width: 34px; height: 34px; color: #D1D5DB; font-size: 13px; font-weight: 700; }

@media (max-width: 640px) {
    .premium-pagination { justify-content: center; text-align: center; }
}

@media (max-width: 640px) {
    .premium-row { flex-wrap: wrap; padding: 16px; }
    .premium-row-right { width: 100%; justify-content: space-between; }
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
    z-index: 9999;
    animation: toast-in .3s ease;
}

.toast-success {
    background: #22c55e;
}


/* ==========================================================================
   PREMIUM DESIGN SYSTEM v5 — brand themes, sidebar, header, forms
   ========================================================================== */

/* ------------------------------------------------------------------
   1. Brand theming — KORUS green accent, HNC/JJ neutral
   ------------------------------------------------------------------ */
:root {
    --accent: #0F172A;
    --accent-hover: #1E293B;
    --accent-soft: #F1F5F9;
    --ring: rgba(15, 23, 42, .10);
    --font-display: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --shadow-md: 0 2px 4px rgba(15, 23, 42, .04), 0 12px 32px rgba(15, 23, 42, .08);
    --shadow-lg: 0 4px 8px rgba(15, 23, 42, .05), 0 20px 48px rgba(15, 23, 42, .12);
}

.brand-korus {
    --accent: #76A713;
    --accent-hover: #628F0B;
    --accent-soft: #F4FAE8;
    --ring: rgba(118, 167, 19, .16);
}

/* Parent group active highlight (e.g. Products jab Product List khuli ho) */
.sidebar-link.group-active {
    color: var(--accent);
    background: color-mix(in srgb, var(--accent-soft) 55%, transparent);
    font-weight: 700;
}

.sidebar-link.group-active svg {
    color: var(--accent);
}

/* ------------------------------------------------------------------
   2. Global typography & background polish
   ------------------------------------------------------------------ */
body.admin-shell {
    font-family: var(--font-display);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    background:
        radial-gradient(1200px 400px at 85% -10%, rgba(22, 163, 74, .05), transparent 60%),
        radial-gradient(900px 400px at -10% 110%, rgba(15, 23, 42, .04), transparent 55%),
        var(--bg);
}

h1, h2, h3, h4, .page-heading h1, .table-toolbar h2 {
    font-family: var(--font-display);
    letter-spacing: -.02em;
}

/* ------------------------------------------------------------------
   3. Premium sidebar — glass surface, accent active state
   ------------------------------------------------------------------ */
.app-sidebar {
    border-right: 1px solid #EDF0F3;
    background:
        linear-gradient(180deg, #FFFFFF 0%, #FBFCFD 100%);
    box-shadow: 1px 0 0 rgba(15, 23, 42, .02), 8px 0 32px rgba(15, 23, 42, .04);
}

.sidebar-top {
    padding: 24px 20px 16px;
}

.sidebar-top .fill {
    border-radius: 14px;
    border: 1px solid #EEF1F4;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .05);
}

.sidebar-nav {
    padding: 8px 14px 16px;
}

.sidebar-link {
    position: relative;
    min-height: 42px;
    margin-bottom: 2px;
    border-radius: 10px;
    color: #5B6472;
    font-size: 13.5px;
    font-weight: 600;
}

.sidebar-link svg {
    width: 17px;
    height: 17px;
    color: #8A93A2;
    transition: color 200ms ease, transform 200ms ease;
}

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

.sidebar-link:hover svg {
    color: var(--accent);
    transform: scale(1.06);
}

.sidebar-link.is-active {
    color: var(--accent);
    background: var(--accent-soft);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 16%, transparent);
}

.sidebar-link.is-active svg {
    color: var(--accent);
}

.sidebar-link.is-active::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    border-radius: 0 4px 4px 0;
    background: var(--accent);
}

.sidebar-sub-link {
    position: relative;
    padding: 8px 10px 8px 24px;
    border-radius: 8px;
    font-size: 12.5px;
}

.sidebar-sub-link::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #D3D9E0;
    transition: background 200ms ease;
}

.sidebar-sub-link:hover::before,
.sidebar-sub-link.is-active::before {
    background: var(--accent);
}

.sidebar-sub-link.is-active {
    color: var(--accent);
    background: var(--accent-soft);
    font-weight: 700;
}

.nested-links {
    padding: 2px 6px 8px 18px;
    margin: 0 6px 4px;
    border-left: 1px solid #EDF0F3;
}

.sidebar-nested summary.sidebar-link {
    user-select: none;
}

.nav-chevron {
    width: 15px;
    height: 15px;
}

.sidebar-bottom {
    border-top: 1px solid #EDF0F3;
    background: linear-gradient(180deg, transparent, #FAFBFC);
}

.sidebar-logout:hover {
    color: #DC2626;
    background: #FEF2F2;
}

/* Collapsed state polish */
.sidebar-collapsed .sidebar-link.is-active::before {
    display: none;
}

.sidebar-collapsed .sidebar-link {
    justify-content: center;
}

/* ------------------------------------------------------------------
   4. Header polish
   ------------------------------------------------------------------ */
.top-header {
    border-bottom: 1px solid #EDF0F3;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb span {
    font-weight: 700;
}

/* ------------------------------------------------------------------
   5. Page heading — eyebrow, refined title
   ------------------------------------------------------------------ */
.page-heading h1 {
    font-size: clamp(22px, 2.6vw, 28px);
    font-weight: 800;
}

.page-heading .muted {
    font-size: 13.5px;
}

/* ------------------------------------------------------------------
   6. Premium buttons
   ------------------------------------------------------------------ */
.btn {
    border-radius: 10px;
    font-weight: 700;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    border-color: transparent;
    box-shadow: 0 1px 2px color-mix(in srgb, var(--accent) 30%, transparent), 0 4px 12px color-mix(in srgb, var(--accent) 22%, transparent);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-hover) 100%);
    border-color: transparent;
}

/* ------------------------------------------------------------------
   7. Premium form cards & inputs
   ------------------------------------------------------------------ */
.form-card {
    border-radius: 20px;
    border-color: #EDF0F3;
    background: linear-gradient(180deg, #FFFFFF 0%, #FDFDFE 100%);
    box-shadow: var(--shadow-md);
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-bottom: 14px;
    border-bottom: 1px solid #EEF1F4;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #6B7280;
}

.form-section-title::before {
    content: '';
    width: 4px;
    height: 16px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #fff));
}

.form-group > label {
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: .01em;
    color: #3F4754;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group input[type="color"],
.form-group select,
.form-group textarea {
    border: 1px solid #DDE3EA;
    border-radius: 10px;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, .03);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-group input[type="color"] {
    width: 52px;
    height: 42px;
    padding: 4px;
    cursor: pointer;
}

.form-group input:hover, .form-group select:hover, .form-group textarea:hover {
    border-color: #C9D2DC;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--ring);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m6 9 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 38px;
}

.hint {
    display: inline-flex;
    align-items: flex-start;
    gap: 5px;
}

.form-toggle {
    border-radius: 12px;
    background: #F8FAFC;
    transition: border-color 160ms ease;
}

.form-toggle:hover {
    border-color: #C9D2DC;
}

.form-actions {
    padding-top: 20px;
    border-top: 1px dashed #E4E8EE;
}

/* ------------------------------------------------------------------
   8. Premium cards, rows & switches (shared)
   ------------------------------------------------------------------ */
.premium-card {
    border-radius: 20px;
    border-color: #EDF0F3;
    box-shadow: var(--shadow-md);
}

.premium-row {
    border-bottom-color: #F1F3F6;
}

.premium-row:hover {
    background: linear-gradient(90deg, var(--accent-soft) 0%, #FAFBFC 55%);
}

.premium-avatar {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    box-shadow: 0 4px 10px color-mix(in srgb, var(--accent) 25%, transparent);
    overflow: hidden;
}

.premium-chip {
    color: var(--accent);
    background: var(--accent-soft);
}

.premium-page-link.is-current {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    box-shadow: 0 4px 10px color-mix(in srgb, var(--accent) 28%, transparent);
}

.premium-icon-btn:hover {
    color: var(--accent);
}

.premium-count-chip {
    border-radius: 999px;
    font-weight: 800;
}

.premium-count-chip svg {
    color: var(--accent);
}

.premium-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.premium-search input {
    height: 38px;
    min-width: 240px;
    padding: 0 14px;
    border: 1px solid #DDE3EA;
    border-radius: 10px;
    outline: 0;
    background: #fff;
    font-size: 13px;
    font-family: inherit;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.premium-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--ring);
}

/* ------------------------------------------------------------------
   9. Alerts & toast
   ------------------------------------------------------------------ */
.alert {
    border-radius: 14px;
}

.toast {
    top: 24px;
    right: 24px;
    padding: 13px 22px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13.5px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .22);
}

.toast svg {
    width: 18px;
    height: 18px;
}

.toast-success {
    background: linear-gradient(135deg, #16A34A, #15803D);
}

/* ------------------------------------------------------------------
   10. Data tables polish
   ------------------------------------------------------------------ */
.data-card {
    border-radius: 20px;
    border-color: #EDF0F3;
    box-shadow: var(--shadow-md);
}

.data-table thead th {
    background: #F8FAFC;
    letter-spacing: .07em;
}

/* ------------------------------------------------------------------
   11. Image upload row & current chip (banner/about forms)
   ------------------------------------------------------------------ */
.image-upload-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.current-image-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid #E4E8EE;
    border-radius: 12px;
    background: #F8FAFC;
    box-shadow: var(--shadow-sm);
}

.current-image-chip img {
    border-radius: 8px;
    display: block;
}

.current-image-chip span {
    color: #64748B;
    font-size: 12px;
    font-weight: 600;
}

input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 9px 16px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 160ms ease;
}

input[type="file"]::file-selector-button:hover {
    opacity: .88;
}

/* ------------------------------------------------------------------
   12. Dashboard premium widgets
   ------------------------------------------------------------------ */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.stat-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border: 1px solid #EDF0F3;
    border-radius: 18px;
    background: linear-gradient(180deg, #FFFFFF 0%, #FCFDFE 100%);
    box-shadow: var(--shadow-sm);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

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

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #fff));
    opacity: 0;
    transition: opacity 200ms ease;
}

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

.stat-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    border-radius: 13px;
    color: var(--accent);
    background: var(--accent-soft);
}

.stat-icon svg {
    width: 21px;
    height: 21px;
}

.stat-value {
    display: block;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.1;
}

.stat-label {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 600;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px;
    border: 1px solid #EDF0F3;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    color: var(--text);
    font-weight: 700;
    font-size: 13.5px;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.quick-action:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--accent) 30%, #EDF0F3);
    box-shadow: var(--shadow-md);
}

.quick-action svg {
    width: 19px;
    height: 19px;
    color: var(--accent);
}

.quick-action small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
    align-items: start;
}

.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid #F1F3F6;
}

.panel-title h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
}

.panel-title a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--accent);
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
}

.panel-title a:hover {
    text-decoration: underline;
}

.panel-title svg {
    width: 15px;
    height: 15px;
}

.mini-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 22px;
    border-bottom: 1px solid #F4F5F7;
    color: inherit;
    text-decoration: none;
    transition: background 160ms ease;
}

.mini-row:last-child {
    border-bottom: 0;
}

.mini-row:hover {
    background: #FAFBFC;
}

.mini-row img,
.mini-row .mini-thumb-ph {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 11px;
    object-fit: cover;
    border: 1px solid #EDF0F3;
    background: #F8FAFC;
}

.mini-row .mini-thumb-ph {
    display: grid;
    place-items: center;
    color: #C7CBD1;
}

.mini-row .mini-thumb-ph svg {
    width: 17px;
    height: 17px;
}

.mini-name {
    overflow: hidden;
    font-size: 13.5px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mini-meta {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.mini-right {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

@media (max-width: 1080px) {
    .stat-grid, .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .stat-grid, .quick-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------
   13. Sectioned form cards — full-width, airy, numbered steps
   ------------------------------------------------------------------ */
.form-sections {
    display: grid;
    gap: 22px;
    max-width: 860px;
}

.form-section-card {
    padding: 26px 28px;
    border: 1px solid #EDF0F3;
    border-radius: 20px;
    background: linear-gradient(180deg, #FFFFFF 0%, #FDFDFE 100%);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 200ms ease, border-color 200ms ease;
}

.form-section-card:hover {
    border-color: #E2E7ED;
    box-shadow: var(--shadow-md);
}

.form-section-head {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #EEF1F4;
}

.form-section-num {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    color: var(--accent);
    background: var(--accent-soft);
    font-size: 13px;
    font-weight: 800;
}

.form-section-head h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.form-section-head .sub {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

.form-section-card .form-grid {
    gap: 18px;
}

.form-section-card .form-group:last-child {
    margin-bottom: 0;
}

/* Sticky bottom action bar */
.form-action-bar {
    position: sticky;
    bottom: 0;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 860px;
    margin-top: 22px;
    padding: 14px 20px;
    border: 1px solid #EDF0F3;
    border-radius: 16px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 -4px 24px rgba(15, 23, 42, .08);
}

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

.form-action-bar .status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid #E4E8EE;
    border-radius: 999px;
    background: #F8FAFC;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
}

.form-action-bar .status-chip .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9CA3AF;
}

.form-action-bar .status-chip.is-on {
    color: #15803D;
    border-color: #BBF7D0;
    background: #F0FDF4;
}

.form-action-bar .status-chip.is-on .dot {
    background: #16A34A;
}

.form-action-bar .hint-sm {
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.form-action-bar .right {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
}

@media (max-width: 680px) {
    .form-section-card { padding: 20px 18px; }
    .form-action-bar { flex-direction: column; align-items: stretch; }
    .form-action-bar .right { justify-content: flex-end; }
}

/* ------------------------------------------------------------------
   14a. Gallery dropzone — file/folder picker + previews
   ------------------------------------------------------------------ */
.gallery-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 28px 20px;
    border: 2px dashed #C9D2DC;
    border-radius: 16px;
    background: linear-gradient(180deg, #FAFBFC 0%, #F6F8FA 100%);
    text-align: center;
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.gallery-dropzone:hover,
.gallery-dropzone.is-dragover {
    border-color: var(--accent);
    background: var(--accent-soft);
    transform: translateY(-1px);
}

.gallery-dropzone > svg {
    width: 34px;
    height: 34px;
    color: var(--accent);
}

.gallery-dropzone strong {
    font-size: 14.5px;
    font-weight: 800;
}

.gallery-dropzone > span {
    color: var(--muted);
    font-size: 12.5px;
}

.gallery-dropzone .btn {
    margin-top: 2px;
}

.gallery-previews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.gallery-previews:empty {
    display: none;
}

.gallery-preview-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    border: 1px solid #EDF0F3;
    border-radius: 12px;
    background: #F8FAFC;
}

.gallery-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-preview-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    color: #fff;
    background: var(--accent);
    font-size: 10px;
    font-weight: 800;
}

.gallery-existing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.gallery-existing-item img {
    display: block;
    width: 100%;
    height: 90px;
    object-fit: cover;
    border: 1px solid #EDF0F3;
    border-radius: 10px 10px 0 0;
    background: #F8FAFC;
}

.gallery-existing-item input[type="text"] {
    width: 100%;
    padding: 7px 9px;
    border: 1px solid #DDE3EA;
    border-top: 0;
    border-radius: 0 0 10px 10px;
    outline: 0;
    font-size: 11px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.gallery-advanced {
    margin-top: 6px;
    padding: 12px 14px;
    border: 1px solid #EEF1F4;
    border-radius: 12px;
    background: #FAFBFC;
}

.gallery-advanced summary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.gallery-advanced summary::-webkit-details-marker {
    display: none;
}

.gallery-advanced summary svg {
    width: 14px;
    height: 14px;
}

.gallery-advanced[open] summary {
    color: var(--text);
}

/* ------------------------------------------------------------------
   14. Module layout — sub-nav sidebar + main content (edit pages)
   ------------------------------------------------------------------ */
.module-layout {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.module-nav {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 12px;
    border: 1px solid #EDF0F3;
    border-radius: 16px;
    background: linear-gradient(180deg, #FFFFFF 0%, #FBFCFD 100%);
    box-shadow: var(--shadow-sm);
}

.module-nav .sidebar-section-label {
    margin: 2px 8px 8px;
}

.module-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 9px;
    color: #5B6472;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease;
}

.module-nav-link svg {
    width: 16px;
    height: 16px;
    color: #8A93A2;
}

.module-nav-link:hover {
    color: var(--text);
    background: #F4F6F8;
}

.module-nav-link:hover svg {
    color: var(--accent);
}

.module-nav-link.is-active {
    color: var(--accent);
    background: var(--accent-soft);
}

.module-nav-link.is-active svg {
    color: var(--accent);
}

.module-nav-tip {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.5;
}

.module-nav-tip svg {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    margin-top: 2px;
}

.module-main {
    min-width: 0;
}

.module-main .form-sections {
    max-width: none;
}

.module-main .form-action-bar {
    max-width: none;
}

@media (max-width: 1080px) {
    .module-layout {
        grid-template-columns: 1fr;
    }

    .module-nav {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .module-nav .sidebar-section-label {
        width: 100%;
    }

    .module-nav-tip {
        display: none;
    }
}

.toast-hide {
    opacity: 0;
    transform: translateX(20px);
    transition: all .3s ease;
}

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-bottom: 24px; }
.stat-card { display: flex; align-items: center; gap: 16px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.stat-card-icon { display: grid; flex: 0 0 auto; place-items: center; width: 48px; height: 48px; border-radius: 12px; color: var(--active); background: #F3F4F6; }
.stat-card-icon svg { width: 22px; height: 22px; }
.stat-card-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat-card-value { font-size: 24px; font-weight: 750; letter-spacing: -.02em; color: var(--text); }
.stat-card-label { color: var(--muted); font-size: 13px; font-weight: 600; }
.dashboard-columns { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 960px) { .dashboard-columns { grid-template-columns: 1fr; } }
.mini-list { display: flex; flex-direction: column; }
.mini-list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #F1F2F4; }
.mini-list-row:last-child { border-bottom: 0; }
.mini-list-title { font-weight: 650; color: var(--text); font-size: 14px; }
.mini-list-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }

@keyframes toast-in {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

/* ------------------------------------------------------------------
   Product form — country & website purchase links (KORUS)
   ------------------------------------------------------------------ */
.plink-toggle {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid #E4E8EE;
    border-radius: 14px;
    background: #F8FAFC;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease;
}

.plink-toggle:hover { border-color: #CBD5E1; }

.plink-toggle.is-on {
    border-color: #BBF7D0;
    background: #F0FDF4;
}

.plink-toggle-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    color: var(--muted);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.plink-toggle.is-on .plink-toggle-icon { color: var(--success); }
.plink-toggle-icon svg { width: 18px; height: 18px; }

.plink-toggle-text { display: grid; flex: 1; gap: 2px; min-width: 0; }
.plink-toggle-text strong { color: var(--text); font-size: 13.5px; }
.plink-toggle-text span { color: var(--muted); font-size: 12px; }

.plink-toggle .switch-track { flex: 0 0 auto; }
.plink-toggle.is-on .switch-track { background: var(--success); }
.plink-toggle.is-on .switch-track::after { transform: translateX(16px); }

/* Links panel */
.plink-panel {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid #EDF0F3;
    border-radius: 16px;
    background: #F8FAFC;
}

.plink-panel[hidden] { display: none; }

.plink-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.plink-panel-head strong { display: block; color: var(--text); font-size: 13.5px; }
.plink-panel-head .hint { display: block; margin: 2px 0 0; color: var(--muted); font-size: 12px; }

.plink-quick { display: flex; flex-wrap: wrap; gap: 8px; }

.plink-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid #E2E8F0;
    border-radius: 999px;
    color: #334155;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.plink-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.plink-chip svg { width: 14px; height: 14px; }

.plink-list { display: grid; gap: 12px; }

.plink-row {
    overflow: hidden;
    border: 1px solid #E5E9EF;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.plink-row:hover,
.plink-row:focus-within {
    border-color: #CFD7E1;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
}

.plink-row-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 10px 14px;
    border-bottom: 1px solid #F1F4F7;
    background: #FCFDFE;
}

.plink-row-num {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    color: var(--accent);
    background: var(--accent-soft);
    font-size: 11.5px;
    font-weight: 800;
}

.plink-row-title {
    flex: 1;
    color: #475569;
    font-size: 12.5px;
    font-weight: 700;
}

.plink-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 14px;
    padding: 14px;
}

.plink-field { display: grid; gap: 6px; min-width: 0; }
.plink-field-url { grid-column: 1 / -1; }

.plink-field label {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.plink-field select,
.plink-field input[type="text"],
.plink-field input[type="url"] {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #DDE3EA;
    border-radius: 10px;
    outline: 0;
    color: var(--text);
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, .03);
    font-size: 13px;
    font-family: inherit;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.plink-field select {
    appearance: none;
    padding-right: 38px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m6 9 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}

.plink-field select:hover,
.plink-field input:hover { border-color: #C9D2DC; }

.plink-field select:focus,
.plink-field input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--ring);
}

.plink-field input[type="file"] {
    padding: 8px;
    border: 1px dashed #CBD5E1;
    border-radius: 10px;
    background: #F8FAFC;
    font-size: 12.5px;
}

.plink-url { position: relative; }

.plink-url svg {
    position: absolute;
    top: 50%;
    left: 11px;
    width: 15px;
    height: 15px;
    color: #9CA3AF;
    transform: translateY(-50%);
    pointer-events: none;
}

.plink-url input { padding-left: 34px !important; }

.plink-remove {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #94A3B8;
    background: transparent;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.plink-remove:hover { border-color: #FECACA; color: var(--danger); background: #FEF2F2; }
.plink-remove svg { width: 15px; height: 15px; }

.plink-add {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    border: 1.5px dashed #CBD5E1;
    border-radius: 14px;
    color: #475569;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.plink-add:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.plink-add svg { width: 16px; height: 16px; }

/* Quick-add popup */
.plink-dialog {
    width: min(440px, calc(100vw - 32px));
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .25);
}

.plink-dialog::backdrop {
    background: rgba(15, 23, 42, .45);
    backdrop-filter: blur(2px);
}

.plink-dialog-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #EEF1F4;
}

.plink-dialog-head .plink-toggle-icon { color: var(--accent); background: var(--accent-soft); box-shadow: none; }
.plink-dialog-head h3 { margin: 0; color: var(--text); font-size: 16px; font-weight: 800; }
.plink-dialog-head p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }

.plink-dialog-body { display: grid; gap: 14px; padding: 18px 20px; }
.plink-website-only { display: none; gap: 14px; }
.plink-dialog.is-website .plink-website-only { display: grid; }

.plink-dialog-note { margin: 0; color: var(--muted); font-size: 12px; }

.plink-dialog-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid #EEF1F4;
    background: #FAFBFC;
}

@media (max-width: 640px) {
    .plink-panel { padding: 12px; }
    .plink-row-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------
   Enquiries — tabs + search toolbar
   ------------------------------------------------------------------ */
.premium-row-avatar.is-new { color: #15803D; background: #ECFDF5; }

.enq-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
    padding: 10px;
    border: 1px solid #EDF0F3;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.enq-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    background: #F1F5F9;
}

.enq-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 34px;
    padding: 0 14px;
    border-radius: 9px;
    color: #64748B;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.enq-tab svg { width: 15px; height: 15px; }
.enq-tab:hover { color: var(--text); }

.enq-tab.is-active {
    color: var(--text);
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .1);
}

.enq-tab-count {
    min-width: 20px;
    padding: 1px 7px;
    border-radius: 999px;
    color: #fff;
    background: var(--success);
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

.enq-search {
    position: relative;
    display: flex;
    flex: 1 1 340px;
    align-items: center;
    max-width: 460px;
    height: 42px;
    padding: 0 4px 0 38px;
    border: 1px solid #DDE3EA;
    border-radius: 12px;
    background: #F8FAFC;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.enq-search:focus-within {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 4px var(--ring);
}

.enq-search > svg {
    position: absolute;
    left: 13px;
    width: 16px;
    height: 16px;
    color: #94A3B8;
    pointer-events: none;
}

.enq-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    font-size: 13.5px;
}

.enq-search input::-webkit-search-cancel-button { display: none; }

.enq-search-clear {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-right: 4px;
    border-radius: 8px;
    color: #94A3B8;
}

.enq-search-clear:hover { color: var(--danger); background: #FEF2F2; }
.enq-search-clear svg { width: 14px; height: 14px; }

.enq-search-btn {
    height: 34px;
    padding: 0 16px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: var(--accent);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 150ms ease;
}

.enq-search-btn:hover { opacity: .9; }

.enq-search-note {
    margin: -6px 0 14px;
    color: var(--muted);
    font-size: 13px;
}

.enq-search-note strong { color: var(--text); }

@media (max-width: 640px) {
    .enq-toolbar { flex-direction: column; align-items: stretch; }
    .enq-tabs { justify-content: space-between; }
    .enq-tab { flex: 1; justify-content: center; }
    .enq-search { max-width: none; flex-basis: auto; }
}
