/* Основное */
:root {
    --dark: #14286B;
    --primary: #1565C0;
    --secondary: #1976D2;
    --accent: #2196F3;
    --background: #0A0E17;
    --background-soft: #101522;
    --background-blur: #0A0E1780;
    --background-blur-strong: #0A0E17B3;
    --background-blur-light: #1565C019;
    --text: #ffffff;
    --text-soft: #ffffffb3;
    --border: #ffffff1a;
    --border-strong: #ffffff3b;
    --border-light: #ffffff1f;
    --success-bg: #4CAF5033;
    --success: #66BB6A;
    --warning-bg: #FF980033;
    --warning: #FFA726;
    --danger-bg: #F4433633;
    --danger: #EF5350;
    --error: #EF5350;
    --light: #a8d8ff;
    --white: #fff;
    --balance: #fff;
    --sidebar-width: 250px;
    --acrylic-blur: 16px;
    --back1: #0A0E17;
    --back2: #14286B;
    --accent-light: #2196F333;
}
:root[data-theme="light"] {
    --primary: #1565C0;
    --secondary: #1976D2;
    --accent: #2196F3;
    --background: #F5F5F5;
    --background-soft: #fff;
    --background-blur: #ffffffcc;
    --background-blur-strong: #ffffffee;
    --background-blur-light: #1976D219;
    --text: #212121;
    --text-soft: #9b9b9b;
    --border: #0000001a;
    --border-strong: #0000003b;
    --border-light: #0000001f;
    --success-bg: #4CAF501A;
    --success: #43A047;
    --warning-bg: #FF98001A;
    --warning: #F57C00;
    --danger-bg: #F443361A;
    --danger: #E53935;
    --light: #64B5F6;
    --white: #fff;
    --balance: #1565C0;
    --back1: #2196F3;
    --back2: #1976D2;
    --accent-light: #2196F34D;
}
* { margin:0; padding:0; box-sizing:border-box; font-family:'Bahnschrift','Segoe UI',sans-serif; }
body { background:var(--background); color:var(--text); min-height:100vh; overflow-x:hidden; }
.container { display:flex; min-height:100vh; }
::-webkit-scrollbar { width: 10px;  height: 10px; }
::-webkit-scrollbar-track { background: var(--background-soft); border-radius: 10px; }
::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 10px; border: 2px solid var(--background-soft); }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }
::-webkit-scrollbar-corner { background: var(--background-soft); }
* { scrollbar-width: thin; scrollbar-color: var(--secondary) var(--background-soft); }

/* Левое */
.sidebar { width:var(--sidebar-width); background:linear-gradient(-145deg, var(--back1) 60%, var(--back2) 100%); padding-bottom:24px; display:flex; flex-direction:column; align-items:center; position:fixed; top:0; left:0; height:100vh; backdrop-filter:blur(var(--acrylic-blur)); }
.sidebar-back-btn { display:none; }
.sidebar .mobile-theme-toggle { display:none; }
.sidebar-header { width:100%; display:flex; flex-direction:column; align-items:center; padding-top:43px; margin-bottom:0px;}
.sidebar-header h2 { color:var(--white); font-size:2rem; font-weight:800; letter-spacing:0.22em; text-transform:uppercase; margin-bottom:1rem;}
.sidebar-header hr { width:60%; border:none; border-top:2px solid var(--accent); opacity:0.7; }
.sidebar-nav { flex:1; width:100%; }
.sidebar-nav ul { list-style:none; }
.sidebar-nav li { display:flex; align-items:center; gap:18px; padding:16px 32px; margin:8px 16px; border-radius:16px; color:var(--text-soft); opacity:0.7; cursor:pointer; transition:all 0.3s ease; border:2px solid transparent; }
[data-theme="light"] .sidebar-nav li { color: #BAD4EF; }
.sidebar-nav li:hover { background:linear-gradient(90deg, var(--dark) 0%, var(--primary) 100%); color:var(--text); border-color:var(--light); opacity:1; }
[data-theme="light"] .sidebar-nav li:hover { background: #0000001f; color:var(--white); border-color:var(--light); opacity:1; }
.sidebar-nav li.active { background:linear-gradient(90deg, var(--dark) 0%, var(--primary) 100%); color:var(--text); border:2px solid var(--light); opacity:1; }
[data-theme="light"] .sidebar-nav li.active { background: #0000001f; color:var(--white); border:2px solid var(--white); opacity:1; }
.sidebar-course-block { position:absolute; bottom:24px; text-align:center; }
.sidebar-rate-label { color:var(--white); margin-bottom:6px; }
.exchange-rate-value { background:var(--background); border:2px solid var(--balance); border-radius:14px; padding:10px 18px; color:var(--balance); }

/* Верхнее */
.top-nav { position:relative; display:flex; justify-content:space-between; align-items:center; padding:10px 20px; background:var(--background); backdrop-filter:blur(var(--acrylic-blur)); border-radius:12px; border:1px solid var(--border); z-index:200; }
.mobile-menu-btn { display:none; }
.mobile-account-icon { display:none; }
.balance-account-row { display:flex; align-items:center; width:100%; justify-content:space-between; }
.top-nav-actions { display:flex; align-items:center; gap:18px; margin-left:auto; padding-right:20px; }
.balance { background:var(--background); border:2px solid var(--accent); border-radius:14px; padding:10px 32px; font-size:1.5rem; font-weight:700; color:var(--balance); }
.balance-label { font-size:1.1rem; font-weight:400; }
.account { min-width:20rem; display:flex; align-items:center; gap:14px; padding:12px 22px; border-radius:16px; background:var(--background); border:2px solid var(--accent); color:var(--text); font-size:1.15rem; position:relative; overflow:visible; transition:0.3s; z-index:50;}
.account::before { content:''; inset:0; background:linear-gradient(90deg, transparent, rgba(33,150,243,0.1), transparent); transform:translateX(-100%); transition:0.5s; }
.account:hover { transform:translateY(-2px); border-color:var(--light); box-shadow:0 8px 16px -4px rgba(33,150,243,0.25), 0 0 8px rgba(33,150,243,0.2); }
.account:hover::before { transform:translateX(100%); }
.account i { font-size:2.6rem; color:var(--secondary); transition:0.3s; }
.account:hover i { color:var(--light); transform:scale(1.1) rotate(-5deg); }
.account span { display:flex; flex-direction:column; line-height:1.1; }
.account:hover span { transform:translateX(4px); }
.account.active { border-color:var(--light); box-shadow:0 8px 16px -4px rgba(33,150,243,0.25), 0 0 8px rgba(33,150,243,0.2); }
[data-theme="light"] .account { background:#fff; border:2px solid #2196F3; color:#1976D2; box-shadow:0 0 0 2px #2196F344; }
[data-theme="light"] .account i { color:#1976D2; }
[data-theme="light"] .account span { color:#1976D2; }
[data-theme="light"] .account span span { color:#64B5F6; }
.profile-menu { position:absolute; top:calc(100% + 8px); right:-2px; background:var(--background); border:2px solid var(--light); border-radius:16px; padding:12px; display:none; backdrop-filter:blur(var(--acrylic-blur)); min-width:20rem; box-shadow:0 8px 24px rgba(0,0,0,0.15); z-index:2001; opacity:0; transform:translateY(-10px); transition:opacity 0.3s, transform 0.3s; }
.profile-menu.active { display:block; opacity:1; transform:translateY(0); }
.profile-menu-item { font-size:1rem; display:flex; align-items:center; gap:12px; padding:12px 16px; border-radius:12px; color:var(--text); cursor:pointer; transition:0.3s; margin-bottom:4px; text-decoration: none;}
.profile-menu-item:last-child { margin-bottom:0; }
.profile-menu-item i { font-size:1.1rem; color:var(--secondary); transition:0.3s; width:20px; text-align:center; }
.profile-menu-item:hover i { color:var(--accent); transform:scale(1.1) rotate(-5deg); }
.profile-menu-item:hover { background:linear-gradient(90deg, var(--background-blur-strong) 0%, var(--secondary) 100%); transform:translateX(5px); }

/* Кнопки и фильтры */
.support-btn { width:68px; height:68px; background:none; border:none; position:fixed; bottom:36px; right:36px; z-index:100; cursor:pointer; transition:transform 0.2s; }
.support-btn img { width:100%; height:100%; display:block; filter:drop-shadow(0 0 12px #2196f3aa); transition:filter 0.3s, transform 0.3s; animation:support-float 2.5s ease-in-out infinite; }
.support-btn:hover img { filter:drop-shadow(0 0 24px #2196f3cc) brightness(1.1); transform:scale(1.08) rotate(-3deg); }
.btn-secondary { background:none; border:2px solid var(--secondary); color:var(--light); border-radius:8px; padding:7px 22px; font-size:1rem; font-weight:600; cursor:pointer; transition:background 0.2s, color 0.2s, box-shadow 0.2s; box-shadow:none; outline:none; }
.btn-secondary i { font-size:1.1em; margin-right:6px; vertical-align: middle; }
.btn-secondary:hover, .btn-secondary:focus { background:var(--primary); color:var(--text); border:2px solid var(--light); }
[data-theme="light"] .btn-secondary { background:var(--background-soft); border:2px solid var(--primary); color:var(--primary); }
[data-theme="light"] .btn-secondary:hover, [data-theme="light"] .btn-secondary:focus { background:var(--primary); color:var(--background-soft); }
.btn-icon { background:transparent; border:1.5px solid var(--accent); color:var(--accent); font-size:1.2rem; cursor:pointer; padding:0; width:38px; height:38px; border-radius:8px; transition:all 0.2s ease-in-out; display:inline-flex; align-items:center; justify-content:center; vertical-align:middle; }
.btn-icon i { display:block; font-size:1rem; line-height:1; }
.btn-icon:hover { background-color:var(--accent-light); border-color:var(--light); color:var(--light); }
.btn-icon .fas, .btn-icon .far { font-size:inherit; vertical-align:middle; }
.logout-btn { display:flex; align-items:center; justify-content:center; width:44px; height:44px; background:transparent; border:2px solid var(--accent); border-radius:12px; color:var(--secondary); font-size:1.35rem; cursor:pointer; transition:background 0.2s, color 0.2s, box-shadow 0.2s, border 0.2s; box-shadow:0 2px 8px 0 rgba(33, 150, 243, 0.08); margin-left:12px; outline:none; }
.logout-btn i { font-size:1.25em; margin:0; }
.logout-btn:hover { color:var(--accent); box-shadow:0 4px 10px 0 rgba(33, 149, 243, 0.432); }
.logout-btn:hover i { color:var(--accent); transform:scale(1.1) rotate(-2deg); }
[data-theme="light"] .logout-btn { background:var(--background-soft); color:var(--primary); border:2px solid var(--primary); }
[data-theme="light"] .logout-btn:hover, [data-theme="light"] .logout-btn:focus { background:var(--primary); color:var(--background-soft); border-color:var(--accent); }
.search-input { min-width:300px; max-width:400px; padding:8px 16px; border:2px solid var(--secondary); border-radius:8px; background:var(--background); color:var(--text); font-size:1rem; outline:none; transition:all 0.3s ease; }
.search-input:focus { border-color:var(--accent); box-shadow:0 0 0 2px rgba(33, 150, 243, 0.2); }
.status-inactive, .status-blocked, .status-active { padding:4px 12px; border-radius:12px; font-size:0.9rem; font-weight:500; }
.status-active { background:var(--success-bg); color:var(--success); }
.status-inactive { background:var(--warning-bg); color:var(--warning); }
.status-blocked { background:var(--danger-bg); color:var(--danger); }
[data-theme="light"] .status-active { background:var(--success-bg); color:var(--success); }
[data-theme="light"] .status-inactive { background:var(--warning-bg); color:var(--warning); }
[data-theme="light"] .status-blocked { background:var(--danger-bg); color:var(--danger); }
.setting-item { display:flex; flex-direction:column; gap:8px; margin-bottom:0; }
.setting-item label { color:var(--text); font-size:1.08rem; margin-bottom:6px; }
.setting-item input, .setting-item select, .setting-item textarea { padding:10px 18px; border:2px solid var(--secondary); border-radius:10px; background:var(--background); color:var(--text); font-size:1.08rem; outline:none; transition:border 0.2s, box-shadow 0.2s; width:100%; box-sizing: border-box; }
.setting-item input, .setting-item select { max-width:260px; }
.setting-item textarea { min-height:120px; resize:vertical; max-width:none; }
.setting-item .btn-secondary { max-width:260px; width:100%; }
.setting-item input:focus, .setting-item select:focus, .setting-item textarea:focus { border-color:var(--accent); box-shadow:0 0 0 2px var(--accent-light); }
.input-text-error { border-color: #E7000BFF; box-shadow:0 0 0 2px #9F0712FF; }
.back-btn { margin-bottom:16px; margin-left:0; align-self:flex-start; background:linear-gradient(90deg,#2196F3 0%,#64B5F6 100%); color:#fff; font-weight:600; font-size:1.05em; padding:12px 28px; border-radius:10px; box-shadow:0 2px 8px #2196F344; border:none; transition:box-shadow 0.2s; }
.back-btn:hover { box-shadow:0 4px 16px #2196F388; cursor:pointer; }
input[type="checkbox"] { -webkit-appearance:none; appearance:none; width:20px; height:20px; border:2px solid var(--secondary); border-radius:4px; background-color:var(--background-soft); cursor:pointer; position:relative; }
input[type="checkbox"]:checked { background-color:var(--accent); border-color:var(--accent); }
input[type="checkbox"]:disabled { background-color:var(--background-blur); border-color:var(--border-strong); cursor:not-allowed; }
input[type="checkbox"]::after { content:''; position:absolute; top:3px; left:6px; width:5px; height:10px; border:solid var(--background); border-width:0 2px 2px 0; transform:rotate(45deg); opacity:0; }
input[type="checkbox"]:checked::after { opacity:1; }
.toggle-switch { position:relative; display:inline-block; width:50px; height:28px; }
.toggle-switch input { opacity:0; width:0; height:0; }
.toggle-switch span { position:absolute; cursor:pointer; top:0; left:0; right:0; bottom:0; background-color:#ccc; transition:.4s; border-radius:28px; }
.toggle-switch span:before { position:absolute; content:""; height:20px; width:20px; left:4px; bottom:4px; background-color:white; transition:.4s; border-radius:50%; }
.toggle-switch input:checked + span { background-color:var(--accent); }
.toggle-switch input:focus + span { box-shadow:0 0 1px var(--accent); }
.toggle-switch input:checked + span:before { transform:translateX(22px); }

/* Кнопка смены темы */
.theme-toggle { width:84px; height:42px; border-radius:24px; background:linear-gradient(165deg, rgba(13,71,161,0.9) 0%, rgba(25,118,210,0.95) 40%, rgba(33,150,243,0.8) 100%); border:none; position:relative; display:flex; align-items:center; justify-content:flex-start; cursor:pointer; padding:0; overflow:hidden; transition:all 0.5s cubic-bezier(0.4,0,0.2,1); }
.theme-toggle-inner { position:absolute; left:0; top:0; width:100%; height:100%; border-radius:24px; overflow:hidden; z-index:1; }
.theme-toggle-inner::before { content:''; position:absolute; inset:0; background: radial-gradient(circle at 20% 20%, rgba(41,98,255,0.4) 0%, transparent 40%),             radial-gradient(circle at 80% 80%, rgba(0,229,255,0.4) 0%, transparent 40%),             linear-gradient(165deg, rgba(13,71,161,0.9) 0%, rgba(25,118,210,0.95) 40%, rgba(33,150,243,0.8) 100%); filter:blur(0.5px); transition:opacity 0.5s ease; }
.vivid-thumb { position:absolute; top:5px; left:5px; width:32px; height:32px; border-radius:50%; z-index:2; transition:all 0.6s cubic-bezier(0.4,0,0.2,1); }
.vivid-thumb::before { content:''; position:absolute; inset:0; border-radius:50%; background:radial-gradient(circle at 35% 35%, #E3F2FD 0%, #90CAF9 40%, #42A5F5 70%, #1E88E5 100% ); box-shadow:inset -3px -3px 6px rgba(0,0,0,0.2), 0 0 10px rgba(33,150,243,0.5), 0 0 20px rgba(33,150,243,0.3); transition:all 0.6s cubic-bezier(0.4,0,0.2,1); }
.crater { position:absolute; border-radius:50%; background:radial-gradient(circle at 30% 30%, rgba(13,71,161,0.8) 0%, rgba(25,118,210,0.6) 100%); box-shadow:inset 1px 1px 3px rgba(0,0,0,0.3); opacity:0.8; transition:all 0.4s ease; }
.crater1 { width:10px; height:10px; left:6px; top:8px; }
.crater2 { width:6px; height:6px; left:18px; top:15px; }
.crater3 { width:8px; height:8px; left:15px; top:5px; }
.crater4 { width:4px; height:4px; left:9px; top:17px; }
.vivid-stars { position:absolute; right:8px; top:8px; width:24px; height:24px; z-index:3; pointer-events:none; opacity:0; visibility:hidden; transition:opacity 0.3s ease, visibility 0.3s ease; }
.vivid-stars span { content:''; position:absolute; width:2px; height:2px; background:#fff; border-radius:50%; box-shadow:0 0 2px #fff; transition:opacity 0.3s ease; animation:smoothTwinkle 3s ease-in-out infinite; }
.vivid-stars .star1 { right:2px; top:2px; }
.vivid-stars .star2 { right:14px; top:4px; animation-delay:1s; }
.vivid-stars .star3 { right:8px; top:10px; animation-delay:2s; }
:root:not([data-theme="light"]) .vivid-stars { opacity:1; visibility:visible; }
.theme-toggle:hover { transform:scale(1.02); }
.theme-toggle:hover .vivid-stars span { animation-duration:2s; box-shadow:0 0 2px #fff,0 0 4px #fff,0 0 6px var(--accent),0 0 8px var(--accent); }
.theme-toggle:hover .vivid-thumb::before { filter:brightness(1.2); }
.theme-toggle:active .vivid-thumb { transform:scale(0.9); }
[data-theme="light"] .theme-toggle { background:linear-gradient(135deg, #FBC02D 0%, #FFECB3 100%); box-shadow:0 0 24px 0 #FFD54F66; border:none; }
[data-theme="light"] .theme-toggle-inner::before { background:none; opacity:1; }
[data-theme="light"] .vivid-thumb { transform:translateX(42px); width:38px; height:38px; top:2px; left:2px; border:none; }
[data-theme="light"] .vivid-thumb::before { background:#fff; box-shadow:0 0 20px 5px rgba(255, 235, 59, 0.7); border:none; }
[data-theme="light"] .theme-toggle::after { content:''; position:absolute; left:0; bottom:-2px; width:100%; height:auto; aspect-ratio:84/25; z-index:2; background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 25'><path d='M0,15 C21,5 42,20 63,8 84,-2 84,25 84,25 L0,25 Z' fill='%23F9A825'/></svg>") no-repeat bottom center/contain; pointer-events:none; opacity:1; transform:scale(1.05); }
[data-theme="light"] .vivid-stars { opacity:0; visibility:hidden; }
[data-theme="light"] .crater { opacity:0; transform:scale(0); }

/* Основное содержимое */
.main-content { flex:1; padding:20px; margin-left:var(--sidebar-width); min-height:100vh; position:relative; overflow-x:hidden; }
.content { margin-top:41px; padding:24px; background:var(--background-blur); border-radius:16px; backdrop-filter:blur(var(--acrylic-blur)); border:1px solid var(--border); flex:1; }
.tab-content { display:none; opacity:0; animation:fadeIn 0.3s ease-in-out forwards; padding:0; color:var(--text); background:none; }
.tab-content.active { display:block; opacity:1; background:none; color:var(--text); }
.tab-content h2 { font-size:1.8rem; font-weight:600; margin-bottom:24px; color:var(--text); }
.deals-table { width:100%; border-collapse:separate; border-spacing:0; color:var(--text); font-size:1.08rem; }
.deals-table th { padding:14px 18px; font-weight:700; text-align:left; font-size:1.08rem; letter-spacing:0.01em; }
.deals-table td { padding:14px 18px; border-top:1px solid var(--border-strong); }
.deals-table th, .deals-table td { text-align:center; vertical-align:middle; padding:14px 0; min-width:80px; }
.deals-table th:nth-child(3), .deals-table td:nth-child(3) { text-align:center; }
.deals-table th:first-child, .deals-table td:first-child { text-align:center; }
.deals-table th:last-child, .deals-table td:last-child { text-align:center; white-space:nowrap; }
.deals-table .logout-btn { margin:0 auto; }
.deals-table td .btn-secondary, .deals-table td .btn-icon { vertical-align:middle; }
.deals-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:24px; gap:16px; flex-wrap:wrap; }
.deals-header .search-input { min-width:200px; max-width:350px; }
.deals-header .deals-filters-group { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.deals-header .deals-filters { display:flex; gap:8px; flex-wrap:wrap; }
.deals-header > .deals-export, .deals-header > .btn-secondary { white-space:nowrap; flex-shrink:0; }
.deals-pagination { display:flex; justify-content:center; align-items:center; gap:8px; margin-top:24px; }
.bank-details-secondary, .payout-details-secondary, .sum-secondary, .requisite-secondary { color:var(--text-soft); font-size:0.9em; opacity:0.7; }
.news-list { display:flex; flex-direction:column; gap:24px; margin-top:24px; }
.news-block { background:var(--background-blur-strong); border-radius:16px; padding:24px 32px; border:1px solid var(--border); cursor:pointer; transition:all 0.2s ease; }
.news-block:hover { background:var(--background-blur-light); }
.news-title-actions { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.news-title-actions .news-title { margin-bottom:0; }
.news-title { font-size:1.25rem; font-weight:700; color:var(--accent); margin-bottom:8px; display: flex; justify-content: space-between; align-items: center; }
.news-date { font-size:0.98rem; color:var(--text-soft); margin-bottom:8px; }
.news-preview { font-size:1.08rem; color:var(--text); opacity:0.85; }
.news-details { background:var(--background-blur-strong); padding:36px 32px 32px 32px; border:1px solid var(--border-light); border-radius:18px; display:none; }
.news-details h3 { font-size:1.6rem; color:var(--accent); margin-bottom:12px; }
.news-details .news-date { font-size:1rem; color:var(--text-soft); margin-bottom:18px; }
.news-full-content { font-size:1.1rem; color:var(--text); line-height:1.6; margin-bottom:24px; }
.news-details .modal-buttons { justify-content:flex-start; }
.deal-details { background:var(--background-blur-strong); border-radius:18px; padding:36px 32px 32px 32px; border:1px solid var(--border-light); display:none; }
.deal-details-group { background:#2196F31a; border-radius:14px; padding:24px 28px; margin-bottom:24px; border:1.5px solid #2196F324; }
.deal-details-group-title { font-size:1.18rem; font-weight:700; color:var(--accent); margin-bottom:12px; }
.deal-details-item { margin-bottom:16px; }
.deal-details-divider { width:100%; height:2px; background:linear-gradient(90deg, var(--accent) 0%, transparent 100%); margin:24px 0; border:none; opacity:0.18; }
.analytics-chart-container { background:var(--background-blur-strong); border-radius:16px; padding:24px; border:1px solid var(--border); min-height:480px; }
.chart-legend { display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:16px; margin-bottom:24px; }
.legend-item { display:flex; align-items:center; gap:8px; color:var(--text); padding:8px; border-radius:8px; }
.legend-color { width:16px; height:16px; border-radius:4px; }
.finances-stats { display:grid; grid-template-columns:repeat(auto-fit, minmax(250px, 1fr)); gap:24px; margin-bottom:24px; }
.finance-card { background:var(--background-blur-strong); border-radius:16px; padding:24px; border:1px solid var(--border); }
.finance-card-header { display:flex; align-items:center; gap:12px; margin-bottom:16px; color:var(--text); }
.finance-amount { font-size:1.8rem; font-weight:600; color:var(--accent); }
.finance-subtitle { font-size:0.9rem; color:var(--text-soft); }
.tab-content .settings-container { display:grid; grid-template-columns:repeat(3, 1fr); gap:16px 24px; position:relative; padding-bottom:70px; }

/* Фильтры и таблицы */
.tab-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }
.tab-header h2 { margin-bottom:0; }
.tab-actions { display:flex; gap:10px; margin-left:auto; }
.tab-actions .btn-secondary, .tab-actions .deals-export { height:38px; padding:7px 18px; font-size:1rem; white-space:nowrap; }
.filters-area { display:flex; flex-direction:column; gap:12px; margin-bottom:24px; }
.filter-inputs-row { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.filter-inputs-row .search-input { flex-grow:1; min-width:180px; max-width:300px; }
.filter-buttons-row { display:flex; flex-wrap:wrap; gap:8px; }
.deals-filter-btn { background:none; border:2px solid var(--secondary); color:var(--light); border-radius:8px; padding:7px 18px; font-size:0.9rem; font-weight:500; cursor:pointer; transition:background 0.2s, color 0.2s, box-shadow 0.2s; outline:none; white-space:nowrap; }
.deals-filter-btn.active, .deals-filter-btn:hover { background:var(--primary); color:var(--white); border-color:var(--light); }
.deals-export { background:none; border:2px solid var(--secondary); color:var(--light); border-radius:8px; padding:7px 18px; font-size:1rem; font-weight:500; cursor:pointer; transition:background 0.2s, color 0.2s, box-shadow 0.2s; outline:none; }
.deals-export:hover { background:var(--primary); color:var(--text); border:2px solid var(--light); }
.deals-export i.fas { vertical-align:middle; margin-right:6px; }
.deals-table-container { background:var(--background-blur-strong); border-radius:16px; padding:24px; overflow-x:auto; border:1px solid var(--border); margin-top:24px; }
.deals-pagination { display:flex; justify-content:center; align-items:center; gap:8px; margin-top:24px; }
.deals-pagination-btn { text-decoration: none; min-width:42px; min-height:42px; padding:8px 16px; border:2px solid var(--secondary); border-radius:8px; background:var(--background); color:var(--text); font-size:1.1rem; font-weight:600; cursor:pointer; transition:all 0.3s ease; display:flex; align-items:center; justify-content:center; }
.deals-pagination-btn:hover, .deals-pagination-btn.active { background:var(--primary); color:var(--white); border-color:var(--light); transform:translateY(-2px); box-shadow:0 4px 12px rgba(33, 150, 243, 0.3); }
.settings-btn { padding:10px 20px; background:var(--accent); color:var(--background-soft); border:none; border-radius:8px; cursor:pointer; transition:background 0.3s ease, transform 0.2s ease; }
.settings-container .settings-btn { display:block; position:absolute; bottom:20px; left:50%; transform:translateX(-50%); width:auto; padding:12px 30px; }
.settings-save-container { display:flex; justify-content:center; }
.checkbox-group { display:flex; align-items:center; cursor:pointer; font-size:0.9em; color:var(--text-soft); position:relative; padding-left:28px; user-select:none; }
.checkbox-group input[type="checkbox"] { position:absolute; opacity:0; cursor:pointer; height:0; width:0; }
.checkbox-group .checkmark { position:absolute; left:0; height:20px; width:20px; background-color:var(--background-light); border:1px solid var(--border); border-radius:6px; transition:all 0.2s ease; }
.checkbox-group:hover input[type="checkbox"] ~ .checkmark { border-color:var(--accent); }
.checkbox-group input[type="checkbox"]:checked ~ .checkmark { background-color:var(--accent); border-color:var(--accent); }
.checkbox-group .checkmark:after { content:""; position:absolute; display:none; left:6px; top:2px; width:5px; height:10px; border:solid white; border-width:0 2px 2px 0; transform:rotate(45deg); }
.checkbox-group input[type="checkbox"]:checked ~ .checkmark:after { display:block; }

/* Анимации */
@keyframes smoothTwinkle { 0%,100% { opacity:0.2; transform:scale(1); filter:blur(0px); } 50% { opacity:1; transform:scale(1.3); filter:blur(0.3px); box-shadow:0 0 2px #fff,0 0 4px #fff,0 0 6px var(--accent); } }
@keyframes fadeIn { from{opacity:0; transform:translateY(20px);} to{opacity:1; transform:translateY(0);} }
@keyframes support-float { 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-8px); } }

/* Админ */
#analyticsChart { width:100%!important; height:400px!important; }
.admin-table .btn-icon + .btn-icon { margin-left:8px; }
.admin-table th { font-size:1rem; }
.admin-news-list .news-block { cursor:default; }
.admin-news-list .news-block:hover { background:var(--background-blur-strong); }
#admin-settings-profile-content .settings-container { padding-top:0; }
#admin-settings-profile-content .settings-section { max-width:600px; }
#admin-settings-profile-content .setting-item { align-items:flex-start; width:100%; }
#admin-settings-profile-content .setting-item label { text-align:left; width:auto; margin-bottom:6px; }
#admin-settings-profile-content .setting-item input[type="text"], #admin-settings-profile-content .setting-item input[type="number"] { max-width:none; width:100%; }

/* Оператор */
.operator-table th, .operator-table td { padding:12px 10px; }
.dispute-details-container { background:var(--background-soft); border-radius:18px; padding:28px; border:1px solid var(--border-strong); display:flex; flex-direction:column; gap:24px; }
.dispute-main-info, .dispute-files { background:var(--background-blur-strong); border-radius:16px; padding:20px; border:1px solid var(--border); }
.dispute-header-block { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }
.dispute-header-block h3 { font-size:1.5rem; color:var(--accent); margin-bottom:0; }
.details-label { font-weight:600; color:var(--text-soft); margin-right:8px; }
.dispute-reason, .dispute-dates, .dispute-files .details-label { margin-bottom:12px; font-size:1.05rem; }
.dispute-file-item { display:flex; justify-content:space-between; align-items:center; background-color:var(--background-blur-light); padding:10px 14px; border-radius:10px; margin-bottom:10px; font-size:1rem; }
#dispute-upload-file-btn { align-self:flex-start; }
.deal-info-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:12px; font-size:1.05rem; }
.dispute-actions { justify-content:flex-start; margin-top:12px; }
.dispute-actions .btn-secondary i { margin-right:8px; }

/* Аффилейт */
#affiliateAnalyticsChart { width:100%!important; height:400px!important; }
#affiliate-request-payout-btn { padding:10px 22px; font-size:1.05rem; }
#affiliate-request-payout-btn i { margin-right:8px; }

/* Мерчант */
#merchantAnalyticsChart { width:100%!important; height:400px!important; }
.merchant-table th, .merchant-table td { padding:12px 10px; }
.api-key-item .input-with-icon { display:flex; align-items:center; }
.api-key-item .input-with-icon input { flex-grow:1; border-top-right-radius:0; border-bottom-right-radius:0; }
.api-key-item .input-with-icon .copy-btn { border-top-left-radius:0; border-bottom-left-radius:0; height:auto; align-self:stretch; padding:0 12px; }
.deal-logs-container { background-color:var(--background-blur); border:1px solid var(--border); border-radius:8px; padding:16px; max-height:400px; overflow-y:auto; text-align:left; }
.deal-logs-container pre { margin:0; white-space:pre-wrap; word-wrap:break-word; font-size:0.95rem; }

/* Трейдер */
#traderAnalyticsChart { width:100%!important; height:400px!important; }
.trader-table th, .trader-table td { padding:12px 10px; }
#trader-requisites .deals-table td .toggle-switch { margin-right:auto; margin-left:auto; }

/* Адаптив */
@media (max-width: 768px) {
    .sidebar-back-btn { display:none; position:absolute; top:20px; left:16px; background:none; border:none; font-size:1.5rem; color:var(--text); z-index:2001; }
    .sidebar.active-mobile .sidebar-back-btn { display:flex; align-items:center; }
    .sidebar .mobile-theme-toggle { display:none; position:absolute; top:18px; right:16px; z-index:2001; }
    .sidebar.active-mobile .mobile-theme-toggle { display:block; }
    .sidebar-header { display:flex; flex-direction:row; align-items:center; justify-content:space-between; padding:16px; width:100%; position:relative; padding-top:18px; padding-bottom:18px; }
    .sidebar-header h2 { flex-grow:1; text-align:center; margin:0; font-size:1.8rem; line-height:1; }
    .sidebar-back-btn, .sidebar.active-mobile .mobile-theme-toggle { flex-shrink:0; }
    .sidebar-header hr { display:none; }
    .mobile-theme-toggle.theme-toggle { width:50px; height:25px; }
    .mobile-theme-toggle .vivid-thumb { width:18px; height:18px; top:3.5px; left:3.5px; }
    .mobile-theme-toggle .crater1 { width:5px; height:5px; left:3px; top:4px; }
    .mobile-theme-toggle .crater2 { width:3px; height:3px; left:9px; top:7.5px; }
    .mobile-theme-toggle .crater3 { width:4px; height:4px; left:7.5px; top:2.5px; }
    .mobile-theme-toggle .crater4 { width:2px; height:2px; left:4.5px; top:8.5px; }
    [data-theme="light"] .mobile-theme-toggle .vivid-thumb { transform:translateX(23px); }
    [data-theme="light"] .mobile-theme-toggle.theme-toggle::after { width:12px; height:12px; top:6.5px; right:6.5px; }
    [data-theme="light"] .mobile-theme-toggle .vivid-thumb::before { box-shadow:inset -2px -2px 4px rgba(0,0,0,0.1), 0 0 10px rgba(255,215,0,0.7), 0 0 15px rgba(255,215,0,0.5); background:#FFEB3B; }
    .sidebar { transform:translateX(-100%); width:100%; max-width:100%; transition:transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); background:linear-gradient(-145deg, var(--back1) 60%, var(--back2) 100%); z-index:2000; overflow-y:auto; }
    [data-theme="light"] .sidebar { background:linear-gradient(-145deg, #2196F3 60%, #1976D2 100%); color:var(--white); }
    .sidebar.active-mobile { transform:translateX(0); }
    .sidebar-nav ul { display:flex; flex-direction:column; align-items:center; width:100%; padding-top:20px; }
    .sidebar-nav li { width:80%; max-width:280px; justify-content:center; padding:12px 16px; margin:6px 0; font-size:1rem; }
    [data-theme="light"] .sidebar-nav li { color:#BAD4EF; opacity:0.8; }
    [data-theme="light"] .sidebar-nav li:hover { background:rgba(0,0,0,0.15); color:var(--white); border-color:var(--white); opacity:1; }
    [data-theme="light"] .sidebar-nav li.active { background:rgba(0,0,0,0.2); color:var(--white); border:2px solid var(--white); opacity:1; }
    .sidebar-course-block { position:relative; bottom:auto; margin-top:20px; margin-bottom:20px; padding:10px; background:rgba(0,0,0,0.1); border-radius:8px; width:80%; max-width:280px; }
    .sidebar-rate-label { color:var(--white); font-size:0.9rem; }
    [data-theme="light"] .sidebar-rate-label { color:var(--white); }
    .exchange-rate-value { font-size:1rem; padding:8px 12px; background:var(--background); border:2px solid var(--balance); border-radius:14px; color:var(--balance); }
    [data-theme="light"] .exchange-rate-value { background:var(--background-soft); color:var(--primary); border-color:var(--primary); }
    .mobile-menu-btn { display:flex; background:none; border:none; font-size:1.5rem; color:var(--text); padding:10px; z-index:201; }
    .top-nav .desktop-theme-toggle { display:none; }
    .top-nav .desktop-account { display:none; }
    .mobile-account-icon { display:flex; align-items:center; justify-content:center; position:relative; padding:10px; cursor:pointer; font-size:1.5rem; color:var(--text); }
    .balance-account-row { display:flex; align-items:center; justify-content:space-between; width:100%; }
    .balance { flex-grow:1; text-align:center; font-size:1.1rem; padding:10px 0; border:none; background:none; }
    .mobile-profile-menu { position:absolute; top:calc(100% + 5px); right:0; background:var(--background-soft); border:1px solid var(--border); border-radius:8px; padding:8px; display:none; width:220px; box-shadow:0 4px 12px rgba(0,0,0,0.15); z-index:2100; }
    .mobile-account-icon.active .mobile-profile-menu { display:block; }
    .mobile-profile-menu .profile-menu-item { padding:10px 12px; font-size:0.9rem; }
    .top-nav-actions { padding:0; gap:0; }
    .main-content { margin-left:0; padding:10px; }
    .content { background:var(--background); padding:16px; }
    .deals-table-container { background:var(--background-blur-strong); }
    .deals-table th, .deals-table td { padding:8px 4px; font-size:0.9rem; }
    .deals-table th:nth-child(1), .deals-table td:nth-child(1) { width:15%; }
    .deals-table th:nth-child(2), .deals-table td:nth-child(2) { width:40%; }
    .deals-table th:nth-child(3), .deals-table td:nth-child(3) { width:10%; text-align:center; }
    .deals-table th:nth-child(6), .deals-table td:nth-child(6) { width:auto; text-align:center; display: table-cell !important; min-width: 100px; }
    .deals-table th:nth-child(2), .deals-table td:nth-child(2), .deals-table th:nth-child(4), .deals-table td:nth-child(4), .deals-table th:nth-child(5), .deals-table td:nth-child(5) { display:none; }
    .deals-table th:nth-child(3), .deals-table td:nth-child(3) { display:table-cell; }
    .deals-table th:nth-child(2) { display:table-cell; content:"Название"; }
    .deals-table td:nth-child(2) { display:table-cell; content:"Placeholder for title"; }
    .deals-table .btn-secondary { display:none; }
    .deals-table .btn-action-icon { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; padding:0; font-size:0.9rem; border:1px solid var(--secondary); border-radius:6px; background:transparent; color:var(--secondary); margin:0 2px; }
    .deals-table .btn-action-icon i { margin:0; }
    .deals-table .btn-action-icon:hover { background-color:var(--secondary); color:var(--white); }
    .status-active, .status-inactive, .status-blocked { padding:0; width:10px; height:10px; border-radius:50%; display:inline-block; text-indent:-9999px; margin:0 auto; }
    .tab-header { flex-direction:column; align-items:stretch; gap:10px; }
    .tab-actions { justify-content:flex-end; }
    .filters-area { gap:10px; margin-bottom:16px; }
    .filter-inputs-row { flex-direction:column; align-items:stretch; gap:10px; }
    .filter-inputs-row .search-input { max-width:none; }
    .filter-buttons-row { gap:6px; }
    .deals-table-container { margin-top:16px; }
    .deals-header { flex-direction:column; align-items:stretch; }
    .deals-header .search-input { max-width:100%; order:1; }
    .deals-header .deals-filters-group { flex-direction:column; align-items:stretch; width:100%; order:2; margin-top:10px; justify-content:stretch; }
    .deals-header .deals-filters { justify-content:flex-start; width:100%; }
    .deals-header > .deals-export, .deals-header > .btn-secondary { margin-left:auto; white-space:nowrap; flex-shrink:0; order:3; }
    .deals-pagination { display:flex; justify-content:center; align-items:center; gap:8px; margin-top:24px; }
    .tab-content .settings-container { grid-template-columns:1fr; padding-bottom:80px; }
    .settings-container .settings-btn { width:calc(100% - 40px); }
    .mobile-theme-toggle.theme-toggle { width:50px; height:25px; }
    :root[data-theme="light"] .mobile-theme-toggle.theme-toggle { background:linear-gradient(135deg,#FBC02D 0%,#FFECB3 100%); border:none; }
    :root[data-theme="light"] .mobile-theme-toggle .vivid-thumb { transform:translateX(23px); width:20px; height:20px; top:2.5px; left:2.5px; }
    :root[data-theme="light"] .mobile-theme-toggle .vivid-thumb::before { box-shadow:inset -2px -2px 4px rgba(0,0,0,0.1), 0 0 10px rgba(255,215,0,0.7), 0 0 15px rgba(255,215,0,0.5); background:#FFEB3B; }
    :root[data-theme="light"] .mobile-theme-toggle::after { content:''; position:absolute; left:0; bottom:-1px; width:100%; height:auto; aspect-ratio:50/15; z-index:2; background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 15'><path d='M0,9 C12.5,3 25,12 37.5,5 50,-1 50,15 50,15 L0,15 Z' fill='%23F9A825'/></svg>") no-repeat bottom center/contain; pointer-events:none; opacity:1; transform:scale(1.05); }
    .modal-content { width: 95%; max-height: 90vh; overflow-y: auto; padding: 20px; }
    .modal-content.large, .modal-content.medium { max-width: 95%; }
    .modal h3 { font-size: 1.5rem; margin-bottom: 20px; }
    .modal .modal-header h3 { font-size: 1.3rem; }
    .modal p, .modal .setting-item label { font-size: 1rem; }
    .modal .setting-item input[type="text"], .modal .setting-item input[type="password"], .modal .setting-item input[type="number"], .modal .setting-item input[type="email"], .modal .setting-item select, .modal .setting-item textarea { padding: 12px 15px; font-size: 1rem; }
    .modal-buttons { flex-direction: column; gap: 10px; margin-top: 20px; }
    .modal-buttons .btn-secondary, .modal-buttons .btn-primary, .modal-buttons .btn-main { width: 100%; padding: 12px; font-size: 1rem; }
    .dispute-main-info-grid { grid-template-columns: 1fr; }
    .files-table-container { max-height: 120px; }
    .info-table td { display: block; width: 100%; }
    .info-table td:first-child { font-weight: bold; margin-bottom: 5px; }
}

/* Авторизация */
body.auth-body { background:#080B12; display:flex; justify-content:center; align-items:center; min-height:100vh; padding:20px; overflow:hidden; position:relative; }
.auth-container { background:rgba(16, 21, 34, 0.85); padding:40px 50px; border-radius:24px; border:1px solid #ffffff3b; box-shadow:0 12px 32px rgba(0,0,0,0.3), 0 0 0 1px var(--border-light); width:100%; max-width:480px; position:relative; z-index:2; color:var(--text); }
.auth-container-glow { position:absolute; top:50%; left:50%; width:550px; height:550px; background:conic-gradient(from 180deg at 50% 50%, var(--accent) 0deg, var(--primary) 60deg, var(--dark) 120deg, #0A0E17 180deg, var(--dark) 240deg, var(--primary) 300deg, var(--accent) 360deg); filter:blur(100px); transform:translate(-50%, -50%) rotate(0deg); animation:rotateGlow 20s linear infinite; z-index:1; opacity:0.5; }
@keyframes rotateGlow { from { transform:translate(-50%, -50%) rotate(0deg); } to { transform:translate(-50%, -50%) rotate(360deg); } }
.auth-content { position:relative; z-index:2; display:flex; flex-direction:column; align-items:center; }
.auth-logo { font-size:3.5rem; font-weight:800; letter-spacing:0.2em; color:var(--white); margin-bottom:10px; text-transform:uppercase; text-shadow:0 0 10px rgba(var(--accent-rgb), 0.5); }
.auth-slogan { font-size:1.1rem; color:#ffffffb3; margin-bottom:30px; }
.auth-toggle-buttons { display:flex; border:1px solid #ffffff3b; border-radius:12px; margin-bottom:30px; overflow:hidden; }
.auth-toggle-btn { flex:1; padding:12px 20px; background:transparent; border:none; color:#ffffffb3; font-size:1.05rem; font-weight:500; cursor:pointer; transition:background 0.3s, color 0.3s; text-align:center; }
.auth-toggle-btn:first-child { border-right:1px solid #ffffff3b; }
.auth-toggle-btn.active { background:var(--accent); color:var(--white); box-shadow:0 0 15px rgba(var(--accent-rgb),0.4); }
.auth-form { width:100%; display:none; }
.auth-form.active { display:block; animation:formFadeIn 0.1s ease forwards; }
@keyframes formFadeIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
.form-group { margin-bottom:20px; position:relative; }
.form-group label { display:block; color:#ffffffb3; font-size:0.9rem; margin-bottom:8px; font-weight:500; }
.form-group input { width:100%; padding:14px 18px; padding-left:45px; background:#101522; border:1px solid #ffffff1a; border-radius:10px; color:var(--text); font-size:1rem; transition:border-color 0.3s, box-shadow 0.3s; }
.form-group input:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(var(--accent-rgb), 0.2); outline:none; }
.form-group .input-icon { position:absolute; left:15px; top:66%; transform:translateY(-50%); color:#ffffffb3; font-size:1.1rem; transition:color 0.3s; }
.form-group input:focus + .input-icon { color:var(--accent); }
.form-options { display:flex; justify-content:space-between; align-items:center; margin-bottom:25px; font-size:0.9rem; width:100%; }
.form-options .checkbox-group { display:flex; align-items:center; color:#ffffffb3; flex-grow:1; }
.form-options .checkbox-group input[type="checkbox"] { margin-right:8px; width:16px; height:16px; }
.form-options .checkbox-group .checkmark { color:#ffffff3b; }
.form-options a { color:var(--accent); text-decoration:none; transition:color 0.3s; }
.form-options a:hover { color:var(--light); text-decoration:underline; }
.auth-submit-btn { width:100%; padding:16px; background:var(--accent); border:none; border-radius:10px; color:var(--white); font-size:1.1rem; font-weight:600; cursor:pointer; transition:background 0.3s, box-shadow 0.3s; box-shadow:0 0 15px rgba(var(--accent-rgb),0); }
.auth-submit-btn:hover { background:var(--secondary); box-shadow:0 0 20px rgba(var(--accent-rgb),0.6); }
.auth-submit-btn:active { transform:translateY(2px); }
.auth-switch-form { text-align:center; margin-top:20px; font-size:0.9em; color:#ffffffb3; }
.auth-switch-form a { color:var(--accent); text-decoration:none; font-weight:500; }
.auth-switch-form a:hover { text-decoration:underline; }

/* Модалки */
.modal { display:none; position:fixed; inset:0; background:rgba(10, 14, 23, 0.7); backdrop-filter:blur(12px); justify-content:center; align-items:center; z-index:3000; padding:20px; overflow-y:auto; }
.modal-content { background-color:var(--background-color-secondary); padding:30px 35px; border-radius:20px; box-shadow:0 10px 30px rgba(0, 0, 0, 0.2); width:90%; max-width:600px; text-align:center; position:relative; transition:transform 0.3s ease-out, opacity 0.3s ease-out; transform:scale(0.95) translateY(-20px); opacity:0; border:1px solid var(--border-strong); }
.modal.active .modal-content { transform:scale(1) translateY(0); opacity:1; }
.modal-content.auth-style { background-color:#1E232B; border:1px solid #31394A; box-shadow:0 0 20px rgba(76, 159, 255, 0.1), 0 0 40px rgba(76, 159, 255, 0.05); color:var(--text-color-light); }
.modal-content.auth-style .modal-header h2, .modal-content.auth-style h2, .modal-content.auth-style h3, .modal-content.auth-style p, .modal-content.auth-style label, .modal-content.auth-style .form-label { color:var(--text-color-light); }
.modal-content.auth-style .form-input, .modal-content.auth-style .form-select, .modal-content.auth-style textarea { background-color:#2A303A; border:1px solid #404858; color:var(--text-color-light); }
.modal-content.auth-style .form-input::placeholder, .modal-content.auth-style textarea::placeholder { color:#8A93A2; }
.modal-content.auth-style .close-modal-btn { color:#8A93A2; }
.modal-content.auth-style .close-modal-btn:hover { color:#FFFFFF; }
.modal-content.auth-style .btn-primary { background:linear-gradient(90deg, #3172B5 0%, #5390D9 100%); border:none; color:#FFFFFF; }
.modal-content.auth-style .btn-primary:hover { box-shadow:0 0 15px rgba(83, 144, 217, 0.5); }
.modal-content.auth-style .btn-secondary { background-color:#404858; border:1px solid #5C677A; color:#EAEAEA; }
.modal-content.auth-style .btn-secondary:hover { background-color:#5C677A; }
.modal-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; padding-bottom:15px; border-bottom:1px solid var(--border-light); }
.modal-content.auth-style .modal-header { border-bottom:1px solid #ffffff3b; }
:root[data-theme="light"] .modal-content.auth-style .modal-header { border-bottom:1px solid #0000003b; }
.modal .close-modal-btn { background:transparent; border:none; font-size:1.8rem; color:var(--text-soft); cursor:pointer; padding:0 5px; line-height:1; transition:color 0.2s; }
.modal .close-modal-btn:hover { color:var(--text); }
.modal-content.auth-style .close-modal-btn { color:#ffffffb3; }
.modal-content.auth-style .close-modal-btn:hover { color:var(--white); }
:root[data-theme="light"] .modal-content.auth-style .close-modal-btn { color:#000000b3; }
:root[data-theme="light"] .modal-content.auth-style .close-modal-btn:hover { color:var(--text); }
.modal h3 { color:var(--accent); font-size:2rem; font-weight:700; margin-bottom:32px; }
.modal-content.auth-style h3 { color:var(--white); text-shadow:0 0 10px rgba(var(--accent-rgb),0.5); }
:root[data-theme="light"] .modal-content.auth-style h3 { color:var(--text); text-shadow:none; }
.modal .modal-header h3 { margin-bottom:0; font-size:1.8rem; }
.modal p, .modal .setting-item label { font-size:1.1rem; color:var(--text); margin-bottom:12px; display:block; text-align:center; }
.modal-content.auth-style p, .modal-content.auth-style .setting-item label { color:#ffffffb3; }
:root[data-theme="light"] .modal-content.auth-style p, :root[data-theme="light"] .modal-content.auth-style .setting-item label { color:var(--text-soft); }
.modal .setting-item label { margin-bottom:8px; font-size:1rem; color:var(--text-soft); text-align:left; }
.modal .setting-item { align-items:stretch; text-align:left; margin-bottom:20px; }
.modal .setting-item input[type="text"], .modal .setting-item input[type="password"], .modal .setting-item input[type="number"], .modal .setting-item input[type="email"], .modal .setting-item select, .modal .setting-item textarea { width:100%; max-width:100%; padding:14px 20px; border:1.5px solid var(--border); border-radius:12px; background:var(--background); color:var(--text); font-size:1.05rem; box-sizing:border-box; outline:none; transition:border-color 0.2s,box-shadow 0.2s; }
.modal-content.auth-style .setting-item input, .modal-content.auth-style .setting-item select, .modal-content.auth-style .setting-item textarea { background:#101522; border:1px solid #ffffff1a; color:var(--text); }
:root[data-theme="light"] .modal-content.auth-style .setting-item input, :root[data-theme="light"] .modal-content.auth-style .setting-item select, :root[data-theme="light"] .modal-content.auth-style .setting-item textarea { background:var(--background-soft); border:1px solid #0000001a; color:var(--text); }
.modal .search-input { width:100%; max-width:100%; display:block; }
.modal .setting-item input:focus, .modal .setting-item select:focus, .modal .setting-item textarea:focus { border-color:var(--accent); box-shadow:0 0 0 3.5px rgba(var(--accent-rgb),0.25); }
.modal-content.auth-style .setting-item input:focus, .modal-content.auth-style .setting-item select:focus, .modal-content.auth-style .setting-item textarea:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(var(--accent-rgb),0.2); }
.modal .setting-item textarea { min-height:100px; resize:vertical; }
.modal .setting-item input[type="file"] { width: 100%; padding: 12px; border: 1.5px dashed var(--border-strong); border-radius: 10px; background-color: var(--background-blur-light); color: var(--text-soft); cursor: pointer; margin-top: 4px; display: block; position: relative; text-align: center; box-sizing: border-box; margin: 0 auto; }
.modal .setting-item input[type="file"]::-webkit-file-upload-button { visibility: hidden; display: none; }
.modal .setting-item input[type="file"]::before { content: 'Выберите файл'; display: block;  width: 100%; box-sizing: border-box; background: var(--secondary); color: var(--white); border: none; border-radius: 6px; padding: 8px 15px; outline: none; white-space: nowrap; -webkit-user-select: none; cursor: pointer; font-weight: 500; font-size: 0.9em; transition: background-color 0.2s ease; text-align: center; justify-content: center; display: flex; align-items: center; height: 44px; }
.modal .setting-item input[type="file"]:hover::before { background-color: var(--primary); }
.modal .setting-item input[type="file"]:active::before { background-color: var(--dark); }
input[type="file"] { color: var(--text-soft); background-color: transparent; border: none; }
input[type="file"]::-webkit-file-upload-button { background: var(--secondary); color: var(--white); border: none; border-radius: 6px; padding: 8px 15px; margin-right: 10px; cursor: pointer; transition: background-color 0.2s ease; }
input[type="file"]::-webkit-file-upload-button:hover { background-color: var(--primary); }
.modal-buttons { display:flex; justify-content:center; gap:12px; margin-top:32px; }
.modal-buttons .btn-secondary { padding:12px 28px; font-size:1.05rem; font-weight:500; background:var(--background-soft); border:1.5px solid var(--accent); color:var(--accent); transition:background-color 0.2s,color 0.2s,box-shadow 0.2s,transform 0.2s; }
.modal-content.auth-style .modal-buttons .btn-secondary { background:var(--accent); color:var(--white); border:none; padding:16px; font-size:1.1rem; font-weight:600; box-shadow:0 0 15px rgba(var(--accent-rgb),0); }
.modal-content.auth-style .modal-buttons .btn-secondary:hover { background:var(--secondary); box-shadow:0 0 20px rgba(var(--accent-rgb),0.6); }
:root[data-theme="light"] .modal-content.auth-style .modal-buttons .btn-secondary { background:var(--accent); color:var(--white); }
:root[data-theme="light"] .modal-content.auth-style .modal-buttons .btn-secondary:hover { background:var(--secondary); }
.modal-buttons .btn-secondary:hover { background:var(--accent); color:var(--white); box-shadow:0 4px 12px rgba(var(--accent-rgb),0.3); transform:translateY(-2px); }
.modal-buttons .btn-primary, .modal-buttons .btn-main { background:var(--accent); color:var(--white); border:1.5px solid var(--accent); }
.modal-buttons .btn-primary:hover, .modal-buttons .btn-main:hover { background:var(--secondary); box-shadow:0 4px 12px rgba(var(--accent-rgb),0.4); }
.modal-buttons.center { justify-content:center; }
.modal-content.large { max-width:800px; }
.modal-content.medium { max-width:680px; }

/* Уведомления */
.notification-container { position:fixed; bottom:30px; left:50%; transform:translateX(-50%); z-index:4000; display:flex; flex-direction:column-reverse; align-items:center; gap:12px; }
.notification { padding:14px 22px; border-radius:16px; font-size:1.05rem; font-weight:500; display:flex; align-items:center; gap:12px; opacity:0; transform:translateY(30px) scale(0.95); min-width:320px; max-width:480px; box-shadow:0 6px 20px rgba(0,0,0,0.15); transition:opacity 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1); }
.notification.show { opacity:1; transform:translateY(0) scale(1); }
.notification.success { background:rgba(20, 107, 26, 0.3); border:1px solid #70E46A; color:#00B530; }
.notification.error { background:rgba(107, 20, 21, 0.3); border:1px solid #E46A6C; color:#CC0003; }
.notification i { font-size:1.3rem; }
.dispute-modal-body { display:flex; flex-direction:column; gap:24px; text-align:left; }
.dispute-main-info-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:20px; margin-bottom:16px; padding-bottom:20px; border-bottom:1px solid var(--border-light); }
.dispute-info-col h4 { font-size:1.1rem; color:var(--accent); margin-bottom:12px; font-weight:600; }
.dispute-info-col p { font-size:1rem; margin-bottom:8px; line-height:1.5; color:var(--text-soft); }
.dispute-info-col p .status-active, .dispute-info-col p .status-inactive, .dispute-info-col p .status-warning, .dispute-info-col p .status-blocked { padding:4px 12px; font-size:0.9rem; font-weight:500; border-radius:12px; display:inline-block; }
.dispute-dates-list { list-style:none; padding:0; margin:0 0 12px 0; max-height:100px; overflow-y:auto; font-size:0.95rem; }
.dispute-dates-list li { margin-bottom:4px; }
.dispute-dates-list span { color:var(--text); font-weight:500; }
.dispute-files-list { list-style:none; padding:0; margin:0 0 12px 0; max-height:100px; overflow-y:auto; font-size:0.95rem; }
.dispute-files-list li { display:flex; justify-content:space-between; align-items:center; padding:6px 0; border-bottom:1px dashed var(--border-light); }
.dispute-files-list li:last-child { border-bottom:none; }
.dispute-files-list span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin-right:10px; }
.dispute-files-list .btn-icon { font-size:0.9rem; width:30px; height:30px; }
.btn-upload-file-dispute-modal { font-size:0.9rem; padding:8px 12px; display:inline-flex; align-items:center; gap:6px; width:100%; justify-content:center; margin-top:8px; }
.dispute-section { margin-bottom:20px; }
.dispute-section h4 { font-size:1.25rem; color:var(--accent); margin-bottom:12px; font-weight:600; border-bottom:1px solid var(--border-light); padding-bottom:8px; }
.deals-table-container.minimal { padding:0; border:none; background:transparent; margin-top:0; }
.deals-table.dispute-table th { font-size:0.95rem; padding:10px 8px; background-color:transparent; color:var(--text); }
.deals-table.dispute-table td { font-size:0.95rem; padding:10px 8px; }
.deals-table.dispute-table td small { font-size:0.85em; color:var(--text-soft); }
.modal-operator-view-dispute .modal-buttons button { font-size:0.95rem; padding:10px 20px; }
.modal-content.medium { max-width:680px; }
.payout-modal-body { display:flex; flex-direction:column; gap:20px; text-align:left; }
.payout-main-info { padding-bottom:15px; border-bottom:1px solid var(--border-light); margin-bottom:10px; }
.payout-main-info p { font-size:1rem; margin-bottom:8px; color:var(--text-soft); }
.payout-main-info p span { color:var(--text); font-weight:500; }
.payout-main-info p .status-active, .payout-main-info p .status-inactive, .payout-main-info p .status-warning, .payout-main-info p .status-blocked { padding:4px 12px; font-size:0.9rem; font-weight:500; border-radius:12px; display:inline-block; }
.payout-section h4 { font-size:1.15rem; color:var(--accent); margin-bottom:12px; font-weight:600; }
.info-table { width:100%; border-collapse:collapse; font-size:0.95rem; }
.info-table td { padding:8px 0; vertical-align:top; }
.info-table td:first-child { color:var(--text-soft); width:40%; font-weight:500; }
.info-table td:last-child { color:var(--text); font-weight:normal; }
.info-table td span { font-size:0.9em; color:var(--text-soft); }
.files-table-container { margin-bottom:12px; max-height:150px; overflow-y:auto; border:1px solid var(--border-light); border-radius:8px; padding:8px; background-color:var(--background-blur-light); }
.deals-table.files-table th { font-size:0.9rem; padding:8px; background-color:transparent; text-align:left; }
.deals-table.files-table td { font-size:0.9rem; padding:8px; text-align:left; }
.deals-table.files-table td:last-child { text-align:right; }
.deals-table.files-table .btn-icon { width:30px; height:30px; font-size:0.9rem; }
.btn-upload-payout-file { font-size:0.9rem; padding:8px 12px; display:inline-flex; align-items:center; gap:6px; width:100%; justify-content:center; margin-top:8px; }
.toggle-switch-devices { margin-right: 5px; }



.bulk-actions {
    background: var(--background-blur-strong);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    display: none;
}

.bulk-actions > div {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.bulk-actions #selected-count {
    font-weight: 600;
    color: var(--accent);
    margin-right: 8px;
}

.bulk-actions .btn-secondary {
    padding: 8px 16px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.bulk-actions .btn-secondary i {
    margin-right: 6px;
}

.bulk-actions .search-input {
    min-width: 180px;
    max-width: 220px;
}

/* Стили для цветовых индикаторов групп */
.group-color-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    border: 1px solid var(--border);
}

.group-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.group-info .group-name {
    font-weight: 500;
}

.group-info .group-stats {
    font-size: 0.85rem;
    color: var(--text-soft);
    margin-left: auto;
}

/* Стили для чекбоксов в таблице */
.deals-table th input[type="checkbox"],
.deals-table td input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

.deals-table th input[type="checkbox"]:indeterminate {
    background-color: var(--accent);
    border-color: var(--accent);
}

.deals-table th input[type="checkbox"]:indeterminate::after {
    content: '−';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
    opacity: 1;
}

/* Стили для действий в таблице групп */
.action-buttons {
    display: flex;
    gap: 4px;
    justify-content: center;
    align-items: center;
}

.action-buttons .btn-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
}

.action-buttons .btn-icon:hover {
    transform: scale(1.05);
}

/* Стили для модальных окон групп */
.modal .setting-item input[type="color"] {
    width: 60px;
    height: 40px;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    background: none;
    padding: 0;
}

.modal .setting-item input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.modal .setting-item input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 6px;
}

.modal .setting-item input[type="color"]::-moz-color-swatch {
    border: none;
    border-radius: 6px;
}

/* Стили для фильтров */
.filters-area form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.filters-area .search-input {
    flex: 1;
    min-width: 200px;
}

.filters-area select {
    padding: 8px 16px;
    border: 2px solid var(--secondary);
    border-radius: 8px;
    background: var(--background);
    color: var(--text);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.filters-area select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

/* Стили для пустых состояний */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-soft);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text);
}

.empty-state p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Адаптивные стили для мобильных устройств */
@media (max-width: 768px) {
    .bulk-actions > div {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .bulk-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .bulk-actions .search-input {
        max-width: none;
    }

    .filters-area form {
        flex-direction: column;
        align-items: stretch;
    }

    .filters-area .search-input {
        max-width: none;
    }

    .group-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .group-info .group-stats {
        margin-left: 0;
    }

    .action-buttons {
        flex-wrap: wrap;
        gap: 2px;
    }

    .action-buttons .btn-icon {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
}

/* Стили для уведомлений о статусе */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.status-success {
    background: var(--success-bg);
    color: var(--success);
}

.status-badge.status-warning {
    background: var(--warning-bg);
    color: var(--warning);
}

.status-badge.status-error {
    background: var(--danger-bg);
    color: var(--danger);
}

/* Анимации для лучшего UX */
.bulk-actions {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.group-color-indicator {
    transition: transform 0.2s ease;
}

.group-info:hover .group-color-indicator {
    transform: scale(1.1);
}


.custom-select {
    position: relative;
    min-width: 180px;
    max-width: 250px;
}

.custom-select-trigger {
    background: var(--background);
    border: 2px solid var(--secondary);
    border-radius: 8px;
    padding: 8px 40px 8px 16px;
    color: var(--text);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'><polyline points='6,9 12,15 18,9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

[data-theme="light"] .custom-select-trigger {
    background: var(--background-soft);
    border: 2px solid var(--primary);
    color: var(--text);
    background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23212121' stroke-width='2'><polyline points='6,9 12,15 18,9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.custom-select-trigger:hover,
.custom-select.open .custom-select-trigger {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

.custom-select.open .custom-select-trigger {
    background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'><polyline points='18,15 12,9 6,15'></polyline></svg>");
}

[data-theme="light"] .custom-select.open .custom-select-trigger {
    background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23212121' stroke-width='2'><polyline points='18,15 12,9 6,15'></polyline></svg>");
}

.custom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--background-soft);
    border: 2px solid var(--accent);
    border-radius: 8px;
    margin-top: 2px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    backdrop-filter: blur(var(--acrylic-blur));
}

[data-theme="light"] .custom-select-dropdown {
    background: var(--background-soft);
    border: 2px solid var(--accent);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.custom-select.open .custom-select-dropdown {
    display: block;
    animation: fadeInDown 0.2s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-select-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    gap: 8px;
    border-bottom: 1px solid var(--border-light);
}

.custom-select-option:last-child {
    border-bottom: none;
}

.custom-select-option:hover {
    background-color: var(--accent-light);
}

[data-theme="light"] .custom-select-option:hover {
    background-color: var(--background-blur-light);
}

.custom-select-option input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid var(--secondary);
    border-radius: 3px;
    background-color: var(--background);
    position: relative;
    transition: all 0.2s ease;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}

[data-theme="light"] .custom-select-option input[type="checkbox"] {
    background-color: var(--background-soft);
    border-color: var(--primary);
}

.custom-select-option input[type="checkbox"]:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

.custom-select-option input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 4px;
    width: 4px;
    height: 8px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-select-option label {
    cursor: pointer;
    flex: 1;
    margin: 0;
    color: var(--text);
    font-size: 0.95rem;
    user-select: none;
}

.selected-count {
    background: var(--accent);
    color: var(--white);
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 0.8rem;
    margin-left: 4px;
    min-width: 16px;
    text-align: center;
    font-weight: 500;
}

.custom-select-dropdown::-webkit-scrollbar {
    width: 6px;
}

.custom-select-dropdown::-webkit-scrollbar-track {
    background: var(--background);
    border-radius: 3px;
}

.custom-select-dropdown::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 3px;
}

.custom-select-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

@media (max-width: 768px) {
    .custom-select {
        min-width: unset;
        max-width: unset;
        width: 100%;
    }

    .custom-select-trigger {
        font-size: 0.9rem;
        padding: 8px 35px 8px 12px;
        background-size: 14px;
        background-position: right 10px center;
    }

    .custom-select-option {
        padding: 10px 12px;
    }

    .custom-select-option label {
        font-size: 0.9rem;
    }

    .custom-select-dropdown {
        max-height: 150px;
    }
}

.custom-select-trigger:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.custom-select-option input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.selected-count {
    transition: all 0.2s ease;
    transform: scale(1);
}

.selected-count:not([style*="display: none"]) {
    animation: counterPop 0.3s ease-out;
}

@keyframes counterPop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.custom-select.disabled .custom-select-trigger {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: var(--background-blur);
}

.custom-select.disabled .custom-select-option {
    pointer-events: none;
    opacity: 0.6;
}

.custom-select.loading .custom-select-trigger::after {
    content: '';
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid var(--accent);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.custom-select-option input {
    padding: 0 !important;
}

#trader-deals .deals-table tr {
    line-height: 2.4rem;
}
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group label {
    font-size: 0.85rem;
    color: var(--text-soft);
    font-weight: 500;
}

.filter-group select {
    padding: 8px 12px;
    border: 2px solid var(--secondary);
    border-radius: 8px;
    background: var(--background);
    color: var(--text);
    font-size: 1rem;
    min-width: 180px;
}

.filter-group select:focus {
    border-color: var(--accent);
    outline: none;
}

.filters-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filters-row input[type="date"] {
    padding: 8px 12px;
    border: 2px solid var(--secondary);
    border-radius: 8px;
    background: var(--background);
    color: var(--text);
    font-size: 1rem;
    min-width: 150px;
}

.filters-row input[type="date"]:focus {
    border-color: var(--accent);
    outline: none;
}

.filters-row input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

:root[data-theme="light"] .filters-row input[type="date"]::-webkit-calendar-picker-indicator {
    filter: none;
}

.filters-row a.btn-icon {
    text-decoration: none;
}
