﻿body {
    background-color: #121212;
    color: white !important;
}

:root {
    --mud-palette-drawer-background: #1a1a1a;
    --mud-palette-surface: #1a1a1a;
    --mud-palette-overlay-dark: rgba(0, 0, 0, .5);
    --mud-selected: #1a1a1a;
    --mud-palette-drawer-text: #ffffff;
    --mud-palette-text-primary: #ffffff;
    --mud-palette-action-default-hover: #202020;
    --mud-palette-drawer-icon: #cccccc;
    --mud-zindex-appbar: 1100;
    --mud-zindex-drawer: 1200;
    --mud-zindex-dialog: 1300;
    --mud-zindex-popover: 1400;
    --mud-zindex-snackbar: 1500;
    --mud-zindex-tooltip: 1600;
}

/* Элементы с классом login-layout */
.login-layout {
    font-family: Montserrat !important;
    text-align: center !important;
}

.mud-container h2 {
    font-family: Montserrat !important;
    margin-bottom: 5px
}

.mud-container h5 {
    font-family: Montserrat !important;
    font-size: 0.8rem;
    opacity: .7;
    margin-bottom: 20px;
    font-weight: 400;
}

.reflective-invoice {
    background-color: #1a1a1a !important;
    color: white !important;
    border-color: #202020 !important;
}

.grid-item {
    background-color: #1a1a1a !important;
    color: white !important;
}

.mud-snackbar-location-top-center {
    position: fixed !important;
    top: 0px !important;
    left: 15px !important;
    transform: translateX(0%) !important
}
/* Стиль для прогресс-бара снекбара */
.mud-snackbar::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    animation: snackbar-progress 5s linear forwards;
    opacity: 0.7;
}

.users-modern-page {
    padding: 24px;
    background: #121212;
    min-height: 100vh;
}

.page-header {
    margin-bottom: 32px;
}

.page-title {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
}

.users-filters {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    align-items: center;
    flex-wrap: wrap;
}

.search-field {
    min-width: 300px;
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
}

.user-card {
    background: #1e1e1e;
    border-radius: 12px;
    border: 1px solid #333;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

    .user-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
        border-color: #303030;
    }

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, #303030 0%, #202020 100%);
    border-bottom: 1px solid #333;
}

.user-avatar {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    font-weight: bold;
}

.user-main-info {
    flex: 1;
}

.user-login {
    color: #ffffff;
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.user-type {
    color: #90caf9;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 4px 12px;
    background: rgba(144, 202, 249, 0.1);
    border-radius: 20px;
    display: inline-block;
}

.card-content {
    padding: 24px;
}

.user-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #333;
}

    .user-detail:last-child {
        margin-bottom: 0;
        border-bottom: none;
    }

.detail-label {
    color: #a0aec0;
    font-size: 0.9rem;
    font-weight: 500;
}

.detail-value-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-value {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-success {
    background: rgba(72, 187, 120, 0.2);
    color: #48bb78;
    border: 1px solid #48bb78;
}

.status-error {
    background: rgba(245, 101, 101, 0.2);
    color: #f56565;
    border: 1px solid #f56565;
}

.status-warning {
    background: rgba(237, 137, 54, 0.2);
    color: #ed8936;
    border: 1px solid #ed8936;
}

.copy-button {
    min-width: 24px;
    width: 24px;
    height: 24px;
}

.card-actions {
    padding: 16px 24px;
    border-top: 1px solid #333;
    background: linear-gradient(135deg, #303030 0%, #202020 100%);
}

.no-users-text {
    text-align: center;
    color: #a0aec0;
    grid-column: 1 / -1;
    padding: 60px 20px;
}

.mud-card-content .card-header {
    background: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .users-modern-page {
        padding: 16px;
    }

    .users-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .search-field {
        min-width: auto;
    }

    .users-grid {
        grid-template-columns: 1fr;
    }

    .card-header {
        padding: 20px;
    }

    .user-avatar {
        width: 50px;
        height: 50px;
    }
}

.finance-stats-modern {
    background: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 24px;
    margin-bottom: 24px;
    height: fit-content;
    border: 1px solid #333;
    zoom: 90%
}

.loader {
    position: absolute;
    top: calc(50% - 32px);
    left: calc(50% - 32px);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    perspective: 800px;
}

.inner {
    position: absolute;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

    .inner.one {
        left: 0%;
        top: 0%;
        animation: rotate-one 1s linear infinite;
        border-bottom: 3px solid #00f8f1;
    }

    .inner.two {
        right: 0%;
        top: 0%;
        animation: rotate-two 1s linear infinite;
        border-right: 3px solid #00f8f1;
    }

    .inner.three {
        right: 0%;
        bottom: 0%;
        animation: rotate-three 1s linear infinite;
        border-top: 3px solid #00f8f1;
    }

@keyframes rotate-one {
    0% {
        transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg);
    }

    100% {
        transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg);
    }
}

@keyframes rotate-two {
    0% {
        transform: rotateX(50deg) rotateY(10deg) rotateZ(0deg);
    }

    100% {
        transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg);
    }
}

@keyframes rotate-three {
    0% {
        transform: rotateX(35deg) rotateY(55deg) rotateZ(0deg);
    }

    100% {
        transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg);
    }
}


/* Анимации для лоадера и контента */
.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

.fade-in1 {
    transition: all .1s;
}

.fade-out {
    animation: fadeOut 0.8s ease-in-out;
}

.slide-up {
    animation: slideUp 0.8s ease-out;
}

.scale-in {
    animation: scaleIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Для плавного перехода между состояниями */
.layout-transition {
    transition: all 0.8s ease-in-out;
}

.loader-hidden {
    opacity: 0;
    pointer-events: none;
}

.content-visible {
    opacity: 1;
}


.finance-header {
    margin-bottom: 32px;
    border-bottom: 1px solid #333;
    padding-bottom: 16px;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-icon {
    color: #90caf9;
}

.header-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    zoom: 95%;
}

/* Основные метрики - карточки */
.main-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.metric-card {
    background: linear-gradient(135deg, #232420 0%, #202020 100%);
    border-radius: 12px;
    padding: 24px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #303030;
}

    .metric-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
        border-color: #90caf9;
    }

    .metric-card.main-metric {
        background: linear-gradient(135deg, #232420 0%, #202020 100%);
        border-color: #303030;
    }

.metric-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.metric-icon {
    opacity: 0.9;
    color: white;
}

.metric-title {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
    color: #cbd5e0;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

.metric-prefix {
    font-size: 1rem;
    margin-left: 4px;
    opacity: 0.8;
    color: #a0aec0;
}

/* Второстепенные метрики */
.secondary-metrics-section {
    margin-top: 24px;
}

.section-header {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #2d3748;
}

.secondary-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.compact-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid #90caf9;
    transition: all 0.2s ease;
    border: 1px solid #4a5568;
    background: linear-gradient(135deg, #232420 0%, #202020 100%);
    border-color: #303030;
}

    .compact-metric:hover {
        transform: translateX(4px);
    }

.compact-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.compact-icon {
    color: #90caf9;
    font-size: 1rem;
}

.compact-title {
    font-size: 0.85rem;
    color: #cbd5e0;
    font-weight: 500;
}

.compact-value {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
}

.compact-prefix {
    font-size: 0.8rem;
    color: #a0aec0;
    margin-left: 2px;
}

/* Статусные цвета для разных типов метрик */
.metric-positive {
    border-left-color: #48bb78 !important;
}

.metric-negative {
    border-left-color: #f56565 !important;
}

.metric-warning {
    border-left-color: #ed8936 !important;
}

.metric-neutral {
    border-left-color: #90caf9 !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    .finance-stats-modern {
        padding: 16px;
        margin: 16px;
    }

    .main-metrics-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .secondary-metrics-grid {
        grid-template-columns: 1fr;
    }

    .metric-value {
        font-size: 1.5rem;
    }

    .compact-metric {
        padding: 10px 12px;
    }
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.metric-card {
    animation: fadeInUp 0.5s ease-out;
}

.compact-metric {
    animation: fadeInUp 0.3s ease-out;
}

/* Специфичные стили для финансовых показателей */
.metric-card.revenue {
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
    border-color: #10b981;
}

.metric-card.profit {
    background: linear-gradient(135deg, #1e40af 0%, #3730a3 100%);
    border-color: #6366f1;
}

.metric-card.loss {
    background: linear-gradient(135deg, #7c2d12 0%, #9a3412 100%);
    border-color: #ea580c;
}

.metric-card.conversion {
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%);
    border-color: #8b5cf6;
}

/* Для разных типов снекбаров - разные цвета прогресса */
.mud-alert-filled-success::before {
    background: var(--mud-palette-success) !important;
}

.mud-alert-filled-error::before {
    background: var(--mud-palette-error) !important;
}

.mud-alert-filled-warning::before {
    background: var(--mud-palette-warning) !important;
}

.mud-alert-filled-info::before {
    background: var(--mud-palette-info) !important;
}

/* Анимация заполнения */
@keyframes snackbar-progress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

.settings-grid .settings-card .card-header {
    justify-content: normal !important
}

/* Дополнительные стили для позиционирования */
.mud-snackbar {
    position: relative;
    overflow: hidden;
    border-radius: 10px !important;
    min-height: 48px;

    animation
}

    /* Убедись что контент поверх прогресс-бара */
    .mud-snackbar > * {
        position: relative;
        z-index: 1;
    }

    .grid-item {
        height: fit-content
    }

.grid-item .reflective {
    background-color: #1a1a1a !important;
    color: white !important;
    border-color: #202020 !important;
}

[class*="line"] label:last-of-type,
[class*="info"] label:last-of-type {
    color: #fff !important;
}

.grid-item .reflective .settings .settings-item {
    background-color: #202020 !important
}

.mud-paper .reflective .settings .settings-item {
    background-color: #2a2a2a !important;
    border-color: #2a2a2a !important
}

.mud-paper .reflective {
    background-color: #202020 !important;
    border-color: #2a2a2a !important
}

.grid-item .reflective .list {
    background-color: #202020 !important
}

.reflective .action button {
    background-color: #202020 !important
}

.user-item {
    background-color: #1a1a1a !important;
    border-radius: 10vh !important;
}

.user-action .mud-button-filled {
    background-color: #202020 !important;
}

.login .login-action button {
    background-color: #202020 !important
}

label {
    color: white !important;
}

.mud-tab.mud-tab-active {
    background: #1e1e1e !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    color: white;
}

.mud-input-control-input-container .mud-input.mud-input-outlined .mud-input-outlined-border {
    border-radius: 10vh !important
}

.header {
    transition: all .2s;
}

body .mud-tabs-panels .tab-data {
    opacity: 0;
    animation: simpleFadeIn1 0.8s ease-out 0.3s forwards;
}

@keyframes simpleFadeIn1 {
    to {
        opacity: 1;
    }
}

.login fieldset {
    border-radius: 10vh !important
}

.mud-icon-button {
    padding: 5px;
    margin-right: -5px
}

.mud-input-outlined-border {
    border-color: #202020 !important;
    border-radius: 10vh !important;
}

text {
    color: white !important;
}

.rz-dropdown {
    background-color: #1a1a1a !important;
    border-color: #202020 !important;
}

.rz-dropdown-panel {
    background-color: #1a1a1a !important;
}

.rz-dropdown-item {
    transition: background-color .22s !important;
}

.rz-dropdown-item:hover {
    background-color: #202020 !important;
    color: white !important;
}

.mud-drawer-header img {
    position: relative;
    left: 50%;
    transform: translate(-50%,0%);
    width: 10rem !important; /* Измените на нужное значение */
    height: 10rem !important; /* Измените на нужное значение */
    margin-top: auto !important;
    margin-bottom: auto !important;
}

.mud-main-content {
    font-family: Montserrat;
    z-index: 10;
}

.nav-container {
    text-align: center;
}

.nav-step {
    text-align: center;
}

.user-wallet-action .mud-button-filled {
    background-color: #202020 !important;
}

.wallet-list .user-wallet {
    background-color: #1a1a1a !important;
    color: #fff !important;
    border-color: #202020 !important
}

.log-item {
    background-color: #202020 !important;
    color: #fff !important;
}

.mud-drawer-open-mini-md-left {
    z-index: 99999;
}

.mud-layout .mud-drawer {
    background-color: #121212 !important;
    font-family: Montserrat !important;
    color: white !important;
    position: fixed !important;
    z-index: 1300 !important;
    border-right: 1px solid #202020 !important;
}

.toggle-filters-btn {
    margin-bottom: 15px
}

.mud-nav-link.active {
    border-radius: 10vh !important;
    background: none !important;
    color: white;
}

.mud-nav-link:hover {
    border-radius: 10vh !important;
    background: none !important;
    color: white;
}

.mud-nav-link {
    border-radius: 10vh;
    transition: background-color .22s !important;
}

.mud-overlay {
    background-color: rgba(0,0,0,.5) !important;
}

.simple-stats {
    background: #1e1e1e !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    padding: 24px !important;
    color: white !important;
}

.tab-fin-stats-list .indicator {
    border: none !important;
    background: #1a1a1aa1 !important;
    border-radius: 1vh;
}

.mud-button {
    font-family: Montserrat !important;
    border-radius: 5vh !important;
}

.profile {
    background-color: #1a1a1a !important;
    color: white !important;
    border-color: #00f8f1 !important;
    border-radius: 10vh !important;
}

.mud-button-filled {
    background: #1e1e1e !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    color: white !important;
    font-family: Montserrat;
}

.indicator-collection.gray {
    background-color: rgb(26,26,26) !important;
    color: white !important;
}

.mud-tabs-tabbar-inner {
    border: none !important
}

.mud-tabs-tabbar {
    background-color: rgba(22,22,22,0) !important;
}

.mud-tab {
    border-radius: 12px !important;
}

.mud-tab:hover {
    background: #1e1e1e !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

.mud-tooltip-root {
    border-radius: 3vh !important;
    margin-right: 2vh !important;
}

.mud-picker {
    border: none !important;
}

.mud-nav-item {
    background-color: rgb(22,22,22) !important;
    border-radius: 10vh !important;
    margin-bottom: .5vh !important;
}



.context {
    width: 100%;
    position: absolute;
    top: 50vh;
}

    .context h1 {
        text-align: center;
        color: #fff;
        font-size: 50px;
    }


.area {
    background-color: #2d3436;
    background-image: linear-gradient(315deg, #2d3436 0%, #000000 74%);
    width: 100%;
    height: 100vh;
}


.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    width: 100%;
}

.logo-with-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.logo-image {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.mud-input-control > .mud-input-control-input-container > .mud-input-label-outlined.mud-input-label-inputcontrol {
    font-size: 14px
}

.logo-text {
    font-size: 2rem;
    font-weight: 500;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.logo-footer {
    top: 1vh;
    position: relative
}

body .login-layout .login {
    margin-top: 0;
    text-align: center;
}

body .login-layout {
    position: absolute;
    left: 50%;
    top: 50%;
    opacity: 0;
    animation: simpleFadeIn 0.8s ease-out 0.3s forwards;
    background: #1a1a1a;
    border-radius: 2vh;
    
    transform: translate(-50%,-50%) scale(0)
}

@keyframes simpleFadeIn {
    to {
        opacity: 1;
        transform: translate(-50%,-50%) scale(1)
    }
}

.circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

    .circles li {
        position: absolute;
        display: block;
        list-style: none;
        width: 20px;
        height: 20px;
        background: rgba(255, 255, 255, 0.2);
        animation: animate 25s linear infinite;
        bottom: -150px;
    }

        .circles li:nth-child(1) {
            left: 25%;
            width: 80px;
            height: 80px;
            animation-delay: 0s;
        }


        .circles li:nth-child(2) {
            left: 10%;
            width: 20px;
            height: 20px;
            animation-delay: 2s;
            animation-duration: 12s;
        }

        .circles li:nth-child(3) {
            left: 70%;
            width: 20px;
            height: 20px;
            animation-delay: 4s;
        }

        .circles li:nth-child(4) {
            left: 40%;
            width: 60px;
            height: 60px;
            animation-delay: 0s;
            animation-duration: 18s;
        }

        .circles li:nth-child(5) {
            left: 65%;
            width: 20px;
            height: 20px;
            animation-delay: 0s;
        }

        .circles li:nth-child(6) {
            left: 75%;
            width: 110px;
            height: 110px;
            animation-delay: 3s;
        }

        .circles li:nth-child(7) {
            left: 35%;
            width: 150px;
            height: 150px;
            animation-delay: 7s;
        }

        .circles li:nth-child(8) {
            left: 50%;
            width: 25px;
            height: 25px;
            animation-delay: 15s;
            animation-duration: 45s;
        }

        .circles li:nth-child(9) {
            left: 20%;
            width: 15px;
            height: 15px;
            animation-delay: 2s;
            animation-duration: 35s;
        }

        .circles li:nth-child(10) {
            left: 85%;
            width: 150px;
            height: 150px;
            animation-delay: 0s;
            animation-duration: 11s;
        }



@keyframes animate {

    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }

    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}



.settings-container {
    position: relative;
    left: 0;
    max-width: 1200px;
    padding: 24px;
}

.mud-drawer {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

    .mud-drawer::-webkit-scrollbar {
        display: none !important;
    }

.settings-header {
    margin-bottom: 40px;
    text-align: left;
}

    .settings-header h1 {
        font-size: 2.5rem;
        font-weight: 600;
        margin-bottom: 8px;
        color: var(--mud-palette-text-primary);
    }

.subtitle {
    font-size: 1.1rem;
    color: var(--mud-palette-text-secondary);
    margin: 0;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.settings-card {
    background: var(--mud-palette-surface);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--mud-palette-lines-default);
    transition: all 0.3s ease;
    height: fit-content;
}

    .settings-card:hover {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-2px);
    }

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--mud-palette-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
}

    .card-icon svg {
        color: white;
        width: 24px;
        height: 24px;
    }

.card-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: white;
}

.card-description {
    color: var(--mud-palette-text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.help-section {
    background: var(--mud-palette-surface);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    border: 1px solid var(--mud-palette-lines-default);
}

    .help-section h2 {
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: 12px;
        color: var(--mud-palette-text-primary);
    }

    .help-section p {
        color: var(--mud-palette-text-secondary);
        margin-bottom: 24px;
        line-height: 1.5;
    }

.help-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.loading {
    font-size: 1.1rem;
    color: var(--mud-palette-text-secondary);
}

@media (max-width: 768px) {
    .settings-container {
        padding: 16px;
    }

    .settings-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .settings-card {
        padding: 20px;
    }

    .help-actions {
        flex-direction: column;
        align-items: center;
    }

    .settings-header h1 {
        font-size: 2rem;
    }
}

.api-keys-container {
    position: relative;
    left: 0;
    max-width: 1000px;
    padding: 24px;
}

.api-keys-header {
    margin-bottom: 32px;
}

    .api-keys-header h1 {
        font-size: 2rem;
        font-weight: 600;
        margin-bottom: 8px;
        color: var(--mud-palette-text-primary);
    }

.header-subtitle {
    font-size: 1rem;
    color: var(--mud-palette-text-secondary);
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--mud-palette-surface);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--mud-palette-lines-default);
}

.stat-value {
    font-size: 2rem;
    font-weight: 600;
    color: var(--mud-palette-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--mud-palette-text-secondary);
    margin: 0;
}

.security-section {
    background: var(--mud-palette-surface);
    border-radius: 8px;
    padding: 24px;
    border: 1px solid var(--mud-palette-warning);
    margin-bottom: 32px;
}

    .security-section h3 {
        font-size: 1.25rem;
        font-weight: 600;
        margin-bottom: 12px;
        color: var(--mud-palette-warning);
    }

.security-tips {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .security-tips li {
        padding: 8px 0;
        color: var(--mud-palette-text-secondary);
        position: relative;
        padding-left: 20px;
    }

        .security-tips li:before {
            content: "•";
            color: var(--mud-palette-warning);
            position: absolute;
            left: 0;
        }

.keys-section {
    background: var(--mud-palette-surface);
    border-radius: 8px;
    padding: 24px;
    border: 1px solid var(--mud-palette-lines-default);
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--mud-palette-text-primary);
}

.key-item {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

    .key-item:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

.key-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--mud-palette-text-primary);
}

.key-id {
    font-size: 0.875rem;
    color: var(--mud-palette-text-secondary);
    margin-bottom: 16px;
}

.key-row {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 16px;
    align-items: center;
    margin-bottom: 12px;
}

.key-label {
    font-weight: 600;
    color: var(--mud-palette-text-primary);
    font-size: 0.875rem;
}

.key-value {
    font-family: 'Courier New', monospace;
    background: var(--mud-palette-background-grey);
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid var(--mud-palette-lines-default);
    font-size: 0.875rem;
}

.key-actions {
    display: flex;
    gap: 8px;
}

.divider {
    height: 1px;
    background: var(--mud-palette-lines-default);
    margin: 24px 0;
}

.actions-section {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.loading {
    font-size: 1.1rem;
    color: var(--mud-palette-text-secondary);
}

@media (max-width: 768px) {
    .api-keys-container {
        padding: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .key-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .key-actions {
        justify-content: flex-start;
    }

    .actions-section {
        flex-direction: column;
    }
}

.security-container {
    position: relative;
    left: 0;
    max-width: 1000px;
    padding: 24px;
}

.security-header {
    margin-bottom: 32px;
}

    .security-header h1 {
        font-size: 2rem;
        font-weight: 600;
        margin-bottom: 8px;
        color: var(--mud-palette-text-primary);
    }

.header-subtitle {
    font-size: 1rem;
    color: var(--mud-palette-text-secondary);
    margin: 0;
}

.security-grid {
    display: grid;
    gap: 24px;
}

.security-section {
    background: var(--mud-palette-surface);
    border-radius: 8px;
    padding: 24px;
    border: 1px solid var(--mud-palette-lines-default);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--mud-palette-text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-description {
    color: var(--mud-palette-text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.security-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 0.875rem;
    color: var(--mud-palette-text-secondary);
}

.info-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--mud-palette-text-primary);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-active {
    background: var(--mud-palette-success-light);
    color: var(--mud-palette-success-dark);
}

.status-inactive {
    background: var(--mud-palette-grey-light);
    color: var(--mud-palette-grey-dark);
}

.security-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.password-form {
    display: grid;
    gap: 16px;
    max-width: 400px;
}

.form-row {
    display: grid;
    gap: 8px;
}

.warning-section {
    background: var(--mud-palette-warning-light);
    border: 1px solid var(--mud-palette-warning);
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.warning-title {
    font-weight: 600;
    color: var(--mud-palette-warning-dark);
    margin-bottom: 8px;
}

.warning-text {
    font-size: 0.875rem;
    color: var(--mud-palette-warning-dark);
    margin: 0;
}

.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.loading {
    font-size: 1.1rem;
    color: var(--mud-palette-text-secondary);
}

@media (max-width: 768px) {
    .security-container {
        padding: 16px;
    }

    .security-info {
        grid-template-columns: 1fr;
    }

    .security-actions {
        flex-direction: column;
    }

    .password-form {
        max-width: 100%;
    }
}

.cards-page {
    margin-top: 20px;
}

.cards-header {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: center;
}

.status-select {
    min-width: 200px;
}

.search-field {
    min-width: 250px;
}

.settings-card .card-header {
    background: none;
    padding: 0;
    border: none;
}

.extended-filters {
    margin-bottom: 20px
}



.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.invoice-card {
    border: 1px solid #202020;
    border-radius: 15px;
    transition: box-shadow 0.3s;
}

    .invoice-card:hover {
        box-shadow: 0 4px 8px rgba(255,255,255,0.1);
    }


.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.amount-text {
    font-weight: bold;
    color: white;
    font-size: 1.5rem
}

.filters-container {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.filter-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.filter-field {
    flex: 1;
    min-width: 200px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.invoice-card .mud-card-actions {
    padding: 16px;
    border-top: 1px solid #202020;
    display: flex;
    justify-content: center;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.status-created {
    background-color: #FFBD00;
}

.status-completed {
    background-color: #31D057;
}

.mud-card-content .card-header {
    padding: 0px;
    border: none
}

.mud-dialog .mud-dialog-content {
    max-height: 80vh;
}

-status-dispute {
    background-color: #ff0044;
}

.status-canceled {
    background-color: #f00;
}

.status-payed {
    background-color: #FFBD00;
}

.error-text {
    color: #d32f2f;
    font-weight: bold;
    margin-bottom: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 4px 0;
}

.detail-label {
    font-weight: 500;
    color: #666;
}

.detail-value {
    font-weight: 400;
    color: white;
}

.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.no-data-text {
    text-align: center;
    color: #666;
    grid-column: 1 / -1;
}

.reflective-invoice-modern {
    margin: 8px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

    .reflective-invoice-modern .invoice-card {
        border-radius: 12px;
        overflow: hidden;
        transition: all 0.2s ease;
        border: 1px solid var(--mud-palette-divider);
        background: var(--mud-palette-surface);
        margin-bottom: 8px;
    }

    .reflective-invoice-modern .invoice-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
        background: var(--mud-palette-surface);
        border-bottom: 1px solid var(--mud-palette-divider);
        gap: 12px;
    }

    .reflective-invoice-modern .invoice-main-info {
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .reflective-invoice-modern .invoice-amount {
        font-weight: 700 !important;
        color: var(--mud-palette-text-primary) !important;
        font-size: 1.25rem !important;
        min-width: 100px;
    }

    .reflective-invoice-modern .invoice-meta {
        display: flex;
        gap: 12px;
        align-items: center;
        flex-wrap: wrap;
        flex: 1;
    }

    .reflective-invoice-modern .invoice-id {
        color: var(--mud-palette-text-secondary) !important;
        font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
        font-weight: 500;
        background: var(--mud-palette-background);
        padding: 4px 8px;
        border-radius: 6px;
        border: 1px solid var(--mud-palette-divider);
        font-size: 0.8rem;
    }

    .reflective-invoice-modern .invoice-type,
    .reflective-invoice-modern .invoice-date {
        color: var(--mud-palette-text-secondary) !important;
        font-weight: 500;
        font-size: 0.8rem;
    }

    .reflective-invoice-modern .invoice-actions {
        display: flex;
        gap: 8px;
        align-items: center;
        flex-shrink: 0;
    }

    .reflective-invoice-modern .invoice-timer {
        padding: 12px 20px;
        background: var(--mud-palette-warning);
        border-bottom: 1px solid var(--mud-palette-divider);
    }

    .reflective-invoice-modern .invoice-details {
        padding: 0;
        background: var(--mud-palette-background);

    }

    .reflective-invoice-modern .detail-section {
        padding: 16px 20px;
        border-bottom: 1px solid var(--mud-palette-divider-light);
    }

        .reflective-invoice-modern .detail-section:last-child {
            border-bottom: none;
        }

    .reflective-invoice-modern .section-title {
        font-weight: 600 !important;
        margin-bottom: 12px !important;
        color: var(--mud-palette-text-primary) !important;
        font-size: 0.9rem;
    }

    .reflective-invoice-modern .detail-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        transition: all .2s
    }

    .reflective-invoice-modern .detail-label {
        font-weight: 500 !important;
        color: var(--mud-palette-text-secondary) !important;
        font-size: 0.8rem;
    }

    .reflective-invoice-modern .detail-value {
        color: var(--mud-palette-text-primary) !important;
        font-weight: 500;
        font-size: 0.8rem;
        text-align: right;
    }

    /* Статусы с родительскими классами */
    .reflective-invoice-modern .status-success {
        background: var(--mud-palette-success) !important;
        color: white !important;
    }

    .reflective-invoice-modern .status-pending {
        background: var(--mud-palette-warning) !important;
        color: white !important;
    }

    .reflective-invoice-modern .status-canceled {
        background: var(--mud-palette-error) !important;
        color: white !important;
    }

/* Адаптивность с родительскими классами */
@media (max-width: 768px) {
    .reflective-invoice-modern .invoice-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .reflective-invoice-modern .invoice-main-info {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .reflective-invoice-modern .invoice-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .reflective-invoice-modern .invoice-actions {
        align-self: stretch;
        justify-content: flex-end;
    }
}

/* Темная тема с родительскими классами */
.mud-dark-theme .reflective-invoice-modern .invoice-card {
    background: var(--mud-palette-surface);
    border-color: var(--mud-palette-divider);
}

.mud-dark-theme .reflective-invoice-modern .invoice-id {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Добавь эти стили для действий и файлового превью */
.reflective-invoice-modern .actions-section {
    padding: 16px 20px;
    border-bottom: 1px solid var(--mud-palette-divider-light);
    background: var(--mud-palette-surface);
}

.reflective-invoice-modern .actions-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reflective-invoice-modern .file-preview-section {
    padding: 16px 20px;
    border-bottom: 1px solid var(--mud-palette-divider-light);
    background: var(--mud-palette-surface);
}

    .reflective-invoice-modern .file-preview-section:last-child {
        border-bottom: none;
    }

.reflective-invoice-modern .pdf-preview {
    width: 100%;
    height: 300px;
    border: 1px solid var(--mud-palette-divider);
    border-radius: 8px;
    overflow: hidden;
    background: var(--mud-palette-background);
}

.reflective-invoice-modern .pdf-viewer {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

.reflective-invoice-modern .image-preview {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    border: 1px solid var(--mud-palette-divider);
}

/* Исправь отступы для деталей */
.reflective-invoice-modern .detail-section {
    padding: 16px 20px;
    border-bottom: 1px solid var(--mud-palette-divider-light);
    background: var(--mud-palette-surface);
}

    .reflective-invoice-modern .detail-section:last-child {
        border-bottom: none;
    }

/* Убедись что grid контейнер правильно стилизован */
.reflective-invoice-modern .mud-grid-container {
    padding: 0;
}

.reflective-invoice-modern .mud-grid-spacing-3 {
    margin: 0;
}

/* Действия на всю ширину */
.reflective-invoice-modern .actions-fullwidth {
    padding: 16px 20px;
    border-bottom: 1px solid var(--mud-palette-divider-light);
    background: var(--mud-palette-surface);
    grid-column: 1 / -1; /* Занимает все колонки */
}

.reflective-invoice-modern .actions-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Чек отдельной строкой */
.reflective-invoice-modern .file-preview-fullwidth {
    padding: 16px 20px;
    border-bottom: 1px solid var(--mud-palette-divider-light);
    background: var(--mud-palette-surface);
    grid-column: 1 / -1; /* Занимает все колонки */
}

.appels-item[b-ftx7cwtugm] {
    background: none !important
}

.reflective-invoice-modern .detail-row[style*="cursor: pointer"]:hover {
    background-color: var(--mud-palette-action-default-hover) !important;
    border-radius: 6px;
    padding: 8px 8px !important;
}

.reflective-invoice-modern .invoice-details {
    padding: 0;
    background: var(--mud-palette-background);
    transform: scaleY(0);
    transform-origin: top;
    height: 0;
    opacity: 0;
    transition: all 0.3s ease-out;
}

    .reflective-invoice-modern .invoice-details.expanded {
        transform: scaleY(1);
        height: auto;
        opacity: 1;
        transition: all 0.4s ease-in;
    }

.reflective-invoice-modern .file-preview-section {
    padding: 16px 20px;
    border-bottom: 1px solid var(--mud-palette-divider-light);
    background: var(--mud-palette-surface);
}

.reflective-invoice-modern .pdf-preview {
    width: 100%;
    height: 400px;
    border: 1px solid var(--mud-palette-divider);
    border-radius: 8px;
    overflow: hidden;
}

.reflective-invoice-modern .pdf-viewer {
    width: 100%;
    height: 100%;
    border: none;
}

.reflective-invoice-modern .image-preview {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    border: 1px solid var(--mud-palette-divider);
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #202020;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
        background: #202020;
    }


/* Современное боковое меню */
.modern-drawer {
    background: #1a1a1a !important;
    border-right: 1px solid #333333;
}

.drawer-header-modern {
    padding: 20px 16px;
    border-bottom: 1px solid #333333;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar-modern {
    background: linear-gradient(135deg, #bb86fc, #9965f4) !important;
    border: 2px solid #333333;
    font-weight: 600;
}

.user-info-modern {
    flex: 1;
    min-width: 0;
}

.user-name-modern {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role-modern {
    color: #bb86fc;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.drawer-container-modern {
    padding: 16px 0 !important;
}

.usdt-rate-modern {
    background: #202020;
    margin: 0 16px 20px 16px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #333333;
    text-align: center;
}

.rate-label-modern {
    color: #cccccc;
    font-size: 0.7rem;
    margin-bottom: 4px;
}

.rate-value-modern {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.7rem;
}

.nav-section-modern {
    margin-bottom: 24px;
}

.section-title-modern {
    color: #888888;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 16px 8px 16px;
}

.nav-link-modern {
    color: #cccccc !important;
    border-radius: 12px !important;
    padding: 10px 12px !important;
    min-height: 44px !important;
    transition: all 0.2s ease !important;
    position: relative;
}

    .nav-link-modern:hover {
        background: #2d2d2d !important;
        color: #ffffff !important;
        border-radius: 12px !important;
    }

    .nav-link-modern.active {
        background: #333333 !important;
        color: #ffffff !important;
        border-radius: 12px !important;
    }

        .nav-link-modern.active::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
            height: 20px;
            background: #00f8f1;
            border-radius: 0 2px 2px 0;
        }

    .nav-link-modern .mud-nav-link-icon {
        margin-right: 8px !important;
        font-size: 1.2rem !important;
    }



    .withdraw-dialog.mud-dialog.mud-dialog-width-sm .mud-dialog-content h4 {
        font-size: 1.5rem;
        font-weight: 600;
        margin: 0 0 8px 0;
        color: white;
    }

    .withdraw-dialog.mud-dialog.mud-dialog-width-sm .mud-dialog-content p {
        font-size: 0.875rem;
        margin: 0 0 16px 0;
        color: white;
        opacity: .7;
        font-weight: 400;
    }

    .withdraw-dialog.mud-dialog.mud-dialog-width-sm .mud-dialog-content hr {
        margin: 16px 0;
        border: none;
        border-top: 1px solid #e2e8f0;
    }

    .withdraw-dialog.mud-dialog.mud-dialog-width-sm .mud-dialog-content h5 {
        font-size: 0.875rem;
        font-weight: 500;
        margin: 16px 0 8px 0;
        opacity: 1;

        color: white;
        text-transform: uppercase;
    }

.withdraw-dialog .compensation-amount {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
}

    .withdraw-dialog .compensation-amount div {
        text-align: center;
    }

    .withdraw-dialog .compensation-amount b {
        font-size: 1rem;
        color: white;
    }

.withdraw-dialog .equivalent-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
}

    .withdraw-dialog .equivalent-amount label {
        font-size: 0.875rem;
        color: #718096;
        margin: 0;
    }

    .withdraw-dialog .equivalent-amount b {
        font-size: 1rem;
        color: white;
    }

.withdraw-dialog .data-correct {
    text-align: center;
    margin: 16px 0;
    padding: 8px;
    background-color: #f0fff4;
    border-radius: 4px;
}

    .withdraw-dialog .data-correct b {
        color: #38a169;
        font-size: 0.875rem;
    }

/* Стили для селектов и полей ввода внутри этого диалога */
.withdraw-dialog .mud-select,
.withdraw-dialog .mud-numeric-field {
    margin: 8px 0 16px 0;
}

.withdraw-dialog .mud-dialog-actions {
    padding: 0;
    gap: 0;
    justify-content: center;
}

    .nav-link-modern:hover .mud-nav-link-icon {
        color: #ffffff !important;
    }

    .nav-link-modern.active .mud-nav-link-icon {
        color: #bb86fc !important;
    }

/* Адаптивность для мини-меню */
.mud-drawer-mini .section-title-modern,
.mud-drawer-mini .rate-label-modern {
    display: none;
}

.mud-drawer-mini .usdt-rate-modern {
    padding: 8px;
    text-align: center;
}

.mud-drawer-mini .rate-value-modern {
    font-size: 0.7rem;
}

.statistics-header {
    background: linear-gradient(135deg, var(--mud-palette-primary) 0%, var(--mud-palette-primary-darken) 100%);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.statistics-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 8px;
    line-height: 1.2;
}

.statistics-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    opacity: 0.9;
    font-size: 1rem;
}

.date-range-panel {
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.date-icon {
    font-size: 1.2rem;
    margin-right: 12px;
}

.date-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--mud-palette-text-primary);
}

.action-buttons {
    display: flex;
    gap: 12px;
}

.action-btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    text-transform: none;
}

.stats-tabs {
    margin-top: 8px;
}

    .stats-tabs .mud-tab {
        font-family: 'Montserrat', sans-serif;
        font-weight: 500;
        text-transform: none;
        font-size: 0.875rem;
        min-height: 48px;
    }

    .stats-tabs .mud-tab-active {
        background: var(--mud-palette-primary);
        color: white !important;
        border-radius: 8px 8px 0 0;
        font-weight: 600;
    }

.tab-content {
    background: var(--mud-palette-surface);
    border-radius: 0 0 8px 8px;
    min-height: 70px;
    padding: 24px;
    border: 1px solid var(--mud-palette-lines-default);
    border-top: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .statistics-header {
        padding: 20px;
        margin-bottom: 20px;
    }

    .statistics-title {
        font-size: 1.5rem;
    }

    .date-range-panel {
        padding: 16px;
    }

    .action-buttons {
        flex-direction: column;
        width: 100%;
        margin-top: 12px;
    }

    .action-btn {
        width: 100%;
    }

    .tab-content {
        padding: 16px;
        min-height: 400px;
    }
}

@media (max-width: 480px) {
    .statistics-title {
        font-size: 1.25rem;
    }

    .date-text {
        font-size: 0.9rem;
    }

    .stats-tabs .mud-tab {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
}

.telegram-card {
    border-left: 4px solid #0088cc;
}

.telegram-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.telegram-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

    .telegram-toggle input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }

.telegram-features {
    margin: 12px 0;
    padding-left: 20px;
}

    .telegram-features li {
        margin: 4px 0;
        font-size: 14px;
    }

.telegram-link-code {
    text-align: center;
}

.code-container {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 8px;
    margin: 12px 0;
}

.link-code {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    color: #0088cc;
}

.small {
    font-size: 12px;
    color: #666;
}

/* Анимации для MudBlazor popover */
.mud-popover {
    transform-origin: top left;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Анимация открытия - выезд вниз */
.mud-popover-open {
    animation: slideDown 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Анимация закрытия - въезд вверх */
.mud-popover-closing {
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
}

.mud-overlay {
    animation: faded 1s;
}

@keyframes faded {
    0% {
        opacity: 0;
        
    }

    100% {
        opacity: 1;
    }
}

/* Дополнительные стили для красоты */
.mud-list-item {
    transition: background-color 0.2s ease;
}

    .mud-list-item:hover {
        background-color: rgba(0, 0, 0, 0.04);
    }

.mud-popover {
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.info {
    zoom: 85%
}

.line label:last-of-type[b-cmq8z2z18q] {
    margin-left: 5px
}

.rz-dropdown-panel {
    z-index: 9999999 !important
}

.rz-dropdown-label {
    color: white !important
}

/* Эффект "волны" заполнения */
.mud-snackbar {
    position: relative;
    background: #1e1e1e; /* Темный фон */
    border: 1px solid #333;
}

    .mud-snackbar::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 0%;
        height: 100%;
        background: linear-gradient(90deg, transparent 0%, rgba(46, 125, 50, 0.15) 50%, transparent 100%);
        animation: waveFill 5s ease-out forwards;
        z-index: 0;
    }

@keyframes waveFill {
    0% {
        width: 0%;
        left: 0;
    }

    50% {
        width: 100%;
        left: 0;
    }

    100% {
        width: 100%;
        left: 100%;
    }
}

/* Контент поверх анимации */
.mud-snackbar > * {
    position: relative;
    z-index: 1;
}

.telegram-toggle {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    zoom: 75%;
    user-select: none;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

    .telegram-toggle:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    }

    .telegram-toggle input {
        display: none;
    }

.toggle-track {
    position: relative;
    width: 60px;
    height: 32px;
    background: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.telegram-toggle input:checked + .toggle-track {
    background: linear-gradient(135deg, #0088cc 0%, #00a2ff 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 136, 204, 0.3);
}

.toggle-thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.telegram-toggle input:checked + .toggle-track .toggle-thumb {
    left: calc(100% - 28px);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.toggle-thumb::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.3) 100%);
    border-radius: 50%;
}

.toggle-thumb::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230088cc'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    transition: transform 0.3s ease;
}

.telegram-toggle input:checked + .toggle-track .toggle-thumb::after {
    transform: translate(-50%, -50%) scale(1);
}

.telegram-toggle span {
    font-size: 18px;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.telegram-toggle input:checked ~ span {
    color: #b3e0ff;
}

/* Анимация при переключении */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.telegram-toggle input:checked + .toggle-track {
    animation: pulse 0.4s ease;
}

/* Эффект фокуса для доступности */
.telegram-toggle:focus-within {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 4px;
}

/* Темная тема для страниц вывода */
.withdraw-page,
.withdraw-history-page {
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #121212;
    color: #ffffff;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

    .page-header h2 {
        margin: 0;
        font-size: 28px;
        font-weight: 600;
        color: #ffffff;
    }

/* Карточки статистики */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: #1E1E1E;
    border: 1px solid #2D2D2D;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    font-size: 48px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #2196F3 0%, #0D47A1 100%);
    color: white;
}

.stat-card.balance .stat-icon {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
}

.stat-card.min .stat-icon {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}

.stat-card.total .stat-icon {
    background: linear-gradient(135deg, #9C27B0 0%, #6A1B9A 100%);
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 14px;
    color: #B0B0B0;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
}

/* Форма вывода */
.withdraw-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-card {
    background: #1E1E1E;
    border: 1px solid #2D2D2D;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

    .form-card h3 {
        margin: 0 0 24px 0;
        font-size: 22px;
        font-weight: 600;
        color: #ffffff;
    }

.history-link {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #2D2D2D;
}

/* История выводов */
.filters-row {
    margin-bottom: 24px;
}

.status-filter {
    width: 250px;
}

.withdraw-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.withdraw-item {
    background: #1E1E1E;
    border: 1px solid #2D2D2D;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #FF9800;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

    .withdraw-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .withdraw-item.status-completed {
        border-left-color: #4CAF50;
    }

    .withdraw-item.status-rejected {
        border-left-color: #F44336;
    }

    .withdraw-item.status-canceled {
        border-left-color: #757575;
    }

    .withdraw-item.status-processing {
        border-left-color: #2196F3;
    }

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #2D2D2D;
}

.item-id {
    font-weight: 600;
    color: #ffffff;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .status-badge.status-pending {
        background-color: rgba(255, 193, 7, 0.2);
        color: #FFC107;
        border: 1px solid rgba(255, 193, 7, 0.3);
    }

    .status-badge.status-processing {
        background-color: rgba(33, 150, 243, 0.2);
        color: #2196F3;
        border: 1px solid rgba(33, 150, 243, 0.3);
    }

    .status-badge.status-completed {
        background-color: rgba(76, 175, 80, 0.2);
        color: #4CAF50;
        border: 1px solid rgba(76, 175, 80, 0.3);
    }

    .status-badge.status-rejected {
        background-color: rgba(244, 67, 54, 0.2);
        color: #F44336;
        border: 1px solid rgba(244, 67, 54, 0.3);
    }

    .status-badge.status-canceled {
        background-color: rgba(158, 158, 158, 0.2);
        color: #9E9E9E;
        border: 1px solid rgba(158, 158, 158, 0.3);
    }

.item-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.item-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: start;
}

.item-label {
    font-weight: 600;
    color: #B0B0B0;
    font-size: 14px;
}

.item-value {
    color: #ffffff;
    word-break: break-all;
}

.transaction-link {
    color: #2196F3;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .transaction-link:hover {
        color: #64B5F6;
        text-decoration: underline;
    }

.item-actions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #2D2D2D;
    display: flex;
    justify-content: flex-end;
}

/* Загрузка и пустые состояния */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    gap: 16px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    gap: 16px;
    text-align: center;
}

    .empty-state h3 {
        margin: 0;
        color: #ffffff;
    }

    .empty-state p {
        margin: 0;
        color: #B0B0B0;
    }

    .empty-state .mud-icon {
        color: #666666;
        font-size: 64px;
    }

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 32px;
    padding: 24px;
}

.page-info {
    color: #B0B0B0;
    font-size: 14px;
}


/* Адаптивность */
@media (max-width: 768px) {
    .stats-cards {
        grid-template-columns: 1fr;
    }

    .item-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .withdraw-page,
    .withdraw-history-page {
        padding: 16px;
    }

    .form-card {
        padding: 20px;
    }

    .page-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .status-filter {
        width: 100%;
    }
}

/* Иконки внутри селектов */
.withdraw-page .mud-select-item .mud-icon,
.withdraw-history-page .mud-select-item .mud-icon {
    margin-right: 8px;
    color: #B0B0B0;
}

/* Ховер на элементах списка */
.withdraw-page .mud-select-item:hover,
.withdraw-history-page .mud-select-item:hover {
    background-color: rgba(33, 150, 243, 0.1) !important;
}

/* Скроллбар (Webkit) */
.withdraw-list::-webkit-scrollbar {
    width: 8px;
}

.withdraw-list::-webkit-scrollbar-track {
    background: #1E1E1E;
    border-radius: 4px;
}

.withdraw-list::-webkit-scrollbar-thumb {
    background: #2D2D2D;
    border-radius: 4px;
}

    .withdraw-list::-webkit-scrollbar-thumb:hover {
        background: #2196F3;
    }

/* ===== DARK THEME ===== */
.download-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 100vh;
    background: #0a0a0a;
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Заголовок */
.download-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: #111111;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    backdrop-filter: blur(10px);
}

.download-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 30%, #aaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.download-subtitle {
    font-size: 1rem;
    color: #888;
    line-height: 1.6;
}

/* Сообщения */
.status-message {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.status-success {
    background: rgba(45, 180, 100, 0.08);
    border-color: rgba(45, 180, 100, 0.3);
    color: #2db464;
}

.status-info {
    background: rgba(0, 122, 255, 0.08);
    border-color: rgba(0, 122, 255, 0.3);
    color: #007aff;
}

.status-warning {
    background: rgba(255, 149, 0, 0.08);
    border-color: rgba(255, 149, 0, 0.3);
    color: #ff9500;
}

.status-danger {
    background: rgba(255, 59, 48, 0.08);
    border-color: rgba(255, 59, 48, 0.3);
    color: #ff3b30;
}

/* Сетка файлов */
.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Карточки */
.file-card {
    background: #111111;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #2a2a2a;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    margin-bottom: 15px;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.container .row {
    margin-top: 15px;
}

    .file-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, #444, transparent);
    }

    .file-card:hover {
        transform: translateY(-4px);
        border-color: #444;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    }

        .file-card:hover::before {
            background: linear-gradient(90deg, transparent, #666, transparent);
        }

/* Тип файла */
.file-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 1rem;
    align-self: flex-start;
}

/* Название файла */
.file-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #fff;
    line-height: 1.3;
}

/* Описание */
.file-description {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Мета-информация */
.file-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid #222;
    margin-top: auto;
}

.file-size {
    color: #888;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .file-size::before {
        content: '📦';
        font-size: 0.9em;
    }

/* Кнопка скачивания */
.download-btn {
    width: 100%;
    padding: 1rem;
    background: #1a1a1a;
    color: #fff;
    border: 1px solid #333;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

    .download-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
        transition: left 0.6s;
    }

    .download-btn:hover:not(:disabled) {
        background: #222;
        border-color: #555;
        transform: translateY(-1px);
    }

        .download-btn:hover:not(:disabled)::before {
            left: 100%;
        }

    .download-btn:active:not(:disabled) {
        transform: translateY(0);
    }

    .download-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        background: #1a1a1a;
    }

/* Индикатор загрузки */
.download-spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

/* Секция QR-кода */
.qr-section {
    text-align: center;
    padding: 2rem;
    background: #111111;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    margin-top: 3rem;
}

.qr-title {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.qr-image-container {
    max-width: 200px;
    margin: 0 auto 1.5rem;
    padding: 1rem;
    background: #1a1a1a;
    border-radius: 12px;
    border: 1px solid #333;
}

.qr-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.qr-hint {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 300px;
    margin: 0 auto;
}

/* Футер */
.footer-info {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #222;
    color: #666;
    font-size: 0.85rem;
}

/* Информация об устройстве */
.device-info {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.device-badge {
    background: #1a1a1a;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid #333;
    font-size: 0.8rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Адаптив */
@media (max-width: 768px) {
    .download-container {
        padding: 1rem;
    }

    .download-title {
        font-size: 2rem;
    }

    .file-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .file-card {
        padding: 1.25rem;
    }

    .qr-section {
        padding: 1.5rem;
    }

    .device-info {
        flex-direction: column;
        align-items: center;
    }
}

/* Плавный скролл */
html {
    scroll-behavior: smooth;
}

/* Кастомный скроллбар */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #444;
    }

/* DARK THEME - История парсера */
.parser-history-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 100vh;
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Заголовок */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: #111111;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
}

.page-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 30%, #aaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1rem;
    color: #888;
    line-height: 1.6;
}

/* Основные фильтры */
.main-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-select {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 0.75rem;
    color: #fff;
    font-size: 0.95rem;
    min-width: 180px;
    transition: all 0.2s ease;
    cursor: pointer;
}

    .filter-select:focus {
        outline: none;
        border-color: #555;
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
    }

    .filter-select:hover {
        border-color: #555;
    }

.search-container {
    display: flex;
    flex: 1;
    max-width: 400px;
}

.search-input {
    flex: 1;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px 0 0 6px;
    padding: 0.75rem;
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

    .search-input:focus {
        outline: none;
        border-color: #555;
    }

.search-btn {
    background: #1a1a1a;
    border: 1px solid #333;
    border-left: none;
    border-radius: 0 6px 6px 0;
    padding: 0.75rem 1rem;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .search-btn:hover {
        background: #222;
        border-color: #555;
    }

/* Кнопка фильтров */
.toggle-filters-btn {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    color: #888;
    cursor: pointer;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .toggle-filters-btn:hover {
        background: #222;
        border-color: #555;
        color: #fff;
    }

/* Дополнительные фильтры */
.extended-filters {
    background: #111111;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    padding: 1.5rem;
    margin-bottom: 2rem;
    animation: slideDown 0.3s ease;
}

.filter-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.date-filter {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
}

.date-label {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
}

.date-input {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 0.75rem;
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

    .date-input:focus {
        outline: none;
        border-color: #555;
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
    }

.checkbox-container {
    margin: 1rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #888;
    cursor: pointer;
    font-size: 0.9rem;
    user-select: none;
}

    .checkbox-label input[type="checkbox"] {
        width: 18px;
        height: 18px;
        cursor: pointer;
        accent-color: #007aff;
    }

.reset-filters-btn {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    color: #888;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

    .reset-filters-btn:hover {
        background: #222;
        border-color: #555;
        color: #fff;
    }

/* Загрузка */
.loading-container {
    text-align: center;
    padding: 4rem;
    color: #888;
}

.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 1rem;
}

/* Сетка карточек */
.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Карточка истории */
.history-card {
    background: #111111;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

    .history-card:hover {
        transform: translateY(-5px);
        border-color: #444;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    }

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a1a1a;
}

.bank-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #fff;
    font-size: 1.1rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid;
}

.card-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.card-field {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.field-label {
    color: #888;
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 120px;
}

.field-value {
    color: #fff;
    font-size: 0.95rem;
    text-align: right;
    flex: 1;
    word-break: break-word;
}

    .field-value.truncate {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 200px;
    }

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #2a2a2a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a1a1a;
}

.details-btn {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    color: #fff;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

    .details-btn:hover {
        background: #222;
        border-color: #555;
    }

.match-indicator {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: rgba(45, 180, 100, 0.1);
    color: #2db464;
}

/* Пустое состояние */
.empty-state {
    text-align: center;
    padding: 4rem;
    color: #888;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 1rem;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    border-top: 1px solid #2a2a2a;
}

.pagination-btn {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

    .pagination-btn:hover:not(:disabled) {
        background: #222;
        border-color: #555;
    }

    .pagination-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.pagination-info {
    color: #888;
    font-size: 0.9rem;
}

/* Анимации */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптив */
@media (max-width: 768px) {
    .main-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-select {
        width: 100%;
        min-width: auto;
    }

    .search-container {
        max-width: none;
    }

    .history-grid {
        grid-template-columns: 1fr;
    }

    .filter-row {
        flex-direction: column;
    }

    .date-filter {
        min-width: auto;
        width: 100%;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .card-field {
        flex-direction: column;
        gap: 0.25rem;
    }

    .field-label {
        min-width: auto;
    }

    .field-value {
        text-align: left;
        width: 100%;
    }
}

/* Кастомный скролл */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #444;
    }

.nav-badge {
    background: #00f8f1;
    color: black;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    margin-left: 0.5rem;
    min-width: 20px;
    text-align: center;
    display: inline-block;
}

/* Для разных типов уведомлений можно сделать разные цвета */
.mud-nav-link .nav-badge {
    position: absolute;
    right: 0rem;
    top: 50%;
    transform: translateY(-50%);
}