/* Final application design layer. Loaded after page-level styles. */

body.app-body {
    background: var(--app-color-bg);
    color: var(--app-color-text);
}

body.app-body h1,
body.app-body h2,
body.app-body h3,
body.app-body h4,
body.app-body strong,
body.app-body b {
    color: inherit;
    letter-spacing: 0;
}

body.app-body button,
body.app-body a,
body.app-body input,
body.app-body select,
body.app-body textarea,
body.app-body summary {
    -webkit-tap-highlight-color: transparent;
}

body.app-body button:active:not(:disabled),
body.app-body .app-button:active:not(:disabled),
body.app-body .app-icon-button:active:not(:disabled) {
    transform: translateY(1px);
}

/* Core controls */
.app-button,
.app-icon-button {
    border-radius: var(--app-radius-md);
    font-size: 14px;
    font-weight: 600;
    box-shadow: none;
    transition:
        background-color var(--app-transition-fast),
        border-color var(--app-transition-fast),
        color var(--app-transition-fast),
        box-shadow var(--app-transition-fast),
        transform var(--app-transition-fast);
}

.app-button .app-icon,
.identity-submit .app-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    transition: transform var(--app-transition-fast);
}

.app-button:hover .app-icon,
.identity-submit:hover .app-icon {
    transform: translateY(-1px);
}

.app-button {
    min-width: 72px;
    padding-inline: 14px;
    white-space: nowrap;
}

.app-button--primary {
    border-color: var(--app-color-primary);
    background: var(--app-color-primary);
    color: #ffffff;
}

.app-button--primary:hover,
.app-button--primary:focus-visible {
    border-color: var(--app-color-primary-hover);
    background: var(--app-color-primary-hover);
    color: #ffffff;
}

.app-button--secondary {
    border-color: var(--app-color-border-strong);
    background: var(--app-color-surface);
    color: var(--app-color-text);
}

.app-button--secondary:hover,
.app-button--secondary:focus-visible {
    border-color: #98a2b3;
    background: var(--app-color-surface-muted);
    color: var(--app-color-text);
}

.app-button--danger {
    border-color: var(--app-color-danger);
    background: var(--app-color-danger);
    color: #ffffff;
}

.app-button--danger:hover,
.app-button--danger:focus-visible {
    border-color: var(--app-color-danger-hover);
    background: var(--app-color-danger-hover);
    color: #ffffff;
}

.app-button--link {
    min-width: 0;
    padding-inline: 4px;
    border-color: transparent;
    background: transparent;
    color: var(--app-color-primary);
}

.app-icon-button {
    border-color: var(--app-color-border);
    background: var(--app-color-surface);
    color: var(--app-color-text-muted);
}

.app-icon-button:hover,
.app-icon-button:focus-visible {
    border-color: var(--app-color-border-strong);
    background: var(--app-color-surface-muted);
    color: var(--app-color-text);
}

.app-icon-button .app-icon {
    transition: transform var(--app-transition-fast);
}

.app-icon-button:hover .app-icon {
    transform: scale(1.08);
}

.app-input,
.app-select,
.app-textarea {
    border-color: var(--app-color-border-strong);
    border-radius: var(--app-radius-md);
    background: var(--app-color-surface);
    color: var(--app-color-text);
    box-shadow: none;
}

.app-input:hover,
.app-select:hover,
.app-textarea:hover {
    border-color: #98a2b3;
}

.app-input:focus,
.app-select:focus,
.app-textarea:focus {
    border-color: var(--app-color-primary);
    box-shadow: var(--app-focus-ring);
}

.app-input:disabled,
.app-select:disabled,
.app-textarea:disabled,
.app-input[readonly] {
    border-color: var(--app-color-border);
    background: var(--app-color-surface-muted);
    color: var(--app-color-text-muted);
    opacity: 1;
}

.app-textarea {
    min-height: 96px;
    resize: vertical;
}

.app-field {
    gap: 6px;
}

.app-label {
    color: #344054;
    font-size: 13px;
    font-weight: 600;
}

.app-field-error {
    color: var(--app-color-danger);
    font-size: 12px;
}

.app-card {
    border-color: var(--app-color-border);
    border-radius: var(--app-radius-lg);
    background: var(--app-color-surface);
    box-shadow: none;
}

.app-card__header {
    border-bottom-color: var(--app-color-border);
}

.app-card__footer {
    border-top-color: var(--app-color-border);
    background: var(--app-color-surface-muted);
}

/* Data tables and pagination */
.app-table-wrap,
.dashboard-table-wrap,
.financial-subtable {
    scrollbar-gutter: stable;
}

.app-table-wrap {
    border-color: var(--app-color-border);
    border-radius: var(--app-radius-lg);
    background: var(--app-color-surface);
}

.app-table th,
.app-table td,
.dashboard-table-wrap th,
.dashboard-table-wrap td {
    border-bottom-color: var(--app-color-border);
    padding: 10px 12px;
}

.app-table th,
.dashboard-table-wrap th {
    background: var(--app-color-surface-muted);
    color: #475467;
    font-size: 12px;
    font-weight: 650;
}

.app-table td,
.dashboard-table-wrap td {
    color: #344054;
    font-size: 13px;
}

.app-table tbody tr:last-child td,
.dashboard-table-wrap tbody tr:last-child td {
    border-bottom: 0;
}

.app-table tbody tr:hover,
.dashboard-table-wrap tbody tr:hover {
    background: #f7f9fc;
}

.app-pagination {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 36px 36px;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    padding-block: 8px 0;
}

.app-pagination__summary,
.app-pagination__size {
    color: var(--app-color-text-muted);
    font-size: 12px;
}

.app-pagination__summary {
    min-width: 0;
    margin-right: 0;
    overflow-wrap: anywhere;
}

.app-pagination__size .app-select {
    min-height: 32px;
    height: 32px;
    padding-block: 4px;
}

.app-pagination > .app-select {
    width: 76px;
    min-height: 32px;
}

.app-pagination > .app-icon-button {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
}

/* Menus and compact actions */
.app-action-menu__trigger {
    min-height: 30px;
    border-radius: var(--app-radius-sm);
    color: var(--app-color-primary);
    font-size: 13px;
    font-weight: 600;
}

.app-action-menu__trigger:hover,
.app-action-menu__trigger:focus-visible,
.app-action-menu[data-action-menu-open="true"] .app-action-menu__trigger {
    background: var(--app-color-primary-soft);
    color: var(--app-color-primary-hover);
}

.app-action-menu__popup {
    z-index: var(--app-layer-menu);
    gap: 2px;
    padding: 5px;
    border-color: var(--app-color-border);
    border-radius: var(--app-radius-lg);
    box-shadow: var(--app-shadow-medium);
}

.app-action-menu__item {
    min-height: 34px;
    border-radius: var(--app-radius-sm);
    color: #344054;
}

.app-action-menu__item:hover,
.app-action-menu__item:focus-visible {
    background: var(--app-color-surface-muted);
    color: var(--app-color-text);
}

.app-action-menu__item--danger,
.app-action-menu__item--danger:hover,
.app-action-menu__item--danger:focus-visible {
    color: var(--app-color-danger);
}

.app-action-menu__item--danger:hover,
.app-action-menu__item--danger:focus-visible {
    background: var(--app-color-danger-soft);
}

/* Feedback, status, loading and dialogs */
.app-feedback {
    z-index: var(--app-layer-toast);
}

.app-toast {
    border-color: var(--app-color-border);
    border-left-width: 1px;
    border-radius: var(--app-radius-lg);
    background: var(--app-color-surface-raised);
    box-shadow: var(--app-shadow-medium);
}

.app-dialog {
    max-height: min(92dvh, 900px);
    border-color: var(--app-color-border);
    border-radius: var(--app-radius-lg);
    box-shadow: var(--app-shadow-overlay);
}

.app-dialog::backdrop {
    background: rgba(71, 84, 103, 0.38);
    backdrop-filter: blur(2px);
}

.app-dialog__header {
    min-height: 56px;
    padding: 12px 18px;
    border-bottom-color: var(--app-color-border);
}

.app-dialog__title {
    color: var(--app-color-text);
    font-size: 16px;
    font-weight: 650;
}

.app-dialog__content,
.app-dialog__message {
    padding: 18px;
}

.app-dialog__actions {
    min-height: 60px;
    padding: 11px 18px;
    border-top-color: var(--app-color-border);
    background: var(--app-color-surface-muted);
}

.app-status,
.admin-content-alert,
.admin-content-notice,
.advanced-notice,
.operations-note,
.financial-notice,
.complaints-notice,
.compensation-notice,
.account-settings-notice {
    border-radius: var(--app-radius-md);
}

.admin-content-alert,
.admin-content-notice--info,
.advanced-notice,
.operations-note,
.account-settings-notice {
    border-color: var(--app-color-info-border);
    background: var(--app-color-info-soft);
    color: var(--app-color-info);
}

.admin-content-alert--warning,
.admin-content-notice--warning,
.advanced-notice--warning,
.operations-note--warning,
.financial-notice--warning,
.complaints-notice--warning,
.compensation-notice--warning {
    border-color: var(--app-color-warning-border);
    background: var(--app-color-warning-soft);
    color: var(--app-color-warning);
}

.advanced-notice--danger,
.operations-note--danger,
.financial-notice--danger,
.complaints-notice--danger,
.compensation-notice--danger,
.account-settings-notice--error {
    border-color: var(--app-color-danger-border);
    background: var(--app-color-danger-soft);
    color: var(--app-color-danger);
}

.app-spinner,
.loading-spinner {
    width: 42px;
    height: 8px;
    border: 0;
    border-radius: var(--app-radius-sm);
    background: linear-gradient(90deg, var(--app-color-border) 25%, var(--app-color-primary) 50%, var(--app-color-border) 75%);
    background-size: 200% 100%;
    animation: app-loading-bar 1.1s ease-in-out infinite;
}

.app-spinner::before,
.app-spinner::after {
    display: none;
}

@keyframes app-loading-bar {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

/* Protected application shell */
.app-sidebar {
    border-right-color: rgba(208, 215, 224, 0.92);
    background: rgba(255, 255, 255, 0.9);
    color: var(--app-color-text);
    box-shadow: 8px 0 28px rgba(40, 58, 84, 0.05);
    backdrop-filter: blur(18px) saturate(1.12);
}

.app-mobile-overlay {
    background: rgba(71, 84, 103, 0.32);
}

.protected-layout {
    min-height: 100dvh;
    grid-template-columns: var(--app-sidebar-width) minmax(0, 1fr);
    grid-template-rows: var(--app-header-height) minmax(0, 1fr);
    background: var(--app-color-bg);
}

.protected-layout__sidebar {
    z-index: var(--app-layer-sidebar);
    width: var(--app-sidebar-width);
    grid-template-rows: 64px minmax(0, 1fr) auto;
    border-right-color: rgba(208, 215, 224, 0.92);
    background: var(--app-color-sidebar);
    color: var(--app-color-sidebar-text);
    box-shadow: 8px 0 28px rgba(40, 58, 84, 0.05);
    backdrop-filter: blur(18px) saturate(1.12);
}

.protected-layout__brand {
    padding-inline: 16px;
    border-bottom-color: rgba(223, 227, 232, 0.9);
    color: var(--app-color-text);
    font-size: 15px;
    font-weight: 650;
}

.protected-layout__brand-logo {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    padding: 3px;
    border-radius: var(--app-radius-sm);
    background: #ffffff;
}

.protected-layout__navigation {
    padding: 8px 8px 16px;
}

.protected-nav__group {
    padding: 18px 10px 6px;
    color: var(--app-color-sidebar-muted);
    font-size: 11px;
    font-weight: 650;
}

.protected-nav__link,
.protected-nav__summary {
    min-height: 38px;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--app-radius-md);
    color: var(--app-color-sidebar-text);
    font-size: 13px;
    font-weight: 500;
}

.protected-nav__link > .app-icon:first-child,
.protected-nav__summary > .app-icon:first-child {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    padding: 6px;
    border-radius: var(--app-radius-md);
    background: rgba(238, 244, 255, 0.72);
    color: var(--app-color-primary);
}

.protected-nav__link--child > .app-icon:first-child {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
    padding: 0;
    background: transparent;
}

.protected-nav__link:hover,
.protected-nav__summary:hover,
.protected-nav__summary:focus-visible {
    background: var(--app-color-sidebar-raised);
    color: var(--app-color-primary);
}

.protected-nav__link[data-active="true"] {
    background: var(--app-color-primary-soft);
    color: var(--app-color-primary);
    box-shadow: inset 3px 0 0 var(--app-color-primary);
    font-weight: 650;
}

.protected-nav__children {
    padding: 3px 0 5px 27px;
}

.protected-nav__link--child {
    min-height: 34px;
    color: #667085;
    font-size: 12px;
}

.protected-layout__account {
    padding: 9px 10px 12px;
    border-top-color: rgba(223, 227, 232, 0.9);
}

.protected-layout__account-trigger {
    min-height: 46px;
    grid-template-columns: 32px minmax(0, 1fr) 16px;
    gap: 9px;
    padding: 6px 7px;
    border-radius: var(--app-radius-md);
    color: var(--app-color-sidebar-text);
}

.protected-layout__account-trigger:hover,
.protected-layout__account-trigger[aria-expanded="true"] {
    background: var(--app-color-sidebar-raised);
    color: var(--app-color-text);
}

.protected-layout__avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--app-radius-sm);
    background: var(--app-color-primary);
}

.protected-layout__account-menu {
    right: 10px;
    bottom: calc(100% + 3px);
    left: 10px;
    z-index: var(--app-layer-menu);
    padding: 6px;
    border-color: var(--app-color-border);
    border-radius: var(--app-radius-lg);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--app-shadow-medium);
    backdrop-filter: blur(16px) saturate(1.08);
}

.protected-layout__account-menu a,
.protected-layout__account-menu button {
    border-radius: var(--app-radius-sm);
    color: var(--app-color-text);
}

.protected-layout__account-menu a:hover,
.protected-layout__account-menu button:hover {
    background: var(--app-color-primary-soft);
    color: var(--app-color-primary);
}

.protected-layout__account-meta {
    color: var(--app-color-text-muted);
}

.protected-layout__account-meta--balance {
    color: var(--app-color-primary);
}

.protected-layout__account-divider {
    background: var(--app-color-border);
}

.protected-layout__header {
    z-index: var(--app-layer-header);
    grid-column: 2;
    height: var(--app-header-height);
    padding-inline: 22px;
    border-bottom-color: var(--app-color-border);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px) saturate(1.08);
}

.protected-layout__header-title {
    color: var(--app-color-text);
    font-size: 14px;
    font-weight: 650;
}

.protected-layout__main {
    grid-column: 2;
    padding: 20px 22px 28px;
}

.protected-layout__main-inner {
    width: min(100%, var(--app-content-max-width));
}

.protected-layout__loading {
    background: var(--app-color-bg);
}

.protected-layout__overlay {
    display: none;
}

/* Shared page hierarchy */
.admin-content-page,
.advanced-page,
.operations-page,
.financial-page,
.complaints-page,
.compensation-page,
.account-settings-page,
.merchant-control-page,
.platform-stats-page,
.applyment-runtime {
    gap: 14px;
    color: var(--app-color-text);
}

.admin-content-toolbar__title,
.advanced-header h1,
.operations-header h1,
.financial-header h1,
.complaints-header h1,
.compensation-header h1,
.applyment-header h1 {
    color: var(--app-color-text);
    font-size: 20px;
    font-weight: 650;
}

.advanced-header,
.operations-header,
.financial-header,
.complaints-header,
.compensation-header,
.applyment-header {
    min-height: 50px;
    padding: 2px 0 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.advanced-header p,
.operations-subtitle,
.financial-header p,
.complaints-header p,
.compensation-header p,
.applyment-header p {
    color: var(--app-color-text-muted);
    font-size: 13px;
}

.operations-title {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
}

.operations-title > div {
    min-width: 0;
}

.operations-title__icon {
    display: inline-grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--app-color-primary-border);
    border-radius: var(--app-radius-md);
    background: var(--app-color-primary-soft);
    color: var(--app-color-primary);
}

.operations-title__icon svg {
    width: 18px;
    height: 18px;
}

.admin-content-title {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
}

.admin-content-title__icon {
    display: inline-grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--app-color-primary-border);
    border-radius: var(--app-radius-md);
    background: var(--app-color-primary-soft);
    color: var(--app-color-primary);
}

.admin-content-title__icon svg {
    width: 18px;
    height: 18px;
}

.operations-tabs--compact {
    width: fit-content;
    max-width: 100%;
    overflow-x: visible;
    padding: 4px;
}

.operations-tabs--compact .operations-tab {
    display: inline-flex;
    min-width: 118px;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.operations-tabs--compact .operations-tab svg {
    width: 16px;
    height: 16px;
}

.admin-content-card,
.advanced-panel,
.operations-panel,
.financial-panel,
.complaints-panel,
.compensation-panel,
.platform-monthly-panel {
    border-color: var(--app-color-border);
    border-radius: var(--app-radius-lg);
    background: var(--app-color-surface);
    box-shadow: none;
}

.admin-content-filters,
.advanced-filters,
.operations-filters,
.financial-filters,
.complaints-filters,
.compensation-filters,
.protected-orders-filters {
    padding: 14px;
    border-color: var(--app-color-border);
    border-radius: var(--app-radius-lg);
    background: var(--app-color-surface);
}

.admin-content-tabs,
.advanced-tabs,
.operations-tabs,
.financial-tabs,
.protected-orders-tabs,
.dashboard-tabs,
.dashboard-segments,
.compensation-segment {
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--app-color-border);
    border-radius: var(--app-radius-md);
    background: var(--app-color-surface-muted);
    box-shadow: none;
}

.admin-content-tab,
.advanced-tabs button,
.operations-tab,
.financial-tab,
.protected-orders-tab,
.dashboard-tabs button,
.dashboard-segments button,
.compensation-segment button {
    min-height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: var(--app-radius-sm);
    background: transparent;
    color: var(--app-color-text-muted);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.admin-content-tab[aria-selected="true"],
.advanced-tabs button[aria-selected="true"],
.operations-tab[aria-selected="true"],
.financial-tab[aria-selected="true"],
.protected-orders-tab[aria-selected="true"],
.dashboard-tabs button.is-active,
.dashboard-tabs button[aria-selected="true"],
.dashboard-segments button.is-active,
.compensation-segment button[aria-selected="true"] {
    border: 0;
    background: var(--app-color-surface);
    color: var(--app-color-primary);
    box-shadow: var(--app-shadow-low);
}

.admin-content-stats,
.advanced-stats,
.operations-stats,
.financial-stats,
.complaints-stats,
.compensation-stats,
.merchant-control-stats {
    gap: 12px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.admin-content-stat,
.advanced-stats > div,
.operations-stat,
.financial-stat,
.complaints-stat,
.compensation-stat,
.merchant-control-stat {
    min-height: 82px;
    padding: 13px 15px;
    border: 1px solid var(--app-color-border);
    border-radius: var(--app-radius-lg);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.045);
    backdrop-filter: blur(14px) saturate(1.04);
}

.admin-content-stat__label,
.advanced-stats span,
.operations-stat span,
.financial-stat span,
.complaints-stat span,
.compensation-stat span,
.merchant-control-stat span {
    color: var(--app-color-text-muted);
    font-size: 12px;
}

.admin-content-stat strong,
.advanced-stats strong,
.operations-stat strong,
.financial-stat strong,
.complaints-stat strong,
.compensation-stat strong,
.merchant-control-stat strong {
    color: var(--app-color-text);
    font-size: 20px;
    font-variant-numeric: tabular-nums;
}

.operations-stat > span {
    display: flex;
    align-items: center;
    gap: 7px;
}

.operations-stat > span svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: var(--app-color-primary);
}

.operations-stat--success > span svg,
.operations-stat--success strong {
    color: var(--app-color-success);
}

.operations-stat--warning > span svg,
.operations-stat--warning strong {
    color: var(--app-color-warning);
}

.operations-stat--danger > span svg,
.operations-stat--danger strong {
    color: var(--app-color-danger);
}

.admin-content-badge,
.advanced-badge,
.advanced-status,
.account-settings-badge,
.account-thresholds__default,
.dashboard-tags span,
.dashboard-owner-badge,
.dashboard-agent-level,
.dashboard-agent-centralized {
    min-height: 22px;
    padding: 2px 7px;
    border: 1px solid var(--app-color-border);
    border-radius: 999px;
    background: var(--app-color-surface-muted);
    color: #475467;
    font-size: 11px;
    font-weight: 600;
}

.admin-content-badge--success,
.advanced-status--success,
.account-settings-badge[data-enabled="true"] {
    border-color: var(--app-color-success-border);
    background: var(--app-color-success-soft);
    color: var(--app-color-success);
}

.admin-content-badge--warning,
.advanced-status--warning {
    border-color: var(--app-color-warning-border);
    background: var(--app-color-warning-soft);
    color: var(--app-color-warning);
}

.admin-content-badge--danger,
.advanced-status--danger {
    border-color: var(--app-color-danger-border);
    background: var(--app-color-danger-soft);
    color: var(--app-color-danger);
}

.admin-content-badge--info,
.advanced-status--info {
    border-color: var(--app-color-info-border);
    background: var(--app-color-info-soft);
    color: var(--app-color-info);
}

.admin-content-switch,
.operations-switch input[type="checkbox"] {
    accent-color: var(--app-color-primary);
}

.admin-content-switch[aria-checked="true"] {
    background: var(--app-color-primary);
}

.advanced-detail,
.operations-detail,
.financial-detail,
.account-settings-details,
.dashboard-detail-list {
    border-color: var(--app-color-border);
    border-radius: var(--app-radius-lg);
}

.advanced-detail > div,
.operations-detail > div,
.financial-detail > div,
.account-settings-details > div,
.dashboard-detail-list > div {
    border-color: var(--app-color-border);
}

.advanced-detail dt,
.operations-detail dt,
.financial-detail dt,
.account-settings-details dt,
.dashboard-detail-list dt {
    background: var(--app-color-surface-muted);
    color: var(--app-color-text-muted);
    font-size: 12px;
}

.advanced-detail dd,
.operations-detail dd,
.financial-detail dd,
.account-settings-details dd,
.dashboard-detail-list dd {
    color: var(--app-color-text);
}

/* Dashboards */
.dashboard {
    gap: 14px;
    min-height: 100%;
    padding: 0;
    background: transparent;
    color: var(--app-color-text);
}

.dashboard[aria-busy="true"] {
    opacity: 1;
}

.app-skip-link {
    border: 1px solid #1d5fd3;
    border-radius: var(--app-radius-md);
    background: var(--app-color-primary);
    color: #ffffff;
    box-shadow: var(--app-shadow-medium);
}

.dashboard-header {
    min-height: 50px;
    padding: 2px 0 8px;
}

.dashboard-header h1 {
    color: var(--app-color-text);
    font-size: 20px;
    font-weight: 650;
}

.dashboard-header p,
.dashboard-header time,
.dashboard-panel__header p,
.dashboard-user-hero p,
.dashboard-alert p {
    color: var(--app-color-text-muted);
    font-size: 13px;
}

.dashboard-panel {
    padding: 16px;
    border-color: var(--app-color-border);
    border-radius: var(--app-radius-lg);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.045);
    backdrop-filter: blur(16px) saturate(1.06);
}

.dashboard-panel__header {
    margin-bottom: 14px;
}

.dashboard-panel__header h2 {
    color: var(--app-color-text);
    font-size: 15px;
    font-weight: 650;
}

.dashboard-highlight-grid,
.dashboard-metrics {
    gap: 12px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.dashboard-highlight {
    --dashboard-highlight-accent: var(--app-color-primary);
    min-height: 126px;
    padding: 17px;
    border: 1px solid var(--app-color-border);
    border-radius: var(--app-radius-lg);
    background: rgba(255, 255, 255, 0.86);
    color: var(--app-color-text);
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.045);
    backdrop-filter: blur(16px) saturate(1.06);
}

.dashboard-highlight--success {
    --dashboard-highlight-accent: var(--app-color-success);
}

.dashboard-highlight--calendar,
.dashboard-highlight--total {
    --dashboard-highlight-accent: #2563eb;
}

.dashboard-highlight__top {
    display: flex;
    align-items: center;
    gap: 9px;
}

.dashboard-highlight__icon,
.dashboard-title__icon,
.dashboard-state__icon,
.dashboard-metric__icon {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--app-color-primary-border);
    border-radius: var(--app-radius-md);
    background: var(--app-color-primary-soft);
    color: var(--app-color-primary);
}

.dashboard-highlight__icon {
    width: 32px;
    height: 32px;
    color: var(--dashboard-highlight-accent);
}

.dashboard-highlight--success .dashboard-highlight__icon {
    border-color: var(--app-color-success-border);
    background: var(--app-color-success-soft);
}

.dashboard-highlight__icon svg,
.dashboard-title__icon svg,
.dashboard-state__icon svg,
.dashboard-metric__icon svg {
    width: 17px;
    height: 17px;
}

.dashboard-highlight__label,
.dashboard-highlight > small {
    color: var(--app-color-text-muted);
    font-size: 12px;
}

.dashboard-highlight strong {
    color: var(--app-color-text);
    font-size: 25px;
    font-variant-numeric: tabular-nums;
}

.dashboard-highlight--success strong {
    color: var(--app-color-success);
}

.dashboard-metrics article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-content: center;
    column-gap: 8px;
    min-height: 88px;
    padding: 14px;
    border: 1px solid var(--app-color-border);
    border-radius: var(--app-radius-lg);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 5px 16px rgba(16, 24, 40, 0.035);
    backdrop-filter: blur(14px) saturate(1.04);
}

.dashboard-metrics article > span {
    grid-column: 1;
    grid-row: 1;
    order: initial;
    color: var(--app-color-text-muted);
    font-size: 11px;
}

.dashboard-metrics article > strong {
    grid-column: 1 / -1;
    grid-row: 2;
    order: initial;
    color: var(--app-color-text);
    font-size: 18px;
    font-variant-numeric: tabular-nums;
}

.dashboard-metrics article > .dashboard-metric__icon {
    position: static;
    grid-column: 2;
    grid-row: 1;
    order: initial;
    width: 28px;
    height: 28px;
}

.dashboard-metric__icon + strong {
    max-width: 100%;
}

.dashboard-metrics--six article > strong {
    font-size: 15px;
}

.dashboard-date-result,
.dashboard-trade-overview {
    border-color: var(--app-color-border);
    background: var(--app-color-surface);
}

.dashboard-user-hero {
    min-height: 184px;
    border: 1px solid rgba(208, 215, 224, 0.92);
    border-radius: var(--app-radius-lg);
    background: rgba(255, 255, 255, 0.82);
    color: var(--app-color-text);
    box-shadow: 0 10px 30px rgba(40, 58, 84, 0.05);
    backdrop-filter: blur(18px) saturate(1.08);
}

.dashboard-user-hero > img {
    display: none;
}

.dashboard-user-hero > div {
    min-height: 184px;
    padding: 24px 30px;
    background: transparent;
}

.dashboard-user-hero h1 {
    margin-top: 6px;
    color: var(--app-color-text);
    font-size: 27px;
    font-weight: 650;
}

.dashboard-user-hero p {
    color: var(--app-color-text-muted);
}

.dashboard-user-hero footer {
    margin-top: 20px;
}

.dashboard-user-hero__eyebrow,
.dashboard-title {
    display: flex;
    align-items: center;
}

.dashboard-user-hero__eyebrow {
    gap: 7px;
    color: var(--app-color-primary);
    font-size: 13px;
    font-weight: 600;
}

.dashboard-user-hero__eyebrow svg {
    width: 16px;
    height: 16px;
}

.dashboard-title {
    gap: 11px;
    min-width: 0;
}

.dashboard-title__icon {
    width: 38px;
    height: 38px;
}

.dashboard-user-hero .app-button--secondary {
    border-color: var(--app-color-border-strong);
    background: rgba(255, 255, 255, 0.72);
    color: var(--app-color-text);
}

.operations-panel,
.operations-governance article,
.operations-settings-section,
.operations-template-item,
.operations-platform-item {
    border-color: var(--app-color-border);
    border-radius: var(--app-radius-lg);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--app-shadow-low);
    backdrop-filter: blur(14px) saturate(1.04);
}

[data-settings-panel] {
    background: rgba(248, 249, 251, 0.74);
}

.operations-invite-qrcode > div,
.operations-media-preview,
.operations-document-grid a,
.operations-hierarchy__item,
.operations-logo-preview,
.operations-image-editor {
    border-radius: var(--app-radius-lg);
}

.operations-tabs--nested {
    border-radius: var(--app-radius-md);
}

.operations-code,
.advanced-output,
.advanced-code-field,
.financial-json,
.admin-blacklist-template {
    border: 1px solid var(--app-color-border);
    border-radius: var(--app-radius-md);
    background: var(--app-color-surface-muted);
    color: #344054;
}

.aggregate-crop canvas {
    border-color: var(--app-color-border-strong);
    background: var(--app-color-surface-subtle);
}

.applyment-dialog {
    border: 1px solid var(--app-color-border);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--app-shadow-overlay);
    backdrop-filter: blur(18px) saturate(1.06);
}

.applyment-dialog::backdrop {
    background: rgba(71, 84, 103, 0.36);
    backdrop-filter: blur(2px);
}

.dashboard-account-metrics article > svg {
    position: static;
    grid-column: 2;
    grid-row: 1;
    width: 30px;
    height: 30px;
    padding: 7px;
    border-radius: var(--app-radius-md);
    background: var(--app-color-primary-soft);
    color: var(--app-color-primary);
    transform: none;
}

.dashboard-account-metrics article {
    min-height: 108px;
    padding-right: 14px;
}

.dashboard-account-metrics article > strong {
    font-size: 23px;
}

.dashboard-success-body > .dashboard-metrics {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    width: 100%;
}

.dashboard-success-body .dashboard-metrics article {
    display: flex;
    min-height: 52px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 11px;
}

.dashboard-success-body .dashboard-metrics article > span,
.dashboard-success-body .dashboard-metrics article > strong {
    order: initial;
}

.dashboard-success-body .dashboard-metrics article > strong {
    flex: 0 1 auto;
    overflow: visible;
    font-size: 15px;
    text-align: right;
    text-overflow: clip;
}

.dashboard-trade-total {
    color: var(--app-color-text);
    font-size: 40px;
    font-variant-numeric: tabular-nums;
}

.dashboard-rate-ring {
    width: 142px;
    height: 142px;
}

.dashboard-rate-ring > div {
    width: 112px;
    height: 112px;
    background: var(--app-color-surface);
}

.dashboard-agent-shortcuts nav {
    gap: 10px;
    overflow: visible;
    border: 0;
    border-radius: 0;
}

.dashboard-agent-shortcuts nav a,
.dashboard-agent-shortcuts nav a:nth-child(2),
.dashboard-agent-shortcuts nav a:nth-child(3),
.dashboard-agent-shortcuts nav a:nth-child(4) {
    min-height: 76px;
    border: 1px solid var(--app-color-border);
    border-radius: var(--app-radius-lg);
    background: rgba(248, 250, 252, 0.9);
    color: var(--app-color-text);
    box-shadow: none;
}

.dashboard-agent-shortcuts nav a:hover {
    background: var(--app-color-primary-soft);
    color: var(--app-color-primary);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(47, 111, 235, 0.08);
}

.dashboard-rate-info {
    border: 1px solid var(--app-color-border);
    border-radius: var(--app-radius-lg);
    background: var(--app-color-surface-muted);
}

.dashboard-rate-info strong,
.dashboard-link-button,
.dashboard-table-link,
.dashboard-more-link {
    color: var(--app-color-primary);
}

.dashboard-announcement-card,
.dashboard-announcement-card[data-theme="1"],
.dashboard-announcement-card[data-theme="2"] {
    border-color: var(--app-color-border);
    border-radius: var(--app-radius-lg);
    background: rgba(248, 250, 252, 0.9);
}

.dashboard-rank-badge,
.dashboard-rank-badge[data-rank="1"],
.dashboard-rank-badge[data-rank="2"],
.dashboard-rank-badge[data-rank="3"] {
    border-radius: 50%;
    background: var(--app-color-surface-subtle);
    color: var(--app-color-text);
}

.dashboard-state {
    display: none;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    padding: 12px 14px;
    border: 1px solid var(--app-color-primary-border);
    border-radius: var(--app-radius-lg);
    background: rgba(238, 244, 255, 0.86);
    color: var(--app-color-text);
    backdrop-filter: blur(14px) saturate(1.05);
}

.dashboard-state > div {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 3px;
}

.dashboard-state strong,
.dashboard-state small {
    display: block;
}

.dashboard-state small {
    color: var(--app-color-text-muted);
    font-size: 12px;
}

.dashboard-state__icon {
    width: 34px;
    height: 34px;
}

.dashboard[data-dashboard-state="loading"] > .dashboard-state--loading,
.dashboard[data-dashboard-state="error"] > .dashboard-state--error {
    display: flex;
}

.dashboard-state--error {
    border-color: var(--app-color-danger-border);
    background: var(--app-color-danger-soft);
}

.dashboard-state--error .dashboard-state__icon {
    border-color: var(--app-color-danger-border);
    background: #ffffff;
    color: var(--app-color-danger);
}

/* Identity pages */
.identity-screen,
.identity-screen--admin,
.identity-screen--agent,
.identity-screen--register,
.identity-screen--not-found,
.identity-quick-login {
    min-height: 100dvh;
    background: var(--app-color-bg);
}

.identity-card,
.identity-card--register,
.identity-quick-login__error {
    border: 1px solid var(--app-color-border);
    border-radius: var(--app-radius-lg);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--app-shadow-medium);
    backdrop-filter: blur(18px) saturate(1.08);
}

.identity-card {
    padding: 28px;
}

.identity-card__header {
    margin-bottom: 22px;
    text-align: left;
}

.identity-card__header h1,
.identity-card--admin .identity-card__header h1,
.identity-card--agent .identity-card__header h1,
.identity-card--register .identity-card__header h1,
.identity-user-panel h1,
.identity-forgot-header h1 {
    color: var(--app-color-text);
    font-size: 22px;
    font-weight: 650;
}

.identity-card__header p,
.identity-forgot-header p,
.identity-register-link,
.identity-user-footer {
    color: var(--app-color-text-muted);
}

.identity-form,
.identity-card--admin .identity-form,
.identity-card--agent .identity-form,
.identity-form--register,
.identity-form--labeled {
    gap: 16px;
}

.identity-input,
.identity-code-row > .identity-input,
.identity-verify {
    height: 42px;
    min-height: 42px;
    border-color: var(--app-color-border-strong);
    border-radius: var(--app-radius-md);
    background: var(--app-color-surface);
    color: var(--app-color-text);
}

.identity-input:hover,
.identity-verify:hover {
    border-color: #98a2b3;
}

.identity-input:focus {
    border-color: var(--app-color-primary);
    box-shadow: var(--app-focus-ring);
}

.identity-submit,
.identity-card--agent .identity-submit {
    height: 42px;
    min-height: 42px;
    border-color: var(--app-color-primary);
    border-radius: var(--app-radius-md);
    background: var(--app-color-primary);
    color: #ffffff;
    font-size: 14px;
    font-weight: 650;
    gap: 8px;
}

.identity-submit:hover,
.identity-card--agent .identity-submit:hover {
    border-color: var(--app-color-primary-hover);
    background: var(--app-color-primary-hover);
    color: #ffffff;
}

.identity-card--agent a,
.identity-card--agent .identity-check a,
.identity-input-action,
.identity-link-button {
    color: var(--app-color-primary);
}

.identity-split {
    min-height: 100dvh;
    background: var(--app-color-bg);
}

.identity-split__form,
.identity-split__promo {
    padding: 36px;
    backdrop-filter: blur(18px) saturate(1.06);
}

.identity-split__form {
    background: rgba(255, 255, 255, 0.9);
}

.identity-split__promo {
    border-left: 1px solid var(--app-color-border);
    background: rgba(248, 249, 251, 0.78);
}

.identity-promo-icon {
    width: 92px;
    height: 92px;
    margin-bottom: 24px;
    border-radius: var(--app-radius-lg);
    background: var(--app-color-primary);
}

.identity-promo-icon svg {
    width: 38px;
    height: 38px;
}

.identity-split__promo h2 {
    color: var(--app-color-text);
    font-size: 22px;
}

.identity-split__promo p {
    color: var(--app-color-text-muted);
}

.identity-logo {
    min-height: 80px;
    margin-bottom: 28px;
    place-items: end start;
}

.identity-logo img {
    max-width: 180px;
    max-height: 72px;
}

.identity-info-panel,
.identity-status-dialog__reason,
.identity-status-dialog__contact {
    border-color: var(--app-color-border);
    border-radius: var(--app-radius-md);
    background: var(--app-color-surface-muted);
}

.identity-captcha__image,
.identity-captcha__track,
.identity-captcha__slider {
    border-radius: var(--app-radius-sm);
}

/* Public pages inherit the same palette without changing their contracts. */
.home-page-body {
    --primary-color: var(--app-color-primary);
    --primary-dark: var(--app-color-primary-hover);
    --primary-light: #528bff;
    --gray-50: var(--app-color-surface-muted);
    --gray-100: var(--app-color-surface-subtle);
    --gray-200: var(--app-color-border);
    --gray-300: var(--app-color-border-strong);
    --gray-400: var(--app-color-text-subtle);
    --gray-500: var(--app-color-text-muted);
    --gray-600: #475467;
    --gray-700: #344054;
    --gray-800: #20242c;
    --gray-900: #20242c;
    background: var(--app-color-bg);
    color: var(--app-color-text);
}

.home-loading {
    background: var(--app-color-bg);
    color: var(--app-color-text);
}

.home-loading .loading-text {
    color: var(--app-color-text-muted);
}

.home-loading .spinner-ring {
    display: none;
}

.home-button {
    border-radius: var(--app-radius-md);
    box-shadow: none;
}

.home-button--primary {
    border-color: var(--app-color-primary);
    background: var(--app-color-primary);
}

.home-button--primary:hover {
    border-color: var(--app-color-primary-hover);
    background: var(--app-color-primary-hover);
}

.home-header {
    border-bottom-color: rgba(208, 215, 224, 0.9);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px) saturate(1.08);
}

.home-header.scrolled {
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}

.nav-overlay {
    background: rgba(71, 84, 103, 0.32);
}

.hero {
    min-height: min(760px, calc(100dvh - 48px));
}

.hero-gradient {
    background: #f3f6fb;
}

.hero-particles {
    display: none;
}

.hero-badge,
.feature-tag,
.cta-icon {
    border: 1px solid var(--app-color-primary-border);
    border-radius: var(--app-radius-md);
    background: rgba(238, 244, 255, 0.88);
    color: var(--app-color-primary);
}

.hero-title .gradient-text {
    background: none;
    color: var(--app-color-primary);
    -webkit-text-fill-color: currentColor;
}

.phone-mockup {
    animation: none;
}

.phone-frame {
    border: 1px solid var(--app-color-border-strong);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 46px rgba(16, 24, 40, 0.12);
    backdrop-filter: blur(16px) saturate(1.06);
}

.phone-frame::before {
    background: var(--app-color-border-strong);
}

.phone-screen {
    border: 1px solid var(--app-color-border);
}

.services,
.partners,
.cta,
.api-docs {
    background: var(--app-color-bg);
}

.advantages {
    background: var(--app-color-surface);
}

.service-card,
.advantage-item,
.api-card,
.partner-item,
.cta-card {
    border: 1px solid rgba(208, 215, 224, 0.92);
    border-radius: var(--app-radius-lg);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.05);
    backdrop-filter: blur(16px) saturate(1.06);
}

.service-card:hover,
.advantage-item:hover,
.api-card:hover,
.partner-item:hover,
.cta-card:hover {
    border-color: var(--app-color-primary-border);
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
    transform: translateY(-2px);
}

.service-icon,
.advantage-number,
.stat-icon {
    border: 1px solid var(--app-color-primary-border);
    border-radius: var(--app-radius-md);
    background: var(--app-color-primary-soft);
    color: var(--app-color-primary);
}

.statistics {
    border-block: 1px solid var(--app-color-border);
    background: rgba(255, 255, 255, 0.78);
}

.statistics-background {
    display: none;
}

.stat-item {
    border: 1px solid var(--app-color-border);
    border-radius: var(--app-radius-lg);
    background: rgba(248, 249, 251, 0.82);
    box-shadow: none;
    backdrop-filter: blur(16px) saturate(1.05);
}

.stat-item:hover {
    border-color: var(--app-color-primary-border);
    background: rgba(255, 255, 255, 0.94);
    transform: translateY(-2px);
}

.stat-number {
    color: var(--app-color-text);
}

.stat-label span {
    color: var(--app-color-text-muted);
}

.api-card-header {
    background: var(--app-color-primary);
}

.home-footer {
    border-top: 1px solid var(--app-color-border);
    background: rgba(255, 255, 255, 0.9);
    color: var(--app-color-text);
    backdrop-filter: blur(18px) saturate(1.06);
}

.footer-section h4,
.footer-links a:hover,
.contact-link {
    color: var(--app-color-text);
}

.footer-links a,
.contact-label,
.contact-text,
.copyright p {
    color: var(--app-color-text-muted);
}

.footer-bottom {
    border-top-color: var(--app-color-border);
}

.social-link {
    border: 1px solid var(--app-color-border);
    background: var(--app-color-surface-muted);
    color: var(--app-color-text-muted);
}

.docs-page:not(.docs-page--embedded) {
    background: var(--app-color-bg);
}

.docs-topbar,
.docs-card,
.docs-panel details {
    border-color: var(--app-color-border);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: none;
    backdrop-filter: blur(16px) saturate(1.05);
}

.docs-code {
    border: 1px solid var(--app-color-border);
    border-radius: var(--app-radius-md);
    background: var(--app-color-surface-muted);
    color: #344054;
}

.docs-code button {
    color: var(--app-color-text-muted);
}

.scroll-indicator,
.floating-elements {
    display: none;
}

/* Responsive rules */
@media (max-width: 1100px) {
    .dashboard-metrics--eight {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .dashboard-metrics--six {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    body.protected-sidebar-open {
        overflow: hidden;
    }

    .protected-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .protected-layout__sidebar {
        box-shadow: var(--app-shadow-overlay);
        transition: transform var(--app-transition-medium);
    }

    .protected-layout__header,
    .protected-layout__main {
        grid-column: 1;
    }

    .protected-layout__overlay {
        position: fixed;
        inset: 0;
        z-index: calc(var(--app-layer-sidebar) - 1);
        display: block;
        border: 0;
        background: rgba(71, 84, 103, 0.32);
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--app-transition-medium);
    }

    .protected-layout[data-sidebar-open="true"] .protected-layout__overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .protected-layout__main {
        padding: 16px;
    }

    .admin-content-stats,
    .advanced-stats,
    .operations-stats,
    .financial-stats,
    .complaints-stats,
    .compensation-stats,
    .merchant-control-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 640px) {
    .protected-layout__header {
        padding-inline: 12px;
    }

    .protected-layout__main {
        padding: 12px;
    }

    .app-pagination {
        grid-template-columns: minmax(0, 1fr) 36px 36px;
    }

    .app-pagination__summary {
        grid-column: 1 / -1;
    }

    .app-pagination__size,
    .app-pagination > .app-select {
        grid-column: 1;
        justify-self: start;
    }

    .operations-tabs--compact {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .operations-tabs--compact .operations-tab {
        width: 100%;
        min-width: 0;
    }

    .advanced-header,
    .operations-header,
    .financial-header,
    .complaints-header,
    .compensation-header,
    .applyment-header,
    .dashboard-header,
    .admin-content-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .app-dialog {
        width: calc(100vw - 16px);
        max-height: calc(100dvh - 16px);
    }

    .app-dialog__header,
    .app-dialog__content,
    .app-dialog__message,
    .app-dialog__actions {
        padding-inline: 14px;
    }

    .app-dialog__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-dialog__actions .app-button {
        width: 100%;
        min-width: 0;
    }

    .dashboard-highlight-grid,
    .dashboard-metrics--four,
    .dashboard-metrics--six,
    .dashboard-metrics--eight,
    .dashboard-metrics--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard--admin .dashboard-highlight-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .dashboard-account-metrics article > strong {
        font-size: 17px;
    }

    .dashboard-user-hero > div {
        padding: 22px 18px;
    }

    .dashboard-user-hero footer,
    .dashboard-user-hero footer > div {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-user-hero footer .app-button {
        width: 100%;
    }

    .dashboard-state {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .dashboard-state > .app-button {
        width: 100%;
    }

    .identity-screen {
        padding: 16px;
    }

    .identity-card,
    .identity-screen--admin .identity-card,
    .identity-screen--agent .identity-card,
    .identity-card--register {
        width: min(100%, 420px);
        padding: 22px 18px;
        border-radius: var(--app-radius-lg);
    }

    .identity-split__form {
        min-height: 100dvh;
        padding: 28px 20px;
    }

    .identity-logo {
        min-height: 64px;
        margin-bottom: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-spinner,
    .loading-spinner {
        animation: none;
        background: var(--app-color-primary);
    }
}

@media (prefers-reduced-transparency: reduce) {
    .app-sidebar,
    .protected-layout__sidebar,
    .protected-layout__header,
    .protected-layout__account-menu,
    .app-dialog,
    .admin-content-stat,
    .advanced-stats > div,
    .operations-stat,
    .financial-stat,
    .complaints-stat,
    .compensation-stat,
    .merchant-control-stat,
    .dashboard-panel,
    .dashboard-highlight,
    .dashboard-metrics article,
    .dashboard-user-hero,
    .dashboard-state,
    .operations-panel,
    .operations-governance article,
    .operations-settings-section,
    .operations-template-item,
    .operations-platform-item,
    .applyment-dialog,
    .identity-card,
    .identity-card--register,
    .identity-quick-login__error,
    .identity-split__form,
    .identity-split__promo,
    .home-header,
    .phone-frame,
    .service-card,
    .advantage-item,
    .api-card,
    .partner-item,
    .cta-card,
    .statistics,
    .stat-item,
    .home-footer,
    .docs-topbar,
    .docs-card,
    .docs-panel details {
        background: var(--app-color-surface);
        backdrop-filter: none;
    }

    .app-dialog::backdrop,
    .applyment-dialog::backdrop {
        backdrop-filter: none;
    }
}
