/*
 * Сгенерировано дизайн-конструктором iEXExchanger.
 * Источник настроек: админка iEXExchanger и сохранённые ключи оформления.
 * Не редактируйте этот файл вручную: изменения нужно публиковать из админ-панели.
 * © iEXExchanger. Все права защищены.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');



:root {
    --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 0.75rem;
    --input-container-height: 50px;
    --select-container-height: var(--input-container-height);
    --field-container-radius: calc(var(--radius) + 4px);
    --input-border-radius: var(--field-container-radius);
    --ex-list-item-border-radius: calc(var(--radius) + 4px);
    --control-height: 2rem;
    --control-height-sm: max(1.5rem, calc(var(--control-height) - 0.25rem));
    --control-height-lg: calc(var(--control-height) + 0.25rem);
    --app-background: #f6f7fb;
    --app-foreground: var(--foreground);
    --section-background: #f3f5fb;
    --background: #ffffff;
    --foreground: #0f172a;
    --card: #ffffff;
    --card-foreground: #0f172a;
    --popover: #ffffff;
    --popover-foreground: #0f172a;
    --primary: #047857;
    --primary-foreground: #ffffff;
    --secondary: #ECFDF5;
    --secondary-foreground: #064E3B;
    --muted: #f8fafc;
    --muted-foreground: #64748b;
    --accent: #D1FAE5;
    --accent-foreground: #065F46;
    --destructive: #dc2626;
    --destructive-foreground: #ffffff;
    --border: #DCEAE4;
    --input: #e5e7eb;
    --input-background: var(--background);
    --ring: #047857;
    --toolbar: var(--background);
    --toolbar-foreground: var(--foreground);
    --toolbar-primary: var(--primary);
    --toolbar-primary-foreground: var(--primary-foreground);
    --toolbar-muted: var(--muted);
    --toolbar-muted-foreground: var(--muted-foreground);
    --toolbar-accent: var(--accent);
    --toolbar-accent-foreground: var(--accent-foreground);
    --toolbar-border: var(--border);
    --toolbar-ring: var(--ring);
    --footer-background: color-mix(in oklab, var(--muted) 84%, var(--background));
    --footer-foreground: var(--foreground);
    --footer-muted-foreground: color-mix(in oklab, var(--muted-foreground) 90%, var(--foreground));
    --footer-border: color-mix(in oklab, var(--border) 60%, transparent);
    --footer-link: color-mix(in oklab, var(--foreground) 76%, var(--muted-foreground));
    --footer-link-hover: var(--primary);
    --footer-accent: color-mix(in oklab, var(--primary) 6%, transparent);
    --exchange-text-background: var(--muted);
    --exchange-text-foreground: var(--muted-foreground);
    --exchange-text-border: #DCEAE4;
    --exchange-amount-background: var(--muted);
    --exchange-amount-foreground: var(--foreground);
    --header-logotype-color: var(--toolbar-primary);
    --primary-button-bg-color: var(--primary);
    --primary-button-text-color: var(--primary-foreground);
    --menu-active-bg-color: var(--accent);
    --menu-active-text-color: var(--accent-foreground);
    --exchange-selected-child-bg: color-mix(in oklab, var(--primary) 8%, transparent);
    --exchange-selected-child-color: var(--foreground);
    --ex-search-input-bg: var(--input-background);
    --ex-search-input-border: var(--input);
    --ex-search-input-text-color: var(--foreground);
    --ex-search-input-placeholder-color: var(--muted-foreground);
    --order-review-background: var(--card);
    --order-review-color: var(--card-foreground);
    --ui-skeleton-base: var(--muted);
}

.dark {
    --app-background: #07100D;
    --app-foreground: var(--foreground);
    --section-background: #12201C;
    --background: #08120F;
    --foreground: #f8fafc;
    --card: #0D1A16;
    --card-foreground: #f8fafc;
    --popover: #0D1A16;
    --popover-foreground: #f8fafc;
    --primary: #1FD19A;
    --primary-foreground: #04241B;
    --secondary: #15241F;
    --secondary-foreground: #e5e7eb;
    --muted: #10201B;
    --muted-foreground: #93A8A0;
    --accent: #11302A;
    --accent-foreground: #f8fafc;
    --destructive: #dc2626;
    --destructive-foreground: #ffffff;
    --border: rgb(255 255 255 / 0.12);
    --input: rgb(255 255 255 / 0.14);
    --input-background: #16251F;
    --ring: #1FD19A;
    --toolbar: var(--background);
    --toolbar-foreground: var(--foreground);
    --toolbar-primary: var(--primary);
    --toolbar-primary-foreground: var(--primary-foreground);
    --toolbar-muted: var(--muted);
    --toolbar-muted-foreground: var(--muted-foreground);
    --toolbar-accent: var(--accent);
    --toolbar-accent-foreground: var(--accent-foreground);
    --toolbar-border: var(--border);
    --toolbar-ring: var(--ring);
    --footer-background: color-mix(in oklab, var(--primary) 8%, var(--background));
    --footer-foreground: var(--foreground);
    --footer-muted-foreground: color-mix(in oklab, var(--muted-foreground) 86%, var(--primary));
    --footer-border: color-mix(in oklab, var(--primary) 22%, var(--border));
    --footer-link: color-mix(in oklab, var(--foreground) 76%, var(--primary));
    --footer-link-hover: #1FD19A;
    --footer-accent: color-mix(in oklab, var(--primary) 16%, transparent);
    --exchange-text-background: #10201B;
    --exchange-text-foreground: #93A8A0;
    --exchange-text-border: var(--border);
    --exchange-amount-background: color-mix(in oklab, var(--muted) 82%, var(--background));
    --exchange-amount-foreground: var(--foreground);
    --header-logotype-color: var(--toolbar-primary);
    --primary-button-bg-color: var(--primary);
    --primary-button-text-color: #04241B;
    --menu-active-bg-color: var(--accent);
    --menu-active-text-color: var(--accent-foreground);
    --exchange-selected-child-bg: color-mix(in oklab, var(--primary) 8%, transparent);
    --exchange-selected-child-color: var(--foreground);
    --ex-search-input-bg: #16251F;
    --ex-search-input-border: var(--input);
    --ex-search-input-text-color: var(--foreground);
    --ex-search-input-placeholder-color: #93A8A0;
    --order-review-background: #0D1A16;
    --order-review-color: var(--card-foreground);
    --ui-skeleton-base: #10201B;
}

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

/* Пользовательский CSS: storage/app/design-system/custom.css */


/* Tarifex «Шалфей»: спокойные мятные карточки в светлой теме, валюты — изумрудные */
html:root:not(.dark) :is(.exchange-grid-card,.exchange-grid-summary,main .bg-card,main ui-card,main article.bg-card):not(:is(.exchange-grid-card,.exchange-grid-summary,.bg-card,ui-card) *):not(.cdk-overlay-pane *){background:linear-gradient(180deg,rgb(247 252 249 / .94) 0%,rgb(236 246 241 / .94) 100%) !important;border:1px solid #D3E6DC !important;box-shadow:0 1px 0 rgb(255 255 255 / .9) inset,0 18px 40px -26px rgb(6 78 59 / .35) !important}
html:root:not(.dark) :is(.exchange-grid-card,.exchange-grid-summary,.bg-card,ui-card) :is(.exchange-grid-card,.exchange-grid-amount-card,.bg-card,ui-card):not(.cdk-overlay-pane *){background:rgb(220 238 229 / .55) !important;border-color:#D3E6DC !important;box-shadow:none !important}
html:root:not(.dark) :is(.exchange-grid-card,.exchange-grid-summary) .bg-background{background:rgb(220 238 229 / .45) !important;border-color:#D3E6DC !important}
html:root:not(.dark) :is(.exchange-grid-card,.exchange-grid-summary) .bg-background .bg-card\/70{background:transparent !important}
html:root:not(.dark) .exchange-grid-card .exchange-grid-currency-button{background:rgb(205 229 217 / .75) !important;border:1px solid #C3DDD0 !important;color:#0B1F19 !important;box-shadow:none !important}
html:root:not(.dark) .exchange-grid-card .exchange-grid-currency-button:hover{background:rgb(195 222 209 / .9) !important}
html:root:not(.dark) .exchange-grid-card .exchange-grid-reverse-button{background:#F4FAF7 !important;border-color:#C6DFD3 !important}
html:root:not(.dark) :is(.exchange-grid-card,.exchange-grid-summary,main .bg-card) :is(button.bg-primary,[data-slot=button][data-variant=default]){background:linear-gradient(180deg,#0E9F74,#047857) !important;color:#fff !important;border:0 !important;box-shadow:0 8px 18px -10px rgb(4 120 87 / .6) !important}

/* Tarifex: матовое стекло в светлой теме */
:root:not(.dark) {
  --card: rgb(255 255 255 / .58);
  --color-card: rgb(255 255 255 / .58);
  --muted: rgb(229 243 237 / .62);
  --color-muted: rgb(229 243 237 / .62);
  --exchange-amount-background: rgb(229 243 237 / .62);
  --exchange-text-background: rgb(229 243 237 / .62);
  --toolbar: rgb(255 255 255 / .62);
  --color-toolbar: rgb(255 255 255 / .62);
  --order-review-background: rgb(255 255 255 / .58);
  --input-background: rgb(255 255 255 / .75);
  --color-input-background: rgb(255 255 255 / .75);
}
:root:not(.dark) .exchange-grid-card,
:root:not(.dark) .bg-card,
:root:not(.dark) [data-slot=card],
:root:not(.dark) ui-toolbar-shell,
:root:not(.dark) footer {
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
}
:root:not(.dark) .exchange-grid-card,
:root:not(.dark) ui-toolbar-shell {
  border-color: rgb(255 255 255 / .7) !important;
  box-shadow: 0 8px 30px rgb(4 120 87 / .08);
}

/* Tarifex: матовое стекло в тёмной теме */
:root.dark {
  --card: rgb(13 26 22 / .62);
  --color-card: rgb(13 26 22 / .62);
  --muted: rgb(16 32 27 / .6);
  --color-muted: rgb(16 32 27 / .6);
  --exchange-amount-background: rgb(16 32 27 / .6);
  --exchange-text-background: rgb(16 32 27 / .6);
  --toolbar: rgb(8 18 15 / .6);
  --color-toolbar: rgb(8 18 15 / .6);
  --order-review-background: rgb(13 26 22 / .62);
  --input-background: rgb(22 37 31 / .75);
  --color-input-background: rgb(22 37 31 / .75);
}
:root.dark .exchange-grid-card,
:root.dark .bg-card,
:root.dark [data-slot=card],
:root.dark ui-toolbar-shell,
:root.dark footer {
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
}
:root.dark .exchange-grid-card,
:root.dark ui-toolbar-shell {
  border-color: rgb(31 209 154 / .14) !important;
  box-shadow: 0 8px 30px rgb(0 0 0 / .25);
}

/* Tarifex: окна и выпадающие меню — всегда плотные (без стекла) */
:root:not(.dark) .cdk-overlay-pane {
  --card: #ffffff !important; --color-card: #ffffff !important;
  --muted: #f8fafc !important; --color-muted: #f8fafc !important;
  --toolbar: #ffffff !important; --color-toolbar: #ffffff !important;
  --order-review-background: #ffffff !important;
  --input-background: #ffffff !important; --color-input-background: #ffffff !important;
  --exchange-amount-background: #f8fafc !important; --exchange-text-background: #f8fafc !important;
}
:root.dark .cdk-overlay-pane {
  --card: #0D1A16 !important; --color-card: #0D1A16 !important;
  --muted: #10201B !important; --color-muted: #10201B !important;
  --toolbar: #08120F !important; --color-toolbar: #08120F !important;
  --order-review-background: #0D1A16 !important;
  --input-background: #16251F !important; --color-input-background: #16251F !important;
  --exchange-amount-background: #10201B !important; --exchange-text-background: #10201B !important;
}
.cdk-overlay-pane .bg-card,
.cdk-overlay-pane [role=dialog] {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* Tarifex: читаемость текстовых страниц (правила, тарифы, AML) */
:root:not(.dark) article.bg-card { background-color: rgb(255 255 255 / .9) !important; }
:root.dark article.bg-card { background-color: rgb(13 26 22 / .92) !important; }
/* Таблицы в текстовых страницах */
.formatting__text pre:has(table) { background: transparent !important; border: 0 !important; padding: 0 !important; white-space: normal; overflow-x: auto; }
.formatting__text pre:has(table) code { font-family: Inter, ui-sans-serif, system-ui, sans-serif; background: transparent; padding: 0; }
.formatting__text table { display: table !important; width: 100% !important; border-collapse: collapse; font-family: Inter, ui-sans-serif, system-ui, sans-serif !important; font-size: .875rem; }
.formatting__text table th, .formatting__text table td { padding: .6rem .9rem; text-align: left; border: 0; border-bottom: 1px solid var(--border); }
.formatting__text table th { font-weight: 600; color: var(--foreground); background: color-mix(in oklab, var(--primary) 8%, transparent); }
.formatting__text table tr:hover td { background: color-mix(in oklab, var(--primary) 5%, transparent); }
/* Подвал: длинные ссылки переносятся, а не обрезаются */
footer .footer-link .truncate { white-space: normal; overflow: visible; text-overflow: clip; }
/* Мобильное меню — плотный фон */
:root:not(.dark) .mobile-menu-overlay { background: rgb(244 248 246 / .96); }
:root.dark .mobile-menu-overlay { background: rgb(7 16 13 / .96); }
/* Пустое поле не подсвечивается красным до ввода */
input[aria-invalid=true]:placeholder-shown:not(:focus) { border-color: var(--border) !important; box-shadow: none !important; }

/* Tarifex: логотипы площадок отзывов в тёмной теме — светлее */
:root.dark img[src*="/storage/links/"]{filter:brightness(2.1) saturate(.85)}

/* Tarifex: счётчики-кружки в карточках — в тон блока */
html:root:not(.dark) main :is(.bg-card,ui-card) .rounded-full.bg-background{background:rgb(205 229 217 / .75) !important;border-color:#C3DDD0 !important;color:#065F46 !important}

/* Tarifex: заметные галочки и нормальный размер полей в форме заявки (светлая тема) */
html:root:not(.dark) ui-checkbox[data-slot=checkbox]{width:18px;height:18px;border:1.5px solid #3E8E6E !important;background:#fff !important;border-radius:5px;box-shadow:0 1px 2px rgb(6 78 59 / .15)}
html:root:not(.dark) ui-checkbox[data-slot=checkbox][data-checked]{background:#047857 !important;border-color:#047857 !important;color:#fff !important}
html:root:not(.dark) aside .exchange-grid-card ui-input-group input{font-size:16px !important}

