/* Lightweight styles to support the new landing blocks */
.w-100{width:100%}
.w-auto{height:auto}
.card{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:16px;box-shadow:0 6px 16px rgba(15,23,42,.06)}
.card-head{display:flex;gap:12px}
.card-img img{border-radius:8px;display:block;max-width:120px}
.card-text .name{font-weight:700;margin-bottom:4px}
.segmented-picker{margin-top:10px}
.segmented-picker .items{display:flex;gap:16px}
.segmented-picker .item .title-item{font-size:10pt;opacity:.7}
.segmented-picker .sum-item{font-weight:700}
.sum-item-green{color:#16a34a}
.follow-btn{display:inline-block;margin-top:10px;padding:8px 12px;border:1px solid #2563eb;border-radius:8px;color:#2563eb}
.popup{position:fixed;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,.6);z-index:9999;display:flex;align-items:center;justify-content:center}
.popup-content{background:#000;border-radius:12px;overflow:hidden;position:relative}
.popup .close-btn{position:absolute;right:10px;top:6px;color:#fff;cursor:pointer;font-size:22px}
.faq{max-width:900px;margin:0 auto}
.faq-item{border:1px solid #e5e7eb;border-radius:12px;margin-bottom:10px;padding:12px;background:#fff}
.faq-item .question{font-weight:700;cursor:pointer;display:flex;justify-content:space-between}
.toggle-icon::after{content:'+'}
.toggle-icon.expanded::after{content:'–'}

a:visited{
    color: #fff;
}

/* ===== Hero / head block ===== */
.head-container {
    max-width: 960px;
    margin: 40px auto 32px;
    text-align: center;
}

.paragraph-container {
    max-width: 900px;
    margin: 0 auto 24px;
}

.paragraph-container h1 {
    font-size: 40px;
    margin-bottom: 16px;
}

.sub-title {
    font-size: 14px;
    line-height: 1.6;
    color: #cbd5f5;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.btn-uppercase {
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 600;
}

.btn-flex {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.watch-video-btn {
    background: transparent;
    border-color: rgba(148, 163, 184, 0.6);
    color: #e5e7eb;
}

.watch-video-btn img {
    height: 16px;
}

.watch-video-btn:hover,
.watch-video-btn:focus {
    background: rgba(15, 23, 42, 0.8);
}

/* ===== What we can block ===== */
.what-we-can {
    position: relative;
    padding: 80px 0 72px;
    overflow: hidden;
}

.what-we-can .bg-blue-filter {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.18) 0, transparent 55%),
                radial-gradient(circle at 80% 80%, rgba(129, 140, 248, 0.25) 0, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.what-we-can-content {
    position: relative;
    z-index: 3;
    max-width: 1120px;
    margin: 0 auto;
}

.items-cascad-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 48px;
}

.item-cascad .title {
    font-size: 30px;
    line-height: 1.25;
    margin-bottom: 10px;
}

.item-cascad .text {
    font-size: 14px;
    line-height: 1.7;
    color: #cbd5f5;
}

.item-cascad .gt-block {
    margin-top: 14px;
}

.item-cascad .btn.btn-blue {
    padding-inline: 18px;
}

.top-exchanges {
    margin-top: 40px;
}

.top-exchanges h2 {
    font-size: 36px;
    line-height: 1.3;
    margin-bottom: 32px;
}

.coins {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 32px auto 24px;
}

.exchanges-items-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.exchanges-item {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1 1 220px;
}

.exchanges-item li {
    margin-bottom: 12px;
}

.exchanges-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.45);
    color: #f9fafb;
    text-decoration: none;
}

.exchanges-item img.w-auto {
    height: 24px;
}

.exchanges-item p {
    margin: 0;
    font-size: 14px;
}

.plus-container {
    padding: 64px 0 80px;
}

.plus {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.plus .text-container {
    padding: 20px 18px 22px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.45);
    text-align: center;
}

.text-large {
    margin-top: 16px;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 600;
}

.plus-text {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.75;
}

/* Onboarding help block */
.onboaring {
    max-width: 720px;
    margin: 0 auto 72px;
    text-align: center;
}

.onboaring__title {
    font-size: 32px;
    margin-bottom: 16px;
}

.onboaring__text {
    font-size: 14px;
    line-height: 1.7;
    color: #cbd5f5;
}

@media (max-width: 992px) {
    .what-we-can-content {
        max-width: none;
        margin: 0 16px;
    }
}

@media (max-width: 576px) {
    .item-cascad .title {
        font-size: 22px;
    }
    .what-we-can {
        padding: 56px 0 48px;
    }
    .items-cascad-container {
        grid-template-columns: 1fr;
    }
    .plus {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== Override legacy layout wrappers for new landing ===== */
._body {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: transparent;
    border-radius: 0;
}

._content {
    margin: 32px 0 0;
    padding: 0;
}

/* ===== Base layout / typography for new header & landing ===== */

body {
    min-height: 100vh;
    scroll-behavior: smooth;
    text-rendering: optimizeSpeed;
    line-height: 1.5;
    background: linear-gradient(180deg, #1f202c 0%, #1d1d1d 44.72%), #0f172a;
    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji",
        "Segoe UI Emoji", "Segoe UI Symbol", "Noto Sans CJK KR";
    color: #e5e7eb;
}

.container {
    max-width: 1200px;
    padding: 0 16px;
    margin: 0 auto;
}

/* Gradient headings similar to Cryptorobotics */
h1,
h2,
h3 {
    font-weight: 700;
    background: linear-gradient(90deg, #5771f3, #6fd098);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== Header (used inside line.top.tpl) ===== */
header {
    padding-top: 24px;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* не ломаем таблицы, где th.header используется как заголовок */
th.header {
    display: table-cell;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-logo {
    width: 55px;
    height: 54px;
}
.logo-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .02em;
    color: #ffffff;
}

.dual-nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.desc-menu {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.desc-menu .menu-item a {
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;
    color: #ffffff;
    text-decoration: none;
    padding-top: 2px;
    transition: color .2s ease;
}

.desc-menu .menu-item a:hover {
    color: #5771f3;
}

.button-lines {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    color: #ffffff;
    box-sizing: border-box;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease, color 0.2s ease;
}

.btn-blue {
    border-color: #5771f3;
    background: linear-gradient(180deg, #5771f3 0%, #3e58de 54.17%);
}

.btn-green {
    border-color: #40a369;
    background: linear-gradient(180deg, #6fd098 0%, #40ad6e 94.15%);
}

.btn:hover,
.btn:focus {
    text-decoration: none; /* убираем подчёркивание у ссылок-кнопок */
    color: #ffffff;        /* не даём стать синими */
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.45);
}

.btn-blue:hover,
.btn-blue:focus {
    background: linear-gradient(180deg, #6a82ff 0%, #425cff 54.17%);
}

.btn-green:hover,
.btn-green:focus {
    background: linear-gradient(180deg, #7ae4a6 0%, #46c077 94.15%);
}

.tel-search-lang {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ===== Internal user menu (cabinet navigation) ===== */

._menuPanel {
    margin-top: 16px;
}

._menuPanel .mainMenu {
    max-width: 1200px;
    margin: 0 auto 24px;
    padding: 0 24px 4px;
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 24px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    background: transparent;
    float: none;
}

._menuPanel .mainMenu li {
    margin: 0;
    padding: 0;
}

._menuPanel .mainMenu a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    font-size: 14px;
    color: #e5e7eb;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

._menuPanel .mainMenu li.current a,
._menuPanel .mainMenu a:hover {
    color: #6fd098;
    border-color: #6fd098;
    background: transparent !important;
}

._menuPanel .mainMenu a b sup {
    margin-left: 3px;
    font-size: 11px;
    color: #facc15;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.lang-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid transparent;
    color: #ffffff;
    opacity: 0.6;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s ease;
}

.lang-item:hover {
    opacity: 1;
    text-decoration: none; /* убираем подчёркивание при наведении */
}

.lang-item.lang-active {
    opacity: 1;
    border-color: #5771f3;
    background: rgba(87, 113, 243, 0.2);
}

.header-clock {
    font-size: 12px;
    opacity: 0.7;
}

.navigation {
    display: none;
}

/* Mobile header behaviour */
@media (max-width: 1199.98px) {
    .dual-nav-menu {
        display: none;
    }
    .header .button-lines {
        display: none;
    }
    /* язык и лишние элементы убираем из шапки, оставляем внутри мобильного меню */
    .tel-search-lang {
        display: none;
    }
    .navigation {
        display: block;
    }
}

/* Mobile nav burger + dropdown */
#menuToggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    cursor: pointer;
    position: relative;
    z-index: 10001;
}

#menuToggle input {
    display: none;
}

/* Полоски бургера (только три верхних span, без затрагивания span внутри меню) */
#menuToggle > span {
    display: block;
    width: 24px;
    height: 3px;
    margin: 4px 0;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
    transform-origin: center;
}

/* Панель мобильного меню + крестик внутри неё */
#menu {
    display: none;
    position: fixed;
    inset: 0;
    padding: 72px 24px 24px;
    background: rgba(15, 23, 42, 0.96);
    z-index: 10000;
}

#menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#menu ul li {
    margin-bottom: 12px;
}

#menu ul li a {
    display: block;
    font-size: 18px;
    color: #f9fafb;
    text-align: left;
    padding: 10px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

#menuToggle input:checked ~ #menu {
    display: block;
}

/* Крестик внутри затемнённой панели */
#menu::before,
#menu::after {
    content: "";
    position: fixed;
    top: 18px;
    right: 20px;
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    display: none;
}

#menu::before {
    transform: rotate(45deg);
}

#menu::after {
    transform: rotate(-45deg);
}

#menuToggle input:checked ~ #menu::before,
#menuToggle input:checked ~ #menu::after {
    display: block;
}

/* Языковой переключатель внутри мобильного меню */
#menu .lang-switch {
    justify-content: center;
    margin-top: 16px;
}

@media (max-width: 575.98px) {
    .header-logo {
        width: 48px;
        height: auto;
    }
    .logo-title {
        font-size: 18px;
    }
    .container {
        padding: 0 12px;
    }
}

/* ===== Footer ===== */
.footer {
    margin-top: 40px;
    padding: 32px 0 24px;
    font-size: 14px;
    color: #e5e7eb;
}

.footer .border-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(94deg,#5771f3 18.55%,#6fd098 82.59%),#64748b;
    margin-bottom: 24px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.logo-social-container {
    flex: 1 1 260px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo img,
.footer-logo {
    max-width: 171px;
}

.footer-links-container {
    flex: 2 1 0;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-links-items {
    flex: 1 1 180px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links-items .item-list p {
    font-weight: 600;
}

.footer-links-items .item-list ul {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}

.footer-links-items .item-list li {
    margin-bottom: 6px;
}

.footer-links-items .item-list a {
    color: #9ca3af;
    text-decoration: none;
}

.footer-links-items .item-list a:hover {
    color: #ffffff;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.footer .copyrights {
    margin-top: 12px;
    font-size: 12px;
    opacity: .6;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }
    .footer-links-container {
        width: 100%;
    }
}

/* ===== Auth pages (login / register / reset / confirm / change mail) ===== */

.auth-wrapper {
    padding: 56px 16px 80px;
}

.auth-container {
    max-width: 520px;
    margin: 0 auto;
}

.auth-card {
    background: rgba(15, 23, 42, 0.96);
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    padding: 26px 22px 28px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.7);
}

.auth-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 18px;
}

.auth-subtitle {
    font-size: 13px;
    text-align: center;
    color: #cbd5f5;
    margin-bottom: 18px;
}

.auth-message {
    margin-bottom: 18px;
}

.auth-message h2 {
    font-size: 18px;
    margin-bottom: 8px;
}

.auth-message p.info,
.auth-card p.info,
.auth-card p.note,
.cabinet-card p.info,
.cabinet-card p.note {
    width: auto;
    margin: 14px 0 18px;
    padding: 10px 12px;
    border-radius: 10px;
    border-width: 1px;
    border-style: solid;
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(148, 163, 184, 0.7);
    color: #e5e7eb;
    background-image: none;
}

.auth-form {
    margin-top: 8px;
}

.auth-links {
    margin-top: 18px;
    font-size: 13px;
    text-align: center;
}

.auth-links a {
    color: #9ca3af;
}

.auth-links a:hover {
    color: #ffffff;
}

/* Form table inside auth card */
.auth-card fieldset {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

.auth-card table.formatTable {
    width: 100%;
    border-collapse: separate;
}

.auth-card table.formatTable tr {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 6px;
    margin-bottom: 14px;
}

.auth-card table.formatTable td {
    padding: 0;
}

.auth-card table.formatTable tr td[colspan="2"] {
    grid-column: 1 / -1; /* ячейки с colspan=2 тянут на всю ширину карточки */
}

.auth-card table.formatTable td:first-child {
    text-align: left;
    font-size: 13px;
    color: #cbd5f5;
}

.auth-card table.formatTable td:last-child {
    text-align: left;
}

/* Checkbox row (Запомнить) */
.auth-card input[type="checkbox"],
.auth-card .checkbox_small {
    margin-right: 8px;
    vertical-align: middle;
}

.auth-card td[colspan="2"] {
    display: block;
}

.auth-card input[type="text"],
.auth-card input[type="password"],
.auth-card textarea,
.auth-card select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background-color: rgba(15, 23, 42, 0.9);
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    color: #e5e7eb;
    font-size: 14px;
    padding: 8px 10px;
    min-height: 40px;
}

.auth-card textarea {
    min-height: 130px;
    resize: vertical;
}

/* Support page: make topic/text fields wider and labels less bright */
.auth-wrapper--support .auth-card table.formatTable td:first-child {
    color: #9ca3af;
}

.auth-wrapper--support .auth-card td[colspan="2"] {
    display: flex;
    align-items: flex-start;
    column-gap: 12px;
}

.auth-wrapper--support .auth-card td[colspan="2"] br {
    display: none;
}

.auth-wrapper--support .auth-card td[colspan="2"] label {
    flex: 0 0 130px;
    max-width: 130px;
}

.auth-wrapper--support .auth-card td[colspan="2"] input,
.auth-wrapper--support .auth-card td[colspan="2"] textarea,
.auth-wrapper--support .auth-card td[colspan="2"] select {
    flex: 1 1 auto;
    width: 100%;
}

.auth-card input[type="text"]:focus,
.auth-card input[type="password"]:focus,
.auth-card textarea:focus,
.auth-card select:focus {
    border-color: #5771f3;
    box-shadow: 0 0 0 1px rgba(87, 113, 243, 0.6);
}

.auth-card .button-blue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: auto;
    width: 100%;
    min-width: 0;
    padding: 11px 16px;
    margin-top: 4px;
    border-radius: 10px;
    border: 1px solid #40a369;
    background: linear-gradient(180deg, #6fd098 0%, #40ad6e 94.15%);
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    opacity: 1;
    cursor: pointer;
}

.auth-card .button-blue:hover,
.auth-card .button-blue:active {
    background: linear-gradient(180deg, #7ae4a6 0%, #46c077 94.15%);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.45);
}

/* ===== Cabinet page ===== */
.cabinet-wrapper {
    padding: 40px 16px 72px;
}

.cabinet-container {
    max-width: 1120px;
    margin: 0 auto;
}

.cabinet-card {
    background: rgba(15, 23, 42, 0.96);
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    padding: 24px 22px 28px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.7);
}

.cabinet-title {
    font-size: 28px;
    margin-bottom: 18px;
}

.cabinet-balance {
    margin-bottom: 24px;
}

.cabinet-balance h1,
.cabinet-balance h2 {
    margin-bottom: 12px;
}

.cabinet-stat {
    overflow-x: auto;
}

.cabinet-stat table,
.cabinet-balance table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

.cabinet-stat .FormatTable,
.cabinet-balance .FormatTable {
    border: 0;
}

.cabinet-stat .FormatTable th,
.cabinet-stat .FormatTable td {
    border: 1px solid rgba(55, 65, 81, 0.8);
    padding: 8px 10px;
    font-size: 13px;
}

.cabinet-stat .FormatTable th {
    background: rgba(15, 23, 42, 0.9);
    font-weight: 600;
}

.cabinet-stat .FormatTable tr:nth-child(even) td {
    background: rgba(15, 23, 42, 0.85);
}

.cabinet-stat .FormatTable tr:nth-child(odd) td {
    background: rgba(15, 23, 42, 0.7);
}

.cabinet-stat small {
    opacity: 0.8;
}

.cabinet-stat b {
    color: #f9fafb;
}

@media (max-width: 575.98px) {
    .cabinet-card {
        padding: 20px 16px 24px;
        border-radius: 16px;
    }
}

/* Operations (balance) page */
.cabinet-card--operations {
    /* пока те же стили, что и у обычной карточки, но оставляем модификатор на будущее */
}

.cabinet-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 4px;
    justify-content: center; /* центрируем кнопки операций */
}

.cabinet-actions .button-green {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: auto;
    padding: 9px 16px;
    line-height: 1;
    border-radius: 10px;
    border: 1px solid #40a369;
    background: linear-gradient(180deg, #6fd098 0%, #40ad6e 94.15%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    opacity: 1;
    cursor: pointer;
}

.cabinet-actions .button-green:hover,
.cabinet-actions .button-green:active {
    background: linear-gradient(180deg, #7ae4a6 0%, #46c077 94.15%);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.45);
    text-decoration: none;
    color: #ffffff;
}

.cabinet-operations {
    margin-top: 24px;
}

.cabinet-operations h2 {
    margin-bottom: 12px;
}

.cabinet-operations table.list {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 8px;
    font-size: 13px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.92);
}

.cabinet-operations table.list th.header {
    padding: 8px 10px;
    text-align: left;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(55, 65, 81, 0.9);
}

.cabinet-operations table.list td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(31, 41, 55, 0.9);
    border-right: 1px solid rgba(31, 41, 55, 0.9);
}

.cabinet-operations table.list tr.odd td {
    background: rgba(15, 23, 42, 0.85);
}

.cabinet-operations table.list tr.even td {
    background: rgba(15, 23, 42, 0.7);
}

.cabinet-operations table.list tr.marked td {
    background: rgba(87, 113, 243, 0.2);
}

.cabinet-operations table.list tr:first-child th.header:first-child {
    border-top-left-radius: 12px;
}

.cabinet-operations table.list tr:first-child th.header:last-child {
    border-top-right-radius: 12px;
}

.cabinet-operations table.list tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.cabinet-operations table.list tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

.cabinet-operations table.list th.header:first-child,
.cabinet-operations table.list td:first-child {
    border-left: 1px solid rgba(31, 41, 55, 0.9);
    width: 110px;
    white-space: nowrap;
}

.cabinet-operations table.list th.header sup {
    font-size: 10px;
    opacity: 0.6;
    margin-right: 4px;
}

.cabinet-operations table.list a {
    color: #e5e7eb;
    text-decoration: none;
}

.cabinet-operations table.list a:hover {
    color: #6fd098;
    text-decoration: none;
}

.cabinet-operations .nowrap small {
    opacity: 0.8;
}

@media (max-width: 575.98px) {
    /* чтобы таблица операций не разъезжала карточку на мобиле */
    .cabinet-operations {
        overflow-x: auto;
    }
    .cabinet-operations table.list {
        min-width: 640px; /* скролл внутри блока, без горизонтального скролла всей страницы */
    }
}

/* ===== Flash-сообщения (ошибки / успех) в тёмной теме ===== */
.flash_info,
.flash_error,
.flash_edit_info,
.flash_edit_error {
    width: auto;
    max-width: 640px;
    margin: 0 auto 16px;
    padding: 12px 16px;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.8);
}

.flash_info,
.flash_edit_info {
    background-color: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.85);
    color: #bbf7d0;
    background-image: none;
}

.flash_error,
.flash_edit_error {
    background-color: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.8);
    color: #fecaca;
    background-image: none;
}

/* Wallets form inside cabinet card */
.wallets-form fieldset {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.wallets-form table.formatTable {
    width: 100%;
    border-collapse: separate;
    margin: 0; /* прижимаем таблицу к левому краю карточки */
}

.wallets-form table.formatTable td {
    padding: 4px 6px;
    font-size: 13px;
}

.wallets-form table.formatTable th {
    padding: 10px 6px 8px;
    font-size: 13px;
    text-align: left; /* заголовок кошелька не по центру */
}

.wallets-form table.formatTable th hr {
    border-color: rgba(55, 65, 81, 0.9);
    margin: 0 0 6px 0; /* линия тянется от левого края */
}

.wallets-form table.formatTable td:first-child {
    text-align: right;
    color: #cbd5f5;
    white-space: nowrap;
    padding-right: 12px;
}

.wallets-form table.formatTable td:last-child {
    text-align: left;
}

/* Центровка блока Google Authenticator в персональных настройках */
.wallets-form table.formatTable td[colspan="2"] {
    text-align: center;
}

.wallets-form input[type="text"],
.wallets-form input[type="password"],
.wallets-form textarea,
.wallets-form select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background-color: rgba(15, 23, 42, 0.9);
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    color: #e5e7eb;
    font-size: 14px;
    padding: 8px 10px;
    min-height: 40px;
}

.wallets-form textarea {
    min-height: 110px;
    resize: vertical;
}

.wallets-form input[type="text"]:focus,
.wallets-form input[type="password"]:focus,
.wallets-form textarea:focus,
.wallets-form select:focus {
    border-color: #5771f3;
    box-shadow: 0 0 0 1px rgba(87, 113, 243, 0.6);
}

/* курсор-рука для select внутри карточных форм */
.wallets-form select {
    cursor: pointer;
}

.wallets-form .button-blue {
    display: block;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    height: auto;
    margin: 12px auto 0;
    border-radius: 10px;
    border: 1px solid #40a369;
    background: linear-gradient(180deg, #6fd098 0%, #40ad6e 94.15%);
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.wallets-form .button-blue:hover,
.wallets-form .button-blue:active {
    background: linear-gradient(180deg, #7ae4a6 0%, #46c077 94.15%);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.45);
}

/* серые кнопки в действиях кабинета (напр. "Профили") */
.cabinet-actions .button-gray {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: auto;
    padding: 9px 16px;
    line-height: 1;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.4);
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.cabinet-actions .button-gray:hover,
.cabinet-actions .button-gray:active {
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.45);
    text-decoration: none;
    color: #ffffff;
}

@media (max-width: 575.98px) {
    .wallets-form table.formatTable td:first-child {
        display: block;
        text-align: left;
        padding-bottom: 2px;
    }
    .wallets-form table.formatTable td:last-child {
        display: block;
        padding-top: 0;
    }
}

/* Hover behaviour for labels and links inside auth blocks */
.auth-card label,
.auth-card a {
    text-decoration: none;
    border-bottom: none;
}

.auth-card label:hover,
.auth-card a:hover {
    text-decoration: none;
    border-bottom: none;
}

@media (min-width: 576px) {
    .auth-card table.formatTable tr {
        grid-template-columns: 35% 65%;
        column-gap: 10px;
        align-items: center;
    }
}

@media (max-width: 575.98px) {
    .auth-wrapper {
        padding: 36px 12px 60px;
    }
    .auth-card {
        padding: 22px 18px 24px;
        border-radius: 16px;
    }
}