:root {
    --font-ui: var(--font-family, 'Outfit', system-ui, -apple-system, sans-serif);
    --font-display: var(--font-family, 'Outfit', system-ui, -apple-system, sans-serif);
    --app-shell-max: 1180px;
    --surface-elevated: var(--card-bg);
    --surface-soft: color-mix(in srgb, var(--card-bg) 96%, white 4%);
    --surface-muted: #f8fafc;
    --surface-warning: #fffbeb;
    --surface-success: #eefdf3;
    --surface-danger: #fff5f5;
    --line-soft: var(--border-color);
    --button-primary-text: #ffffff;
}

html,
body {
    font-family: var(--font-ui);
    background: var(--bg-color);
    color: var(--text-main);
}

body,
button,
input,
select,
textarea {
    font-family: var(--font-ui);
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-font,
.header-title h1,
.sidebar-logo span {
    font-family: var(--font-display);
}

a,
button,
input,
select,
textarea {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body .wrapper.dashboard-layout,
body .main-content {
    background: transparent;
}

body[data-app-scope="user"] .sidebar,
body[data-app-scope="admin"] .sidebar,
body[data-app-scope="super"] .sidebar {
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    box-shadow: 20px 0 60px rgba(15, 23, 42, 0.12);
    padding: 22px 18px 18px;
}

body[data-app-scope="user"] .sidebar-header,
body[data-app-scope="admin"] .sidebar-header,
body[data-app-scope="super"] .sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 26px;
}

body .sidebar-logo-image {
    height: 32px;
    width: auto;
    object-fit: contain;
}

body .sidebar-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: color-mix(in srgb, var(--card-bg) 92%, white 8%);
    color: var(--sidebar-text);
    cursor: pointer;
}

body .nav-menu {
    gap: 8px;
}

body .nav-link {
    min-height: 48px;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

body .nav-link .nav-text {
    white-space: nowrap;
}

body .nav-link .nav-icon-wrapper {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 14px;
}

body .nav-caret {
    margin-left: auto;
    font-size: 11px;
    opacity: 0.55;
    transition: transform 0.24s ease, opacity 0.24s ease;
}

body .nav-submenu {
    margin: 0;
    padding: 0 0 0 14px;
    border-left: 1px solid color-mix(in srgb, var(--border-color) 60%, transparent);
    display: block;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-4px);
    transition: max-height 0.28s ease, opacity 0.22s ease, transform 0.22s ease, margin 0.22s ease;
}

body .nav-sublink {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid transparent;
    box-shadow: none;
    position: relative;
    transition: background-color 0.22s ease, color 0.22s ease, transform 0.22s ease, opacity 0.22s ease, border-color 0.22s ease;
    margin-bottom: 6px;
}

body .nav-submenu.open {
    max-height: 320px;
    opacity: 1;
    transform: translateY(0);
    margin: 6px 0 2px;
    padding-top: 4px;
    padding-bottom: 2px;
}

body .nav-link.active .nav-caret {
    transform: rotate(180deg);
    opacity: 0.9;
}

body .nav-sublink:hover,
body .nav-sublink.active {
    transform: translateX(2px);
}

body[data-app-scope="user"] .nav-sublink:hover,
body[data-app-scope="user"] .nav-sublink.active,
body[data-app-scope="admin"] .nav-sublink:hover,
body[data-app-scope="admin"] .nav-sublink.active,
body[data-app-scope="super"] .nav-sublink:hover,
body[data-app-scope="super"] .nav-sublink.active {
    background: color-mix(in srgb, var(--primary-color) 10%, transparent);
    color: var(--text-main);
    border-color: color-mix(in srgb, var(--primary-color) 18%, transparent);
    box-shadow: none;
}

body .nav-sublink::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 0;
    border-radius: 999px;
    background: var(--primary-color);
    opacity: 0;
    transform: translateY(-50%);
    transition: height 0.22s ease, opacity 0.22s ease;
}

body .nav-sublink:hover::before,
body .nav-sublink.active::before {
    height: 14px;
    opacity: .95;
}

body .nav-inline-badge,
body .nav-badge-inline {
    position: static;
    margin-left: auto;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 10px;
    line-height: 1;
}

body .nav-badge-inline {
    background: color-mix(in srgb, var(--primary-color) 10%, transparent);
    color: var(--primary-color);
    border: 1px solid color-mix(in srgb, var(--primary-color) 44%, transparent);
}

body .sidebar-cta {
    border-radius: 24px;
    padding: 12px;
    margin: 18px 0 14px;
    gap: 8px;
}

body .btn-cta {
    min-height: 44px;
    border-radius: 14px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
}

body .sidebar-footer {
    padding-top: 18px;
}

body .sidebar-footer-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid color-mix(in srgb, var(--border-color) 90%, transparent);
}

body .sidebar-footer-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--sidebar-text);
}

body .theme-switch {
    cursor: pointer;
    width: 48px;
    height: 26px;
    border-radius: 999px;
    position: relative;
    padding: 3px;
}

body .theme-switch-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    position: absolute;
    left: 3px;
    top: 3px;
}

body .theme-toggle-icon {
    font-size: 10px;
    color: #121421;
}

body .sidebar-user-avatar {
    border: 2px solid color-mix(in srgb, var(--border-color) 80%, transparent);
    padding: 2px;
    background: transparent;
}

body .user-info h4 {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main);
}

body .user-info p {
    font-size: 11px;
    opacity: 0.72;
    font-weight: 600;
}

body[data-app-scope="user"] .nav-link,
body[data-app-scope="admin"] .nav-link,
body[data-app-scope="super"] .nav-link,
body[data-app-scope="user"] .nav-sublink,
body[data-app-scope="admin"] .nav-sublink,
body[data-app-scope="super"] .nav-sublink {
    color: var(--sidebar-text);
}

body[data-app-scope="user"] .nav-link i,
body[data-app-scope="admin"] .nav-link i,
body[data-app-scope="super"] .nav-link i,
body[data-app-scope="user"] .nav-sublink i,
body[data-app-scope="admin"] .nav-sublink i,
body[data-app-scope="super"] .nav-sublink i {
    color: inherit;
}

body[data-app-scope="user"] .nav-link .nav-icon-wrapper,
body[data-app-scope="admin"] .nav-link .nav-icon-wrapper,
body[data-app-scope="super"] .nav-link .nav-icon-wrapper,
body[data-app-scope="user"] .btn-cta,
body[data-app-scope="admin"] .btn-cta,
body[data-app-scope="super"] .btn-cta {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

body[data-app-scope="user"] .nav-link:hover,
body[data-app-scope="user"] .nav-link.active,
body[data-app-scope="admin"] .nav-link:hover,
body[data-app-scope="admin"] .nav-link.active,
body[data-app-scope="super"] .nav-link:hover,
body[data-app-scope="super"] .nav-link.active {
    background: color-mix(in srgb, var(--primary-color) 14%, transparent);
    color: var(--text-main);
}

body[data-app-scope="user"] .nav-link:hover .nav-icon-wrapper,
body[data-app-scope="user"] .nav-link.active .nav-icon-wrapper,
body[data-app-scope="admin"] .nav-link:hover .nav-icon-wrapper,
body[data-app-scope="admin"] .nav-link.active .nav-icon-wrapper,
body[data-app-scope="super"] .nav-link:hover .nav-icon-wrapper,
body[data-app-scope="super"] .nav-link.active .nav-icon-wrapper {
    background: linear-gradient(135deg, var(--primary-color), var(--theme-accent));
    box-shadow: 0 14px 28px color-mix(in srgb, var(--primary-color) 22%, transparent);
}

body[data-app-scope="user"] .nav-link:hover .nav-icon-wrapper i,
body[data-app-scope="user"] .nav-link.active .nav-icon-wrapper i,
body[data-app-scope="admin"] .nav-link:hover .nav-icon-wrapper i,
body[data-app-scope="admin"] .nav-link.active .nav-icon-wrapper i,
body[data-app-scope="super"] .nav-link:hover .nav-icon-wrapper i,
body[data-app-scope="super"] .nav-link.active .nav-icon-wrapper i {
    color: #fff;
}

body[data-app-scope="user"] .main-content header,
body[data-app-scope="admin"] .main-content header,
body[data-app-scope="super"] .main-content header {
    background: color-mix(in srgb, var(--card-bg) 88%, transparent);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: none;
}

body .header-title h1,
body .header-title p,
body .sidebar-logo,
body .sidebar-logo span {
    color: var(--text-main);
}

body[data-theme-layout="neo-panel"] .sidebar-logo,
body[data-theme-layout="neo-panel"] .sidebar-logo span,
body[data-theme-layout="neo-panel"] .sidebar-footer-label,
body[data-theme-layout="neo-panel"] .user-info h4 {
    color: #ffffff;
}

body[data-theme-layout="neo-panel"] .user-info p {
    color: rgba(255, 255, 255, 0.68);
}

body .header-title p,
body .main-content p,
body .main-content .muted {
    color: var(--text-muted);
}

body .main-content h1,
body .main-content h2,
body .main-content h3,
body .main-content h4,
body .main-content strong,
body .main-content b {
    color: var(--text-main);
}

body .app-page-header {
    height: auto;
    min-height: 110px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 20px 24px;
    margin-bottom: 34px;
    border-radius: calc(var(--radius) + 2px);
    background: color-mix(in srgb, var(--card-bg) 88%, transparent);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

body .main-content > header:not(.app-page-header) {
    min-height: 110px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 20px 24px;
    margin-bottom: 34px;
    border-radius: calc(var(--radius) + 2px);
    background: color-mix(in srgb, var(--surface-elevated) 92%, transparent) !important;
    border: 1px solid var(--line-soft) !important;
    box-shadow: var(--shadow);
}

body .header-title {
    min-width: 0;
}

body .header-title h1 {
    margin: 0;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    line-height: 0.96;
    letter-spacing: -0.05em;
}

body .header-title h1 span {
    color: var(--primary-color);
}

body .header-subtitle {
    margin: 10px 0 0;
    font-size: 17px;
    line-height: 1.65;
    color: var(--text-muted);
}

body .header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    margin-left: auto;
}

body .header-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

body .header-currency-form {
    margin: 0;
}

body .header-currency-select {
    min-width: 120px;
    height: 48px;
    padding: 0 16px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    background: color-mix(in srgb, var(--card-bg) 94%, white 6%);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    box-shadow: none;
}

body .stat-card,
body .resource-card,
body .promo-banner,
body .access-container,
body .modal-content,
body .main-content div:is([style*="background: white"], [data-ui-style*="background: white"]),
body .main-content div:is([style*="background:#fff"], [data-ui-style*="background:#fff"]),
body .main-content div:is([style*="background: #fff"], [data-ui-style*="background: #fff"]),
body .main-content form:is([style*="background: white"], [data-ui-style*="background: white"]),
body .main-content section:is([style*="background: white"], [data-ui-style*="background: white"]) {
    background: var(--card-bg);
    border-color: var(--border-color);
    box-shadow: var(--shadow);
}

body .main-content :is(div, form, section, article):is([style*="background: white"], [data-ui-style*="background: white"]),
body .main-content :is(div, form, section, article):is([style*="background:#fff"], [data-ui-style*="background:#fff"]),
body .main-content :is(div, form, section, article):is([style*="background: #fff"], [data-ui-style*="background: #fff"]),
body .main-content :is(div, form, section, article):is([style*="background: rgba(255,255,255"], [data-ui-style*="background: rgba(255,255,255"]),
body .main-content :is(div, form, section, article):is([style*="background: rgba(255, 255, 255"], [data-ui-style*="background: rgba(255, 255, 255"]) {
    background: var(--surface-elevated) !important;
    color: var(--text-main) !important;
    border-color: var(--line-soft) !important;
}

body .main-content :is(div, form, section, article, input, textarea, select, thead, tr, td, th, span):is([style*="background: #f8fafc"], [data-ui-style*="background: #f8fafc"]),
body .main-content :is(div, form, section, article, input, textarea, select, thead, tr, td, th, span):is([style*="background:#f8fafc"], [data-ui-style*="background:#f8fafc"]),
body .main-content :is(div, form, section, article, input, textarea, select, thead, tr, td, th, span):is([style*="background: #f8f9fa"], [data-ui-style*="background: #f8f9fa"]),
body .main-content :is(div, form, section, article, input, textarea, select, thead, tr, td, th, span):is([style*="background:#f8f9fa"], [data-ui-style*="background:#f8f9fa"]),
body .main-content :is(div, form, section, article, input, textarea, select, thead, tr, td, th, span):is([style*="background: rgba(248,249"], [data-ui-style*="background: rgba(248,249"]),
body .main-content :is(div, form, section, article, input, textarea, select, thead, tr, td, th, span):is([style*="background: rgba(248, 249"], [data-ui-style*="background: rgba(248, 249"]) {
    background: var(--surface-muted) !important;
    border-color: var(--line-soft) !important;
}

body .main-content :is(div, section, article):is([style*="background: #fffbeb"], [data-ui-style*="background: #fffbeb"]),
body .main-content :is(div, section, article):is([style*="background:#fffbeb"], [data-ui-style*="background:#fffbeb"]) {
    background: var(--surface-warning) !important;
}

body .main-content :is(div, section, article):is([style*="background: #eefdf3"], [data-ui-style*="background: #eefdf3"]),
body .main-content :is(div, section, article):is([style*="background:#eefdf3"], [data-ui-style*="background:#eefdf3"]),
body .main-content :is(div, section, article):is([style*="background: #e6fffa"], [data-ui-style*="background: #e6fffa"]),
body .main-content :is(div, section, article):is([style*="background:#e6fffa"], [data-ui-style*="background:#e6fffa"]),
body .main-content .alert.success {
    background: var(--surface-success) !important;
}

body .main-content :is(div, section, article):is([style*="background: #fff5f5"], [data-ui-style*="background: #fff5f5"]),
body .main-content :is(div, section, article):is([style*="background:#fff5f5"], [data-ui-style*="background:#fff5f5"]),
body .main-content .alert.error {
    background: var(--surface-danger) !important;
}

body .main-content :is([style*="border: 1px solid #e2e8f0"], [data-ui-style*="border: 1px solid #e2e8f0"]),
body .main-content :is([style*="border:1px solid #e2e8f0"], [data-ui-style*="border:1px solid #e2e8f0"]),
body .main-content :is([style*="border: 1px solid #f1f5f9"], [data-ui-style*="border: 1px solid #f1f5f9"]),
body .main-content :is([style*="border:1px solid #f1f5f9"], [data-ui-style*="border:1px solid #f1f5f9"]),
body .main-content :is([style*="border-bottom: 1px solid #f1f5f9"], [data-ui-style*="border-bottom: 1px solid #f1f5f9"]),
body .main-content :is([style*="border-bottom:1px solid #f1f5f9"], [data-ui-style*="border-bottom:1px solid #f1f5f9"]) {
    border-color: var(--line-soft) !important;
}

body .main-content :is([style*="color: #0f172a"], [data-ui-style*="color: #0f172a"]),
body .main-content :is([style*="color:#0f172a"], [data-ui-style*="color:#0f172a"]),
body .main-content :is([style*="color: #08111f"], [data-ui-style*="color: #08111f"]),
body .main-content :is([style*="color:#08111f"], [data-ui-style*="color:#08111f"]),
body .main-content :is([style*="color: #1e293b"], [data-ui-style*="color: #1e293b"]),
body .main-content :is([style*="color:#1e293b"], [data-ui-style*="color:#1e293b"]) {
    color: var(--text-main) !important;
}

body .main-content :is([style*="color: #64748b"], [data-ui-style*="color: #64748b"]),
body .main-content :is([style*="color:#64748b"], [data-ui-style*="color:#64748b"]),
body .main-content :is([style*="color: #94a3b8"], [data-ui-style*="color: #94a3b8"]),
body .main-content :is([style*="color:#94a3b8"], [data-ui-style*="color:#94a3b8"]),
body .main-content :is([style*="color: #5f7185"], [data-ui-style*="color: #5f7185"]),
body .main-content :is([style*="color:#5f7185"], [data-ui-style*="color:#5f7185"]),
body .main-content :is([style*="color: #516173"], [data-ui-style*="color: #516173"]),
body .main-content :is([style*="color:#516173"], [data-ui-style*="color:#516173"]) {
    color: var(--text-muted) !important;
}

body .stat-card.subscription,
body .stat-card.blue {
    background: var(--color-blue) !important;
    border: none !important;
}

body .stat-card.expiry,
body .stat-card.green {
    background: var(--color-green) !important;
    border: none !important;
}

body .stat-card.download,
body .stat-card.salmon {
    background: var(--color-salmon) !important;
    border: none !important;
}

body .stat-card.yellow {
    background: var(--color-yellow) !important;
    border: none !important;
}

body .stat-card.subscription *,
body .stat-card.expiry *,
body .stat-card.download *,
body .stat-card.blue *,
body .stat-card.green *,
body .stat-card.yellow *,
body .stat-card.salmon * {
    color: #1a1d2e !important;
}

body input,
body select,
body textarea {
    background: color-mix(in srgb, var(--card-bg) 96%, white 4%);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

body input::placeholder,
body textarea::placeholder {
    color: var(--text-muted);
}

body .btn-primary,
body .btn-action.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--theme-accent));
    color: var(--button-primary-text);
    border: none;
    box-shadow: 0 16px 32px color-mix(in srgb, var(--primary-color) 22%, transparent);
}

body .btn-primary,
body .btn-action.primary,
body .btn-card-primary {
    color: var(--button-primary-text) !important;
}

body .btn-primary i,
body .btn-action.primary i,
body .btn-card-primary i {
    color: inherit !important;
}

body .btn-primary:hover,
body .btn-action.primary:hover {
    transform: translateY(-2px);
}

body .btn-action,
body .btn-secondary {
    background: color-mix(in srgb, var(--card-bg) 94%, white 6%);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

body .btn-icon,
body .btn-logout,
body .header-actions select,
body .modal-input,
body .modal-label + input,
body .modal-label + select,
body .badge-save,
body .nav-badge {
    border-color: var(--border-color);
}

body .badge-save,
body .nav-badge,
body .status-badge,
body .badge {
    background: color-mix(in srgb, var(--primary-color) 12%, white 88%);
    color: var(--text-main);
}

body .alert {
    padding: 16px 20px;
    border-radius: 16px;
    margin-bottom: 24px;
    font-weight: 700;
    border: 1px solid var(--line-soft);
    color: var(--text-main);
}

body .table-container,
body .main-content table:is([style*="width: 100%"], [data-ui-style*="width: 100%"]) {
    width: 100%;
    overflow: auto;
}

body .main-content table {
    color: var(--text-main);
}

body .main-content th,
body .main-content td {
    color: inherit;
    border-color: var(--line-soft);
}

body .main-content thead tr,
body .main-content thead:is([style*="background: #f8f9fa"], [data-ui-style*="background: #f8f9fa"]),
body .main-content thead:is([style*="background:#f8f9fa"], [data-ui-style*="background:#f8f9fa"]),
body .main-content tr:is([style*="background: #f8fafc"], [data-ui-style*="background: #f8fafc"]),
body .main-content tr:is([style*="background:#f8fafc"], [data-ui-style*="background:#f8fafc"]) {
    background: var(--surface-muted) !important;
}

body .main-content tbody tr:is([style*="background: white"], [data-ui-style*="background: white"]),
body .main-content tbody tr:is([style*="background:white"], [data-ui-style*="background:white"]),
body .main-content tbody tr:is([style*="background: #fff"], [data-ui-style*="background: #fff"]),
body .main-content tbody tr:is([style*="background:#fff"], [data-ui-style*="background:#fff"]) {
    background: var(--surface-elevated) !important;
}

body .main-content .card,
body .main-content .widget,
body .main-content .panel,
body .main-content .table-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

body .header-icon-link {
    position: relative;
    text-decoration: none;
}

body .header-icon-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--primary-color);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--card-bg);
    line-height: 1;
}

body .header-icon-badge-alert {
    background: #e35b3e;
}

body table,
body tbody tr,
body th,
body td {
    border-color: var(--border-color);
}

body .theme-panel {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

body .theme-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary-color) 10%, white 90%);
    color: var(--text-main);
    font-size: 12px;
    font-weight: 700;
}

body .theme-price-block {
    border-radius: calc(var(--radius) - 6px);
    background: color-mix(in srgb, var(--card-bg) 92%, white 8%);
    border: 1px solid color-mix(in srgb, var(--border-color) 100%, white 0%);
}

body .theme-feature-pack {
    border-radius: calc(var(--radius) - 6px);
    text-align: center;
}

body .theme-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

body .theme-tab {
    min-width: 210px;
    padding: 15px 22px;
    border-radius: 20px;
    background: color-mix(in srgb, var(--card-bg) 96%, white 4%);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-weight: 700;
    text-decoration: none;
    text-align: center;
}

body .shop-shell {
    font-family: var(--font-ui);
}

body .shop-shell :where(h1, h2, h3, h4, h5, h6, p, span, a, button, input, select, textarea, label, small, strong, em, div) {
    font-family: var(--font-ui);
}

body .shop-intro h1,
body .shop-section-title,
body .shop-product-title {
    font-family: var(--font-display) !important;
    color: var(--text-main) !important;
}

body .shop-intro p,
body .shop-toolbar p,
body .shop-product-desc,
body .shop-meta,
body .shop-stat-card .label,
body .shop-price small {
    color: var(--text-muted) !important;
}

body .shop-stat-card,
body .shop-sidebar-card,
body .shop-toolbar,
body .shop-product-card,
body .shop-empty {
    background: var(--surface-elevated) !important;
    border-color: var(--line-soft) !important;
    box-shadow: var(--shadow) !important;
}

body .shop-product-media,
body .shop-filter-link,
body .shop-input,
body .shop-select,
body .shop-link-inline,
body .shop-btn-secondary,
body .shop-filter-count {
    background: var(--surface-soft) !important;
    border-color: var(--line-soft) !important;
    color: var(--text-main) !important;
}

body .shop-submit,
body .shop-btn-primary,
body .shop-btn-inline {
    background: var(--primary-color) !important;
    background-image: none !important;
    color: var(--button-primary-text) !important;
    border: 1px solid transparent !important;
}

body .shop-badge {
    background: color-mix(in srgb, var(--text-main) 78%, transparent) !important;
    color: #ffffff !important;
}

body .theme-tab.is-active {
    background: linear-gradient(135deg, var(--primary-color), var(--theme-accent));
    color: #fff;
    border-color: transparent;
}

@media (max-width: 900px) {
    body .app-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    body .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    body .theme-tab {
        min-width: 100%;
    }
}

@media (max-width: 640px) {
    body .app-page-header {
        padding: 18px;
        gap: 18px;
    }

    body .header-title h1 {
        font-size: 32px;
    }

    body .header-subtitle {
        font-size: 15px;
    }

    body .header-actions,
    body .header-tools {
        width: 100%;
    }

    body .header-currency-form,
    body .header-currency-select,
    body .btn-logout {
        width: 100%;
    }
}
