/*
|--------------------------------------------------------------------------
| MPG Sitewide Modern UI V1
|--------------------------------------------------------------------------
| Presentation-only layer for authenticated, guest and public layouts.
| Existing page content, routes, permissions and business workflows remain.
*/

:root {
    --mpg-modern-ink: #13242f;
    --mpg-modern-ink-soft: #334a57;
    --mpg-modern-muted: #6b7d88;
    --mpg-modern-border: rgba(104, 126, 140, 0.22);
    --mpg-modern-border-strong: rgba(91, 113, 128, 0.32);
    --mpg-modern-surface: #ffffff;
    --mpg-modern-surface-soft: #f5f8f9;
    --mpg-modern-page: #eef3f4;
    --mpg-modern-brand: #0f766e;
    --mpg-modern-brand-dark: #0c5954;
    --mpg-modern-brand-soft: #e8f8f5;
    --mpg-modern-accent: #ff6845;
    --mpg-modern-accent-soft: #fff0eb;
    --mpg-modern-blue: #2563eb;
    --mpg-modern-violet: #7c3aed;
    --mpg-modern-success: #059669;
    --mpg-modern-warning: #d97706;
    --mpg-modern-danger: #dc2626;
    --mpg-modern-radius: 1rem;
    --mpg-modern-radius-sm: 0.72rem;
    --mpg-modern-shadow:
        0 1px 2px rgba(15, 23, 42, 0.025),
        0 10px 28px rgba(15, 23, 42, 0.055);
    --mpg-modern-shadow-lg:
        0 8px 18px rgba(15, 23, 42, 0.065),
        0 24px 55px rgba(15, 23, 42, 0.10);
    --mpg-sidebar-width: 18.5rem;
    --mpg-topbar-height: 4.75rem;
}

html {
    background: var(--mpg-modern-page);
}

body.mpg-modern-admin {
    background:
        radial-gradient(circle at 5% 0%, rgba(20, 184, 166, 0.08), transparent 24rem),
        radial-gradient(circle at 95% 0%, rgba(37, 99, 235, 0.05), transparent 25rem),
        linear-gradient(180deg, #f8fafb 0, #eef3f4 42rem, #f8fafb 100%);
    color: var(--mpg-modern-ink);
}

.mpg-modern-skip-link {
    position: fixed;
    top: .65rem;
    left: 50%;
    z-index: 250;
    transform: translate(-50%, -160%);
    border-radius: 999px;
    background: #13242f;
    color: #fff;
    padding: .65rem .95rem;
    font-size: .76rem;
    font-weight: 750;
}
.mpg-modern-skip-link:focus { transform: translate(-50%, 0); }

/* Authenticated app shell */
.mpg-modern-admin .mpg-sidebar {
    border-right: 1px solid rgba(255,255,255,.07);
    background:
        radial-gradient(circle at 15% 3%, rgba(45,212,191,.12), transparent 13rem),
        linear-gradient(180deg, #142a34 0%, #14252f 52%, #111f2a 100%);
    box-shadow: 18px 0 42px rgba(15, 23, 42, .13);
}
.mpg-modern-admin .mpg-brand {
    min-height: 5.3rem;
    border-bottom-color: rgba(255,255,255,.07);
}
.mpg-modern-admin .mpg-brand-mark {
    border: 1px solid rgba(255,255,255,.16);
    border-radius: .9rem;
    background: linear-gradient(145deg, #ff7a5b, #ff5937);
    box-shadow: 0 9px 22px rgba(255,104,69,.24);
}
.mpg-modern-admin .mpg-brand-title {
    font-weight: 820;
    letter-spacing: -.025em;
}
.mpg-modern-admin .mpg-brand-subtitle {
    overflow: hidden;
    max-width: 10.5rem;
    color: rgba(203,213,225,.62);
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mpg-modern-admin .mpg-sidebar-collapse {
    border: 1px solid rgba(255,255,255,.09);
    border-radius: .65rem;
    background: rgba(255,255,255,.05);
    color: rgba(226,232,240,.78);
}
.mpg-modern-admin .mpg-sidebar-collapse:hover {
    background: rgba(255,255,255,.09);
    color: #fff;
}
.mpg-modern-admin .mpg-nav { gap: .55rem; }
.mpg-modern-admin .mpg-nav-group-button,
.mpg-modern-admin .mpg-nav-link {
    border-radius: .78rem;
}
.mpg-modern-admin .mpg-nav-group-button {
    color: rgba(203,213,225,.62);
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .075em;
}
.mpg-modern-admin .mpg-nav-link {
    color: rgba(226,232,240,.80);
    font-size: .84rem;
    font-weight: 620;
}
.mpg-modern-admin .mpg-nav-link:hover {
    background: rgba(255,255,255,.06);
    color: #fff;
    transform: translateX(2px);
}
.mpg-modern-admin .mpg-nav-link.is-nested {
    color: rgba(203,213,225,.70);
}
.mpg-modern-admin .mpg-nav-link.is-active {
    background: linear-gradient(90deg, #ff704f, #ff5b39);
    color: #fff;
    box-shadow: 0 8px 18px rgba(255,104,69,.18);
}
.mpg-modern-admin .mpg-nav-link.is-active::after {
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255,255,255,.14);
}
.mpg-modern-admin .mpg-sidebar-footer {
    border-top-color: rgba(255,255,255,.07);
    background: rgba(2,6,23,.10);
}
.mpg-modern-admin .mpg-sidebar-user {
    border: 1px solid rgba(255,255,255,.09);
    border-radius: .9rem;
    background: rgba(255,255,255,.05);
}

.mpg-modern-admin .mpg-topbar {
    border-bottom: 1px solid rgba(104,126,140,.18);
    background: rgba(248,250,251,.90);
    box-shadow: 0 7px 24px rgba(15,23,42,.04);
    backdrop-filter: blur(16px) saturate(130%);
}
.mpg-modern-admin .mpg-page-title {
    color: var(--mpg-modern-ink);
    font-size: .94rem;
    font-weight: 790;
    letter-spacing: -.02em;
}
.mpg-modern-admin .mpg-icon-button,
.mpg-modern-admin .mpg-quick-create-trigger,
.mpg-modern-admin .mpg-profile-trigger {
    border-color: rgba(104,126,140,.23);
    border-radius: .78rem;
    background: rgba(255,255,255,.94);
    box-shadow: 0 1px 2px rgba(15,23,42,.025);
}
.mpg-modern-admin .mpg-icon-button:hover,
.mpg-modern-admin .mpg-profile-trigger:hover {
    border-color: rgba(15,118,110,.34);
    color: var(--mpg-modern-brand);
    transform: translateY(-1px);
}
.mpg-modern-admin .mpg-quick-create-trigger {
    border-color: transparent;
    background: linear-gradient(135deg,#ff704f,#ff5a38);
    color: #fff;
    box-shadow: 0 8px 20px rgba(255,104,69,.18);
}
.mpg-modern-admin .mpg-profile-trigger .mpg-avatar {
    border-radius: .68rem;
    background: linear-gradient(145deg,#0f766e,#0d9488);
    color: #fff;
}
.mpg-modern-admin .mpg-quick-create-menu,
.mpg-modern-admin .mpg-notification-menu,
.mpg-modern-admin .mpg-profile-menu {
    overflow: hidden;
    border-color: var(--mpg-modern-border);
    border-radius: .95rem;
    background: rgba(255,255,255,.98);
    box-shadow: var(--mpg-modern-shadow-lg);
    backdrop-filter: blur(18px);
}

/* Search and store */
.mpg-modern-admin .mpg-search-zone .mpg-page,
.mpg-modern-admin .mpg-store-zone .mpg-page { margin: 0; }
.mpg-modern-global-search input,
.mpg-modern-store-switcher select {
    min-height: 2.65rem !important;
    border: 1px solid rgba(104,126,140,.23) !important;
    border-radius: .78rem !important;
    background: rgba(255,255,255,.94) !important;
    box-shadow: 0 1px 2px rgba(15,23,42,.025) !important;
}
.mpg-modern-global-search input:focus,
.mpg-modern-store-switcher select:focus {
    border-color: rgba(15,118,110,.5) !important;
    box-shadow: 0 0 0 4px rgba(15,118,110,.09) !important;
}
.mpg-modern-search-results {
    border-color: var(--mpg-modern-border) !important;
    border-radius: .85rem !important;
    box-shadow: var(--mpg-modern-shadow-lg) !important;
}
.mpg-modern-search-results a {
    border-bottom: 1px solid rgba(104,126,140,.10);
}
.mpg-modern-search-results a:hover { background: #f0fdfa !important; }

/* Workspace */
.mpg-modern-admin .mpg-content {
    padding: 1.25rem 1rem 2.8rem;
}
.mpg-modern-admin .mpg-content-inner,
.mpg-modern-admin .mpg-footer-inner {
    max-width: 108rem;
}
.mpg-modern-admin .mpg-footer {
    border-top-color: rgba(104,126,140,.17);
    background: rgba(255,255,255,.56);
}
.mpg-modern-admin .mpg-route-page,
.mpg-modern-admin .mpg-page {
    gap: 1rem;
}

/* Page headers */
.mpg-modern-admin .mpg-modern-page-header {
    position: relative;
    display: grid !important;
    grid-template-columns: minmax(0,1fr) auto !important;
    align-items: center !important;
    min-height: 0 !important;
    gap: 1rem !important;
    border-color: var(--mpg-modern-border) !important;
    border-radius: var(--mpg-modern-radius) !important;
    background: linear-gradient(115deg,#fff,#f9fbfc) !important;
    padding: 1rem 1.1rem !important;
    box-shadow: var(--mpg-modern-shadow) !important;
}
.mpg-modern-admin .mpg-v2-page-header-copy {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
}
.mpg-modern-admin .mpg-v2-page-heading {
    margin: 0;
    color: var(--mpg-modern-ink) !important;
    font-size: clamp(1.2rem,1.8vw,1.55rem) !important;
    font-weight: 820 !important;
    letter-spacing: -.035em !important;
    line-height: 1.2;
}
.mpg-modern-admin .mpg-v2-page-header-copy p {
    display: -webkit-box;
    overflow: hidden;
    max-width: 48rem;
    margin-top: .28rem !important;
    color: var(--mpg-modern-muted) !important;
    font-size: .78rem !important;
    line-height: 1.45 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.mpg-modern-admin .mpg-v2-eyebrow {
    color: var(--mpg-modern-brand);
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .08em;
}
.mpg-modern-admin .mpg-v2-page-actions {
    display: flex !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    gap: .5rem !important;
}
.mpg-modern-admin .mpg-v2-page-actions > * { width: auto !important; }

/* Cards, panels and layouts across all modules */
.mpg-modern-admin .mpg-page :where(section, article, aside, form, div)[class*="border"][class*="bg-white"]:not(.mpg-topbar-inner):not(.mpg-sidebar-user):not(.mpg-profile-menu):not(.mpg-notification-menu):not(.mpg-quick-create-menu),
.mpg-modern-admin .ui-card,
.mpg-modern-admin .ui-table-shell,
.mpg-modern-admin .mpg-v2-card,
.mpg-modern-admin .mpg-modern-table-shell {
    border-color: var(--mpg-modern-border) !important;
    border-radius: var(--mpg-modern-radius) !important;
    background-color: var(--mpg-modern-surface) !important;
    box-shadow: var(--mpg-modern-shadow) !important;
}
.mpg-modern-admin .mpg-page :where(section, article, aside)[class*="bg-zinc-50"],
.mpg-modern-admin .mpg-page :where(section, article, aside)[class*="bg-slate-50"] {
    border-color: var(--mpg-modern-border) !important;
    border-radius: var(--mpg-modern-radius) !important;
    background-color: var(--mpg-modern-surface-soft) !important;
}
.mpg-modern-admin .mpg-page h1 {
    color: var(--mpg-modern-ink);
    font-weight: 820;
    letter-spacing: -.035em;
}
.mpg-modern-admin .mpg-page h2 {
    color: var(--mpg-modern-ink);
    font-weight: 780;
    letter-spacing: -.02em;
}
.mpg-modern-admin .mpg-page h3 {
    color: var(--mpg-modern-ink-soft);
    font-weight: 740;
}
.mpg-modern-admin .mpg-page p,
.mpg-modern-admin .mpg-page small {
    color: var(--mpg-modern-muted);
}

/* Inputs and toolbars */
.mpg-modern-admin .mpg-page input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
.mpg-modern-admin .mpg-page select,
.mpg-modern-admin .mpg-page textarea {
    border-color: rgba(104,126,140,.28) !important;
    border-radius: var(--mpg-modern-radius-sm) !important;
    background: #fff !important;
    color: var(--mpg-modern-ink) !important;
    box-shadow: 0 1px 2px rgba(15,23,42,.025) !important;
}
.mpg-modern-admin .mpg-page input:focus,
.mpg-modern-admin .mpg-page select:focus,
.mpg-modern-admin .mpg-page textarea:focus {
    border-color: rgba(15,118,110,.52) !important;
    box-shadow: 0 0 0 4px rgba(15,118,110,.09) !important;
}
.mpg-modern-admin .mpg-page label {
    color: #536774;
    font-weight: 680;
}
.mpg-modern-admin .mpg-page [class*="border-t"],
.mpg-modern-admin .mpg-page [class*="border-b"] {
    border-color: rgba(104,126,140,.14) !important;
}

/* Buttons */
.mpg-modern-admin .mpg-page button,
.mpg-modern-admin .mpg-page a[class*="px-"],
.mpg-modern-admin .ui-button-primary,
.mpg-modern-admin .ui-button-secondary,
.mpg-modern-admin .ui-button-danger,
.mpg-modern-admin .mpg-modern-loading-button {
    border-radius: .7rem !important;
    font-weight: 700;
}
.mpg-modern-admin .mpg-page button[class*="bg-zinc-900"],
.mpg-modern-admin .mpg-page a[class*="bg-zinc-900"],
.mpg-modern-admin .mpg-page button[class*="bg-emerald-"],
.mpg-modern-admin .mpg-page a[class*="bg-emerald-"],
.mpg-modern-admin .ui-button-primary,
.mpg-modern-admin .mpg-modern-loading-button {
    border-color: transparent !important;
    background: linear-gradient(135deg,var(--mpg-modern-brand),#0d9488) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(15,118,110,.14);
}
.mpg-modern-admin .mpg-page button[class*="bg-zinc-900"]:hover,
.mpg-modern-admin .mpg-page a[class*="bg-zinc-900"]:hover,
.mpg-modern-admin .mpg-page button[class*="bg-emerald-"]:hover,
.mpg-modern-admin .mpg-page a[class*="bg-emerald-"]:hover,
.mpg-modern-admin .ui-button-primary:hover {
    background: linear-gradient(135deg,var(--mpg-modern-brand-dark),var(--mpg-modern-brand)) !important;
    transform: translateY(-1px);
}
.mpg-modern-admin .mpg-page button[class*="border-zinc-"],
.mpg-modern-admin .mpg-page a[class*="border-zinc-"],
.mpg-modern-admin .ui-button-secondary {
    border-color: rgba(104,126,140,.28) !important;
    background: #fff !important;
    color: var(--mpg-modern-ink-soft) !important;
}
.mpg-modern-admin .mpg-page button[class*="border-zinc-"]:hover,
.mpg-modern-admin .mpg-page a[class*="border-zinc-"]:hover,
.mpg-modern-admin .ui-button-secondary:hover {
    border-color: rgba(15,118,110,.28) !important;
    background: #f7fbfa !important;
}
.mpg-modern-admin .mpg-page button[class*="bg-red-"],
.mpg-modern-admin .mpg-page a[class*="bg-red-"],
.mpg-modern-admin .ui-button-danger {
    background: linear-gradient(135deg,#dc2626,#ef4444) !important;
    color: #fff !important;
}

/* Tables */
.mpg-modern-admin .mpg-modern-table-shell,
.mpg-modern-admin .mpg-page :where(section,div)[class*="overflow-x-auto"]:has(> table),
.mpg-modern-admin .mpg-page :where(section,div)[class*="overflow-hidden"]:has(> table) {
    max-width: 100%;
    overflow-x: auto !important;
    border: 1px solid var(--mpg-modern-border) !important;
    border-radius: var(--mpg-modern-radius) !important;
    background: #fff !important;
    box-shadow: var(--mpg-modern-shadow) !important;
}
.mpg-modern-admin .mpg-page table {
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
}
.mpg-modern-admin .mpg-page thead {
    background: linear-gradient(180deg,#f8fafb,#f3f7f8) !important;
}
.mpg-modern-admin .mpg-page th {
    position: sticky;
    top: 0;
    z-index: 1;
    border-bottom: 1px solid rgba(104,126,140,.16);
    color: #657985 !important;
    font-size: .67rem !important;
    font-weight: 800 !important;
    letter-spacing: .055em !important;
}
.mpg-modern-admin .mpg-page tbody {
    background: #fff !important;
}
.mpg-modern-admin .mpg-page td {
    border-bottom-color: rgba(104,126,140,.10) !important;
    color: #405563 !important;
}
.mpg-modern-admin .mpg-page tbody tr:hover {
    background: #f4fbf9 !important;
}
.mpg-modern-admin .mpg-page tbody tr:last-child td {
    border-bottom: 0;
}

/* Badges and alerts */
.mpg-modern-status-badge,
.mpg-modern-admin .mpg-page [class*="rounded-full"][class*="text-xs"] {
    letter-spacing: .005em;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
.mpg-modern-admin .mpg-page [class*="bg-green-50"][class*="border-green-"],
.mpg-modern-admin .mpg-page [class*="bg-red-50"][class*="border-red-"],
.mpg-modern-admin .mpg-page [class*="bg-amber-50"][class*="border-amber-"],
.mpg-modern-admin .mpg-page [class*="bg-blue-50"][class*="border-blue-"] {
    border-radius: .8rem !important;
    box-shadow: 0 5px 14px rgba(15,23,42,.035);
}

/* Empty, modal, drawer, toast */
.mpg-modern-empty-state {
    border-color: rgba(104,126,140,.30) !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(20,184,166,.07), transparent 11rem),
        #fff !important;
}
.mpg-modern-modal-backdrop,
.mpg-modern-drawer-backdrop {
    background: rgba(15,23,42,.55) !important;
    backdrop-filter: blur(5px);
}
.mpg-modern-modal-panel,
.mpg-modern-drawer-panel {
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 1rem !important;
    box-shadow: 0 30px 80px rgba(15,23,42,.28) !important;
}
.mpg-modern-drawer-panel {
    border-radius: 1rem 0 0 1rem !important;
}
.mpg-modern-toast {
    border-color: var(--mpg-modern-border) !important;
    border-radius: .85rem !important;
    box-shadow: var(--mpg-modern-shadow-lg) !important;
}

/* Pagination */
.mpg-modern-admin nav[role="navigation"] {
    color: var(--mpg-modern-muted);
}
.mpg-modern-admin nav[role="navigation"] a,
.mpg-modern-admin nav[role="navigation"] span[aria-current="page"] > span {
    border-color: rgba(104,126,140,.22) !important;
}
.mpg-modern-admin nav[role="navigation"] span[aria-current="page"] > span {
    background: var(--mpg-modern-brand) !important;
    color: #fff !important;
}

/* Dashboard existing content, no added filler */
.mpg-modern-admin .mpg-v2-dashboard-hero {
    border-color: rgba(255,255,255,.08) !important;
    border-radius: 1.1rem !important;
    background:
        radial-gradient(circle at 86% 0%, rgba(45,212,191,.17), transparent 14rem),
        linear-gradient(125deg,#123139,#153d43 58%,#1b3447) !important;
    color: #fff;
    box-shadow: 0 18px 38px rgba(15,23,42,.15) !important;
}
.mpg-modern-admin .mpg-v2-dashboard-hero h1,
.mpg-modern-admin .mpg-v2-dashboard-hero h2,
.mpg-modern-admin .mpg-v2-dashboard-hero p {
    color: #fff !important;
}
.mpg-modern-admin .mpg-v2-metric,
.mpg-modern-admin .mpg-v2-card {
    border-color: var(--mpg-modern-border) !important;
    border-radius: var(--mpg-modern-radius) !important;
    background: #fff !important;
    box-shadow: var(--mpg-modern-shadow) !important;
}
.mpg-modern-admin .mpg-v2-metric:hover,
.mpg-modern-admin a.mpg-v2-metric:hover {
    border-color: rgba(15,118,110,.25) !important;
    box-shadow: var(--mpg-modern-shadow-lg) !important;
    transform: translateY(-2px);
}
.mpg-modern-admin .mpg-v2-progress-track {
    overflow: hidden;
    border-radius: 999px;
}
.mpg-modern-admin .mpg-v2-quick-action {
    border-color: var(--mpg-modern-border) !important;
    border-radius: .8rem !important;
    background: #fff !important;
}
.mpg-modern-admin .mpg-v2-quick-action:hover {
    border-color: rgba(15,118,110,.28) !important;
    box-shadow: 0 10px 22px rgba(15,23,42,.07);
}

/* Forms with side panels (inventory, order, leads, settings) */
.mpg-modern-admin .mpg-page form[class*="space-y-"] {
    accent-color: var(--mpg-modern-brand);
}
.mpg-modern-admin .mpg-page [class*="xl:grid-cols-["],
.mpg-modern-admin .mpg-page [class*="lg:grid-cols-["] {
    min-width: 0;
}
.mpg-modern-admin .mpg-page [class*="sticky"] {
    border-radius: var(--mpg-modern-radius);
}

/* Floating approval shortcut */
.mpg-modern-admin body > .fixed.bottom-5.right-5 a,
.mpg-modern-admin .fixed.bottom-5.right-5 a {
    background: linear-gradient(135deg,var(--mpg-modern-brand),#0d9488) !important;
    box-shadow: 0 14px 30px rgba(15,118,110,.20) !important;
}

/* Public portal */
body.mpg-modern-public {
    background:
        radial-gradient(circle at 10% 0%, rgba(20,184,166,.08), transparent 24rem),
        linear-gradient(180deg,#f9fbfb,#eff5f4 40rem,#f9fbfb);
}
.mpg-modern-public .mpg-public-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-color: rgba(104,126,140,.18) !important;
    background: rgba(255,255,255,.90) !important;
    box-shadow: 0 7px 24px rgba(15,23,42,.04);
    backdrop-filter: blur(16px);
}
.mpg-modern-public .mpg-public-header-inner {
    min-height: 4.6rem;
}
.mpg-modern-public .mpg-public-nav a {
    border-radius: .65rem;
    padding: .5rem .68rem;
    font-weight: 650;
}
.mpg-modern-public .mpg-public-nav a:hover {
    background: #f0fdfa;
    color: var(--mpg-modern-brand);
}
.mpg-modern-public .mpg-public-nav a[class*="bg-zinc-900"] {
    background: linear-gradient(135deg,var(--mpg-modern-brand),#0d9488) !important;
    color: #fff !important;
}
.mpg-modern-public .mpg-public-main {
    min-height: calc(100vh - 10rem);
}
.mpg-modern-public .mpg-page :where(section,article,div,a)[class*="border"][class*="bg-white"] {
    border-color: var(--mpg-modern-border) !important;
    border-radius: var(--mpg-modern-radius) !important;
    background: #fff !important;
    box-shadow: var(--mpg-modern-shadow);
}
.mpg-modern-public .mpg-page a[class*="bg-zinc-900"],
.mpg-modern-public .mpg-page button[class*="bg-zinc-900"] {
    border-radius: .7rem !important;
    background: linear-gradient(135deg,var(--mpg-modern-brand),#0d9488) !important;
    color: #fff !important;
}
.mpg-modern-public .mpg-page input,
.mpg-modern-public .mpg-page select,
.mpg-modern-public .mpg-page textarea {
    border-color: rgba(104,126,140,.28) !important;
    border-radius: .7rem !important;
    background: #fff !important;
}
.mpg-modern-public .mpg-page img {
    transition: transform .2s ease;
}
.mpg-modern-public .mpg-page a:hover img {
    transform: scale(1.025);
}
.mpg-modern-public .mpg-public-footer {
    border-color: rgba(104,126,140,.18) !important;
    background: rgba(255,255,255,.74) !important;
}

/* Login */
body.mpg-modern-guest {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 12%, rgba(45,212,191,.20), transparent 22rem),
        radial-gradient(circle at 82% 88%, rgba(255,104,69,.15), transparent 20rem),
        linear-gradient(135deg,#102731,#13212c 56%,#172b39);
}
.mpg-modern-guest::before {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),
        linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);
    background-size: 36px 36px;
    content: "";
}
.mpg-modern-guest .mpg-guest-main {
    position: relative;
    z-index: 1;
}
.mpg-modern-guest .mpg-page {
    border: 1px solid rgba(255,255,255,.58);
    border-radius: 1.1rem !important;
    box-shadow: 0 28px 80px rgba(2,6,23,.32) !important;
}
.mpg-modern-guest .mpg-page input {
    min-height: 2.75rem;
    border-color: rgba(104,126,140,.28) !important;
    border-radius: .72rem !important;
}
.mpg-modern-guest .mpg-page button[type="submit"] {
    min-height: 2.85rem;
    border-radius: .72rem !important;
    background: linear-gradient(135deg,var(--mpg-modern-brand),#0d9488) !important;
    box-shadow: 0 10px 24px rgba(15,118,110,.18);
}

/* Responsive */
@media (min-width: 768px) {
    .mpg-modern-admin .mpg-content {
        padding: 1.45rem 1.4rem 3rem;
    }
}
@media (max-width: 1023px) {
    .mpg-modern-admin .mpg-topbar-context { display: none; }
    .mpg-modern-admin .mpg-content { padding-top: 1rem; }
}
@media (max-width: 767px) {
    :root { --mpg-topbar-height: 4.35rem; }
    .mpg-modern-admin .mpg-topbar-inner {
        gap: .4rem;
        padding: .48rem .58rem;
    }
    .mpg-modern-admin .mpg-content {
        padding: .72rem .62rem 2.1rem;
    }
    .mpg-modern-admin .mpg-search-zone input,
    .mpg-modern-admin .mpg-store-zone select {
        min-height: 2.5rem !important;
        font-size: .72rem !important;
    }
    .mpg-modern-admin .mpg-store-zone {
        min-width: 6.7rem;
        max-width: 8rem;
    }
    .mpg-modern-admin .mpg-modern-page-header {
        grid-template-columns: minmax(0,1fr) !important;
        align-items: stretch !important;
        gap: .72rem !important;
        padding: .88rem !important;
    }
    .mpg-modern-admin .mpg-v2-page-actions {
        display: grid !important;
        grid-template-columns: repeat(2,minmax(0,1fr)) !important;
        justify-content: stretch !important;
    }
    .mpg-modern-admin .mpg-v2-page-actions > * {
        width: 100% !important;
        text-align: center;
    }
    .mpg-modern-admin .mpg-page :where(section,article,aside,form,div)[class*="border"][class*="bg-white"] {
        border-radius: .88rem !important;
    }
    .mpg-modern-admin .mpg-page th,
    .mpg-modern-admin .mpg-page td {
        padding-right: .72rem !important;
        padding-left: .72rem !important;
    }
    .mpg-modern-admin .mpg-page button[class*="bg-"],
    .mpg-modern-admin .mpg-page a[class*="bg-"],
    .mpg-modern-admin .mpg-page button[class*="border-zinc-"],
    .mpg-modern-admin .mpg-page a[class*="border-zinc-"] {
        min-height: 2.55rem;
    }
    .mpg-modern-public .mpg-public-header-inner {
        align-items: flex-start;
        gap: .65rem;
    }
    .mpg-modern-public .mpg-public-nav {
        max-width: 72%;
        overflow-x: auto;
        padding-bottom: .2rem;
    }
    .mpg-modern-public .mpg-public-main {
        padding-top: 1.25rem;
        padding-bottom: 2rem;
    }
}
@media (max-width: 430px) {
    .mpg-modern-admin .mpg-store-zone { display: none; }
    .mpg-modern-admin .mpg-v2-page-actions {
        grid-template-columns: minmax(0,1fr) !important;
    }
    .mpg-modern-public .mpg-public-header-inner {
        flex-direction: column;
        align-items: stretch;
    }
    .mpg-modern-public .mpg-public-nav {
        max-width: 100%;
    }
}
@media (prefers-reduced-motion: reduce) {
    .mpg-modern-admin *,
    .mpg-modern-public *,
    .mpg-modern-guest * {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
