@import url('./theme-core.css');
.matus-scrolltop {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 999;
    width: 48px;
    height: 48px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #fff;
    background: radial-gradient(circle at top right, rgba(196,153,91,.32), transparent 46%), rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 18px 50px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(.94);
    transition: .22s ease;
    cursor: pointer;
}
.matus-scrolltop.is-visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.matus-scrolltop svg { width: 22px; height: 22px; }
@media (max-width: 860px) { .matus-scrolltop { left: 14px; bottom: 88px; } }
body.light-mode .matus-scrolltop, html[data-theme="light"] .matus-scrolltop { color:#1f1a15; background:rgba(255,255,255,.72); border-color:rgba(90,68,43,.16); }

.matus-upload-card {
    min-height: 112px;
    padding: 16px;
    border-radius: 24px;
    display: grid;
    align-content: center;
    gap: 8px;
    cursor: pointer;
    background: radial-gradient(circle at top right, rgba(196,153,91,.16), transparent 46%), rgba(255,255,255,.065);
    border: 1px dashed rgba(255,255,255,.18);
    color: inherit;
}
.matus-upload-card input[type="file"] { display: none; }
.matus-upload-card b { color: rgba(255,255,255,.90); font-size: 13px; font-weight: 950; }
.matus-upload-card small, .matus-file-name { color: rgba(255,255,255,.54); font-size: 11px; font-weight: 800; line-height: 1.8; }
body.light-mode .matus-upload-card, html[data-theme="light"] .matus-upload-card { background:rgba(255,255,255,.68); border-color:rgba(90,68,43,.15); }
body.light-mode .matus-upload-card b, html[data-theme="light"] .matus-upload-card b { color:rgba(31,26,21,.86); }
body.light-mode .matus-upload-card small, body.light-mode .matus-file-name, html[data-theme="light"] .matus-upload-card small, html[data-theme="light"] .matus-file-name { color:rgba(31,26,21,.54); }

select, input, textarea, button { font-family: var(--font-main, Vazirmatn, Tahoma, Arial, sans-serif); }
.settings-field select, .customer-field select, .form-group select {
    width: 100%; min-height: 50px; padding: 0 14px; border-radius: 17px;
    color: inherit; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.11); outline: none;
}
.settings-field select:focus, .customer-field select:focus, .form-group select:focus { border-color: rgba(196,153,91,.36); box-shadow: 0 0 0 4px rgba(196,153,91,.09); }
.settings-field option, .customer-field option, .form-group option { color:#111; background:#fff; }

/* --------------------------------------------------
   MATUS Recovery v3.5 - unified shell, notifications, forms
-------------------------------------------------- */
.matus-shell-header,
.matus-auth-header {
    position: sticky;
    top: 10px;
    z-index: 120;
    width: min(1180px, calc(100% - 20px));
    min-height: 72px;
    margin: 10px auto 18px;
    padding: 9px 10px;
    border-radius: 28px;
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    gap: 10px;
    background: radial-gradient(circle at top right, rgba(196,153,91,.14), transparent 45%), rgba(255,255,255,.075);
    border: 1px solid rgba(255,255,255,.13);
    box-shadow: 0 18px 52px rgba(0,0,0,.22);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}
.matus-shell-logo,
.matus-auth-logo {
    width: 58px;
    height: 58px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    color: #fff;
    text-decoration: none;
    background: radial-gradient(circle at top right, rgba(196,153,91,.22), transparent 48%), rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.13);
    overflow: hidden;
}
.matus-shell-logo-svg,
.matus-auth-logo-svg { width: 42px; height: 42px; display:block; color: currentColor; }
.matus-shell-links { display:flex; align-items:center; justify-content:center; gap:7px; min-width:0; overflow-x:auto; scrollbar-width:none; }
.matus-shell-links::-webkit-scrollbar{display:none}
.matus-shell-links a,
.matus-auth-back {
    min-height: 42px;
    padding: 0 12px;
    border-radius: 16px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    color: rgba(255,255,255,.78);
    text-decoration:none;
    font-size: 12px;
    font-weight: 900;
    white-space:nowrap;
    border:1px solid transparent;
}
.matus-shell-links a.active,
.matus-shell-links a:hover,
.matus-auth-back:hover { background: rgba(196,153,91,.18); color:#fff; border-color: rgba(196,153,91,.18); }
.matus-shell-links .ui-icon,
.matus-auth-back .ui-icon { width:17px; height:17px; }
.matus-shell-actions,
.matus-auth-header-actions { display:flex; justify-content:flex-end; align-items:center; gap:8px; }
.matus-auth-header { grid-template-columns: auto 1fr; }
.matus-auth-header-actions { justify-self:end; }
.admin-notification-widget { position:relative; }
.top-icon-notification { position:relative; }
.top-icon-badge { position:absolute; top:-6px; right:-6px; min-width:20px; height:20px; padding:0 6px; border-radius:999px; display:grid; place-items:center; background:#ef4444; color:#fff; font-size:10px; font-weight:950; }
.admin-notification-drawer { position:absolute; top:calc(100% + 10px); left:0; width:min(360px, calc(100vw - 28px)); padding:12px; border-radius:22px; display:none; z-index:300; background:rgba(28,24,20,.86); border:1px solid rgba(255,255,255,.12); box-shadow:0 24px 70px rgba(0,0,0,.34); backdrop-filter:blur(22px); -webkit-backdrop-filter:blur(22px); }
.admin-notification-widget.is-open .admin-notification-drawer { display:grid; gap:8px; }
.drawer-head { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:0 4px 8px; }
.drawer-head a { color:#edcf9c; text-decoration:none; font-size:12px; font-weight:900; }
.drawer-note { padding:11px 12px; border-radius:17px; display:grid; gap:5px; text-decoration:none; color:inherit; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08); }
.drawer-note b { font-size:12px; font-weight:950; }
.drawer-note span,.drawer-empty { color:rgba(255,255,255,.58); font-size:11px; font-weight:800; line-height:1.9; margin:0; }
body.light-mode .matus-shell-header,html[data-theme="light"] .matus-shell-header,body.light-mode .matus-auth-header,html[data-theme="light"] .matus-auth-header{background:rgba(255,250,241,.78);border-color:rgba(90,68,43,.13);box-shadow:0 18px 52px rgba(80,60,35,.13)}
body.light-mode .matus-shell-logo,html[data-theme="light"] .matus-shell-logo,body.light-mode .matus-auth-logo,html[data-theme="light"] .matus-auth-logo{color:#1f1a15;background:rgba(255,255,255,.68);border-color:rgba(90,68,43,.12)}
body.light-mode .matus-shell-links a,html[data-theme="light"] .matus-shell-links a,body.light-mode .matus-auth-back,html[data-theme="light"] .matus-auth-back{color:rgba(31,26,21,.68)}
body.light-mode .admin-notification-drawer,html[data-theme="light"] .admin-notification-drawer{background:rgba(255,250,241,.92);border-color:rgba(90,68,43,.12);color:#1f1a15}.matus-file-name{display:block;margin-top:7px;color:rgba(255,255,255,.56);font-size:11px;font-weight:800}
@media(max-width:760px){.matus-shell-header{grid-template-columns:auto 1fr auto;min-height:68px;border-radius:24px}.matus-shell-logo,.matus-auth-logo{width:54px;height:54px;border-radius:20px}.matus-shell-logo-svg,.matus-auth-logo-svg{width:39px;height:39px}.matus-shell-links{justify-content:flex-start}.matus-shell-links a span{display:none}.matus-auth-header{grid-template-columns:auto 1fr}.matus-auth-back span{display:inline}.admin-notification-drawer{left:auto;right:0}}


/* MATUS UI DARK ONLY */
:root { color-scheme: dark; }
.matus-shell-actions:empty { display:none; }
[data-theme-toggle], .theme-switch, .theme-toggle { display:none!important; }

/* --------------------------------------------------
   MATUS UI v5 - shared component skin
   Use these classes for every new page/card/form.
-------------------------------------------------- */
.matus-ui-page-bg { background: var(--matus-ui-page-bg) !important; color: var(--matus-ui-text) !important; }
.matus-ui-title { color: var(--matus-ui-text); letter-spacing: -.03em; }
.matus-ui-muted { color: var(--matus-ui-text-soft); }
.matus-ui-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    color: var(--matus-ui-gold-2);
    background: rgba(196,153,91,.12);
    border: 1px solid rgba(237,207,156,.22);
    font-size: 11px;
    font-weight: 950;
}
.matus-ui-grid { display:grid; gap:14px; }
.matus-ui-form { display:grid; gap:14px; }
.matus-ui-actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }

.matus-shell-header,
.matus-auth-header,
.customer-top-nav,
.customer-bottom-nav,
.sidebar,
.admin-mobile-bottom-nav,
.public-topbar,
.paper-topbar {
    background: var(--matus-ui-gold-wash), var(--matus-ui-glass) !important;
    border: 1px solid var(--matus-ui-line) !important;
    box-shadow: var(--matus-ui-shadow-soft) !important;
    backdrop-filter: var(--matus-ui-blur-strong) !important;
    -webkit-backdrop-filter: var(--matus-ui-blur-strong) !important;
}

.matus-scrolltop {
    background: var(--matus-ui-button-glass) !important;
    border-color: var(--matus-ui-line) !important;
    box-shadow: var(--matus-ui-shadow-soft) !important;
    color: var(--matus-ui-text) !important;
}

.matus-upload-card {
    background: var(--matus-ui-gold-wash), var(--matus-ui-glass-soft) !important;
    border-color: rgba(237,207,156,.22) !important;
    box-shadow: var(--matus-ui-shadow-soft);
}
.matus-upload-card b { color: var(--matus-ui-text) !important; }
.matus-upload-card small,
.matus-file-name { color: var(--matus-ui-text-muted) !important; }

body.light-mode .matus-scrolltop,
html[data-theme="light"] .matus-scrolltop,
body.light-mode .matus-upload-card,
html[data-theme="light"] .matus-upload-card,
body.light-mode .matus-shell-header,
html[data-theme="light"] .matus-shell-header,
body.light-mode .matus-auth-header,
html[data-theme="light"] .matus-auth-header {
    color: var(--matus-ui-text) !important;
    background: var(--matus-ui-gold-wash), var(--matus-ui-glass) !important;
    border-color: var(--matus-ui-line) !important;
}


/* --------------------------------------------------
   MATUS UI shared responsive contract
   Loaded by public, customer and admin surfaces.
-------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; overflow-x: clip; }
img, picture, video, canvas, svg, iframe { max-width: 100%; }
img, video { height: auto; }
button, input, select, textarea { max-width: 100%; }
:where(.public-layout, .customer-shell, .customer-main, .admin-layout, .content, .main-card, .matus-panel, .glass-panel, .settings-section, .settings-fields-grid, .product-card, .category-card, .user-card, .role-card) {
    min-width: 0;
}
:where(.matus-ui-container, .matus-public-container) {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}
:where(.matus-ui-surface, .matus-public-surface) {
    background: var(--matus-ui-gold-wash), var(--matus-ui-glass);
    border: 1px solid var(--matus-ui-line);
    border-radius: var(--matus-ui-radius-xl);
    box-shadow: var(--matus-ui-shadow-soft);
    backdrop-filter: var(--matus-ui-blur);
    -webkit-backdrop-filter: var(--matus-ui-blur);
}
:where(.matus-ui-stack) { display: grid; gap: 16px; }
:where(.matus-ui-auto-grid) { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }

@media (max-width: 720px) {
    :where(.matus-ui-container, .matus-public-container) { width: min(100% - 18px, 560px); }
}
