:root {
    --background: #0b111e;
    --surface: #172233;
    --navy: #0a101d;
    --navy-2: #25344c;
    --navy-3: #354362;

    --text-primary: #ffffff;
    --text-secondary: #a8aec2;
    --text-muted: #7f89a3;
    --text-disabled: #59657a;

    --icon-primary: #e8eefe;
    --icon-secondary: #a0acd3;
    --icon-muted: #7c8ab0;
    --icon-disabled: #546075;

    --borders-primary: #ffffff;
    --borders-secondary: #b9bcc6;
    --borders-muted: #7f89a3;
    --borders-disabled: #59657a;

    --accent-primary: #35abff;
    --accent-secondary: rgba(53, 171, 255, 0.10);
    --accent-muted: #7f89a3;
    --accent-disabled: #59657a;

    --radius-0: 0px;
    --radius-sm: 2px;
    --radius: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-2xl: 16px;
    --radius-3xl: 24px;
    --radius-full: 1000px;

    --btn-primary-from: #6C2CFF;
    --btn-primary-to: #B253FF;
    --btn-primary-stroke-from: #D080FF;
    --btn-primary-stroke-to: #EE82FF;

    --btn-secondary-from: #5A6277;
    --btn-secondary-to: #4A5267;
    --btn-secondary-stroke-from: #8B9684;
    --btn-secondary-stroke-to: #677086;

    --success: #22C55E;
    --danger: #EF4444;

    --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Unbounded', 'Montserrat', sans-serif;

    --sidebar-width: 264px;
    --sidebar-collapsed-width: 72px;
    --header-height: 66px; /* десктоп: реальная высота шапки; до JS-замера чтобы не было прыжка контента */
    --chat-width: 318px;
    --content-padding: 30px;
    --transition: 0.25s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

.t-38-black { font-family: var(--font-heading); font-weight: 900; font-size: 38px; line-height: 40px; letter-spacing: -0.01em; text-transform: uppercase; }
.t-32-black { font-family: var(--font-heading); font-weight: 900; font-size: 26px; line-height: 40px; letter-spacing: -0.01em; text-transform: uppercase; }
.t-26-black { font-family: var(--font-heading); font-weight: 900; font-size: 26px; letter-spacing: -0.01em; text-transform: uppercase; }
.t-26-bold { font-family: var(--font-heading); font-weight: 700; font-size: 26px; line-height: 21px; letter-spacing: -0.01em; }
.t-26-extrabold { font-family: var(--font-heading); font-weight: 700; font-size: 26px; line-height: 40px; letter-spacing: -0.01em; text-transform: uppercase; }
.t-16-extrabold { font-family: var(--font-heading); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; text-transform: uppercase; }
.t-16-bold-h { font-family: var(--font-heading); font-weight: 700; font-size: 16px; letter-spacing: -0.03em; text-transform: uppercase; }
.t-14-bold-h { font-family: var(--font-heading); font-weight: 700; font-size: 14px; letter-spacing: -0.03em; text-transform: uppercase; }
.t-14-black-h { font-family: var(--font-heading); font-weight: 900; font-size: 14px; letter-spacing: -0.01em; text-transform: uppercase; }
.t-12-bold-h { font-family: var(--font-heading); font-weight: 700; font-size: 12px; letter-spacing: -0.03em; text-transform: uppercase; }
.t-12-semibold-h { font-family: var(--font-heading); font-weight: 600; font-size: 12px; line-height: 18px; letter-spacing: 0.03em; text-transform: uppercase; }

.t-16-bold { font-family: var(--font); font-weight: 700; font-size: 16px; letter-spacing: -0.05em; }
.t-16-semibold { font-family: var(--font); font-weight: 600; font-size: 16px; letter-spacing: -0.05em; }
.t-15-semibold { font-family: var(--font); font-weight: 600; font-size: 15px; }
.t-14-bold { font-family: var(--font); font-weight: 700; font-size: 14px; }
.t-14-semibold { font-family: var(--font); font-weight: 600; font-size: 14px; }
.t-14-medium { font-family: var(--font); font-weight: 500; font-size: 14px; line-height: 18px; }
.t-13-bold { font-family: var(--font); font-weight: 700; font-size: 13px; letter-spacing: -0.05em; }
.t-13-semibold { font-family: var(--font); font-weight: 600; font-size: 13px; letter-spacing: -0.01em; }
.t-12-semibold { font-family: var(--font); font-weight: 600; font-size: 12px; letter-spacing: -0.01em; }
.t-12-medium { font-family: var(--font); font-weight: 500; font-size: 12px; line-height: 18px; }
.t-10-semibold { font-family: var(--font); font-weight: 600; font-size: 10px; }

body.rd-body {
    font-family: var(--font);
    background: var(--background);
    color: var(--text-secondary);
    min-height: 100vh;
    overflow-x: hidden;
}

body.rd-body .app_footer__mobile {
    display: none !important;
}


.modal-overlay,
.v-modal,
.modal_payment { z-index: 200 !important; }


.rd-layout {
    min-height: 100vh;
}

.rd-sidebar {
    width: var(--sidebar-width);
    background: var(--surface);
    border-right: none;
    border-radius: var(--radius-xl);
    margin-left: 8px;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-height);
    left: 0;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width var(--transition);
    z-index: 100;
}

.rd-sidebar.slide-anim {
    transition: transform 0.2s ease !important;
}

.rd-sidebar.slide-out {
    transform: translateX(calc(-100% - 16px));
}

.rd-sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
    overflow: visible;
}

.rd-sidebar.collapsed .rd-sidebar__inner {
    min-width: var(--sidebar-collapsed-width);
    overflow: visible;
}

.rd-sidebar.collapsed .rd-sidebar__link span:not(.rd-sidebar__link-icon) {
    display: none;
}

.rd-sidebar.collapsed .rd-sidebar__top-actions ~ .rd-sidebar__top-actions {
    display: none;
}

.rd-sidebar.collapsed .rd-sidebar__top-actions {
    flex-direction: column;
    overflow: visible;
}

.rd-sidebar.collapsed .rd-sidebar__top-actions .rd-sidebar__action-btn ~ .rd-sidebar__action-btn {
    display: none;
}

.rd-sidebar.collapsed .rd-sidebar__action-btn {
    padding: 8px;
}

.rd-sidebar.collapsed .rd-sidebar__action-btn .rd-sidebar__action-icon {
    width: 32px;
    height: 32px;
}

.rd-sidebar.collapsed .rd-sidebar__action-btn span {
    display: none;
}

.rd-sidebar.collapsed .rd-sidebar__action-icon {
    font-size: 20px;
}

.rd-sidebar.collapsed .rd-sidebar__tournament span {
    display: none;
}

.rd-sidebar.collapsed .rd-sidebar__tournament {
    justify-content: center;
    padding: 8px;
}

.rd-sidebar.collapsed .rd-sidebar__link {
    justify-content: center;
    padding: 8px;
}

.rd-sidebar.collapsed .rd-sidebar__link-icon {
    margin: 0;
}

.rd-sidebar.collapsed .rd-sidebar__lang .rd-lang__current span,
.rd-sidebar.collapsed .rd-sidebar__lang .rd-lang__arrow {
    display: none;
}

.rd-sidebar.collapsed .rd-sidebar__lang .rd-lang__current {
    justify-content: center;
    padding: 10px;
}

.rd-sidebar.collapsed .rd-sidebar__lang .rd-lang__current img {
    width: 24px;
    height: 24px;
}

.rd-sidebar__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 8px;
    min-width: var(--sidebar-width);
    gap: 8px;
}

.rd-sidebar__section {
    background: var(--navy);
    border-radius: var(--radius-xl);
    padding: 8px;
}

.rd-sidebar__top-actions {
    display: flex;
    gap: 6px;
}

.rd-sidebar__action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px;
    background: var(--background);
    border-radius: var(--radius-xl);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.2s;
    position: relative;
    overflow: hidden;
}

.rd-sidebar__action-btn::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 5%;
    right: 5%;
    height: 41px;
    background: var(--glow-color, #9760FF);
    border-radius: 50%;
    filter: blur(32px);
}

.rd-sidebar__action-btn--bonuses { --glow-color: #9760FF; }
.rd-sidebar__action-btn--cashback { --glow-color: #2B9CFF; }
.rd-sidebar__action-btn--rakeback { --glow-color: #FF6B35; }
.rd-sidebar__action-btn--tournaments { --glow-color: #FFB800; }
.rd-sidebar__action-btn--safe { --glow-color: #00D26A; }

.rd-sidebar__action-btn:hover { background: var(--navy-2); }

.rd-sidebar__action-icon { width: auto; height: auto; max-width: 100%; position: relative; z-index: 1; }
.rd-sidebar__action-btn span { position: relative; z-index: 1; }

.rd-sidebar__tournament {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: linear-gradient(135deg, #1a1040 0%, #2d1a5e 50%, #1a1040 100%);
    border-radius: var(--radius-xl);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    margin-top: 8px;
}

.rd-sidebar__tournament-badge { font-size: 28px; }

.rd-sidebar__dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: background 0.15s;
}

.rd-sidebar__dropdown-toggle:hover { background: var(--background); }

.rd-sidebar__dropdown-arrow {
    width: 18px;
    height: 18px;
    margin-left: auto;
    transition: transform var(--transition);
}

.rd-sidebar__dropdown.open .rd-sidebar__dropdown-arrow {
    transform: rotate(180deg);
}

.rd-sidebar__dropdown-menu {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding-left: 12px;
}

.rd-sidebar__dropdown.open .rd-sidebar__dropdown-menu {
    display: flex;
}

.rd-sidebar.collapsed .rd-sidebar__dropdown-toggle span:not(.rd-sidebar__link-icon) {
    display: none;
}

.rd-sidebar.collapsed .rd-sidebar__dropdown-arrow {
    display: none;
}

.rd-sidebar.collapsed .rd-sidebar__dropdown-toggle {
    justify-content: center;
    padding: 10px;
}

.rd-sidebar.collapsed .rd-sidebar__dropdown-menu {
    display: none;
    position: absolute;
    left: var(--sidebar-collapsed-width);
    top: 0;
    margin-left: -8px;
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 12px 8px;
    min-width: 200px;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.rd-sidebar.collapsed .rd-sidebar__section {
    overflow: visible;
}

.rd-sidebar.collapsed .rd-sidebar__dropdown {
    position: relative;
}

.rd-sidebar.collapsed .rd-sidebar__lang {
    overflow: visible;
}

.rd-sidebar.collapsed .rd-sidebar__lang .rd-lang {
    overflow: visible;
}

.rd-sidebar.collapsed .rd-sidebar__dropdown.open .rd-sidebar__dropdown-menu {
    display: flex;
}

.rd-sidebar.collapsed .rd-sidebar__dropdown-menu .rd-sidebar__link span:not(.rd-sidebar__link-icon) {
    display: inline;
}

.rd-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rd-sidebar__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-lg);
    transition: all 0.15s;
}

.rd-sidebar__link:hover { background: var(--background); color: var(--text-primary); }

/* Активный пункт меню — подсветка текущей страницы (JS вешает .active по URL) */
.rd-sidebar__link.active { background: var(--accent-secondary); color: var(--accent-primary); font-weight: 600; }
.rd-sidebar__action-btn.active { box-shadow: 0 0 0 2px var(--accent-primary); }

.rd-sidebar__link-icon { width: 18px; height: 18px; flex-shrink: 0; }

.rd-sidebar__divider { height: 1px; background: var(--navy-2); margin: 8px 0; }

.rd-sidebar__lang {
    padding: 0;
    margin-top: auto;
}

.rd-sidebar__lang .rd-lang {
    background: var(--navy);
    border-radius: var(--radius-xl);
    padding: 4px;
}

.rd-lang { position: relative; }

.rd-lang__current {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 12px;
    border-radius: var(--radius-lg);
    transition: background 0.15s;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.rd-lang__current:hover { background: var(--background); }
.rd-lang__current img { width: 20px; height: 20px; border-radius: 2px; }
.rd-lang__arrow { margin-left: auto; width: 16px; height: 16px; opacity: 0.5; }

.rd-lang__dropdown {
    display: none;
    position: absolute;
    bottom: 0;
    left: var(--sidebar-collapsed-width);
    background: var(--surface);
    border-radius: var(--radius-xl);
    max-height: 300px;
    overflow-y: auto;
    z-index: 200;
    margin-left: -8px;
    padding: 8px;
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.rd-lang__dropdown.active { display: block; }

.rd-sidebar:not(.collapsed) .rd-lang__dropdown {
    bottom: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    margin-bottom: 4px;
    min-width: auto;
}

.rd-lang__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
}

.rd-lang__item:hover { background: var(--navy-2); }
.rd-lang__item img { width: 20px; height: 20px; border-radius: 2px; }

.rd-main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin-left: calc(var(--sidebar-width) + 8px);
    margin-right: 0;
    padding-top: var(--header-height);
    transition: margin var(--transition);
}

body.chat-open .rd-main {
    margin-right: var(--chat-width);
}

body.sidebar-collapsed .rd-main {
    margin-left: calc(var(--sidebar-collapsed-width) + 8px);
}

body.sidebar-collapsed .rd-footer {
    margin-left: calc(var(--sidebar-collapsed-width) + 8px);
}

.rd-header {
    height: var(--header-height); /* фикс.высота (не min-height): offsetHeight детерминирован = --header-height, JS-замер не двигает контент */
    box-sizing: border-box;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 110;
    gap: 12px;
}

.rd-header__left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.rd-header__toggle-sidebar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: none;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: opacity 0.15s;
}

.rd-header__toggle-sidebar:hover { opacity: 0.8; }

.rd-header__toggle-arrow {
    width: 18px;
    height: 18px;
    transition: transform var(--transition);
}

body.sidebar-collapsed .rd-header__toggle-arrow {
    transform: rotate(180deg);
}

.rd-header__logo { text-decoration: none; display: flex; align-items: center; }
.rd-header__logo-img { height: 22px; width: auto; }

.rd-vip-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 20px 7px 8px;
    background: var(--background);
    position: absolute;
    left: calc(var(--sidebar-width) + 28px);
    border: none;
    border-radius: var(--radius-xl);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: opacity 0.2s;
    overflow: hidden;
}

.rd-vip-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: linear-gradient(90deg, #7026F9 0%, #0D1322 35%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.rd-vip-badge:hover {
    opacity: 0.9;
}

.rd-vip-badge__crown-wrap {
    position: relative;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.rd-vip-badge__crown-glow {
    position: absolute;
    inset: -12px;
    background: #A53FFF;
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.6;
}

.rd-vip-badge__crown {
    position: relative;
    width: 36px;
    height: 36px;
    object-fit: contain;
    z-index: 1;
}

.rd-header__right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rd-header__balance {
    display: flex;
    align-items: center;
    padding: 12px;
    background: var(--surface);
    border: none;
    border-radius: var(--radius-xl);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.rd-header__balance:hover { background: var(--navy-2); }
.rd-header__balance-flag { font-size: 18px; line-height: 1; margin-right: 8px; }
.rd-header__balance-amount { color: var(--text-primary); margin-right: 24px; }
.rd-header__balance-currency { color: var(--text-muted); font-size: 14px; font-weight: 700; margin-right: 12px; }
.rd-header__balance-chevron { width: 12px; height: 12px; opacity: 0.5; }

.rd-header__deposit-btn {
    position: relative;
    padding: 12px 24px;
    background: linear-gradient(90deg, var(--btn-primary-from), var(--btn-primary-to));
    border: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-xl);
    text-decoration: none;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.rd-header__deposit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 0.5px;
    background: linear-gradient(90deg, var(--btn-primary-stroke-from), var(--btn-primary-stroke-to));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.rd-header__deposit-btn:hover { opacity: 0.9; }

.rd-header__login-btn,
.rd-header__register-btn {
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--radius-xl);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.rd-header__login-btn {
    color: var(--text-primary);
    background: var(--surface);
    border: 1px solid var(--navy-3);
}

.rd-header__login-btn:hover {
    background: var(--navy-2);
}

.rd-header__register-btn {
    color: var(--text-primary);
    background: linear-gradient(90deg, var(--btn-primary-from), var(--btn-primary-to));
    border: none;
}

.rd-header__register-btn:hover {
    opacity: 0.9;
}

.rd-header__icons {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: var(--surface);
    border-radius: var(--radius-xl);
}

.rd-header__icon-btn {
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: background 0.15s;
}

.rd-header__icon-btn img {
    width: 18px;
    height: 18px;
}

.rd-header__icon-btn:hover {
    background: var(--navy-2);
}

.rd-header__icon-btn:hover img {
    opacity: 1;
}

.rd-header__admin-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-weight: 800;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.15s;
}

.rd-header__admin-btn:hover {
    background: var(--navy-2);
}

.rd-header__user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: var(--surface);
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.rd-header__user-avatar {
    width: 26px;
    height: 26px;
    border-radius: var(--radius-lg);
    object-fit: cover;
}
.rd-header__user-chevron { width: 12px; height: 12px; opacity: 0.5; }

.rd-content {
    flex: 1;
    padding: 12px 20px 30px;
}

.rd-chat {
    width: var(--chat-width);
    background: var(--surface);
    border-left: 1px solid var(--navy-2);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    overflow: hidden;
    transform: translateX(0);
    transition: transform var(--transition);
    z-index: 100;
}

.rd-chat:not(.visible) {
    transform: translateX(100%);
}

.rd-chat__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: var(--chat-width);
}

.rd-chat__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px;
    margin: 4px;
    background: var(--navy-2);
    border-radius: var(--radius-xl);
}

.rd-chat__header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 12px;
}

.rd-chat__logo {
    width: 24px;
    height: 24px;
}

.rd-chat__title {
    font-weight: 800;
    font-size: 14px;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.rd-chat__header-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rd-chat__online {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    background: rgba(0, 149, 255, 0.1);
    padding: 8px 14px;
    border-radius: var(--radius-lg);
}

.rd-chat__online-icon {
    width: 18px;
    height: 18px;
}

.rd-chat__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #17283E;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}

.rd-chat__close img {
    width: 16px;
    height: 16px;
}

.rd-chat__close:hover { background: var(--navy-3); }

.rd-chat__messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.rd-chat__input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #23344D;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.rd-chat__input-field {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--background);
    border-radius: var(--radius-xl);
    padding: 0 12px;
}

.rd-chat__input-field input {
    flex: 1;
    background: none;
    border: none;
    padding: 15px 0;
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 13px;
    outline: none;
}

.rd-chat__input-field input::placeholder {
    color: #7681A0;
    font-weight: 600;
    font-size: 14px;
}

.rd-chat__emoji {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

.rd-chat__emoji img {
    width: 15px;
    height: 15px;
}

.rd-chat__emoji:hover img { opacity: 0.7; }

.rd-chat__emoji-picker {
    position: absolute;
    bottom: 70px;
    left: 8px;
    right: 8px;
    z-index: 200;
}

.rd-chat__inner {
    position: relative;
}

.rd-chat__emoji-picker emoji-picker {
    --background: var(--surface);
    --border-color: var(--navy-2);
    --indicator-color: var(--accent-primary);
    --input-border-color: var(--navy-2);
    --input-font-color: var(--text-primary);
    --input-placeholder-color: var(--text-muted);
    --category-font-color: var(--text-muted);
    --button-active-background: var(--navy-2);
    --button-hover-background: var(--navy-2);
    --num-columns: 7;
    width: 100%;
    height: 300px;
    border-radius: var(--radius-xl);
}

.rd-chat__emoji-picker emoji-picker::part(skintone-button-wrapper) {
    display: none;
}

.rd-chat__send {
    position: relative;
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: linear-gradient(90deg, var(--btn-primary-from), var(--btn-primary-to));
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s;
}

.rd-chat__send::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 0.5px;
    background: linear-gradient(90deg, var(--btn-primary-stroke-from), var(--btn-primary-stroke-to));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.rd-chat__send img {
    width: 18px;
    height: 18px;
}

.rd-chat__send:hover { opacity: 0.9; }

.rd-chat__login {
    padding: 12px;
    border-top: 1px solid var(--navy-2);
}

.rd-chat__login-btn {
    display: block;
    text-align: center;
    padding: 12px;
    background: linear-gradient(90deg, var(--btn-primary-from), var(--btn-primary-to));
    color: var(--text-primary);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    border-radius: var(--radius-xl);
    text-decoration: none;
    transition: opacity 0.2s;
}

.rd-chat__login-btn:hover { opacity: 0.9; }

.rd-footer {
    background: var(--background);
    border-top: 1px solid var(--navy-2);
    padding: 40px 20px 20px;
    margin-left: calc(var(--sidebar-width) + 8px);
    margin-right: 0;
    transition: margin var(--transition);
}

body.chat-open .rd-footer {
    margin-right: var(--chat-width);
}

.rd-footer__inner { }

.rd-footer__top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 30px;
}

.rd-footer__logo {
    flex-shrink: 0;
}

.rd-footer__links {
    display: flex;
    flex-wrap: wrap;
    flex: 1;
    gap: 24px;
    min-width: 0;
}

.rd-footer__links .rd-footer__col {
    flex: 1;
    min-width: 120px;
}

.rd-footer__col h4 {
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.rd-footer__col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    padding: 4px 0;
    transition: color 0.15s;
}

.rd-footer__col a:hover { color: var(--text-primary); }

.rd-footer__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
}
.rd-footer__actions-row { display: flex; align-items: center; gap: 10px; }

.rd-footer__lang-wrap {
    position: relative;
}

.rd-footer__lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--navy-2);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.rd-footer__lang-btn img:first-child {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
}

.rd-footer__lang-arrow {
    width: 12px;
    opacity: 0.5;
}

.rd-footer__lang-dropdown {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 6px;
    background: var(--surface);
    border: 1px solid var(--navy-2);
    border-radius: 10px;
    padding: 6px;
    min-width: 160px;
    z-index: 50;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.rd-footer__lang-dropdown.open {
    display: block;
}

.rd-footer__lang-dropdown .rd-lang__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    border-radius: 6px;
    transition: background 0.15s;
}

.rd-footer__lang-dropdown .rd-lang__item:hover {
    background: var(--navy-2);
}

.rd-footer__lang-dropdown .rd-lang__item img {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
}

.rd-footer__support-btn {
    padding: 8px 20px;
    background: var(--navy-2);
    border: 1px solid var(--navy-3);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: background 0.15s;
}

.rd-footer__support-btn:hover {
    background: var(--navy-3);
}

.rd-footer__socials { display: flex; align-items: center; gap: 8px; }
.rd-footer__social { display: inline-flex; transition: opacity .15s; }
.rd-footer__social:hover { opacity: 0.7; }
.rd-footer__social img { width: 28px; height: 28px; object-fit: contain; }

.rd-footer__currencies {
    background: var(--surface);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 28px;
}

.rd-footer__currencies-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-align: left;
}

.rd-footer__currencies-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rd-footer__currencies-list span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--background);
    border-radius: 8px;
    padding: 6px 12px 6px 8px;
}

.rd-footer__currencies-list span img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

.rd-footer__legal {
    text-align: center;
}

.rd-footer__legal p {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

.rd-page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.rd-page-back {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--surface);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.15s;
}

.rd-page-back:hover { background: var(--navy-3); }

.rd-page-back-icon {
    width: 16px;
    height: 16px;
}

.rd-page-title-icon {
    width: 20px;
    height: 20px;
}

.rd-page-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    margin: 0;
}

.rd-legal__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.rd-legal__back {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--navy-2);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s;
}

.rd-legal__back:hover {
    background: var(--navy-3);
}

.rd-legal__title-icon {
    width: 20px;
    height: 20px;
}

.rd-legal__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
}

.rd-legal__body {
    display: flex;
    gap: 24px;
}

.rd-legal__tabs {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 180px;
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--header-height) + 20px);
    align-self: flex-start;
}

.rd-legal__tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: var(--radius-xl);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, opacity 0.2s;
    border: 1px solid var(--navy-3);
    background: var(--surface);
}

.rd-legal__tab:hover {
    background: var(--navy-2);
    color: var(--text-primary);
}

.rd-legal__tab--active {
    background: linear-gradient(90deg, var(--btn-primary-from), var(--btn-primary-to));
    color: #fff;
    border-color: transparent;
}

.rd-legal__tab--active:hover {
    background: linear-gradient(90deg, var(--btn-primary-from), var(--btn-primary-to));
    color: #fff;
    opacity: 0.9;
}

.rd-legal__content {
    flex: 1;
    min-width: 0;
}

.rd-legal__content .page-static {
    background: none;
    border-radius: 0;
    padding: 0;
}

.rd-legal__content h1,
.rd-legal__content h2,
.rd-legal__content h3 {
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 12px;
}

.rd-legal__content h1 { font-size: 22px; }
.rd-legal__content h2 { font-size: 18px; }
.rd-legal__content h3 { font-size: 15px; }

.rd-legal__content p,
.rd-legal__content li {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.rd-legal__content ul,
.rd-legal__content ol {
    padding-left: 20px;
    margin: 8px 0;
}

.rd-legal__content a {
    color: var(--accent-primary);
}

@media (max-width: 768px) {
    .rd-legal__body {
        flex-direction: column;
        gap: 16px;
    }

    .rd-page-back {
        font-size: 0;
        padding: 10px;
        gap: 0;
    }

    .rd-page-back-icon {
        width: 18px;
        height: 18px;
    }

    .rd-legal__tabs {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        min-width: 0;
        width: 100%;
        overflow-x: scroll;
        overflow-y: hidden;
        position: static;
        gap: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    .rd-legal__tabs::-webkit-scrollbar {
        display: none;
    }

    .rd-legal__tabs::-webkit-scrollbar {
        display: none;
    }

    .rd-legal__tab {
        white-space: nowrap;
        font-size: 12px;
        padding: 8px 12px;
        border-radius: 8px;
        flex-shrink: 0;
    }

    .rd-legal__content {
        padding: 0;
    }
}

/* ВАЖНО про структуру FAQ: секции НЕ лежат рядом — первая секция («Бонусы»)
   оборачивает все остальные (faq.php конкатенирует их внутрь неё). Дерево:
     section[Бонусы] > header + body + section[Cashback] + section[Ранги] + ...
   Поэтому margin-bottom на .rd-faq__section даёт отступ только ПОСЛЕ всего
   блока, а не между списком вопросов и следующим заголовком. Отступ вешаем
   на section-body — он идёт ровно после последнего вопроса секции. */
.rd-faq__section {
    margin-bottom: 0;
}

.rd-faq__section-header {
    display: flex;
    align-items: center;
    padding: 0 0 12px 0;
    gap: 0;
}

.rd-faq__section-header img {
    display: none;
}

.rd-faq__section-header span {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rd-faq__section-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Отступ снизу у списка вопросов — отделяет его от заголовка следующей секции.
   Скоупим через .rd-faq__section: тот же .rd-faq__section-body используется в
   блоках «Частые вопросы» на cashback / rakeback / vip_club, где он лежит в
   .rd-vip-faq__right без секции — там лишний отступ ломал бы колонку. */
.rd-faq__section > .rd-faq__section-body {
    margin-bottom: 32px;
}

/* Обнулять отступ у «последней» секции пробовали через :last-child и
   :not(:has(...)) — оба варианта из-за вложенности попадают не туда
   (первая секция сама является и :last-child, и той, что содержит остальные).
   Оставляем отступ у всех: внизу страницы это просто небольшой воздух. */

.rd-faq__item {
    background: var(--surface);
    border-radius: 10px;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.rd-faq__item.active {
    background: var(--accent-secondary);
}

.rd-faq__question {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.rd-faq__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.rd-faq__icon--active {
    display: none;
}

.rd-faq__item.active .rd-faq__icon--default {
    display: none;
}

.rd-faq__item.active .rd-faq__icon--active {
    display: block;
}

.rd-faq__arrow {
    width: 16px;
    height: 16px;
    margin-left: auto;
    flex-shrink: 0;
    transition: transform 0.3s;
    opacity: 0.5;
}

.rd-faq__item.active .rd-faq__arrow {
    transform: rotate(180deg);
    opacity: 1;
}

.rd-faq__answer {
    display: none;
    padding: 10px 0 0 34px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.rd-faq__item.active .rd-faq__answer {
    display: block;
}

@media (max-width: 768px) {
    .rd-faq__item {
        padding: 12px 14px;
    }
    .rd-faq__question {
        font-size: 13px;
    }
    /* На мобилке отступы между секциями меньше — экран уже, иначе
       заголовки разъезжаются и приходится много скроллить. */
    .rd-faq__section > .rd-faq__section-body {
        margin-bottom: 24px;
    }
    .rd-faq__section-header span {
        font-size: 13px;
    }
}

.rd-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 95;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.rd-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.rd-chat__msg {
    padding: 8px 12px;
    position: relative;
}

.rd-chat__msg-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.rd-chat__msg-avatar {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.rd-chat__msg-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
}

.rd-chat__msg-name:hover {
    color: var(--accent-primary);
}

.rd-chat__mention {
    color: #FFBB62;
    font-weight: 600;
}

.rd-chat__msg-badge {
    font-size: 10px;
    font-weight: 600;
    background: #FFBB62;
    color: #090F1D;
    padding: 2px 5px;
    border-radius: 4px;
    text-transform: uppercase;
}

.rd-chat__msg--admin .rd-chat__msg-text {
    background: rgba(0, 149, 255, 0.1);
}

.rd-chat__msg-time {
    font-size: 12px;
    font-weight: 600;
    color: #A6B2D5;
    margin-left: auto;
}

.rd-chat__msg-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--background);
    padding: 8px 12px;
    border-radius: 0 8px 8px 8px;
    margin-left: 30px;
    line-height: 1.4;
    word-break: break-word;
}

.rd-chat__msg-actions {
    display: none;
    position: absolute;
    top: 4px;
    right: 4px;
    gap: 4px;
}

.rd-chat__msg:hover .rd-chat__msg-actions {
    display: flex;
}

.rd-chat__msg-del,
.rd-chat__msg-ban,
.rd-chat__msg-mute {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background);
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}

.rd-chat__msg-del:hover { background: #EF4444; }
.rd-chat__msg-ban:hover { background: #EF4444; }
.rd-chat__msg-mute:hover { background: #F59E0B; }

.rd-header__balance-wrap,
.rd-header__user-wrap,
.rd-notifications-wrap {
    position: relative;
}

.rd-balance-dropdown,
.rd-notifications-dropdown,
.rd-profile-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 150;
    overflow: hidden;
}

.rd-balance-dropdown.rd-dropdown--open,
.rd-notifications-dropdown.rd-dropdown--open,
.rd-profile-dropdown.rd-dropdown--open {
    display: block;
}

.rd-balance-dropdown {
    width: 280px;
    padding: 12px;
}

.rd-balance-dropdown__title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 8px 12px;
}

.rd-balance-dropdown__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rd-balance-dropdown__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: none;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.15s;
    width: 100%;
}

.rd-balance-dropdown__item:hover {
    background: var(--navy);
    color: var(--text-primary);
}

.rd-balance-dropdown__item--active {
    color: var(--text-primary);
}

.rd-balance-dropdown__flag {
    font-size: 18px;
    line-height: 1;
}

.rd-balance-dropdown__code {
    font-size: 14px;
    font-weight: 600;
    flex: 1;
}

.rd-balance-dropdown__symbol {
    font-size: 14px;
    color: var(--text-muted);
    margin-left: auto;
}

.rd-notifications-wrap {
    position: relative;
}

.rd-notifications-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: #0095FF;
    border-radius: 50%;
    pointer-events: none;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}

.rd-notifications-dropdown {
    width: 320px;
}

.rd-notifications-dropdown__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--navy-2);
}

.rd-notifications-dropdown__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.rd-notifications-dropdown__count {
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font);
    color: var(--accent-primary);
    padding: 6px 8px;
    background: var(--navy-2);
    border-radius: 6px;
}

.rd-notifications-dropdown__list {
    max-height: 360px;
    overflow-y: auto;
}

.rd-notifications-dropdown__empty {
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.rd-notifications-dropdown__footer {
    padding: 10px 16px;
    border-top: 1px solid var(--navy-2);
}

.rd-notifications-dropdown__read-all {
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(180deg, var(--btn-secondary-from) 0%, var(--btn-secondary-to) 100%);
    border: 0.5px solid var(--btn-secondary-stroke-from);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s;
}

.rd-notifications-dropdown__read-all:hover {
    background: linear-gradient(180deg, var(--btn-secondary-to) 0%, var(--btn-secondary-from) 100%);
}

.rd-notifications-dropdown .notify-item a[href] {
    display: inline-block !important;
    margin-top: 8px !important;
    padding: 8px 16px !important;
    background: linear-gradient(90deg, var(--btn-primary-from), var(--btn-primary-to)) !important;
    color: var(--text-primary) !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-radius: var(--radius-xl) !important;
    text-decoration: none !important;
    position: relative;
    transition: opacity 0.2s;
}

.rd-notifications-dropdown .notify-item a[href]::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 0.5px;
    background: linear-gradient(90deg, var(--btn-primary-stroke-from), var(--btn-primary-stroke-to));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.rd-notifications-dropdown .notify-item a[href]:hover {
    opacity: 0.9;
}

.rd-profile-dropdown {
    width: 280px;
    padding: 16px;
    display: none;
    flex-direction: column;
    gap: 12px;
}

.rd-profile-dropdown.rd-dropdown--open {
    display: flex;
}

.rd-profile-dropdown__top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rd-profile-dropdown__avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    flex-shrink: 0;
}

.rd-profile-dropdown__info {
    flex: 1;
    min-width: 0;
}

.rd-profile-dropdown__name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rd-profile-dropdown__id {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.rd-profile-dropdown__vip {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    flex-shrink: 0;
}

.rd-profile-dropdown__vip--bronze { background: rgba(180, 100, 40, 0.2); color: #cd7f32; }
.rd-profile-dropdown__vip--silver { background: rgba(160, 160, 160, 0.2); color: #c0c0c0; }
.rd-profile-dropdown__vip--gold { background: rgba(255, 184, 0, 0.2); color: #FFB800; }
.rd-profile-dropdown__vip--platinum { background: rgba(53, 171, 255, 0.2); color: var(--accent-primary); }
.rd-profile-dropdown__vip--diamond { background: rgba(148, 100, 255, 0.2); color: #9460FF; }

.rd-profile-dropdown__progress {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rd-profile-dropdown__progress-bar {
    height: 4px;
    background: var(--navy-2);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.rd-profile-dropdown__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--btn-primary-from), var(--btn-primary-to));
    border-radius: var(--radius-full);
    transition: width 0.3s;
}

.rd-profile-dropdown__points {
    font-size: 11px;
    color: var(--text-muted);
    text-align: right;
}

.rd-profile-dropdown__links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rd-profile-dropdown__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-lg);
    transition: all 0.15s;
}

.rd-profile-dropdown__link svg {
    opacity: 0.6;
    flex-shrink: 0;
}

.rd-profile-dropdown__link:hover {
    background: var(--navy);
    color: var(--text-primary);
}

.rd-profile-dropdown__link:hover svg {
    opacity: 1;
}

.rd-profile-dropdown__logout {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    background: rgba(239, 68, 68, 0.08);
    border: none;
    border-radius: var(--radius-lg);
    color: #EF4444;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 4px;
}

.rd-profile-dropdown__logout svg {
    flex-shrink: 0;
}

.rd-profile-dropdown__logout:hover {
    background: rgba(239, 68, 68, 0.16);
}

.rd-topwins {
    position: relative;
    padding: 8px;
    background: var(--surface);
    border-radius: var(--radius-xl);
    margin: 0 0 12px 0;
    overflow: hidden;
}

.rd-topwins__track {
    overflow: hidden;
    position: relative;
}

.rd-topwins__scroll {
    display: flex;
    gap: 4px;
    animation: rd-marquee 80s linear infinite;
    width: max-content;
}

.rd-topwins__scroll:hover {
    animation-play-state: paused;
}

@keyframes rd-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.rd-topwins__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    flex-shrink: 0;
    width: 80px;
    padding: 8px 6px;
    background: var(--navy);
    border-radius: var(--radius-lg);
}

.rd-topwins__item:hover .rd-topwins__poster { transform: scale(1.08); }

.rd-topwins__poster {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.rd-topwins__info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-top: 4px;
    min-width: 0;
}

.rd-topwins__user {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 130%;
    white-space: nowrap;
}

.rd-topwins__amount {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.rd-hero {
    display: grid;
    grid-template-columns: minmax(0, 66.15%) minmax(0, 1fr);
    gap: 16px;
    height: 393px;
    margin-bottom: 20px;
    overflow: hidden;
}

.rd-hero__slider {
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 100%;
    /* width:99% давало дробную ширину контейнера → Swiper (loop) считал ширину слайда
       и translate с субпиксельным округлением, слева выглядывала полоска соседнего
       слайда. Ширину и так ограничивает грид-ячейка (десктоп) / контейнер (мобилка). */
    width: 100%;
    min-width: 0;
}

.rd-hero__slider,
.rd-hero__slider .swiper-wrapper,
.rd-hero__slider .swiper-slide {
    height: 100% !important;
}

.rd-hero__slider .swiper-slide {
    width: 100% !important;
    flex-shrink: 0;
}

.rd-hero__banner {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-xl);
    background-size: cover;
    background-position: center;
    text-decoration: none;
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.rd-hero__banner--fallback {
    background: linear-gradient(135deg, #0a1628 0%, #1a2d5e 50%, #0a1628 100%);
}

.rd-hero__banner-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 50%;
    position: relative;
    z-index: 1;
}

.rd-hero__banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 4px 12px 4px 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    width: fit-content;
}

.rd-hero__banner-badge-icon {
    width: 36px;
    height: 32px;
    margin-right: 8px;
}

.rd-hero__banner-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin: 0;
}

.rd-hero__banner-desc {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.rd-hero__banner-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(90deg, var(--btn-primary-from), var(--btn-primary-to));
    border-radius: var(--radius-xl);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
    transition: opacity 0.2s;
}

.rd-hero__banner:hover .rd-hero__banner-btn {
    opacity: 0.9;
}

.rd-hero__dots {
    position: absolute;
    bottom: 12px !important;
    left: 32px !important;
    width: auto !important;
}

.rd-hero__dots .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
    width: 8px;
    height: 8px;
}

.rd-hero__dots .swiper-pagination-bullet-active {
    background: var(--text-primary);
    width: 24px;
    border-radius: 4px;
}

.rd-hero__side {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    overflow: hidden;
}

.rd-hero__card {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    text-decoration: none;
    min-height: 134px;
    /* Промоушн в отдельный GPU-слой: без него Safari/high-DPR (телефон) на дробных
       пикселях оставляет ~1px ПРОЗРАЧНУЮ полоску по краю скруглённого overflow:hidden
       (баг антиалиасинга клипа, «то есть, то нет» от размера экрана). translateZ(0)
       заставляет браузер растрировать клип чисто. isolation — на всякий для стекинга. */
    transform: translateZ(0);
    isolation: isolate;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.rd-hero__card--casino {
    /* Фоновая картинка полупрозрачная и гаснет книзу → под неё кладём градиент В ЦВЕТ
       фона (тёмный верх → яркий низ темы), иначе внизу видна тёмная полоса «фон кончился»
       и в ней торчит сундук. Цвета сняты композитингом картинки над фоном страницы. */
    background: url('/templates/redesign/img/hero-casino-bg.png') center/cover no-repeat, linear-gradient(180deg, #152e50 0%, #1b5ca1 100%);
    /* Сплошной цвет ПОД всеми слоями: у скруглённой overflow:hidden карты браузер на
       дробных пикселях (зависит от размера экрана) оставляет ~1px ПРОЗРАЧНУЮ полоску по
       нижнему краю (антиалиасинг клипа). С bg-color этот край сливается в цвет темы,
       а не в тёмный фон страницы. Цвет = яркий низ (совпадает с нижним glow). */
    background-color: #178ff2;
}

.rd-hero__card--sport {
    background: url('/templates/redesign/img/hero-sport-bg.png') center/cover no-repeat, linear-gradient(180deg, #271e50 0%, #5433a1 100%);
    background-color: #8349f7;
}

.rd-hero__card-text {
    display: flex;
    flex-direction: column;
    gap: 13px;
    position: relative;
    z-index: 2;
}

.rd-hero__card-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rd-hero__card-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.rd-hero__card-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    line-height: 40px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.rd-hero__card-desc {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    max-width: 76%;
}

.rd-hero__card-btn {
    display: inline-block;
    padding: 10px 18px;
    background: linear-gradient(180deg, var(--btn-secondary-from) 0%, var(--btn-secondary-to) 100%);
    border: 0.5px solid var(--btn-secondary-stroke-from);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    width: fit-content;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

.rd-hero__card:hover .rd-hero__card-btn {
    background: linear-gradient(180deg, var(--btn-secondary-to) 0%, var(--btn-secondary-from) 100%);
}

.rd-hero__card-img {
    position: absolute;
    right: -5%;
    bottom: -5%;
    width: auto;
    height: 90%;
    max-width: 55%;
    object-fit: contain;
    z-index: 1;
}

.rd-hero__card--casino::after,
.rd-hero__card--sport::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: bottom right;
    pointer-events: none;
    z-index: 0;
}

.rd-hero__card--casino::after {
    background-image: url('/templates/redesign/img/hero-casino-glow.png');
}

.rd-hero__card--sport::after {
    background-image: url('/templates/redesign/img/hero-sport-glow.png');
}

@media (max-width: 1024px) {
    .rd-main {
        margin-left: 0;
        margin-right: 0;
    }

    .rd-footer {
        margin-left: 0;
        margin-right: 0;
    }
}

.rd-game-tabs {
    margin-top: 0 !important;
    gap: 0 !important;
    margin-bottom: 20px !important;
    background: none !important;
}

.rd-game-tabs .scroll-light {
    gap: 0 !important;
    padding-bottom: 0 !important;
}

.rd-game-tabs .nav__btn,
.rd-game-tabs .btn-for-scroll {
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 10px 16px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    font-family: var(--font) !important;
    color: var(--text-muted) !important;
    position: relative;
    box-shadow: none !important;
    border-bottom: 2px solid transparent !important;
    transition: color 0.15s, border-color 0.15s;
}

.rd-game-tabs .nav__btn:hover,
.rd-game-tabs .btn-for-scroll:hover {
    color: var(--text-primary) !important;
}

.rd-game-tabs .nav__btn.active,
.rd-game-tabs .btn-for-scroll.active {
    color: #fff !important;
    border-bottom: 2px solid var(--accent-primary) !important;
}

.rd-game-tabs .nav__btn .w-\[16px\],
.rd-game-tabs .btn-for-scroll .w-\[16px\] {
    display: none !important;
}

.rd-game-tabs .nav__btn .btn-overlay,
.rd-game-tabs .btn-for-scroll .btn-overlay {
    display: none !important;
}

.rd-game-tabs .nav__btn-jackpot {
    animation: none !important;
}

.rd-category-bar {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 12px 0 8px;
}

.rd-category-bar__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font);
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 6px;
    background: var(--navy-2);
    transition: background 0.15s;
    margin-right: 12px;
}

.rd-category-bar__back:hover {
    background: var(--navy-3);
}

.rd-category-bar__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.rd-category-bar__title {
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-primary);
    text-transform: uppercase;
    margin-left: 10px;
}

.rd-category-bar__count {
    margin-left: auto;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font);
    color: var(--accent-primary);
    padding: 6px 8px;
    background: var(--navy-2);
    border: none;
    border-radius: 6px;
}

.rd-header__deposit-icon {
    display: none;
}

.rd-bottombar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--surface);
    border-top: 1px solid var(--navy-3);
    height: 64px;
    align-items: center;
    justify-content: space-around;
    padding: 0 4px;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.rd-bottombar::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(-1 * env(safe-area-inset-bottom, 0px));
    height: env(safe-area-inset-bottom, 0px);
    background: var(--surface);
    pointer-events: none;
}

.rd-bottombar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    gap: 8px;
    padding: 8px 4px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.15s;
    position: relative;
}

.rd-bottombar__icon {
    width: 20px;
    height: 20px;
    transition: filter 0.15s;
}

.rd-bottombar__icon--active {
    display: none;
}

.rd-bottombar__item.active .rd-bottombar__icon--default {
    display: none;
}

.rd-bottombar__item.active .rd-bottombar__icon--active {
    display: block;
}

.rd-bottombar__item.active {
    color: #fff;
}

.rd-bottombar__item span {
    position: relative;
}

.rd-bottombar__home-bg {
    display: none;
}

@media (max-width: 1024px) {
    :root { --header-height: 52px; } /* мобайл: шапка ниже — совпадает с JS-замером, без прыжка */
    .rd-header__deposit-icon {
        display: block;
        width: 18px;
        height: 18px;
    }

    .rd-header__deposit-text {
        display: none;
    }

    .rd-header__logo-img {
        width: 89px;
        height: auto;
    }

    .rd-header__deposit-btn {
        padding: 0;
        width: 28px;
        height: 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
    }

    #ref-get-link-btn.rd-header__deposit-btn {
        padding: 6px 8px;
        width: auto;
        height: auto;
    }

    .rd-ref-pro-row {
        flex-direction: column;
    }

    #rdToggleChat {
        display: none !important;
    }

    .rd-header__user-name {
        display: none;
    }

    .rd-header__user-chevron {
        display: none;
    }

    .rd-header__user {
        padding: 0;
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--navy-2);
        border-radius: 8px;
    }

    .rd-header__user-avatar {
        width: 20px;
        height: 20px;
    }

    .rd-header__balance-currency {
        display: none;
    }

    .rd-header__balance {
        height: 28px;
        padding: 0 8px;
        gap: 4px;
        border-radius: 8px;
    }

    .rd-header__balance-amount {
        font-size: 12px;
    }

    .rd-header__balance-flag {
        font-size: 14px;
    }

    .rd-header__balance-chevron {
        width: 10px;
    }

    .rd-header__icons {
        gap: 2px;
    }

    .rd-header__icon-btn {
        width: 28px;
        height: 28px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
    }

    .rd-header__icon-btn img {
        width: 16px;
        height: 16px;
    }

    .rd-header__admin-btn {
        width: 28px;
        height: 28px;
        padding: 0;
        font-size: 11px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
    }

    .rd-header__right {
        gap: 8px;
    }

    .rd-header {
        padding: 8px 12px;
    }

    .rd-header__left {
        gap: 8px;
    }

    .rd-vip-badge {
        display: none;
    }

    .rd-sidebar {
        transform: translateX(-100%);
        width: 70%;
        z-index: 99;
        margin-left: 0;
        margin-top: 0;
        top: var(--header-height);
        bottom: 64px;
        border-radius: 0;
        transition: transform 0.3s ease;
    }

    .rd-sidebar.open {
        transform: translateX(0);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .rd-sidebar.open .rd-sidebar__link span,
    .rd-sidebar.open .rd-sidebar__action-btn span,
    .rd-sidebar.open .rd-sidebar__dropdown-toggle span {
        display: inline !important;
    }

    .rd-sidebar.open .rd-sidebar__inner {
        width: 100%;
    }

    .rd-sidebar.open .rd-sidebar__top-actions {
        flex-direction: row;
        justify-content: center;
    }

    .rd-sidebar.open .rd-sidebar__dropdown-arrow {
        display: block !important;
    }

    .rd-main {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-bottom: 0;
    }

    .rd-page .slid__btn {
        display: none !important;
    }

    body.sidebar-collapsed .rd-main {
        margin-left: 0 !important;
    }

    .rd-footer {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-bottom: 80px;
    }

    .rd-footer__top {
        flex-direction: column;
        gap: 24px;
    }

    .rd-footer__links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .rd-footer__links .rd-footer__col {
        min-width: 0;
    }

    .rd-footer__links .rd-footer__col:nth-child(even) {
        justify-self: flex-end;
    }

    .rd-footer__links .rd-footer__col:last-child {
        grid-column: auto;
    }

    .rd-footer__actions {
        justify-content: center;
    }

    .rd-footer__currencies-list {
        gap: 8px;
    }

    .rd-footer__currencies-list span {
        font-size: 11px;
    }

    .rd-bottombar {
        display: flex;
    }

    .rd-hero {
        grid-template-columns: 1fr;
        height: auto;
        gap: 12px;
    }

    .rd-hero__slider {
        height: 299px !important;
        border-radius: 16px;
    }

    .rd-hero__slider .swiper-slide {
        height: 299px !important;
    }

    .rd-hero__banner {
        height: 299px !important;
    }

    .rd-hero__banner {
        padding: 20px;
        border-radius: 16px;
    }

    .rd-hero__banner-text {
        max-width: 60%;
    }

    .rd-hero__banner-title {
        font-size: 18px;
    }

    .rd-hero__banner-desc {
        font-size: 12px;
    }

    .rd-hero__banner-btn {
        font-size: 11px;
        padding: 8px 16px;
    }

    .rd-hero__side {
        flex-direction: row;
        gap: 10px;
    }

    .rd-hero__card {
        min-height: 181px;
        padding: 14px;
        border-radius: 16px;
    }

    .rd-hero__card-title {
        font-size: 18px;
    }

    .rd-hero__card-icon {
        width: 28px;
        height: 28px;
    }

    .rd-hero__card-desc {
        display: none;
    }

    .rd-hero__card-btn {
        display: none;
    }

    .rd-hero__card-head {
        gap: 8px;
    }

    .rd-hero__card-img {
        right: 10%;
        bottom: -6%;
        width: auto;
        height: 81%;
        max-width: unset;
        transform: none;
    }

    .rd-hero__card--casino {
        /* Тот же приём, что на десктопе: под полупрозрачную гаснущую картинку — градиент
           в цвет темы, чтобы снизу не было тёмной полосы (моб-правило раньше вообще без
           фолбэка → там просвечивал тёмный фон страницы, и в нём торчал сундук/медаль). */
        background: url('/templates/redesign/img/hero-casino-bg-mob.png') center/cover no-repeat, linear-gradient(180deg, #152e50 0%, #1b5ca1 100%);
        background-color: #178ff2; /* см. коммент в базовом правиле: заливка под клип-край */
    }

    .rd-hero__card--sport {
        background: url('/templates/redesign/img/hero-sport-bg-mob.png') center/cover no-repeat, linear-gradient(180deg, #271e50 0%, #5433a1 100%);
        background-color: #8349f7;
    }

    .rd-hero__card--casino::after,
    .rd-hero__card--sport::after {
        display: none;
    }

    /* Нижнее приглушение/glow — CSS-ГРАДИЕНТОМ, а не PNG-оверлеем. Растровый оверлей
       при background-size:100% 100% давал тонкий шов/полосу у края (субпиксельное
       масштабирование картинки; repeat не спасал стабильно). Градиент считается
       попиксельно — шва быть не может, при этом приглушение снизу сохраняется. */
    .rd-hero__card--casino::before,
    .rd-hero__card--sport::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 55%;
        pointer-events: none;
        z-index: 2;
        border-radius: 0 0 16px 16px;
    }

    .rd-hero__card--casino::before {
        background: linear-gradient(180deg, rgba(23,143,242,0) 0%, rgba(23,143,242,0.9) 100%);
    }

    .rd-hero__card--sport::before {
        background: linear-gradient(180deg, rgba(131,73,247,0) 0%, rgba(131,73,247,0.9) 100%);
    }

    .rd-topwins__poster {
        width: 44px;
        height: 44px;
    }

    .rd-topwins__user {
        font-size: 10px;
    }

    .rd-topwins__amount {
        font-size: 12px;
    }

    .rd-topwins__info {
        margin-top: 0;
    }

    .rd-topwins__item {
        width: 70px;
        padding: 6px 4px;
    }

    .rd-overlay {
        z-index: 90;
    }

    .rd-chat {
        width: 100%;
        top: var(--header-height);
        bottom: 64px;
        z-index: 99;
        border-left: none;
    }

    .rd-chat__inner {
        height: 100%;
    }

    .rd-header__toggle-sidebar {
        display: none;
    }
}

.rd-page .slideContainer > .flex.items-center.mb-\[12px\],
.rd-page .slider-tournament > .flex.items-center.mb-\[12px\] {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.rd-page .slideContainer > .flex.items-center.mb-\[12px\] > .flex.items-center:first-child,
.rd-page .slider-tournament > .flex.items-center.mb-\[12px\] > .flex.items-center:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rd-page .slideContainer > .flex.items-center.mb-\[12px\] > .flex.items-center:first-child > img,
.rd-page .slider-tournament > .flex.items-center.mb-\[12px\] > .flex.items-center:first-child > img {
    margin: 0 !important;
}

.rd-page .slideContainer > .flex.items-center.mb-\[12px\] > .flex.justify-end,
.rd-page .slider-tournament > .flex.items-center.mb-\[12px\] > .flex.justify-end {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}


.rd-page .card-tournament .rd-tour-card {
    display: flex;
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 209px;
    background: var(--surface);
    position: relative;
}

.rd-page .card-tournament .rd-tour-left {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50%;
    min-width: 50%;
    z-index: 2;
}

.rd-page .card-tournament .rd-tour-badge {
    display: inline-flex;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    padding: 4px 8px;
    border-radius: 8px;
    align-items: center;
    color: #35FF68;
    background: rgba(53,255,104,0.10);
    width: fit-content;
    margin-bottom: 12px;
}

.rd-page .card-tournament .rd-tour-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 16px;
    text-transform: uppercase;
    color: #F2F0FF;
    margin-top: 0;
    margin-bottom: 16px;
}

.rd-page .card-tournament .rd-tour-prize-label {
    font-size: 15px;
    font-weight: 600;
    line-height: 15px;
    color: var(--text-secondary);
    opacity: 0.8;
    margin-bottom: 4px;
}

.rd-page .card-tournament .rd-tour-prize {
    font-size: 26px;
    font-weight: 700;
    line-height: 21px;
    color: var(--text-primary);
}

.rd-page .card-tournament .rd-tour-bottom {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

@media (min-width: 768px) {
    .rd-page .card-tournament .rd-tour-bottom {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
}

.rd-page .card-tournament .rd-tour-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 23px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-xl);
    background: linear-gradient(90deg, var(--btn-primary-from), var(--btn-primary-to));
    color: var(--text-primary);
    text-decoration: none;
    position: relative;
    height: 44px;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.rd-page .card-tournament .rd-tour-btn:hover { opacity: 0.9; }

.rd-page .card-tournament .rd-tour-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 0.5px;
    background: linear-gradient(90deg, var(--btn-primary-stroke-from), var(--btn-primary-stroke-to));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.rd-page .rd-tour-timer {
    display: flex;
    gap: 4px;
}

.rd-page .rd-tour-timer .ow-wager-timer-badges {
    display: contents;
}

.rd-page .rd-tour-timer-item {
    background: var(--navy-3);
    border-radius: 10px;
    padding: 8px;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-width: 48px;
    height: 34px;
    font-size: 16px;
    font-weight: 600;
    line-height: 18px;
    color: var(--text-secondary);
    opacity: 0.8;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.rd-page .rd-tour-timer-item > div {
    display: contents !important;
}

.rd-page .rd-tour-timer-item small {
    font-size: 16px;
    font-weight: 600;
    line-height: 18px;
    color: inherit;
    opacity: 1;
}

.rd-page .card-tournament .rd-tour-img {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    left: 50%;
    z-index: 1;
}

.rd-page .card-tournament .rd-tour-img img {
    height: 100%;
    width: auto;
    object-fit: contain;
    position: absolute;
    right: 0;
    bottom: 0;
}

.rd-tour-info-under {
    background: var(--surface);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    margin-top: 16px;
}

.rd-tour-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rd-tour-info-icon {
    width: 24px;
    height: 24px;
    padding: 11px;
    box-sizing: content-box;
    background: linear-gradient(90deg, var(--btn-primary-from), var(--btn-primary-to));
    border-radius: 10px;
    flex-shrink: 0;
}

.rd-tour-info-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 2px;
}

.rd-tour-info-value {
    font-size: 15px;
    font-weight: 600;
    line-height: 15px;
    display: flex;
    color: var(--text-primary);
    align-items: center;
}

.rd-tour-rules {
    background: var(--surface);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.rd-tour-rules h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.rd-tour-rules ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rd-tour-rules ul li {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 6px 0;
    position: relative;
    padding-left: 16px;
}

.rd-tour-rules ul li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-primary);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.rd-tour-rules ul li:last-child {
    border-bottom: none;
}

.rd-tour-rules p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.rd-page .home-search.sticked {
    padding-top: 0;
    padding-bottom: 0;
}

.rd-page .home-search .v-input__wrapper {
    background: var(--surface) !important;
}

.rd-page .providers-btn {
    background: var(--surface) !important;
}

.rd-page .home-search .v-input__element::placeholder {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--text-secondary) !important;
}

.rd-page .home-search .v-input__element,
#providersearch {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--text-primary) !important;
    font-family: 'Montserrat', sans-serif !important;
}

.rd-page .providers-btn .hm {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--text-secondary) !important;
}

.rd-page .providers_dd .text-gradient-primary {
    background: none !important;
    color: var(--accent-primary) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    -webkit-text-fill-color: var(--accent-primary) !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

.rd-page .providers_dd__body-search .v-input {
    background: var(--navy) !important;
    border-radius: 10px !important;
}

.rd-page .providers_dd__body-search .v-input__wrapper {
    background: var(--background) !important;
}

.rd-page .providers_dd__body-search .v-input__border {
    display: none !important;
}

.rd-page .rd-game-tabs {
    padding-top: 10px;
    padding-bottom: 2px;
}

.rd-page .nav__btn-jackpot {
    display: none !important;
}

.rd-page .rd-game-tabs .nav__btn,
.rd-page .rd-game-tabs .btn-for-scroll {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--text-muted) !important;
    padding: 10px 20px !important;
    transition: color 0.2s, border-color 0.2s !important;
}

.rd-page .rd-game-tabs .nav__btn:hover,
.rd-page .rd-game-tabs .btn-for-scroll:hover {
    color: #fff !important;
    border-bottom: 2px solid var(--accent-primary) !important;
}

.rd-page .btn_all_slider {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: #273852;
    border: 0.5px solid #354362;
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background 0.2s;
    order: 3;
    height: 36px;
    margin-left: 0;
}

.rd-page .btn_all_slider:hover {
    background: var(--navy-3);
}

.rd-page .btn_all_slider > div {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-3);
    border-radius: var(--radius);
    padding: 0 6px;
    height: 18px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    order: -1;
}

.rd-page .btn_all_slider .btn-overlay {
    display: none;
}

.rd-page .slider-tournament > .flex > .flex > a[href*="tournaments"] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: #273852;
    border: 1px solid #354362;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary) !important;
    text-transform: uppercase;
    text-decoration: none;
    height: 36px;
}

.rd-page .slider-tournament > .flex > .flex > a[href*="tournaments"] .btn-overlay {
    display: none;
}

.rd-page .slider-tournament > .flex > .flex > a[href*="tournaments"]:hover {
    background: var(--navy-3);
}

.rd-page .slid__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--surface);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
}

.rd-page .slid__btn:hover {
    background: var(--navy-3);
}

.rd-page .slid__btn img {
    width: 14px;
    opacity: 0.7;
}

.rd-page .slid__btn .btn-overlay {
    display: none;
}

.rd-page .slid__btn.swiper-button-lock {
    display: none !important;
}

.rd-page .slid__prev {
    order: 1;
    margin-left: auto;
    margin-right: 0 !important;
}

.rd-page .slid__next {
    order: 2;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.rd-section-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-secondary);
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--accent-primary);
    margin-left: 0 !important;
    height: auto;
}

.rd-page .slideContainer > .flex.items-center > .flex.items-center > img,
.rd-page .slider-tournament > .flex.items-center > .flex.items-center > img {
    filter: brightness(0) invert(0.6);
    opacity: 0.7;
}

.rd-page .card-slot-play.v-btn-orange {
    background: linear-gradient(90deg, var(--btn-primary-from), var(--btn-primary-to)) !important;
    border: none;
    color: var(--text-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-lg);
    position: relative;
}

.rd-page .card-slot-play.v-btn-orange::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 0.5px;
    background: linear-gradient(90deg, var(--btn-primary-stroke-from), var(--btn-primary-stroke-to));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.rd-page .die-rm {
    background: linear-gradient(90deg, var(--btn-primary-from), var(--btn-primary-to)) !important;
    border-radius: 4px !important;
    font-size: 10px !important;
    position: relative;
}

.rd-page .die-rm::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 4px;
    padding: 0.5px;
    background: linear-gradient(90deg, var(--btn-primary-stroke-from), var(--btn-primary-stroke-to));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.rd-page .card-slot_overlay .v-btn-primary {
    background: linear-gradient(180deg, var(--btn-secondary-from) 0%, var(--btn-secondary-to) 100%) !important;
    border: 0.5px solid var(--btn-secondary-stroke-from) !important;
    border-radius: var(--radius-lg) !important;
    color: var(--text-primary) !important;
    font-weight: 700;
    text-transform: uppercase;
}

.rd-page .text-gradient-orange {
    color: var(--accent-primary) !important;
    -webkit-text-fill-color: var(--accent-primary) !important;
    background: none !important;
    -webkit-background-clip: unset !important;
}

.rd-page .card-slot_favorite img {
    filter: brightness(0) saturate(100%) invert(59%) sepia(57%) saturate(1000%) hue-rotate(180deg) brightness(100%) contrast(101%);
}

/* ============================================================
   МОДАЛКИ — перефарбування под новую дизайн-систему (rd-токены).
   ТОЛЬКО visual (bg/border/radius/color/градиент/шрифт), без изменения
   layout. Scoped на .modal_payment — HTML/JS/PHP-хуки платежей НЕ трогаем
   (переверстка = поломка обработчиков в main.js). Итеративно: смотрим на
   dev, правим. Начало — касса (депозит/вывод).
   ============================================================ */

/* затемнение фона оверлея */
.modal_payment .modal-overlay__wrapper {
    background: rgba(6, 10, 18, 0.74) !important;
    backdrop-filter: blur(1px); -webkit-backdrop-filter: blur(1px);
}

/* оболочка модалки — тёмный navy-фон как на макете */
.modal_payment .modal-base {
    background: #141b2e !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: var(--radius-2xl) !important;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55) !important;
    font-family: var(--font) !important;
    color: var(--text-primary) !important;
}
/* чёткая вертикальная полоса-разделитель между левой и правой панелями (макет) */
.modal_payment .modal-deposit { position: relative; }
.modal_payment .modal-deposit__sidebar { border-right: 1px solid rgba(255, 255, 255, 0.09) !important; }
.modal_payment .modal-deposit__body { position: relative; }
.modal_payment .modal-base__header-title { font-family: var(--font-heading) !important; color: var(--text-primary) !important; }

/* селектор валюты */
.modal_payment .v-select__button {
    background: var(--navy) !important;
    border: 1px solid var(--navy-3) !important;
    border-radius: var(--radius-lg) !important;
    color: var(--text-primary) !important;
}
.modal_payment .v-select__dropdown {
    background: var(--navy-2) !important;
    border: 1px solid var(--navy-3) !important;
    border-radius: var(--radius-lg) !important;
}
.modal_payment .v-select__dropdown-item:hover { background: var(--navy-3) !important; }

/* табы Пополнение / Вывод */
.modal_payment .v-tabs {
    background: var(--navy) !important;
    border-radius: var(--radius-lg) !important;
    padding: 4px !important;
    gap: 4px;
}
.modal_payment .btn-deposit,
.modal_payment .btn-withdrawal {
    background: transparent !important;
    color: var(--text-secondary) !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    font-weight: 700 !important;
    transition: background var(--transition), color var(--transition);
}
.modal_payment .btn-deposit.active,
.modal_payment .btn-withdrawal.active {
    background: linear-gradient(90deg, var(--btn-primary-from), var(--btn-primary-to)) !important;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(108, 44, 255, 0.28);
}

/* карточки методов оплаты (fiat/crypto/withdraw) — крупные аккуратные карточки */
.modal_payment .deposit__methods .grid { gap: 10px !important; }
.modal_payment .depway,
.modal_payment .paymentsysdep,
.modal_payment .modal-dep,
.modal_payment .crypto-select,
.modal_payment .modal__withdrawal {
    background: var(--navy-2) !important;
    border: 1.5px solid var(--navy-3) !important;
    border-radius: var(--radius-lg) !important;
    color: var(--text-primary) !important;
    height: auto !important;
    min-height: 64px !important;
    padding: 12px !important;
    gap: 6px;
    transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.modal_payment .depway img,
.modal_payment .modal__withdrawal img { height: 26px !important; width: auto !important; margin-bottom: 4px !important; object-fit: contain; }
.modal_payment .crypto-select img { width: 24px !important; height: 24px !important; }
.modal_payment .depway span,
.modal_payment .modal__withdrawal span { font-size: 13px !important; font-weight: 600 !important; color: var(--text-primary) !important; }
.modal_payment .depway:hover,
.modal_payment .paymentsysdep:hover,
.modal_payment .crypto-select:hover,
.modal_payment .modal__withdrawal:hover {
    border-color: var(--btn-primary-to) !important;
    transform: translateY(-1px);
}
.modal_payment .depway.active,
.modal_payment .paymentsysdep.active,
.modal_payment .crypto-select.active,
.modal_payment .modal__withdrawal.active {
    border-color: var(--btn-primary-to) !important;
    background: linear-gradient(180deg, rgba(108, 44, 255, 0.20), rgba(178, 83, 255, 0.07)) !important;
    box-shadow: 0 0 0 1px rgba(178, 83, 255, 0.35) inset;
}

/* строка "You will receive" (USD-конверт) */
.modal_payment .dep-receive-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 10px; padding: 12px 14px;
    background: var(--navy) !important;
    border: 1px solid var(--navy-3);
    border-radius: var(--radius-lg);
}
.modal_payment .dep-receive-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.modal_payment .dep-receive-value { font-size: 16px; font-weight: 800; color: var(--text-primary); font-family: var(--font-heading); }
.modal_payment .dep-receive-value .cur { color: var(--btn-primary-to); margin-left: 3px; }
.modal_payment .dep-rate-line { margin-top: 6px; font-size: 12px; color: var(--text-muted); padding-left: 2px; }

/* поля ввода */
.modal_payment .v-input__wrapper {
    background: var(--navy) !important;
    border: 1px solid var(--navy-3) !important;
    border-radius: var(--radius-lg) !important;
}
.modal_payment .v-input__wrapper:focus-within { border-color: var(--btn-primary-to) !important; }
.modal_payment .v-input__element--base { background: transparent !important; color: var(--text-primary) !important; }
.modal_payment .v-input__element--base::placeholder { color: var(--text-muted) !important; }
.modal_payment .v-input__label { color: var(--text-secondary) !important; }

/* чипы быстрых сумм */
.modal_payment .amount__btns button,
.modal_payment .amount__btns .v-btn {
    background: var(--navy-2) !important;
    border: 1px solid var(--navy-3) !important;
    border-radius: var(--radius-md) !important;
    color: var(--text-secondary) !important;
    font-weight: 700 !important;
    transition: border-color var(--transition), color var(--transition);
}
.modal_payment .amount__btns button:hover,
.modal_payment .amount__btns .v-btn:hover { border-color: var(--btn-primary-to) !important; color: #fff !important; }

/* инфо-блоки (курс / "если не удаётся" / QR-обёртка) */
.modal_payment [class*="bg-secondary"] {
    background: var(--navy) !important;
    border: 1px solid var(--navy-3) !important;
    border-radius: var(--radius-lg) !important;
}

/* primary-кнопки (Перейти к оплате / DEPOSIT / WITHDRAW / submit) */
.modal_payment .v-btn-primary {
    background: linear-gradient(90deg, var(--btn-primary-from), var(--btn-primary-to)) !important;
    border: none !important;
    border-radius: var(--radius-lg) !important;
    color: #fff !important;
    font-weight: 700 !important;
    box-shadow: 0 8px 22px rgba(108, 44, 255, 0.3);
    transition: filter var(--transition);
}
.modal_payment .v-btn-primary:hover { filter: brightness(1.08); }
.modal_payment .v-btn-primary:disabled { opacity: 0.5; box-shadow: none; }

/* вторичные кнопки (копировать / история) */
.modal_payment .v-btn-main,
.modal_payment .v-btn-light {
    background: var(--navy-2) !important;
    border: 1px solid var(--navy-3) !important;
    border-radius: var(--radius-md) !important;
    color: var(--text-primary) !important;
}
.modal_payment .v-btn-main:hover,
.modal_payment .v-btn-light:hover { border-color: var(--btn-primary-to) !important; }

/* шапка правой панели (иконка метода + название) */
.modal_payment .modal-deposit__body-header {
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px !important;
}
.modal_payment .modal-deposit__body-header .icon {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 15px; color: var(--text-primary);
}
.modal_payment .modal_payment__body-method-icon { width: 30px !important; height: 30px !important; object-fit: contain; }
.modal_payment .modal-deposit__body-header .back {
    background: var(--navy-2); border: 1px solid var(--navy-3);
    border-radius: var(--radius-md); padding: 6px 8px; transition: border-color var(--transition);
}
.modal_payment .modal-deposit__body-header .back:hover { border-color: var(--btn-primary-to); }
.modal_payment .amount__limit { color: var(--text-muted) !important; font-weight: 600; }
/* QR-блок крипты */
.modal_payment #crypto_wallet_info { background: var(--navy) !important; border: 1px solid var(--navy-3) !important; border-radius: var(--radius-lg) !important; }
.modal_payment #crypto_qr_img { border-radius: var(--radius-md) !important; }

/* шапка кассы (макет: иконка + DEPOSIT + Put your money to work) */
.modal_payment .rd-cash-head { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.modal_payment .rd-cash-head__ic {
    width: 40px; height: 40px; border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center; font-size: 20px;
    background: linear-gradient(135deg, var(--btn-primary-from), var(--btn-primary-to));
    box-shadow: 0 8px 20px rgba(108, 44, 255, 0.3);
}
.modal_payment .rd-cash-head__title {
    font-family: var(--font-heading); font-size: 16px; font-weight: 800;
    color: var(--text-primary); text-transform: uppercase; letter-spacing: 0.3px; line-height: 1.1;
}
.modal_payment .rd-cash-head__sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* методы оплаты — вертикальный список горизонтальных карточек (как на макете):
   иконка слева, название, радио-точка справа */
.modal_payment .deposit__methods .grid { grid-template-columns: 1fr !important; gap: 10px !important; }
.modal_payment .depway,
.modal_payment .paymentsysdep {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    padding: 16px 46px 16px 16px !important;
    min-height: 64px !important;
    position: relative;
}
.modal_payment .depway img { margin: 0 12px 0 0 !important; height: 30px !important; flex-shrink: 0; }
.modal_payment .depway span { font-size: 14px !important; font-weight: 700 !important; }
.modal_payment .depway::before {
    content: ""; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
    width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--navy-3);
    transition: all var(--transition);
}
.modal_payment .depway.active::before {
    border-color: var(--btn-primary-to); background: var(--btn-primary-to);
    box-shadow: 0 0 0 3px rgba(178, 83, 255, 0.25);
}

/* вертикальный разделитель-полоса между левой и правой панелями (как на макете) */
.modal_payment .modal-deposit__sidebar { border-right: 1px solid rgba(255, 255, 255, 0.07) !important; }
/* убрать дубль-заголовок метода в правой панели (имя метода видно в списке слева) */
.modal_payment .modal-deposit__body-header .icon { display: none !important; }
.modal_payment .modal-deposit__body-header { min-height: 0 !important; margin-bottom: 4px !important; }
/* переключатель DEPOSIT/WITHDRAW под шапкой (макет) */
.modal_payment .rd-cash-toggle { background: var(--navy) !important; border-radius: var(--radius-lg) !important; padding: 5px !important; gap: 6px; margin-bottom: 16px !important; }
/* селектор валюты перенесён в правую панель (над суммой), как на макете */
.modal_payment .rd-cash-cur { margin-bottom: 16px !important; width: 100%; position: relative; }
.modal_payment .rd-cash-cur .v-select__button { padding: 13px 14px !important; }
/* компактно: без баланса (на макете только флаг+код+шеврон) */
.modal_payment .rd-cash-cur .thisbalance { display: none !important; }
/* dropdown — оверлеем, не толкает контент */
.modal_payment .rd-cash-cur .v-select__dropdown {
    position: absolute !important; left: 0; right: 0; top: calc(100% + 6px);
    z-index: 60 !important; max-height: 260px; overflow-y: auto;
    background: var(--navy-2) !important; border: 1px solid var(--navy-3) !important; border-radius: var(--radius-lg) !important;
    box-shadow: 0 20px 44px rgba(0,0,0,0.5);
}
.modal_payment .rd-cash-toggle .btn-deposit,
.modal_payment .rd-cash-toggle .btn-withdrawal { padding: 12px !important; font-size: 14px !important; font-weight: 800 !important; border-radius: var(--radius-md) !important; text-transform: uppercase; }

/* features-список (Secure & Safe / Instant Deposits / Best Payment Methods) — макет, левая панель */
.modal_payment .rd-cash-features { margin: 14px 0 6px; display: flex; flex-direction: column; gap: 12px; padding: 0 2px; }
.modal_payment .rd-cash-feat { display: flex; align-items: center; gap: 10px; }
.modal_payment .rd-cash-feat__ic { width: 22px; text-align: center; font-size: 16px; flex-shrink: 0; }
.modal_payment .rd-cash-feat__t { font-size: 13px; font-weight: 700; color: var(--text-primary); line-height: 1.2; }
.modal_payment .rd-cash-feat__s { font-size: 11px; color: var(--text-muted); line-height: 1.2; }


/* ===== RD CASHIER (new redesign modal, auto-generated) ===== */
/* ==========================================================================
 * RD CASHIER — стили (scoped под #rd_cashier). Токены заданы на корне.
 * Никаких зависимостей от старого CSS. Класс .modal-overlay НЕ используется.
 * ========================================================================== */
#rd_cashier{
  --bg:#141b2e; --panel:#1a2336; --input:#0e1525; --border:#232d44;
  --purpleA:#6C2CFF; --purpleB:#B253FF; --stroke:#EE82FF;
  --text:#ffffff; --text2:#a8aec2; --muted:#7f89a3; --accent-blue:#35abff;
  --success:#22C55E; --danger:#EF4444;
  position:fixed; inset:0; z-index:1000000;
  display:flex; align-items:center; justify-content:center;
  font-family:'Montserrat',-apple-system,Segoe UI,Roboto,sans-serif;
  color:var(--text); -webkit-font-smoothing:antialiased;
}
#rd_cashier *{ box-sizing:border-box; }
#rd_cashier.rd-open{ display:flex; }

#rd_cashier .rd-cashier__backdrop{
  position:absolute; inset:0; background:rgba(6,9,18,.45); backdrop-filter:blur(1px); -webkit-backdrop-filter:blur(1px);
}
#rd_cashier .rd-cashier__dialog{
  position:relative; width:880px; max-width:calc(100vw - 24px);
  max-height:calc(100vh - 32px); overflow:hidden;
  background:var(--bg); border-radius:16px; border:1px solid rgba(255,255,255,.06);
  box-shadow:0 30px 80px rgba(0,0,0,.55);
  display:grid; grid-template-columns:40% 60%;
  animation:rd-pop .18s ease;
}
@keyframes rd-pop{ from{ transform:translateY(8px) scale(.98); opacity:0; } to{ transform:none; opacity:1; } }

/* ---------- ЛЕВАЯ ПАНЕЛЬ ---------- */
#rd_cashier .rd-left{
  padding:22px 20px; border-right:1px solid rgba(255,255,255,.08);
  display:flex; flex-direction:column; gap:16px; overflow:hidden; position:relative;
}
/* Крестик на списке методов — только мобильный (десктоп закрывают X в шапке формы). */
#rd_cashier .rd-left__close{ display:none; }
#rd_cashier .rd-search{ position:relative; }
#rd_cashier .rd-search__ic{
  position:absolute; left:12px; top:50%; transform:translateY(-50%);
  width:18px; height:18px; color:var(--muted);
}
#rd_cashier .rd-search__inp{
  width:100%; height:44px; background:var(--input); border:1px solid var(--border);
  border-radius:10px; color:var(--text); font-size:14px; padding:0 12px 0 38px; outline:none;
}
#rd_cashier .rd-search__inp::placeholder{ color:var(--muted); }
#rd_cashier .rd-search__inp:focus{ border-color:var(--accent-blue); }

#rd_cashier .rd-tabs{ display:flex; gap:22px; border-bottom:1px solid var(--border); }
#rd_cashier .rd-tab{
  background:none; border:none; color:var(--muted); font-size:14px; font-weight:600;
  padding:8px 2px; cursor:pointer; position:relative; font-family:inherit;
}
#rd_cashier .rd-tab--active{ color:var(--text); font-weight:700; }
#rd_cashier .rd-tab--active::after{
  content:""; position:absolute; left:0; right:0; bottom:-1px; height:2px;
  background:var(--accent-blue); border-radius:2px;
}

#rd_cashier .rd-methods{ display:flex; flex-direction:column; gap:10px; flex:1 1 0; min-height:0; overflow-y:auto; }
#rd_cashier .rd-method{
  display:flex; align-items:center; gap:12px; width:100%;
  min-height:64px; padding:12px 14px; background:var(--panel);
  border:1.5px solid var(--border); border-radius:10px; cursor:pointer;
  text-align:left; font-family:inherit; transition:border-color .15s, background .15s;
}
#rd_cashier .rd-method:hover{ border-color:#31406b; }
#rd_cashier .rd-method--active{ border-color:var(--purpleB); background:#1d2740; }
#rd_cashier .rd-method__icon{ flex:0 0 30px; display:flex; align-items:center; gap:4px; }
#rd_cashier .rd-method__icon img{ width:30px; height:auto; max-height:24px; object-fit:contain; }
#rd_cashier .rd-method__icon--pair{ flex:0 0 auto; }
#rd_cashier .rd-method__icon--pair img{ width:24px; max-height:20px; }
#rd_cashier .rd-method__body{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
#rd_cashier .rd-method__title{ font-size:14px; font-weight:700; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#rd_cashier .rd-method__sub{ font-size:11px; color:var(--muted); }
#rd_cashier .rd-method__radio{
  flex:0 0 16px; width:16px; height:16px; border-radius:50%;
  border:2px solid var(--border); transition:.15s;
}
#rd_cashier .rd-method--active .rd-method__radio{
  border-color:var(--purpleB);
  background:radial-gradient(circle at center, var(--purpleB) 0 5px, transparent 6px);
}
#rd_cashier .rd-empty{ color:var(--muted); font-size:13px; padding:14px 4px; }

#rd_cashier .rd-features{ display:flex; flex-direction:column; gap:12px; margin-top:2px; }
#rd_cashier .rd-feature{ display:flex; align-items:center; gap:10px; }
#rd_cashier .rd-feature__ic{ font-size:18px; width:22px; text-align:center; }
#rd_cashier .rd-feature__body{ display:flex; flex-direction:column; }
#rd_cashier .rd-feature__body b{ font-size:13px; font-weight:700; color:var(--text); }
#rd_cashier .rd-feature__body i{ font-size:11px; font-style:normal; color:var(--muted); }

#rd_cashier .rd-history{
  margin-top:auto; display:flex; align-items:center; justify-content:center; gap:8px;
  width:100%; height:46px; background:var(--input); border:1px solid var(--border);
  border-radius:10px; color:var(--text2); font-size:13px; font-weight:600; cursor:pointer; font-family:inherit;
}
#rd_cashier .rd-history svg{ width:18px; height:18px; }
#rd_cashier .rd-history:hover{ border-color:#31406b; color:var(--text); }

/* ── RD cashier: бонус-карты (Casino / Sport) — перенос из модалки регистрации ── */
#rd_cashier .rd-bonus{ display:flex; gap:12px; }
#rd_cashier .rd-bcard{
  position:relative; flex:1 1 0; min-width:0;
  display:flex; flex-direction:column; align-items:center; gap:6px;
  padding:12px 10px; border-radius:16px;
  border:1.5px solid rgba(255,255,255,.12);
  background:transparent; cursor:pointer; text-align:center; overflow:hidden;
  font-family:inherit; transition:border-color .2s ease, transform .12s ease;
}
#rd_cashier .rd-bcard::before{ content:""; position:absolute; inset:0; z-index:0; opacity:.9; }
#rd_cashier .rd-bcard--casino::before{ background:radial-gradient(120% 100% at 50% 0%, #4a1d8f 0%, #2a1152 60%, #1a0c38 100%); }
#rd_cashier .rd-bcard--sport::before { background:radial-gradient(120% 100% at 50% 0%, #0f4e8f 0%, #0b2f5c 60%, #08203c 100%); }
#rd_cashier .rd-bcard > *{ position:relative; z-index:1; }
#rd_cashier .rd-bcard.is-active{ border-color:#9a6bff; }
#rd_cashier .rd-bcard--sport.is-active{ border-color:#4aa8ff; }
#rd_cashier .rd-bcard:active{ transform:scale(.98); }
#rd_cashier .rd-bcard__ic{ width:46px; height:46px; object-fit:contain; filter:drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
#rd_cashier .rd-bcard__label{ font-size:12px; font-weight:600; text-transform:uppercase; color:#fff; opacity:.8; letter-spacing:.01em; }
#rd_cashier .rd-bcard__vals{ display:flex; align-items:baseline; gap:6px; }
#rd_cashier .rd-bcard__pct{
  font-family:'Bounded','Montserrat',sans-serif; font-weight:700; font-size:20px; letter-spacing:-.01em;
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; color:transparent;
}
#rd_cashier .pct-casino{ background-image:linear-gradient(180deg, #8f5bff 0%, #c07dff 100%); }
#rd_cashier .pct-sport { background-image:linear-gradient(180deg, #0095FF 0%, #68C0FF 100%); }
#rd_cashier .rd-bcard__suf{ font-size:12px; font-weight:600; color:#fff; letter-spacing:-.02em; }
#rd_cashier .rd-bcard__hint{ font-size:10px; font-weight:500; color:rgba(255,255,255,.65); line-height:1; letter-spacing:.01em; margin-top:-2px; }
#rd_cashier .rd-sw{ margin-top:4px; width:40px; height:22px; border-radius:999px; background:rgba(255,255,255,.18); position:relative; transition:background .2s ease; }
#rd_cashier .rd-sw::after{ content:""; position:absolute; top:3px; left:3px; width:16px; height:16px; border-radius:50%; background:#fff; transition:left .2s ease; }
#rd_cashier .rd-bcard.is-active .rd-sw{ background:#7b3ff2; }
#rd_cashier .rd-bcard--sport.is-active .rd-sw{ background:#0d8bff; }
#rd_cashier .rd-bcard.is-active .rd-sw::after{ left:21px; }

/* ── Welcome-bonus попап (wb2) — новый тёмный стиль в духе кассы/модалок ── */
#wb_popup_overlay .wb2-card{
  position:relative; width:100%; background:#0f1520;
  border:1px solid rgba(124,58,237,.28); border-radius:20px; overflow:hidden;
  box-shadow:0 24px 60px -20px rgba(0,0,0,.7); font-family:'Montserrat',system-ui,sans-serif;
}
#wb_popup_overlay .wb2-close{
  position:absolute; top:12px; right:12px; z-index:3; width:32px; height:32px;
  display:flex; align-items:center; justify-content:center;
  background:rgba(10,14,22,.55); border:1px solid rgba(255,255,255,.12); border-radius:50%;
  color:#fff; font-size:20px; line-height:1; cursor:pointer; padding:0; transition:background .15s;
}
#wb_popup_overlay .wb2-close:hover{ background:rgba(10,14,22,.85); }
#wb_popup_overlay .wb2-banner{ position:relative; height:172px; overflow:hidden; }
#wb_popup_overlay .wb2-banner img{ width:100%; height:100%; object-fit:cover; display:block; }
#wb_popup_overlay .wb2-banner::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:70px;
  background:linear-gradient(180deg, rgba(15,21,32,0) 0%, #0f1520 100%);
}
#wb_popup_overlay .wb2-banner--empty{
  background:radial-gradient(120% 120% at 50% 0%, #4a1d8f 0%, #2a1152 55%, #0f1520 100%);
}
#wb_popup_overlay .wb2-body{ position:relative; padding:8px 22px 22px; display:flex; flex-direction:column; gap:9px; }
#wb_popup_overlay .wb2-eyebrow{
  display:inline-flex; align-items:center; gap:7px; font-size:12.5px; font-weight:600;
  text-transform:uppercase; letter-spacing:.03em; color:#9aa3b8;
}
#wb_popup_overlay .wb2-eyebrow__ic{ font-size:15px; }
#wb_popup_overlay .wb2-amount{
  font-weight:800; font-size:34px; line-height:1; letter-spacing:-.02em; color:#fff;
}
#wb_popup_overlay .wb2-sub{ font-size:14px; color:#8b93a8; line-height:1.4; }
#wb_popup_overlay .wb2-timer{
  align-self:flex-start; display:inline-flex; align-items:center; gap:7px;
  background:rgba(124,58,237,.14); border:1px solid rgba(124,58,237,.32); color:#c9a6ff;
  padding:6px 12px; border-radius:999px; font-size:13px; font-weight:600; margin-top:2px;
}
#wb_popup_overlay .wb2-timer__lbl{ opacity:.85; }
#wb_popup_overlay .wb2-timer #wb_popup_timer{ color:#fff; font-variant-numeric:tabular-nums; }
#wb_popup_overlay .wb2-btn{
  display:block; width:100%; height:52px; line-height:52px; text-align:center; margin-top:6px;
  background:linear-gradient(90deg,#7C3AED 0%,#B44BFF 100%); color:#fff; font-weight:700; font-size:15px;
  border-radius:12px; text-decoration:none; transition:filter .15s, transform .12s;
}
#wb_popup_overlay .wb2-btn:hover{ filter:brightness(1.08); }
#wb_popup_overlay .wb2-btn:active{ transform:scale(.99); }
@media (max-width:480px){
  #wb_popup_overlay .wb2-banner{ height:150px; }
  #wb_popup_overlay .wb2-amount{ font-size:30px; }
}

/* ---------- ПРАВАЯ ПАНЕЛЬ ---------- */
#rd_cashier .rd-right{ padding:22px 24px; display:flex; flex-direction:column; gap:14px; overflow-y:auto; }

#rd_cashier .rd-head{ display:flex; align-items:center; gap:12px; }
#rd_cashier .rd-head__logo{
  flex:0 0 40px; width:40px; height:40px;
  display:flex; align-items:center; justify-content:center;
}
#rd_cashier .rd-head__logo svg,
#rd_cashier .rd-head__logo img{ width:40px; height:40px; border-radius:10px; }
#rd_cashier .rd-head__titles{ flex:1; min-width:0; }
#rd_cashier .rd-head__title{
  margin:0; font-family:'Unbounded',sans-serif; font-weight:700; font-size:14px;
  text-transform:uppercase; letter-spacing:-0.42px; line-height:1;
}
#rd_cashier .rd-head__sub{ margin:4px 0 0; font-family:'Montserrat',sans-serif; font-weight:500; font-size:13px; line-height:18px; color:var(--muted); }
#rd_cashier .rd-head__close{
  flex:0 0 32px; width:32px; height:32px; border-radius:8px;
  background:var(--input); border:1px solid var(--border); color:var(--text2);
  cursor:pointer; display:flex; align-items:center; justify-content:center;
}
#rd_cashier .rd-head__close svg{ width:18px; height:18px; }
#rd_cashier .rd-head__close:hover{ color:var(--text); border-color:#31406b; }

#rd_cashier .rd-mode{
  display:flex; gap:8px; padding:0; background:transparent; border-radius:0;
}
#rd_cashier .rd-mode__btn{
  flex:1 1 0; height:35px; padding:10px 24px; border-radius:12px; cursor:pointer;
  background:transparent; border:0.5px solid transparent;
  color:#fff; font-family:'Unbounded',sans-serif; font-weight:700; font-size:12px;
  text-transform:uppercase; letter-spacing:-0.36px; line-height:1;
  display:flex; align-items:center; justify-content:center;
}
#rd_cashier .rd-mode__btn--active{
  background:#273852; border-color:#354362; color:#fff;
}

/* currency + amount row */
#rd_cashier .rd-amount-row{
  display:flex; align-items:center; gap:8px; padding:8px; background:var(--input);
  border:1px solid var(--border); border-radius:10px; overflow:visible;
}
#rd_cashier .rd-cur{ position:relative; flex:0 0 auto; }
#rd_cashier .rd-cur__btn{
  height:30px; display:flex; align-items:center; gap:6px; padding:6px 8px;
  background:#10131B; border:none; border-radius:8px;
  color:var(--text); font-family:'Montserrat',sans-serif; font-size:14px; font-weight:600;
  cursor:pointer; white-space:nowrap;
}
#rd_cashier .rd-cur__btn[disabled]{ cursor:default; }
#rd_cashier .rd-cur__flag{ width:20px; height:14px; border-radius:2px; }
#rd_cashier .rd-cur__chev{ width:12px; height:12px; color:var(--muted); transition:transform .15s; }
#rd_cashier .rd-cur--active .rd-cur__chev{ transform:rotate(180deg); }
#rd_cashier .rd-cur__dd{
  position:absolute; top:calc(100% + 6px); left:0; min-width:220px; max-height:260px; overflow-y:auto;
  background:var(--panel); border:1px solid var(--border); border-radius:10px; padding:6px;
  z-index:30; display:none; box-shadow:0 12px 30px rgba(0,0,0,.45);
}
#rd_cashier .rd-cur--active .rd-cur__dd{ display:block; }
#rd_cashier .rd-cur-opt{
  display:flex; align-items:center; gap:10px; width:100%; padding:9px 10px;
  background:none; border:none; color:var(--text); font-family:inherit; font-size:14px;
  cursor:pointer; border-radius:8px;
}
#rd_cashier .rd-cur-opt:hover{ background:var(--input); }
#rd_cashier .rd-cur-opt i{ width:20px; height:14px; border-radius:2px; }
#rd_cashier .rd-cur-opt__code{ font-weight:600; text-transform:uppercase; }
#rd_cashier .rd-cur-opt__sym{ margin-left:auto; color:var(--muted); }
#rd_cashier .rd-cur-opt__check{ width:16px; height:16px; color:var(--purpleB); opacity:0; }
#rd_cashier .rd-cur-opt--active .rd-cur-opt__check{ opacity:1; }

#rd_cashier .rd-amount{ flex:1; display:flex; align-items:center; gap:8px; padding:0 6px; min-width:0; }
#rd_cashier .rd-amount__flag{ display:none; }
#rd_cashier .rd-amount__inp{
  flex:1; height:30px; background:transparent; border:none; outline:none;
  color:var(--text); font-family:'Montserrat',sans-serif; font-size:15px; font-weight:600; min-width:0;
}
#rd_cashier .rd-amount__inp::placeholder{ color:var(--muted); font-weight:500; }

#rd_cashier .rd-receive{
  display:flex; align-items:center; justify-content:space-between;
  background:var(--input); border-radius:10px; padding:12px 14px;
}
#rd_cashier .rd-receive__label{ color:var(--muted); font-size:13px; }
#rd_cashier .rd-receive__val{ font-size:15px; font-weight:700; }
#rd_cashier .rd-receive__val b{ font-weight:700; }
#rd_cashier .rd-receive__cur{ color:var(--purpleB); }

#rd_cashier .rd-limit{ font-size:12px; color:var(--muted); padding:0 2px; }

/* чипы сумм — точно по Figma Dev Mode: h30, radius8, padding 6/8, gap6,
   bg navy-2 #25344C, текст Montserrat 500 14px #7F89A3, иконка-монета 14×14 */
#rd_cashier .rd-chips{ display:flex; flex-wrap:wrap; gap:6px; }
#rd_cashier .rd-chip{
  flex:1 1 0; min-width:0;
  height:30px; padding:6px 8px; gap:6px;
  display:flex; align-items:center; justify-content:center;
  background:#25344C; border:0; border-radius:8px;
  color:#7F89A3; font-family:'Montserrat',inherit; font-size:12px; font-weight:500; line-height:18px;
  cursor:pointer; transition:background .15s, color .15s;
}
#rd_cashier .rd-chip__ic{ flex:0 0 14px; width:14px; height:14px; opacity:.9; }
#rd_cashier .rd-chip:hover{ background:#2c3d59; color:#fff; }
#rd_cashier .rd-chip--active{ background:#2c3d59; color:#fff; }

/* card + withdraw fields */
#rd_cashier .rd-cardform,#rd_cashier .rd-witform,#rd_cashier .rd-tryname{ display:flex; flex-direction:column; gap:10px; }
#rd_cashier .rd-field{ display:flex; flex-direction:column; gap:5px; }
#rd_cashier .rd-field>span{ font-size:11px; color:var(--muted); padding-left:2px; }
#rd_cashier .rd-field-row{ display:flex; gap:10px; }
#rd_cashier .rd-field-row .rd-field{ flex:1; }
#rd_cashier .rd-input{
  height:46px; width:100%; background:var(--input); border:1px solid var(--border);
  border-radius:10px; color:var(--text); font-family:inherit; font-size:14px; padding:0 12px; outline:none;
}
#rd_cashier .rd-input:focus{ border-color:var(--accent-blue); }
#rd_cashier select.rd-input{ appearance:none; cursor:pointer; }
#rd_cashier .rd-check{ display:flex; align-items:center; gap:8px; font-size:12px; color:var(--text2); cursor:pointer; }
#rd_cashier .rd-check input{ width:16px; height:16px; accent-color:var(--purpleB); }
#rd_cashier .rd-note{ font-size:12px; color:var(--text2); background:var(--input); border-radius:10px; padding:12px; }

/* crypto deposit */
#rd_cashier .rd-crypto{ display:flex; flex-direction:column; align-items:center; gap:12px; }
#rd_cashier .rd-crypto__qr{ width:150px; height:150px; background:#fff; border-radius:12px; padding:8px; }
#rd_cashier .rd-crypto__qr img{ width:100%; height:100%; object-fit:contain; }
#rd_cashier .rd-crypto__addr{ width:100%; background:var(--input); border-radius:10px; padding:12px; display:flex; flex-direction:column; gap:4px; }
#rd_cashier .rd-crypto__label{ font-size:11px; color:var(--muted); }
#rd_cashier .rd-crypto__text{ font-size:13px; font-weight:600; word-break:break-all; }
#rd_cashier .rd-crypto__min{ font-size:12px; color:var(--text2); }

#rd_cashier .rd-warn{
  background:var(--input); border-radius:10px; padding:12px 14px; font-size:12px;
  color:var(--text2); line-height:1.5;
}
#rd_cashier .rd-warn__link{ color:#f4a202; text-decoration:none; font-weight:600; }
#rd_cashier .rd-warn__link:hover{ text-decoration:underline; }

/* перевод баланса (перенесено из старой #modal_payment) */
#rd_cashier .rd-transfer{ display:flex; flex-direction:column; gap:12px; }
#rd_cashier .rd-transfer__hint{ font-size:12px; color:var(--text2); line-height:1.5; }
#rd_cashier .rd-transfer__result{
  font-size:13px; font-weight:600; line-height:1.35; padding:12px; border-radius:10px;
}
#rd_cashier .rd-transfer__result--ok{ background:rgba(29,74,42,.55); color:#b4ffb4; }
#rd_cashier .rd-transfer__result--err{ background:rgba(74,29,36,.55); color:#ffb4b4; }

/* тумблер Карта/IBAN в форме вывода (валюты с IBAN, напр. TRY) */
#rd_cashier .rd-wit-cred{ display:flex; gap:6px; margin-bottom:2px; }
#rd_cashier .rd-wit-cred__tab{
  flex:1; padding:8px; border-radius:8px; border:1px solid var(--border);
  background:transparent; color:var(--text2); cursor:pointer; font-size:12px; font-weight:600;
  font-family:inherit; transition:.15s;
}
#rd_cashier .rd-wit-cred__tab:hover{ border-color:#31406b; }
#rd_cashier .rd-wit-cred__tab--active{ background:var(--purpleB,#7c4dff); border-color:var(--purpleB,#7c4dff); color:#fff; }

/* стилизованный confirm вывода с бонусами (1:1 со старой модалкой) */
#rd_cashier .rd-confirm{
  position:absolute; inset:0; z-index:30; display:flex; align-items:center; justify-content:center;
  background:rgba(3,7,18,.78); padding:20px;
}
#rd_cashier .rd-confirm__box{
  position:relative; width:100%; max-width:420px; border:1px solid rgba(255,255,255,.08);
  border-radius:16px; padding:26px 22px 24px; box-shadow:0 24px 60px rgba(0,0,0,.55);
  background:radial-gradient(120% 78% at 50% -6%, rgba(245,165,9,.12), transparent 58%), var(--bg);
}
#rd_cashier .rd-confirm__close{
  position:absolute; top:14px; right:14px; width:30px; height:30px; border-radius:8px;
  background:var(--input); border:1px solid var(--border); color:var(--text2); cursor:pointer;
  display:flex; align-items:center; justify-content:center;
}
#rd_cashier .rd-confirm__close:hover{ color:var(--text); border-color:#31406b; }
#rd_cashier .rd-confirm__ic{
  display:flex; justify-content:center; margin:8px 0 16px;
  filter:drop-shadow(0 10px 22px rgba(245,165,9,.35));
}
#rd_cashier .rd-confirm__title{
  font-size:19px; font-weight:800; color:var(--text); text-align:center;
  margin-bottom:6px; letter-spacing:.2px;
}
#rd_cashier .rd-confirm__text{ font-size:13px; color:var(--text2); text-align:center; margin-bottom:16px; }
#rd_cashier .rd-confirm__list{ list-style:none; margin:0 0 18px; padding:0; display:flex; flex-direction:column; gap:8px; }
#rd_cashier .rd-confirm__list li{
  position:relative; background:var(--input); border-radius:10px; padding:11px 14px 11px 30px;
  font-size:13px; color:var(--text); line-height:1.35;
}
#rd_cashier .rd-confirm__list li::before{
  content:''; position:absolute; left:13px; top:50%; transform:translateY(-50%);
  width:7px; height:7px; border-radius:50%; background:var(--purpleB);
}
#rd_cashier .rd-confirm__actions{ display:flex; gap:10px; }
#rd_cashier .rd-confirm__btn{
  flex:1; height:46px; border-radius:10px; cursor:pointer; font-family:inherit; font-weight:700; font-size:13px;
  border:1px solid var(--border); background:var(--input); color:var(--text); transition:.15s;
}
#rd_cashier .rd-confirm__btn--ghost:hover{ border-color:#31406b; }
#rd_cashier .rd-confirm__btn--primary{ border:0; color:#fff; background:linear-gradient(135deg,var(--purpleA),var(--purpleB)); }
#rd_cashier .rd-confirm__btn--primary:hover{ filter:brightness(1.08); }

/* ===== Модалка выхода (#modal_auth_logout) по макету дизайнера (Figma) ===== */
/* wrapper: убираем серый фон (--bg_primary__100), иначе его скруглённые углы
   торчат серыми дугами под растворяющимся низом карточки. Ширина ~387px. */
#modal_auth_logout .modal-base__wrapper{
  width:387px; max-width:calc(100vw - 24px); background:transparent; border-radius:16px;
}
/* карточка: паттерн сверху + растворение в фон сайта снизу.
   Верхний padding уменьшен (12px): у самой SVG-иконки есть внутренний
   отступ сверху, поэтому визуально верх выравнивается с боками (28px). */
#modal_auth_logout .modal-base{
  padding:12px 28px 28px; border:0; box-shadow:none; border-radius:16px;
  background:
    url('/templates/redesign/img/modal-pattern.png') top center / 100% auto no-repeat,
    linear-gradient(180deg, #182238 0%, #0F1626 46%, var(--background, #0B111E) 100%);
}
/* закрытие — абсолютно в углу, не занимает высоту (симметрия сверху) */
#modal_auth_logout .modal-base__header{ position:absolute; top:16px; right:16px; margin:0; width:auto; z-index:2; }
.rd-modal-close{ background:none; border:0; padding:0; line-height:0; cursor:pointer; opacity:.85; transition:opacity .15s; }
.rd-modal-close:hover{ opacity:1; }
/* контент: центр, пропорциональные вертикальные отступы */
#modal_auth_logout .rd-logout{ display:flex; flex-direction:column; align-items:center; }
#modal_auth_logout .rd-logout__ic{ width:150px; height:auto; margin:0 0 20px; filter:drop-shadow(0 12px 26px rgba(178,83,255,.4)); }
#modal_auth_logout .rd-logout__title{
  font-family:'Unbounded',sans-serif; font-weight:800; font-size:16px; line-height:1;
  letter-spacing:-0.01em; text-transform:uppercase; text-align:center; color:#fff; margin:0 0 12px;
}
#modal_auth_logout .rd-logout__text{
  font-family:'Montserrat',sans-serif; font-weight:600; font-size:14px; line-height:1;
  letter-spacing:0; text-align:center; color:var(--text2,#a8aec2); margin:0 0 26px;
}
#modal_auth_logout .rd-logout__actions{ display:grid; grid-template-columns:1fr 1fr; gap:12px; width:100%; }
#modal_auth_logout .rd-btn-stay,
#modal_auth_logout .rd-btn-exit{
  height:44px; border-radius:12px; font-weight:700; font-size:14px; color:#fff;
  display:flex; align-items:center; justify-content:center; cursor:pointer; text-decoration:none;
}
#modal_auth_logout .rd-btn-stay{
  border:0.5px solid transparent;
  background:linear-gradient(180deg,#6C2CFF 0%,#B253FF 100%) padding-box,
            linear-gradient(180deg,#D080FF 0%,#EEB2FF 100%) border-box;
}
#modal_auth_logout .rd-btn-stay:hover{ filter:brightness(1.08); }
#modal_auth_logout .rd-btn-exit{ background:#3a4152; border:0.5px solid rgba(255,255,255,.14); }
#modal_auth_logout .rd-btn-exit:hover{ background:#434b60; }

#require2fa_modal .modal-base__wrapper,
#modal_terminate_session .modal-base__wrapper {
  width:387px; max-width:calc(100vw - 24px); background:transparent; border-radius:16px;
}
#require2fa_modal .modal-base,
#modal_terminate_session .modal-base {
  padding:12px 28px 28px; border:0; box-shadow:none; border-radius:16px;
  background:
    url('/templates/redesign/img/modal-pattern.png') top center / 100% auto no-repeat,
    linear-gradient(180deg, #182238 0%, #0F1626 46%, var(--background, #0B111E) 100%);
}
#require2fa_modal .modal-base__header,
#modal_terminate_session .modal-base__header { position:absolute; top:16px; right:16px; margin:0; width:auto; z-index:2; }
#require2fa_modal .rd-logout,
#modal_terminate_session .rd-logout { display:flex; flex-direction:column; align-items:center; }
#require2fa_modal .rd-logout__ic,
#modal_terminate_session .rd-logout__ic { width:150px; height:auto; margin:0 0 20px; filter:drop-shadow(0 12px 26px rgba(178,83,255,.4)); }
#require2fa_modal .rd-logout__title,
#modal_terminate_session .rd-logout__title {
  font-family:'Unbounded',sans-serif; font-weight:800; font-size:16px; line-height:1;
  letter-spacing:-0.01em; text-transform:uppercase; text-align:center; color:#fff; margin:0 0 12px;
}
#require2fa_modal .rd-logout__text,
#modal_terminate_session .rd-logout__text {
  font-family:'Montserrat',sans-serif; font-weight:600; font-size:14px; line-height:1.4;
  letter-spacing:0; text-align:center; color:var(--text2,#a8aec2); margin:0 0 26px;
}
#modal_terminate_session .rd-logout__actions { display:grid; grid-template-columns:1fr 1fr; gap:12px; width:100%; }
#modal_terminate_session .rd-btn-stay,
#modal_terminate_session .rd-btn-exit {
  height:44px; border-radius:12px; font-weight:700; font-size:14px; color:#fff;
  display:flex; align-items:center; justify-content:center; cursor:pointer; text-decoration:none; border:none;
}
#modal_terminate_session .rd-btn-stay {
  border:0.5px solid transparent;
  background:linear-gradient(180deg,#6C2CFF 0%,#B253FF 100%) padding-box,
            linear-gradient(180deg,#D080FF 0%,#EEB2FF 100%) border-box;
}
#modal_terminate_session .rd-btn-exit { background:#3a4152; border:0.5px solid rgba(255,255,255,.14); }

#rd_cashier .rd-btn{
  height:52px; width:100%; border:none; border-radius:12px; cursor:pointer;
  font-family:'Unbounded',sans-serif; font-size:14px; font-weight:700;
  text-transform:uppercase; letter-spacing:.5px; color:#fff;
  display:flex; align-items:center; justify-content:center; gap:8px;
}
#rd_cashier .rd-btn--primary{ background:linear-gradient(135deg,var(--purpleA),var(--purpleB)); }
#rd_cashier .rd-btn--primary:hover{ filter:brightness(1.08); }
#rd_cashier .rd-btn--primary:disabled{ opacity:.6; cursor:default; filter:none; }
#rd_cashier .rd-btn--ghost{ background:var(--input); border:1px solid var(--border); color:var(--text); font-family:'Montserrat',sans-serif; font-size:13px; text-transform:none; letter-spacing:0; }
#rd_cashier .rd-btn--ghost:hover{ border-color:var(--purpleB); }

/* toast */
#event_message .v-toast,
#error_message .v-toast {
    background: var(--navy-2) !important;
    border-radius: 8px !important;
    padding: 8px 14px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.4) !important;
    overflow: hidden !important;
}
#event_message .event_message,
#error_message .error_message {
    font-size: 16px !important;
    font-weight: 500 !important;
    color: var(--text-secondary) !important;
    line-height: 18px !important;
}
#event_message .v-toast > [class*="bg-opacity"],
#error_message .v-toast > [class*="bg-opacity"] {
    display: none !important;
}
#rd_cashier .rd-toast {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--navy-2);
    border-radius: 12px;
    padding: 8px 14px;
    z-index: 50;
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
    color: var(--text-secondary);
    font-size: 14px;
}

/* адаптив */
@media (max-width:760px){
  #rd_cashier .rd-cashier__dialog{ grid-template-columns:1fr; max-height:calc(100vh - 16px); overflow-y:auto; }
  #rd_cashier .rd-left{ border-right:none; border-bottom:1px solid rgba(255,255,255,.08); }
  /* На мобильном радио-кружок сбивает с толку (метод уже «выбран», юзер не понимает
     куда жать) — прячем; выбранный метод и так подсвечен рамкой/фоном .rd-method--active. */
  #rd_cashier .rd-method__radio{ display:none; }
  /* Крестик закрытия на экране списка методов (на мобильном его не было — закрыть можно
     было только войдя в форму). Абсолютно в правом верхнем углу левой панели. */
  #rd_cashier .rd-left__close{
    display:flex; align-items:center; justify-content:center;
    position:absolute; top:12px; right:12px; z-index:6;
    width:34px; height:34px; padding:0; border:none; border-radius:9px;
    background:rgba(255,255,255,.06); color:var(--muted); cursor:pointer;
  }
  #rd_cashier .rd-left__close svg{ width:18px; height:18px; }
  #rd_cashier .rd-left__close:hover{ color:var(--text); background:rgba(255,255,255,.12); }
  /* Тумблер Пополнение/Вывод — вверху левой панели; крестик закрытия абсолютно в правом
     верхнем углу → оставляем справа место (34px кнопка + 12px отступ), чтобы «ВЫВОД» не
     залезал под крестик. !important — перебить общий «.rd-mode{padding:0 !important}». */
  #rd_cashier .rd-left > .rd-mode{ padding-right:46px !important; }
}
@media (max-width:640px){
  #rd_cashier .rd-cashier__dialog{ grid-template-columns:1fr; max-width:calc(100vw - 16px); max-height:calc(100vh - 16px); overflow-y:auto; }
  #rd_cashier .rd-left{ border-right:none; border-bottom:1px solid rgba(255,255,255,.08); padding:18px 16px; }
  #rd_cashier .rd-right{ padding:18px 16px; }
}
/* ── RD cashier: подгонка левого блока/карточек под макет Figma ── */
#rd_cashier .rd-cashier__dialog{ grid-template-columns:42% 58%; }
#rd_cashier .rd-method{ min-height:72px; padding:14px 16px; border-radius:12px; gap:14px; }
#rd_cashier .rd-method__icon{ flex:0 0 40px; width:40px; height:40px; justify-content:center; background:rgba(255,255,255,.04); border-radius:9px; }
#rd_cashier .rd-method__icon img{ width:26px; max-height:26px; }
#rd_cashier .rd-method__icon--pair{ background:none; width:auto; gap:3px; }
#rd_cashier .rd-method__icon--pair img{ width:24px; max-height:22px; }
#rd_cashier .rd-method__title{ font-size:14.5px; }
#rd_cashier .rd-method__sub{ font-size:11.5px; }

/* ── RD cashier: crypto-вкладка — 2-колоночная сетка монет (под макет) ── */
#rd_cashier .rd-methods[data-kind="crypto"]{ display:grid; grid-template-columns:1fr 1fr; gap:10px; align-content:start; }
#rd_cashier .rd-methods[data-kind="crypto"] .rd-method{ min-height:60px; padding:11px 12px; gap:10px; }
#rd_cashier .rd-methods[data-kind="crypto"] .rd-method__icon{ flex:0 0 30px; width:30px; height:30px; }
#rd_cashier .rd-methods[data-kind="crypto"] .rd-method__icon img{ width:22px; max-height:22px; }
#rd_cashier .rd-methods[data-kind="crypto"] .rd-method__title{ font-size:13px; }

/* ── RD cashier: разделитель панелей — полновысотная линия с воздухом (под макет) ── */
#rd_cashier .rd-cashier__dialog{ position:relative; }
#rd_cashier .rd-left{ border-right:none !important; padding-right:22px; }
#rd_cashier .rd-right{ padding-left:26px; }
#rd_cashier .rd-cashier__dialog::after{
  content:""; position:absolute; top:20px; bottom:20px; left:42%;
  width:1px; background:rgba(255,255,255,.08); pointer-events:none;
}

/* ── RD cashier: точные значения из Figma Dev Mode ── */
#rd_cashier .rd-left{ padding:16px !important; gap:14px; }
#rd_cashier .rd-right{ padding:16px 20px !important; }
#rd_cashier .rd-methods[data-kind="fiat"] .rd-method{ min-height:92px !important; padding:16px !important; }
#rd_cashier .rd-methods[data-kind="withdraw"] .rd-method{ min-height:92px !important; padding:16px !important; }

/* ── RD cashier: ДВА ОТДЕЛЬНЫХ блока с прозрачным зазором (видно фон позади) ── */
#rd_cashier .rd-cashier__dialog{
  background:none !important; border:none !important; box-shadow:none !important;
  display:flex !important; grid-template-columns:none !important;
  gap:16px !important; width:auto !important; max-width:calc(100vw - 24px);
  overflow:visible !important;
}
#rd_cashier .rd-cashier__dialog::after{ display:none !important; }
#rd_cashier .rd-left,
#rd_cashier .rd-right{
  background:#0b111e !important; border:1px solid rgba(255,255,255,.06) !important;
  border-radius:16px !important; box-shadow:0 24px 60px rgba(0,0,0,.5);
  max-height:calc(100vh - 32px); overflow-y:auto;
}
#rd_cashier .rd-left{ flex:0 0 348px; padding:16px !important; }
#rd_cashier .rd-right{ flex:0 0 490px; padding:16px 20px !important; }

/* ── RD cashier: точные размеры блоков и крипто-карточек (Figma Dev Mode) ── */
#rd_cashier .rd-left{ flex:0 0 340px !important; }
#rd_cashier .rd-right{ flex:0 0 381px !important; }
/* крипто-карточки 147x94, вертикальные: иконка сверху, радио в углу, текст снизу */
#rd_cashier .rd-methods[data-kind="crypto"]{ grid-template-columns:1fr 1fr; gap:12px; }
#rd_cashier .rd-methods[data-kind="crypto"] .rd-method{
  flex-direction:column !important; align-items:flex-start !important; justify-content:flex-start !important;
  min-height:94px !important; padding:12px !important; position:relative; gap:8px !important;
}
#rd_cashier .rd-methods[data-kind="crypto"] .rd-method__icon{ flex:0 0 auto; width:34px; height:34px; }
#rd_cashier .rd-methods[data-kind="crypto"] .rd-method__body{ width:100%; }
#rd_cashier .rd-methods[data-kind="crypto"] .rd-method__radio{ position:absolute; top:12px; right:12px; }

/* ── RD cashier: точные размеры (Figma) — переключатель 164.5x35, fiat-карточка 300x94 ── */
#rd_cashier .rd-mode{ padding:0 !important; }
/* 3 таба (DEPOSIT/WITHDRAW/ПЕРЕВОД) — узкий паддинг + min-width:0, чтобы влезли без обреза */
#rd_cashier .rd-mode__btn{ height:35px !important; font-size:11px !important; padding:10px 6px !important; min-width:0 !important; white-space:nowrap; }

/* ── РЕЖИМ ПЕРЕВОДА: single-column (левая панель методов не нужна) ── */
#rd_cashier.rd-transfer-mode .rd-left{ display:none; }
#rd_cashier.rd-transfer-mode .rd-cashier__dialog{ grid-template-columns:1fr !important; width:460px; }
#rd_cashier .rd-methods[data-kind="fiat"] .rd-method{ min-height:94px !important; }
#rd_cashier .rd-methods[data-kind="wit-fiat"] .rd-method{ min-height:94px !important; }

/* ── RD cashier: под-табы вкладки Crypto (Crypto | Cryptobot | xRocket) ── */
#rd_cashier .rd-subtabs{
  display:flex; gap:4px; padding:3px; box-sizing:border-box;
  height:31px; margin:0 0 4px; flex:0 0 auto;
  background:#0e1525; border:1px solid #232d44; border-radius:10px;
}
#rd_cashier .rd-subtab{
  flex:1 1 0; height:100%; border:0; cursor:pointer; padding:0;
  background:transparent; color:#7f89a3;
  font:600 12px/1 inherit; border-radius:7px;
  display:flex; align-items:center; justify-content:center;
  transition:background .15s ease, color .15s ease;
}
#rd_cashier .rd-subtab:hover{ color:#c7cede; }
#rd_cashier .rd-subtab--active{ background:#1e2a44; color:#fff; }

/* ── RD cashier: сетка монет одинаково для депозита и вывода (класс rd-coins) ── */
/* без !important: иначе перебивает инлайновый display:none от JS и сетка «просвечивает» на всех вкладках */
#rd_cashier .rd-methods.rd-coins{ display:grid; grid-template-columns:1fr 1fr; gap:12px; align-content:start; }
#rd_cashier .rd-methods.rd-coins .rd-method{
  flex-direction:column !important; align-items:flex-start !important; justify-content:flex-start !important;
  min-height:94px !important; padding:12px !important; position:relative; gap:8px !important;
}
#rd_cashier .rd-methods.rd-coins .rd-method__icon{ flex:0 0 auto; width:34px; height:34px; }
#rd_cashier .rd-methods.rd-coins .rd-method__body{ width:100%; }
#rd_cashier .rd-methods.rd-coins .rd-method__radio{ position:absolute; top:12px; right:12px; }

/* ── RD cashier: левый блок тянется на высоту правого (Figma Fill), скролл списка внутри ── */
#rd_cashier .rd-left{
  display:flex !important; flex-direction:column !important;
  max-height:min(600px, calc(100vh - 40px)) !important; overflow:hidden !important;
}
#rd_cashier .rd-left > .rd-mode,
#rd_cashier .rd-left > .rd-search,
#rd_cashier .rd-left > .rd-tabs,
#rd_cashier .rd-left > .rd-subtabs{ flex:0 0 auto; }
/* Тумблер Пополнение/Вывод в ЛЕВОЙ панели (редизайн): полная ширина, отступ снизу. */
#rd_cashier .rd-left > .rd-mode{ margin-bottom:4px; }
#rd_cashier .rd-left > .rd-methods{ flex:1 1 auto; min-height:0; overflow-y:auto; overflow-x:hidden; }
#rd_cashier .rd-left > .rd-features{ flex:0 0 auto; margin-top:12px; }
#rd_cashier .rd-left > .rd-bonus{ flex:0 0 auto; margin-top:auto; padding-top:12px; }
#rd_cashier .rd-left > .rd-history{ flex:0 0 auto; margin-top:10px; }

/* предупреждение о неверных реквизитах (вывод-крипто) */
#rd_cashier .rd-warn--alert{ color:#e7b93b; }

/* ── RD cashier: высота по КОНТЕНТУ (Figma Hug), НЕ фиксированная ──
   Правый — по своему контенту (скролл только если выше вьюпорта). Левый (выше) —
   hug до 514 со скроллом списка внутри. Модалку тянем к верху (#rd_cashier ниже),
   поэтому смена режима/метода не «прыгает»: верхний край остаётся на месте. */
#rd_cashier .rd-right{
  height:auto !important; max-height:min(600px, calc(100vh - 40px)) !important;
  overflow-y:auto !important; overflow-x:hidden;
}
/* блоки РАВНОЙ высоты: левый тянется на высоту правого (Figma «588 Fill») */
#rd_cashier .rd-cashier__dialog{ align-items:stretch !important; }
/* модалку притягиваем к ВЕРХУ (не центр): контент растёт/сжимается вниз, без «прыжка» */
#rd_cashier{ align-items:flex-start !important; overflow-y:auto; padding:max(24px, calc(50vh - 320px)) 12px 24px !important; }

/* подсказка «выберите монету/сеть» вместо QR (крипто-депозит до клика по монете) */
#rd_cashier .rd-crypto-hint{
  flex:1 1 auto; display:flex; align-items:center; justify-content:center;
  text-align:center; color:var(--muted); font-size:13px; padding:24px; min-height:200px;
}

/* ── RD cashier: табы Fiat/Crypto по 50% (равные половины) ── */
#rd_cashier .rd-tabs{ gap:0 !important; }
#rd_cashier .rd-tab{ flex:1 1 0 !important; text-align:center; padding:8px 0 !important; }

/* поле «Сумма к списанию» (read-only, авто) */
#rd_cashier .rd-input--ro{
  display:flex; align-items:center; color:var(--text2);
  background:var(--input); border:1px solid var(--border); border-radius:10px;
  height:46px; padding:0 14px; font-size:14px;
}

/* ── RD cashier: крипто-карточки ТОЧНО по Figma Dev Mode (deposit И withdraw одинаково) ──
   Карточка 147×94, radius 8, bg #172233 (--surface). Иконка 24×24. Всё на .rd-coins
   (есть у обеих сеток) и идёт последним, перекрывая старые [data-kind="crypto"]-правила. */
#rd_cashier .rd-methods.rd-coins .rd-method{
  flex-direction:column !important; align-items:flex-start !important; justify-content:center !important;
  min-height:94px !important; height:94px; padding:14px !important; gap:6px !important; position:relative;
  background:#172233 !important; border-radius:8px !important;
}
#rd_cashier .rd-methods.rd-coins .rd-method__icon{ flex:0 0 24px !important; width:24px !important; height:24px !important; background:none !important; }
#rd_cashier .rd-methods.rd-coins .rd-method__icon img{ width:24px !important; height:24px !important; max-height:24px !important; }
#rd_cashier .rd-methods.rd-coins .rd-method__body{ width:100%; display:flex; flex-direction:column; gap:2px; }
#rd_cashier .rd-methods.rd-coins .rd-method__title{ font-size:13px !important; font-weight:700; line-height:1.1; }
#rd_cashier .rd-methods.rd-coins .rd-method__sub{ font-size:11px; color:var(--muted); line-height:1.1; }
#rd_cashier .rd-methods.rd-coins .rd-method__radio{ position:absolute; top:12px; right:12px; }

/* правый блок теперь по контенту → кнопка сабмита и так всегда видна (sticky не нужен) */
#rd_cashier .rd-right{ padding-bottom:16px !important; }

/* ── RD cashier: фон-сундук в правом-нижнем углу левого блока (Figma «deposite_bg») ──
   Чистый ФОН (не отдельный блок): контент идёт сверху, сундук — фоном в пустоте снизу-справа.
   Longhand (не shorthand background:) чтобы не сбросить background-image более ранним `background:#141b2e`. */
#rd_cashier .rd-left{
  background-color:#0b111e !important;
  background-image:none !important; /* сундук убран: снизу теперь бонус-карты Casino/Sport */
}
/* методы не растягиваются — контент вверху, снизу бонус-карты (margin-top:auto) */
#rd_cashier .rd-left > .rd-methods{ flex:0 1 auto !important; }

/* адаптив: на узких экранах меньший верхний отступ, блоки тянутся по контенту */
@media (max-width:760px){
  #rd_cashier{ padding:16px 8px !important; }
  #rd_cashier .rd-left{ max-height:none !important; overflow:visible !important; background-size:auto 120px !important; }
  #rd_cashier .rd-left > .rd-methods{ overflow:visible !important; }
  #rd_cashier .rd-right{ max-height:none !important; overflow:visible !important; }
}

/* ── RD cashier: фон полей ввода/сумм = #172233 (Figma surface) ──
   Сумма, «Вы получите», адрес кошелька/карта, «Сумма к списанию», поиск. */
#rd_cashier .rd-amount-row,
#rd_cashier .rd-input,
#rd_cashier .rd-input--ro,
#rd_cashier .rd-receive,
#rd_cashier .rd-search__inp{ background:#172233 !important; }

/* ── RD cashier: выпадашки монета + сеть (крипто, как в макете) ── */
#rd_cashier .rd-cnrow{ display:flex; gap:8px; }
#rd_cashier .rd-cndd{ position:relative; flex:1 1 0; min-width:0; }
#rd_cashier .rd-cndd__btn{
  width:100%; height:50px; display:flex; align-items:center; gap:8px; padding:0 12px;
  background:#172233; border:1px solid var(--border); border-radius:10px;
  color:var(--text); font-family:'Montserrat',sans-serif; font-size:14px; font-weight:600; cursor:pointer;
}
#rd_cashier .rd-cndd__ic{ width:22px; height:22px; flex:0 0 22px; border-radius:50%; object-fit:contain; }
#rd_cashier .rd-cndd__name{ flex:1; text-align:left; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#rd_cashier .rd-cndd__chev{ width:12px; height:12px; flex:0 0 12px; color:var(--muted); transition:transform .15s; }
#rd_cashier .rd-cndd--open .rd-cndd__chev{ transform:rotate(180deg); }
#rd_cashier .rd-cndd__list{
  position:absolute; top:calc(100% + 6px); left:0; right:0; z-index:40;
  background:var(--panel); border:1px solid var(--border); border-radius:10px; padding:6px;
  max-height:240px; overflow-y:auto; display:none; box-shadow:0 12px 30px rgba(0,0,0,.45);
}
#rd_cashier .rd-cndd--open .rd-cndd__list{ display:block; }
#rd_cashier .rd-cndd__opt{
  width:100%; display:flex; align-items:center; gap:8px; padding:8px 10px;
  background:none; border:none; border-radius:8px; color:var(--text);
  font-family:'Montserrat',sans-serif; font-size:14px; cursor:pointer;
}
#rd_cashier .rd-cndd__opt:hover{ background:#1e2a44; }
#rd_cashier .rd-cndd__opt img{ width:20px; height:20px; border-radius:50%; object-fit:contain; }

/* ── RD cashier: плавное затухание нижнего края — ТОЛЬКО у длинных сеток монет ──
   (у короткого фиат-списка градиент лишний и «съедал» карточку). */
#rd_cashier .rd-left > .rd-methods.rd-coins{
  -webkit-mask-image:linear-gradient(to bottom, #000 calc(100% - 18px), transparent 100%);
          mask-image:linear-gradient(to bottom, #000 calc(100% - 18px), transparent 100%);
}

/* лого Visa/Mastercard (pay-logo.svg = MC, pay-logo-1.svg = VISA; нативно 54×22) */
#rd_cashier .rd-method__icon--pair{ flex:0 0 auto !important; width:auto !important; background:none !important; gap:6px; }
#rd_cashier .rd-method__icon--pair img{ width:auto !important; height:22px !important; max-height:22px !important; max-width:none !important; }

/* ── RD cashier: поля с иконкой внутри + плейсхолдер (Figma) ── */
#rd_cashier .rd-field--icon{ position:relative; display:block; }
#rd_cashier .rd-field--icon .rd-field__ic{
  position:absolute; left:14px; top:50%; transform:translateY(-50%);
  width:18px; height:18px; pointer-events:none;
}
#rd_cashier .rd-field--icon .rd-input{ padding-left:44px; }
#rd_cashier .rd-input::placeholder,
#rd_cashier .rd-amount__inp::placeholder{
  font-family:'Montserrat',sans-serif; font-weight:500; font-size:14px; line-height:18px; color:#7F89A3;
}

/* фичи: SVG-иконки 16×16 вместо эмодзи */
#rd_cashier .rd-feature__ic{ width:16px; height:16px; flex:0 0 16px; font-size:0; text-align:left; }

/* «Сохранить данные карты» — в макете нет, прячем (инпут остаётся в DOM → submit не ломается) */
#rd_cashier .rd-check{ display:none !important; }

/* карточка метода: неактивная #172233 (surface), АКТИВНАЯ #25344C (navy-2) — Figma.
   2 класса + позже всех правил фона → перекрывает и fiat, и .rd-coins. */
#rd_cashier .rd-methods .rd-method--active{ background:#25344C !important; }

/* правая панель: депозит-карта плотнее (много полей → влезть без скролла),
   вывод — просторнее (полей меньше, было «сплюснуто»). */
#rd_cashier .rd-right{ gap:11px !important; }
#rd_cashier .rd-cardform{ gap:8px !important; }
#rd_cashier .rd-witform{ gap:12px !important; }
/* поля ВНУТРИ группы вывода (номер/банк/владелец) — у .rd-wgroup не было CSS,
   поля липли впритык («сплюснуто»). Даём flex-колонку с зазором. */
#rd_cashier .rd-wgroup{ display:flex; flex-direction:column; gap:12px; }

/* сундук-фон — ТОЛЬКО в депозите (в выводе картинки нет по макету) */
#rd_cashier.rd-withdraw .rd-left{ background-image:none !important; }
/* бонус-карты только на пополнении — на выводе скрываем */
#rd_cashier.rd-withdraw .rd-bonus{ display:none !important; }

/* инфо-блок вывода cryptobot/xrocket (Figma): голубой фон #35ABFF1A, иконка «i» */
#rd_cashier .rd-note{
  display:flex; align-items:flex-start; gap:8px; padding:8px; border-radius:8px;
  background:rgba(53,171,255,.10) !important; border:none !important;
  font-family:'Montserrat',sans-serif; font-size:13px; line-height:18px; color:var(--text2);
}
#rd_cashier .rd-note__ic{ flex:0 0 16px; width:16px; height:16px; margin-top:1px; }
#rd_cashier .rd-note__txt{ flex:1; min-width:0; }

/* курс (cryptobot/xrocket вывод) */
#rd_cashier .rd-rate{ font-size:12px; color:var(--muted); padding:0 2px; }

/* «Вы получите» — весь блок как в макете: Montserrat 500 14px #7F89A3 (не жирный/фиолетовый) */
#rd_cashier .rd-receive__label,
#rd_cashier .rd-receive__val,
#rd_cashier .rd-receive__val b,
#rd_cashier .rd-receive__cur{
  font-family:'Montserrat',sans-serif !important; font-weight:500 !important;
  font-size:14px !important; line-height:18px !important; color:#7F89A3 !important;
}

/* порядок блоков для cryptobot/xrocket вывода: текст(note, order0) → сумма → чипы → приём → курс → кнопка */
#rd_cashier.rd-tgflow .rd-amount-row{ order:1; }
#rd_cashier.rd-tgflow .rd-chips{ order:2; }
#rd_cashier.rd-tgflow .rd-receive{ order:3; }
#rd_cashier.rd-tgflow #rd_wit_rate{ order:4; }
#rd_cashier.rd-tgflow #rd_submit{ order:9; }

/* ВЫВОД: левый блок НЕ тянется на правый — по контенту (короткий), как в макете.
   (В депозите — тянется: там фичи+сундук, align-items:stretch с базового правила.) */
#rd_cashier.rd-withdraw .rd-cashier__dialog{ align-items:flex-start !important; }
#rd_cashier .rd-field-row{ gap:8px !important; }
#rd_cashier .rd-receive{ padding:10px 14px !important; }

/* фиат-карточки: фон #172233 (как крипто-карточки и макет) */
#rd_cashier .rd-methods[data-kind="fiat"] .rd-method,
#rd_cashier .rd-methods[data-kind="wit-fiat"] .rd-method{ background:#172233 !important; }

/* ── RD cashier: кнопка сабмита точно по Figma — градиент + градиентная рамка ── */
#rd_cashier .rd-btn--primary{
  height:auto !important; min-height:44px; padding:12px 24px !important; border-radius:16px !important;
  background:
    linear-gradient(180deg, #6C2CFF 0%, #B253FF 100%) padding-box,
    linear-gradient(180deg, #D080FF 0%, #EEB2FF 100%) border-box !important;
  border:0.5px solid transparent !important;
  font-family:'Unbounded',sans-serif; font-weight:700; font-size:14px;
  text-transform:uppercase; letter-spacing:-0.42px; line-height:1;
}

.rd-tour-info-under {
    background: var(--surface);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    margin-top: 16px;
}

.rd-tour-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rd-tour-info-icon {
    width: 24px;
    height: 24px;
    padding: 11px;
    box-sizing: content-box;
    background: linear-gradient(90deg, var(--btn-primary-from), var(--btn-primary-to));
    border-radius: 10px;
    flex-shrink: 0;
}

.rd-tour-info-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 2px;
}

.rd-tour-info-value {
    font-size: 15px;
    font-weight: 600;
    line-height: 15px;
    display: flex;
    color: var(--text-primary);
    align-items: center;
}

.rd-tour-leaderboard {
    background: var(--surface);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.rd-tour-leaderboard__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.rd-tour-leaderboard__scroll-outer {
    flex: 1;
    overflow: hidden;
    position: relative;
    max-height: 395px;
}

.rd-tour-leaderboard__scroll-inner {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 395px;
}

@media (min-width: 1024px) {
    .rd-tour-leaderboard__scroll-outer {
        max-height: none;
    }
    .rd-tour-leaderboard__scroll-inner {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: none;
    }
}

.rd-tour-leaderboard__table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--surface);
}

.rd-tour-leaderboard__table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0;
}

.rd-tour-leaderboard__table th,
.rd-tour-leaderboard__table td,
.rd-tour-leaderboard__table tr,
.rd-tour-leaderboard__table thead,
.rd-tour-leaderboard__table tbody {
    border: none !important;
    border-image: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.rd-tour-leaderboard__table th {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    padding: 8px 12px;
}

.rd-tour-leaderboard__table td {
    padding: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    vertical-align: middle;
}

.rd-tour-leaderboard__table tbody tr td > div,
.rd-page .table-secondary tbody tr,
.cashback-history .table-secondary tbody tr {
    background: transparent !important;
}
.rd-page .table-secondary tbody tr td > .table-secondary__td,
.cashback-history .table-secondary tbody tr td > .table-secondary__td {
    background: var(--background) !important;
}
.rd-tour-leaderboard__table tbody tr td > .table-secondary__td {
    margin: 0 !important;
    background-color: transparent !important;
    height: 48px;
    border: none !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
}

.rd-tour-leaderboard__table thead tr th > div {
    background-color: transparent !important;
    border: none !important;
}

.rd-tour-leaderboard__table tbody tr td {
    padding: 0 12px;
}

.rd-tour-leaderboard__table tbody tr:nth-child(even) td {
    background: var(--navy-2);
}

.rd-tour-leaderboard__table tbody tr:nth-child(even) td:first-child {
    border-radius: 12px 0 0 12px;
}

.rd-tour-leaderboard__table tbody tr:nth-child(even) td:last-child {
    border-radius: 0 12px 12px 0;
}

.rd-tour-leaderboard__table tbody tr td:nth-child(3) {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 600;
}

.rd-tour-leaderboard__table .tour-text-gain {
    color: var(--accent-primary) !important;
    font-weight: 600;
    font-size: 16px;
    background: var(--accent-secondary);
    padding: 4px 8px;
    border-radius: 8px;
    width: fit-content !important;
    margin-left: auto;
}

.rd-tour-leaderboard__table .tournament-my-row td {
    background: rgba(53,255,104,0.05);
}

.rd-tour-rules {
    background: var(--surface);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.rd-tour-rules h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.rd-tour-rules ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rd-tour-rules ul li {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 6px 0;
    position: relative;
    padding-left: 16px;
}

.rd-tour-rules ul li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-primary);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.rd-tour-rules ul li:last-child {
    border-bottom: none;
}

.rd-tour-rules p {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.rd-bonus-banner {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 24px;
    background: url('/templates/redesign/img/bonuses-banner-pc.png') center / cover no-repeat;
    aspect-ratio: 1290 / 190;
    display: flex;
    align-items: flex-start;
    padding: clamp(12px, 3.1%, 40px) clamp(12px, 3.1%, 40px) clamp(16px, 4.65%, 60px) clamp(12px, 3.1%, 40px);
}

.rd-bonus-banner__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rd-bonus-banner__badge {
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius-lg);
    overflow: hidden;
    width: fit-content;
    height: 36px;
    gap: 5px;
}

.rd-bonus-banner__badge-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--accent-secondary);
    border-radius: 8px 0 0 8px;
    flex-shrink: 0;
}

.rd-bonus-banner__badge-icon {
    width: 20px;
    height: 20px;
}

.rd-bonus-banner__badge-text {
    font-family: var(--font);
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    padding: 0 14px;
    background: rgba(171, 220, 255, 0.15);
    border-radius: 0 8px 8px 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.rd-bonus-banner__title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 32px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin: 0;
}

.rd-bonus-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font);
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
    margin: 20px 0;
}

.rd-bonus-section-title__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.rd-wager-card {
    border-radius: var(--radius-xl);
    padding: 0;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    background: url('/templates/redesign/img/wager-bg-pc.png') center / cover no-repeat;
    height: 204px;
}

.rd-wager-card__body {
    position: relative;
    z-index: 2;
    max-width: 65%;
    padding: 16px;
}

.rd-page .rd-wager-card .wager-progress {
    height: 6px !important;
    background: #2D313D !important;
    border-radius: 2px !important;
    margin: 0 0 8px 0 !important;
}

.rd-page .rd-wager-card .wager-progress__bar {
    background: linear-gradient(90deg, #9000FF, #9900FF) !important;
    border-radius: 2px !important;
}

.rd-page .rd-wager-card .wager-progress_shine {
    background: #9900FF !important;
    box-shadow: 0 0 20px 2px #9900FF !important;
}

.rd-page .rd-wager-card .wager-progress__text {
    font-size: 14px;
    font-weight: 600;
}

.rd-wager-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
}

.rd-wager-card__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
}

.rd-wager-card__right {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    z-index: 1;
    pointer-events: none;
}

.rd-wager-card__image {
    height: auto;
    width: 100%;
    object-fit: contain;
}

.rd-wager-card__timer-overlay {
    font-family: var(--font);
    font-weight: 600;
    font-size: 13px;
    color: #FFD700;
    text-align: center;
    margin-top: 4px;
}

.rd-wager-card__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rd-wager-card .rd-btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-xl);
    background: linear-gradient(90deg, var(--btn-primary-from), var(--btn-primary-to));
    color: var(--text-primary);
    font-family: var(--font);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.rd-wager-card .rd-btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 0.5px;
    background: linear-gradient(90deg, var(--btn-primary-stroke-from), var(--btn-primary-stroke-to));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.rd-wager-card .rd-btn-primary:hover {
    opacity: 0.9;
}

.rd-wager-card .rd-btn-disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font);
    font-weight: 600;
    font-size: 13px;
    border: none;
    cursor: not-allowed;
    line-height: 1.4;
}


@media (max-width: 768px) {
    .rd-wager-card {
        height: 190px;
        background-image: url('/templates/redesign/img/wager-bg-mob.png');
    }
    .rd-wager-card__body {
        max-width: 100%;
    }
    .rd-wager-card__right {
        display: none;
    }
    .rd-wager-card__bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        width: 100%;
    }
    .rd-wager-card__bottom > div:first-child {
        flex: 1;
    }
    .rd-wager-card__bottom .rd-btn-primary {
        width: 100%;
    }
    .rd-wager-card__bottom .rd-btn-disabled {
        width: 100%;
        text-align: center;
    }
    .rd-wager-card__bottom .rd-btn-disabled svg {
        display: none !important;
    }
}

.rd-page .bonus-new > .container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .rd-bonus-banner {
        background-image: url('/templates/redesign/img/bonuses-banner-mob.png');
        aspect-ratio: 500 / 207;
        padding: 16px;
    }
    .rd-bonus-banner__title {
        font-size: 26px;
    }
}

.rd-page .bonuses-container {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.rd-page .bonuses-container.bonuses-container_top {
    grid-template-columns: 1fr;
}

.rd-page .bonus-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
    height: auto;
    opacity: 1;
    animation: none;
}

.rd-page .bonus-card .bonus-card__content {
    background: var(--surface);
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
}

.rd-page .bonus-card.bonus-card--available {
    box-shadow: none;
}

.rd-page .bonus-card .bonus-card__image {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 3;
    background: var(--navy);
    overflow: hidden;
    order: -1;
    right: auto;
    bottom: auto;
    top: auto;
    left: auto;
    transform: none;
    pointer-events: auto;
    border-radius: var(--radius-lg);
    margin: 16px 16px 0;
    width: calc(100% - 32px);
}

.rd-page .bonus-card .bonus-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
}

.rd-page .bonus-card .bonus-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #22c55e;
    color: #fff;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 2;
}

.rd-page .bonus-card .bonus-card__badge--crypto {
    background: #22c55e;
    color: #fff;
}

.rd-page .bonus-card .bonus-card__info {
    padding: 12px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    max-width: none;
    gap: 0;
}

.rd-page .bonus-card .bonus-card__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    text-transform: uppercase;
}

.rd-page .bonus-card .bonus-card__title a {
    color: inherit;
    text-decoration: none;
}

.rd-page .bonus-card .bonus-card__title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.rd-page .bonus-card .bonus-card__title-row .bonus-card__title {
    margin-bottom: 0;
}

.rd-page .bonus-card .bonus-card__title-row .bonus-card__info-btn {
    flex-shrink: 0;
}

.rd-page .bonus-card .bonus-card__subtitle {
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    opacity: 1;
    margin: 0 0 12px 0;
    line-height: 18px;
    max-width: none;
    flex: 1;
}

.rd-page .bonus-card--available .bonus-card__subtitle,
.rd-page .bonus-card--locked .bonus-card__subtitle {
    min-height: 36px;
}

.rd-page .bonus-card .bonus-card__timer {
    margin-top: 0;
    margin-bottom: 12px;
    background: none;
    padding: 0;
    border-radius: 0;
    margin-left: 0;
    font-size: inherit;
}

.rd-page .bonus-card .bonus-card__btn {
    width: 100%;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    margin-top: auto;
    text-align: center;
    display: block;
    text-decoration: none;
    position: relative;
}

.rd-page .bonus-card .bonus-card__btn.rd-btn-primary {
    background: linear-gradient(90deg, var(--btn-primary-from), var(--btn-primary-to));
    color: var(--text-primary);
    letter-spacing: 0.5px;
    border-radius: var(--radius-xl);
}

.rd-page .bonus-card .bonus-card__btn.rd-btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 0.5px;
    background: linear-gradient(90deg, var(--btn-primary-stroke-from), var(--btn-primary-stroke-to));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.rd-page .bonus-card .bonus-card__btn:hover {
    transform: none;
    box-shadow: none;
    opacity: 0.9;
}

.rd-page .bonus-card .bonus-card__btn.disabled {
    background: var(--navy-2);
    border: 1px solid var(--navy-3);
    color: var(--text-secondary);
    cursor: not-allowed;
    pointer-events: none;
}

.rd-page .bonus-card .bonus-card__header {
    display: none;
}

.rd-page .rd-perm-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.rd-page .rd-perm-grid .swiper-wrapper {
    display: contents;
}

.rd-page .rd-perm-grid .swiper-slide {
    width: auto;
}

.rd-page .rd-perm-grid .bonus-card--perm {
    height: 100%;
}

.rd-page .rd-perm-grid .bonus-card--perm .bonus-card__content {
    height: 100%;
}

.rd-page .rd-perm-grid .bonus-card--perm .bonus-card__info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rd-page .rd-perm-grid .bonus-card--perm .bonus-card__subtitle {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
}

.rd-page .rd-perm-grid .bonus-card--perm .bonus-card__subtitle--info {
    font-family: var(--font);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    opacity: 0.8;
    margin-bottom: 8px;
}

.rd-page .rd-perm-grid .bonus-card--perm .bonus-card__btn {
    margin-top: auto;
}

.rd-page .rd-perm-slider-nav {
    display: none;
}

.rd-page .rd-perm-progress {
    width: 100%;
    height: 6px;
    background: var(--navy-2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 16px;
}

.rd-page .rd-perm-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, var(--btn-primary-from), var(--btn-primary-to));
    border-radius: 3px;
}

.rd-page .rd-fs-packs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 0 0 20px;
}

.rd-page .rd-fs-packs-grid .swiper-wrapper {
    display: contents;
}

.rd-page .rd-fs-packs-grid .swiper-slide {
    width: auto;
    height: auto;
}

.rd-page .rd-fs-packs-grid .bonus-card--fs-pack {
    height: 100%;
}

.rd-page .fs-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--navy-1, #0d1117);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    line-height: 1;
    font-family: var(--font-heading);
}

.rd-page .fs-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 2.5px;
    background: linear-gradient(135deg, var(--btn-primary-stroke-from), var(--btn-primary-stroke-to));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.rd-page .fs-badge__num {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}

.rd-page .fs-badge__label {
    font-size: 9px;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    margin-top: 1px;
}

.rd-page .rd-fs-slider-nav {
    display: none;
}

.rd-page .bonus-card--fs-pack .bonus-card__content {
    height: 100%;
}

.rd-page .bonus-card--fs-pack .bonus-card__info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rd-page .bonus-card--fs-pack .fs-pack-bottom {
    margin-top: auto;
}

.rd-page .rd-fs-info {
    margin-bottom: 12px;
}

.rd-page .rd-fs-info > div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.rd-page .rd-fs-info > div > div {
    font-size: 12px !important;
    line-height: 1.4;
    color: var(--text-secondary);
    background: var(--background);
    border-radius: 8px;
    padding: 4px;
    margin: 0 !important;
}

.rd-page .rd-fs-info b {
    color: var(--text-primary);
    font-weight: 700;
}

.rd-page .bonus-card--fs-pack .fs-pack-tier-btn {
    border: none !important;
    border-radius: 8px !important;
    padding: 6px 4px !important;
    cursor: pointer;
    text-align: center;
    flex: 1;
    min-width: 0;
    gap: 2px;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    font-size: 12px !important;
}

.rd-page .rd-extrabet-wrap {
    margin: 16px 0;
    max-width: 25%;
}

.rd-page .bonus-card--extrabet .bonus-card__content {
    height: 100%;
}

.rd-page .bonus-card--extrabet .bonus-card__info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rd-page .bonus-card--extrabet .bonus-card__btn {
    margin-top: auto;
}

@media (max-width: 768px) {
    .rd-page .rd-extrabet-wrap {
        max-width: 100%;
    }
}

.rd-page .rd-promo-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.rd-page .rd-promo-row > .bonus-card--promo:first-child {
    flex: 532;
    max-width: 420px;
}

.rd-page .rd-promo-row > .bonus-card--promo:last-child {
    flex: 750;
}

.rd-page .bonus-card--promo .bonus-card__content {
    flex-direction: row;
    height: 100%;
    padding: 16px;
}

.rd-page .bonus-card--promo .bonus-card__image {
    flex: 0 0 160px;
    width: 160px;
    min-width: 120px;
    align-self: stretch;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 12px 0 0;
}

.rd-page .bonus-card--promo .bonus-card__image img {
    display: none;
}

.rd-page .rd-promo-row > .bonus-card--promo:first-child .bonus-card__image {
    background-image: url('/templates/redesign/img/promo-code.png');
}

.rd-page .rd-promo-row > .bonus-card--promo:last-child .bonus-card__image {
    background-image: url('/templates/redesign/img/tg-email-bonus.png');
}

.rd-page .bonus-card--promo .bonus-card__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.rd-page .bonus-card--promo .bonus-card__title {
    font-size: 14px;
    margin-bottom: 12px;
}

.rd-page .bonus-card--promo .bonus-card__btn {
    margin-top: auto;
}

.rd-page .rd-promo-input {
    width: 100%;
    background: var(--navy-2);
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font);
    margin-bottom: 12px;
    outline: none;
}

.rd-page .rd-promo-input::placeholder {
    color: #ACB4C6;
    font-weight: 600;
    font-size: 13px;
}

.rd-page .rd-promo-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.rd-page .rd-promo-checks > div {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .rd-page .rd-promo-row {
        flex-direction: column;
    }
    .rd-page .rd-promo-row > .bonus-card--promo:first-child {
        min-width: 0;
    }
    .rd-page .bonus-card--promo .bonus-card__content {
        flex-direction: column;
    }
    .rd-page .bonus-card--promo .bonus-card__image {
        flex: 0 0 162px;
        width: 100%;
        min-height: 162px;
        margin: 0 0 8px 0;
        background-position: center;
        background-size: cover;
    }
    .rd-page .bonus-card--promo .bonus-card__title {
        margin-bottom: 8px;
    }
    .rd-page .rd-promo-row > .bonus-card--promo:first-child .bonus-card__image {
        background-image: url('/templates/redesign/img/promo-code-mob.png');
    }
    .rd-page .rd-promo-row > .bonus-card--promo:last-child .bonus-card__image {
        background-image: url('/templates/redesign/img/tg-email-bonus-mob.png');
    }
}

.rd-page .rd-daily-wrap {
    margin: 20px 0;
}

.rd-page .rd-daily-block {
    display: flex;
    align-items: stretch;
    border-radius: 16px;
    overflow: hidden;
    background: url('/templates/redesign/img/daily-bg-pc.png') no-repeat center;
    background-size: cover;
    padding: 20px 0 20px 20px;
}

.rd-page .rd-daily-info {
    flex: 0 0 240px;
    padding: 0;
    margin-right: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rd-page .rd-daily-info__title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 24px;
    line-height: 1.1;
    color: var(--text-primary);
    text-transform: uppercase;
    margin: 0 0 8px 0;
    font-style: italic;
}

.rd-page .rd-daily-info__desc {
    font-family: var(--font);
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0 0 16px 0;
}

.rd-page .rd-daily-info__day-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    background: rgba(173, 105, 255, 0.15);
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 10px;
    color: #D493FF;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    width: fit-content;
    box-shadow: 0 4px 10px rgba(41, 9, 70, 0.25);
}

.rd-page .rd-daily-slider {
    flex: 1;
    overflow: hidden;
}

.rd-page .rd-daily-slider .swiper-wrapper {
    display: flex;
}

.rd-page .rd-daily-slider .swiper-slide {
    width: auto;
    flex-shrink: 0;
}

.rd-page .rd-daily-slider .daily-card {
    min-height: auto;
    border-radius: 12px;
    width: 195px;
    height: auto;
    min-height: 195px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--surface) !important;
    border: 1px solid var(--navy-3) !important;
    box-shadow: none !important;
    transform: none !important;
    color: var(--text-primary) !important;
}

.rd-page .rd-daily-slider .daily-card__label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    background: rgba(173, 105, 255, 0.15);
    color: #D493FF;
    padding: 6px 8px;
    border-radius: 6px;
    letter-spacing: -0.03em;
    position: absolute;
    top: 12px;
    left: 12px;
    margin: 0;
    box-shadow: 0 4px 10px rgba(41, 9, 70, 0.25);
}

.rd-page .rd-daily-slider .daily-card--active {
    background: url('/templates/redesign/img/daily-card-active-bg.png') no-repeat center !important;
    background-size: cover !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
}

.rd-page .rd-daily-slider .daily-card--active .daily-card__label {
    background: linear-gradient(90deg, var(--btn-primary-from), var(--btn-primary-to));
}

.rd-page .rd-daily-slider .daily-card__gift {
    margin-bottom: 12px;
}

.rd-page .rd-daily-slider .daily-card:not(.daily-card--active) .daily-card__gift {
    filter: grayscale(1);
}

.rd-page .rd-daily-slider .daily-card:not(.daily-card--active) .daily-card__prize {
    color: var(--text-secondary);
}

.rd-page .rd-daily-slider .daily-card:not(.daily-card--active) .daily-card__label {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    box-shadow: none;
}

.rd-page .rd-daily-slider .daily-card__prize {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--text-primary);
    display: block !important;
}

.rd-page .rd-daily-slider .daily-card__icon {
    flex: none !important;
    font-size: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rd-page .rd-daily-slider .daily-card .bonus-card__btn {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    padding: 10px 16px;
    border-radius: var(--radius-xl);
    width: 100%;
    position: relative;
    cursor: pointer;
    transition: opacity 0.2s;
    letter-spacing: 0.5px;
}

.rd-page .rd-daily-slider .daily-card .bonus-card__btn.v-btn-orange {
    background: linear-gradient(90deg, var(--btn-primary-from), var(--btn-primary-to));
    color: var(--text-primary);
    border: none;
}

.rd-page .rd-daily-slider .daily-card .bonus-card__btn.v-btn-orange::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 0.5px;
    background: linear-gradient(90deg, var(--btn-primary-stroke-from), var(--btn-primary-stroke-to));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.rd-page .rd-daily-slider .daily-card .bonus-card__btn.v-btn-orange:hover {
    opacity: 0.9;
}

.rd-page .rd-daily-slider .daily-card .bonus-card__btn.disabled {
    background: var(--navy-2);
    border: 1px solid var(--navy-3);
    color: var(--text-secondary);
}

.rd-page .rd-daily-slider .daily-card .bonus-card__btn.disabled:hover {
    opacity: 1;
}

.rd-page .rd-daily-slider .daily-card__xp {
    display: none;
}

.rd-page .rd-daily-slider .daily-card__subtitle {
    display: none;
}

.rd-page .rd-daily-slider-nav {
    display: none;
}

@media (max-width: 768px) {
    .rd-page .rd-daily-block {
        flex-direction: column;
        background-image: url('/templates/redesign/img/daily-bg-mob.png');
        padding: 16px;
    }
    .rd-page .rd-daily-info {
        flex: none;
        padding: 0 0 12px;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
    }
    .rd-page .rd-daily-info__title {
        flex: 1;
        font-size: 22px;
        order: 0;
    }
    .rd-page .rd-daily-info__day-badge {
        order: 1;
        margin-left: auto;
    }
    .rd-page .rd-daily-info__desc {
        width: 100%;
        margin-bottom: 0;
        order: 2;
    }
    .rd-page .rd-daily-slider {
        padding: 0;
        overflow: hidden;
    }
    .rd-page .rd-daily-slider .swiper-slide {
        width: calc(50% - 4px) !important;
    }
    .rd-page .rd-daily-slider .daily-card {
        width: 100%;
        height: auto;
    }
    .rd-page .rd-daily-slider .daily-card__gift {
        width: 80px;
        height: 80px;
        object-fit: contain;
    }
    .rd-page .rd-daily-slider-nav {
        display: flex;
    }
    .rd-page .rd-perm-grid {
        display: block !important;
        overflow: hidden;
    }
    .rd-page .rd-perm-grid .swiper-wrapper {
        display: flex !important;
    }
    .rd-page .rd-perm-grid .swiper-slide {
        width: 85% !important;
        flex-shrink: 0;
        height: auto;
    }
    .rd-page .rd-perm-grid .bonus-card--perm {
        height: 100%;
    }
    .rd-page .rd-perm-slider-nav {
        display: flex;
    }
    .rd-page .rd-fs-packs-grid {
        display: block !important;
        overflow: hidden;
    }
    .rd-page .rd-fs-packs-grid .swiper-wrapper {
        display: flex !important;
    }
    .rd-page .rd-fs-packs-grid .swiper-slide {
        width: 85% !important;
        flex-shrink: 0;
        height: auto;
    }
    .rd-page .rd-fs-slider-nav {
        display: flex;
    }
}

.rd-page .bonuses-container.dep_bonus {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.rd-page .bonus-card--dep-promo .bonus-card__subtitle {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: auto;
}

.rd-page .rd-dep-badge {
    display: inline-flex;
    align-items: center;
    background: var(--background);
    padding: 7px 4px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.rd-page .rd-dep-badge strong {
    font-family: var(--font);
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
    margin-left: 4px;
}

.rd-page .rd-dep-slider .swiper-wrapper {
    display: contents;
}

.rd-page .rd-dep-slider .swiper-slide {
    width: auto;
}


.rd-page .rd-wb-slider .swiper-wrapper {
    display: contents;
}

.rd-page .rd-wb-slider .swiper-slide {
    width: auto;
    display: flex;
    flex-direction: column;
}

.rd-page .rd-wb-slider-nav {
    display: none;
}

@media (max-width: 1024px) {
    .rd-page .bonuses-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .rd-page .bonuses-container.rd-wb-slider {
        display: block !important;
        overflow: hidden;
        position: relative;
    }
    .rd-page .rd-wb-slider .swiper-wrapper {
        display: flex !important;
    }
    .rd-page .rd-wb-slider .swiper-slide {
        width: 85% !important;
        flex-shrink: 0;
        box-sizing: border-box;
    }
    .rd-page .rd-wb-slider-nav {
        display: flex;
        justify-content: center;
        gap: 4px;
        margin-top: 38px;
    }
    .rd-page .rd-wb-slider-nav .swiper-arrow {
        position: static;
        width: 38px;
        height: 38px;
        padding: 0;
        background: var(--surface) no-repeat center;
        background-size: 16px 16px;
        border-radius: 8px;
        border: none;
    }
    .rd-page .rd-wb-slider-nav .swiper-arrow::after {
        display: none !important;
    }
    .rd-page .rd-wb-slider-nav .swiper-button-prev {
        background-image: url('/templates/redesign/img/arrow-left.svg');
    }
    .rd-page .rd-wb-slider-nav .swiper-button-next {
        background-image: url('/templates/redesign/img/arrow-right.svg');
    }
    .rd-page .bonuses-container.rd-dep-slider {
        display: block !important;
        overflow: hidden;
        position: relative;
    }
    .rd-page .rd-dep-slider .swiper-wrapper {
        display: flex !important;
    }
    .rd-page .rd-dep-slider .swiper-slide {
        width: 85% !important;
        flex-shrink: 0;
        box-sizing: border-box;
    }
}

.rd-page .rd-vip-page { display: flex; flex-direction: column; gap: 20px; }

.rd-page .rd-vip-hero {
    background: url('/templates/redesign/img/vip/pc.png') right center / auto 100% no-repeat, var(--surface);
    border-radius: var(--radius-2xl);
    padding: 32px 40px 24px;
    position: relative;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.rd-page .rd-vip-hero__content { max-width: 420px; }
.rd-page .rd-vip-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}
.rd-page .rd-vip-hero__badge img { width: 18px; height: 18px; }
.rd-page .rd-vip-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(24px, 4vw, 38px);
    line-height: clamp(28px, 4.5vw, 40px);
    font-weight: 900;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin: 0 0 8px;
    text-transform: uppercase;
    line-height: 1.15;
}
.rd-page .rd-vip-hero__subtitle {
    color: #fff !important;
    font-size: 16px;
    font-weight: 400 !important;
    line-height: 1;
    margin: 0 0 30px;
    text-align: left;
    position: relative;
}
.rd-page .rd-vip-hero__subtitle::before {
    display: none;
}
.rd-page .rd-vip-hero__btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    background: linear-gradient(90deg, var(--btn-primary-from), var(--btn-primary-to));
    border: none;
    border-radius: var(--radius-xl);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.5px;
    position: relative;
    transition: opacity 0.2s;
}
.rd-page .rd-vip-hero__btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 0.5px;
    background: linear-gradient(90deg, var(--btn-primary-stroke-from), var(--btn-primary-stroke-to));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.rd-page .rd-vip-hero__btn:hover { opacity: 0.9; }
.rd-page .rd-vip-hero__steps {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.rd-page .rd-vip-hero__step {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(23,34,51,0.5);
    border-radius: 12px;
    padding: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}
.rd-page .rd-vip-hero__step img { width: 24px; height: 24px; }

.rd-page .rd-vip-level {
    background: url('/templates/redesign/img/vip/level-bg-pc.png') left center / auto 100% no-repeat, var(--surface);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.rd-page .rd-vip-level__left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 0 0 auto;
    max-width: 45%;
}
.rd-page .rd-vip-level__img { width: 80px; height: 80px; flex-shrink: 0; }
.rd-page .rd-vip-level__title {
    font-family: var(--font-heading);
    font-size: clamp(20px, 3vw, 32px);
    line-height: clamp(24px, 3.5vw, 40px);
    font-weight: 900;
    color: var(--text-primary);
    text-transform: uppercase;
    margin-bottom: 4px;
}
.rd-page .rd-vip-level__desc {
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    color: var(--text-muted);
    opacity: 0.8;
}
.rd-page .rd-vip-level__right {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--navy);
    border-radius: 12px;
    padding: 12px;
}
.rd-page .rd-vip-level__img-small { width: 60px; height: 60px; flex-shrink: 0; }
.rd-page .rd-vip-level__img-next { }
.rd-page .rd-vip-level__progress-wrap { flex: 1; min-width: 0; }
.rd-page .rd-vip-level__xp-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    opacity: 0.8;
    margin-bottom: 8px;
}
.rd-page .rd-vip-level__bar {
    width: 100%;
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--navy-2);
    margin-bottom: 8px;
    overflow: hidden;
}
.rd-page .rd-vip-level__bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--btn-primary-from), var(--btn-primary-to));
    transition: width 0.6s ease;
}
.rd-page .rd-vip-level__points {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    color: var(--text-muted);
    opacity: 0.8;
}
.rd-page .rd-vip-level__points-next { }

.rd-page .rd-vip-section { text-align: center; margin-top: 20px; }
.rd-page .rd-vip-section__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border-radius: var(--radius-full);
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}
.rd-page .rd-vip-section__badge img { width: 16px; height: 16px; }
.rd-page .rd-vip-section__title {
    font-family: var(--font-heading);
    font-size: clamp(24px, 4vw, 38px);
    line-height: clamp(28px, 4.5vw, 40px);
    font-weight: 900;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin: 0 0 8px;
    text-transform: uppercase;
}
.rd-page .rd-vip-section__subtitle {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0 auto 32px;
    max-width: 705px;
    line-height: 1;
}

.rd-page .rd-vip-ranks-grid {
    padding-top: 80px;
}
.rd-page .rd-vip-ranks-grid .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.rd-page .rd-vip-ranks-grid .swiper-slide { height: auto; }
.rd-page .rd-vip-ranks-grid .swiper-slide .rd-vip-rank { height: 100%; }
@media (min-width: 1200px) {
    .rd-page .rd-vip-ranks-grid .swiper-wrapper { grid-template-columns: repeat(5, 1fr); }
}
.rd-page .rd-vip-rank {
    background: var(--surface) center top / 100% auto no-repeat;
    border-radius: 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    border: 1.5px solid rgba(255,255,255,0.06);
    transition: border-color 0.2s;
    overflow: visible;
    padding-top: 40px;
}
.rd-page .rd-vip-rank--bronze,
.rd-page .rd-vip-rank--newbie { background-image: url('/templates/redesign/img/vip/rank-bg-bronze.png'); }
.rd-page .rd-vip-rank--silver { background-image: url('/templates/redesign/img/vip/rank-bg-silver.png'); }
.rd-page .rd-vip-rank--gold { background-image: url('/templates/redesign/img/vip/rank-bg-gold.png'); }
.rd-page .rd-vip-rank--diamond,
.rd-page .rd-vip-rank--vip { background-image: url('/templates/redesign/img/vip/rank-bg-diamond.png'); }
.rd-page .rd-vip-rank--brilliant { background-image: url('/templates/redesign/img/vip/rank-bg-brilliant.png'); }
.rd-page .rd-vip-rank--current {
    border-color: var(--btn-primary-to);
}
.rd-page .rd-vip-rank__badge-current {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--btn-primary-from), var(--btn-primary-to));
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    z-index: 3;
}
.rd-page .rd-vip-rank__icon {
    position: absolute;
    top: -86px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.rd-page .rd-vip-rank__icon img { display: block; }
.rd-page .rd-vip-rank__points-area {
    width: 100%;
    text-align: center;
}
.rd-page .rd-vip-rank__points-num {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}
.rd-page .rd-vip-rank__points-label {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
}
.rd-page .rd-vip-rank__rows {
    width: 100%;
    padding: 18px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.rd-page .rd-vip-rank__row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    color: var(--text-secondary);
    padding: 6px 8px;
    background: var(--background);
    border-radius: 8px;
}
.rd-page .rd-vip-rank__row > span:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
}
.rd-page .rd-vip-rank__row-icon {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    flex-shrink: 0;
}
.rd-page .rd-vip-rank__val {
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    color: var(--text-primary);
}
.rd-page .rd-vip-rank__fs { color: var(--accent-primary); font-weight: 500; }
.rd-page .rd-vip-rank__check-circle { width: 18px; height: 18px; flex-shrink: 0; }
.rd-page .rd-vip-rank__boost {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #f5a509;
    font-weight: 600;
    background: rgba(245, 165, 9, 0.1);
    border-radius: var(--radius-lg);
    padding: 6px 10px;
    margin-top: 8px;
}

.rd-page .rd-vip-benefits-section {
    background: url('/templates/redesign/img/vip/benefits-bg-pc.png') right center / auto 100% no-repeat;
    margin-top: 30px;
}
.rd-page .rd-vip-benefits-section__top {
    max-width: 450px;
    margin-bottom: 90px;
    text-align: left;
}
.rd-page .rd-vip-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: fit-content;
}
.rd-page .rd-vip-benefit-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(23,34,51,0.5);
    backdrop-filter: blur(82px);
    -webkit-backdrop-filter: blur(82px);
    border-radius: 16px;
    padding: 20px;
    max-width: 460px;
}
.rd-page .rd-vip-benefit-card__icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}
.rd-page .rd-vip-benefit-card__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px;
}
.rd-page .rd-vip-benefit-card__text {
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    color: var(--text-muted);
    margin: 0;
}


.rd-page .rd-vip-ranks-slider-nav { display: none; }
.rd-page .rd-vip-faq {
    display: flex;
    gap: clamp(24px, 6vw, 80px);
    margin-top: 30px;
    justify-content: space-between;
}
.rd-page .rd-vip-faq__left {
    flex: 0 0 40%;
    max-width: 400px;
    text-align: left;
}
.rd-page .rd-vip-faq__left .rd-vip-hero__subtitle {
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}
.rd-page .rd-vip-faq__left .rd-vip-hero__subtitle::before {
    display: none !important;
}
.rd-page .rd-vip-faq__right {
    flex: 1;
    max-width: 725px;
    min-width: 0;
}

@media (max-width: 767px) {
    .rd-page .rd-vip-hero {
        background-image: url('/templates/redesign/img/vip/mob.png');
        padding: 24px 16px 16px;
        min-height: 420px;
    }
    .rd-page .rd-vip-hero__content { max-width: 100%; }
    .rd-page .rd-vip-hero__subtitle { max-width: 100%; }
    .rd-page .rd-vip-hero__steps { justify-content: flex-start; gap: 8px; }
    .rd-page .rd-vip-hero__step { padding: 6px 12px; font-size: 11px; }
    .rd-page .rd-vip-level { flex-direction: column; gap: 16px; background-image: url('/templates/redesign/img/vip/level-bg-mob.png'); background-size: cover; border-radius: 12px; }
    .rd-page .rd-vip-level__left { max-width: 100%; }
    .rd-page .rd-vip-level__right { width: 100%; }
    .rd-page .rd-vip-ranks-grid { overflow: visible; padding-top: 60px; }
    .rd-page .rd-vip-benefits-section { margin-top: 0; }
    .rd-page .rd-vip-ranks-grid .swiper-wrapper { display: flex !important; gap: 0 !important; }
    .rd-page .rd-vip-ranks-grid .swiper-slide { width: 70% !important; flex-shrink: 0; box-sizing: border-box; height: auto !important; }
    .rd-page .rd-vip-ranks-grid .swiper-slide .rd-vip-rank { height: 100%; }
    .rd-page .rd-vip-ranks-slider-nav {
        display: flex;
        justify-content: center;
        gap: 4px;
        margin-top: 38px;
    }
    .rd-page .rd-vip-ranks-slider-nav .swiper-arrow {
        position: static;
        width: 38px;
        height: 38px;
        padding: 0;
        background: var(--surface) no-repeat center;
        background-size: 16px 16px;
        border-radius: 8px;
        border: none;
    }
    .rd-page .rd-vip-ranks-slider-nav .swiper-arrow::after { display: none !important; }
    .rd-page .rd-vip-ranks-slider-nav .swiper-button-prev { background-image: url('/templates/redesign/img/arrow-left.svg'); }
    .rd-page .rd-vip-ranks-slider-nav .swiper-button-next { background-image: url('/templates/redesign/img/arrow-right.svg'); }
    .rd-page .rd-vip-faq { flex-direction: column; gap: 24px; }
    .rd-page .rd-vip-faq__left { flex: none; max-width: 100%; }
    .rd-page .rd-vip-benefits-section { background-image: url('/templates/redesign/img/vip/benefits-bg-mob.png'); background-position: center bottom; background-size: 100% auto; padding: 0 0 240px; }
    .rd-page .rd-rb-hero { background-image: url('/templates/redesign/img/vip/rb-bg-mob.png') !important; background-position: center bottom !important; background-size: 100% auto !important; padding-bottom: 200px; }
    .rd-page .rd-rb-hero .rd-vip-hero__title,
    .rd-page .rd-rb-hero .rd-vip-hero__subtitle { max-width: 100%; }
    .rd-page .rd-rb-hero .rd-vip-hero__title { font-size: 18px !important; }
    .rd-page .rd-vip-benefits-section__top { max-width: 100%; margin-bottom: 20px; }
    .rd-page .rd-vip-benefits-grid { grid-template-columns: 1fr; }
}

.rd-page .rd-cb-hero {
    background: url('/templates/redesign/img/vip/cb-bg-pc.png') right center / auto 100% no-repeat, var(--surface);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
}
.rd-page .rd-cb-hero .rd-vip-hero__title {
    max-width: 60%;
    font-size: clamp(16px, 2.5vw, 22px) !important;
    line-height: 1.2 !important;
}
.rd-page .rd-cb-hero .rd-vip-hero__subtitle,
.rd-page .rd-rb-hero .rd-vip-hero__subtitle {
    color: var(--text-secondary) !important;
    background: var(--navy);
    border-radius: 12px;
    padding: 5px 10px;
    display: inline-block;
}
.rd-page .rd-cb-hero .rd-vip-hero__subtitle::before,
.rd-page .rd-rb-hero .rd-vip-hero__subtitle::before {
    display: none;
}
.rd-page .rd-cb-hero .rd-vip-hero__subtitle {
    max-width: 60%;
}
.rd-page .rd-cb-hero__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}
.rd-page .rd-cb-hero__current {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--navy);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}
.rd-page .rd-cb-hero__current > span:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
}
@media (max-width: 767px) {
    .rd-page .rd-cb-hero {
        background: url('/templates/redesign/img/vip/cb-bg-mob.png') center bottom / 100% auto no-repeat, var(--surface);
        padding: 20px 16px 200px;
        border-radius: 12px;
    }
    .rd-page .rd-cb-hero .rd-vip-hero__title,
    .rd-page .rd-cb-hero .rd-vip-hero__subtitle {
        max-width: 100%;
    }
    .rd-page .rd-cb-hero .rd-vip-hero__title {
        font-size: 18px !important;
    }
}

.rd-page .rd-cb-total {
    background: var(--surface);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}
.rd-page .rd-cb-total__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.rd-page .rd-cb-total__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}
.rd-page .rd-cb-total__table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px;
}
.rd-page .rd-cb-total__table th {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    color: var(--text-muted);
    text-transform: uppercase;
    padding: 0 12px 8px;
    text-align: left;
}
.rd-page .rd-cb-total__table td {
    background: var(--background);
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
}
.rd-page .rd-cb-total__table td:first-child { border-radius: 10px 0 0 10px; }
.rd-page .rd-cb-total__table td:last-child { border-radius: 0 10px 10px 0; text-align: right; }

.rd-page .rd-cb-earned {
    margin-top: 10px;
}
.rd-page .rd-cb-earned__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}
.rd-page .rd-cb-earned__table-wrap {
    background: var(--surface);
    border-radius: 16px;
    padding: 20px;
    overflow-x: auto;
}
.rd-page .rd-cb-earned__table { width: 100%; }
.rd-page .rd-cb-earned__table th { white-space: nowrap; }
.rd-page .rd-cb-earned__table td { white-space: nowrap; }

.rd-page .rd-rb-vip-section__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}
.rd-page .rd-rb-vip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}
@media (min-width: 1200px) {
    .rd-page .rd-rb-vip-grid { grid-template-columns: repeat(6, 1fr); }
}
.rd-page .rd-rb-vip-card {
    background: var(--surface);
    border-radius: 16px;
    border: 1.5px solid rgba(255,255,255,0.06);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: border-color 0.2s;
}
.rd-page .rd-rb-vip-card__img { width: 48px; height: 48px; margin-bottom: 8px; }
.rd-page .rd-rb-vip-card__name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.rd-page .rd-rb-vip-card__pct {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-primary);
}

.rd-page .rd-rb-hero {
    background: url('/templates/redesign/img/rb-hero-bg.jpg') 99% center / auto 100% no-repeat, var(--surface);
}
.rd-page .rd-rb-hero .rd-vip-hero__title {
    max-width: 60%;
    font-size: clamp(16px, 2.5vw, 22px) !important;
    line-height: 1.2 !important;
}
.rd-page .rd-rb-hero .rd-vip-hero__subtitle {
    max-width: 60%;
}


.rd-page .rd-cb-status {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}
.rd-page .rd-cb-timer {
    display: inline-flex;
    gap: 4px;
}
.rd-page .rd-cb-timer__item {
    background: var(--navy-2);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 42px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.rd-page .rd-safe-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    max-width: 100%;
}
.rd-page .rd-safe-main { min-width: 0; }
.rd-page .rd-safe-hero {
    background: url('/templates/redesign/img/vip/safe-bg-pc.png') center / cover no-repeat, var(--surface);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
    min-height: 200px;
}
.rd-page .rd-safe-hero__content { max-width: 400px; }
.rd-page .rd-safe-hero .rd-vip-hero__subtitle { border-radius: 8px !important; }
.rd-page .rd-safe-hero .rd-vip-hero__subtitle::before {
    display: block !important;
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 1px;
    background: linear-gradient(135deg, var(--btn-primary-from), var(--btn-primary-to));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.rd-page .rd-safe-hero__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    min-width: 30%;
}
.rd-page .rd-safe-hero__stat--prize { grid-column: 1 / -1; }
.rd-page .rd-safe-hero__stat {
    text-align: center;
    background: var(--navy);
    border: 1px solid;
    border-image: linear-gradient(135deg, var(--btn-primary-from), var(--btn-primary-to)) 1;
    border-radius: 12px;
    padding: 16px 20px;
    position: relative;
    overflow: hidden;
}
.rd-page .rd-safe-hero__stat {
    border: none;
    outline: 1px solid transparent;
    background-clip: padding-box;
    position: relative;
}
.rd-page .rd-safe-hero__stat::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, var(--btn-primary-from), var(--btn-primary-to));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.rd-page .rd-safe-hero__stat--prize {
    background: url('/templates/redesign/img/vip/safe-coins.png') right center / auto 100% no-repeat, var(--navy);
    text-align: left;
}
.rd-page .rd-safe-hero__stat-val {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    position: relative;
    z-index: 1;
}
.rd-page .rd-safe-hero__stat-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    position: relative;
    z-index: 1;
}
.rd-page .rd-safe-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.rd-page .rd-safe-sidebar__block {
    background: var(--surface);
    border-radius: 16px;
    padding: 20px;
}
.rd-page .rd-safe-sidebar__title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.rd-page .rd-safe-sidebar__dot { display: none; }
.rd-page .rd-safe-sidebar__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--navy);
    border-radius: 12px;
    margin-bottom: 8px;
}
.rd-page .rd-safe-sidebar__item:last-child { margin-bottom: 0; }
.rd-page .rd-safe-sidebar__all-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 12px;
    cursor: pointer;
}
.rd-page .rd-safe-sidebar__item-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}
.rd-page .rd-safe-sidebar__item-cell {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}
.rd-page .rd-safe-sidebar__item-prize {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-primary);
    white-space: nowrap;
}
.rd-page .rd-safe-howto {
    background: url('/templates/redesign/img/vip/safe-howto-bg.png') center bottom / 100% auto no-repeat, var(--surface);
    padding-bottom: 260px;
}
.rd-page .rd-safe-howto__steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rd-page .rd-safe-howto__step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}
.rd-page .rd-safe-howto__num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--btn-primary-from), var(--btn-primary-to));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
@media (max-width: 767px) {
    .rd-page .rd-safe-layout {
        grid-template-columns: 1fr;
    }
    .rd-page .rd-safe-hero {
        background: url('/templates/redesign/img/vip/safe-bg-mob.png') center bottom / 100% 100% no-repeat;
        flex-direction: column;
        text-align: left;
        padding: 24px 0 280px;
        align-items: flex-start;
    }
    .rd-page .safe-page.rd-safe-layout { padding: 0; }
    body:has(.safe-page) .rd-main { padding-bottom: 0; }
    body:has(.safe-page) .rd-content { padding-bottom: 40px; }
    .rd-page .rd-safe-hero__stat-val { font-size: 16px; font-weight: 700; }
    .rd-page .rd-safe-hero__content { max-width: 100%; }
    .rd-page .rd-safe-hero__stats { grid-template-columns: 1.4fr 1fr 1fr; width: 100%; min-width: unset; }
    .rd-page .rd-safe-hero__stat--prize { grid-column: auto; }
}
@media (max-width: 1440px) {
    .rd-page .rd-safe-hero__stat-val { font-size: 18px; }
    .rd-page .rd-safe-hero { padding: 24px; }
    .rd-page .rd-safe-hero__stat { padding: 16px; }
}
.rd-page .rd-safe-layout {
    container-type: inline-size;
    container-name: safe-layout;
}
@container safe-layout (max-width: 770px) {
    .rd-safe-hero { padding: 12px !important; }
    .rd-safe-hero__stat { padding: 10px 16px !important; }
    .rd-safe-hero__stat-val { font-size: 14px !important; font-weight: 500 !important; }
}
.rd-page .safe-grid {
    gap: 7px;
}
.rd-page .safe-cell {
    background: rgba(81, 183, 255, 0.07);
    border: none;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    color: var(--accent-primary);
    position: relative;
    padding: 12px 0;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rd-page .safe-cell::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 4px;
    padding: 1px;
    background: linear-gradient(180deg, #0095FF 0%, #68C0FF 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.rd-page .safe-cell:hover:not(.opened) {
    background: rgba(81, 183, 255, 0.18);
    transform: scale(1.08);
    color: #fff;
}
.rd-page .safe-cell.opened {
    background: transparent;
    border: none;
    cursor: default;
    padding: 7px 0;
}
.rd-page .safe-cell.opened::before {
    background: #F93939;
}
.rd-page .safe-cell.win-anim {
    animation: safeWin 0.6s ease;
    background: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}
.rd-page .safe-cell.win-anim::before {
    background: linear-gradient(180deg, #22c55e 0%, #4ade80 100%);
}
@media (max-width: 480px) {
    .rd-page .safe-grid { gap: 4px; }
    .rd-page .safe-cell { font-size: 9px; padding: 10px 0; }
    .rd-page .safe-cell.opened { padding: 5px 0; }
}
.rd-page .safe-feed {
    background: var(--surface);
    border: none;
    border-radius: 16px;
    padding: 16px;
}
.rd-page .rd-safe-feed__title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.rd-page .safe-feed h3 { display: none; }
.rd-page .safe-feed .feed-item {
    align-items: flex-start;
    background: var(--navy);
    border: none;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 8px;
    gap: 16px;
}
.rd-page .safe-feed .feed-item:last-child { margin-bottom: 0; }
.rd-page .rd-safe-feed__poster {
    width: 80px;
    height: 107px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.rd-page .rd-safe-feed__row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 18px;
    margin-bottom: 4px;
}
.rd-page .rd-safe-feed__row:last-child { margin-bottom: 0; }
.rd-page .rd-safe-feed__row img { flex-shrink: 0; }
.rd-page .rd-safe-feed__row--win {
    color: var(--accent-primary);
    font-weight: 600;
}
.rd-page .safe-feed .feed-item .tm {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}
.rd-page .rd-safe-feed__empty {
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
    padding: 24px 0;
}
@media (max-width: 480px) {
    .rd-page .rd-safe-feed__poster { width: 56px; height: 75px; }
    .rd-page .rd-safe-feed__row { font-size: 13px; }
}

/* ── Profile / Cabinet ── */
.rd-page .profile-tabs {
    background: transparent;
    border-radius: 0;
}
.rd-page .profile-tabs__header {
    background: var(--surface);
    border-radius: 16px;
    padding: 16px;
    border-bottom: none;
    gap: 0;
    margin-bottom: 12px;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: relative;
}
.rd-page .profile-tabs__header::-webkit-scrollbar { display: none; }
.rd-page .profile-tabs__header a {
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 700;
    background: none;
    border-radius: 0;
    padding: 0 24px 12px;
    border-bottom: 4px solid transparent;
    transition: all 0.2s;
    height: auto;
    white-space: nowrap;
    flex-shrink: 0;
}
.rd-page .profile-tabs__header a.active,
.rd-page .profile-tabs__header a:hover {
    background: none;
    color: var(--text-primary);
    border-bottom-color: var(--accent-primary);
}
.rd-page .profile-tabs__append {
    position: sticky;
    right: 0;
    flex-shrink: 0;
    display: none;
    align-items: center;
    margin-left: auto;
    padding-left: 8px;
    background: linear-gradient(90deg, transparent, var(--surface) 30%);
}
.rd-page .profile-tabs__scroll-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--navy-2);
    border: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.rd-page .profile-tabs__scroll-btn:hover { color: var(--text-primary); }
@media (max-width: 767px) {
    .rd-page .profile-tabs__append { display: flex; width: auto !important; }
    .rd-page .profile-tabs__header a { padding: 0 16px 12px; font-size: 15px; }
    .rd-page .profile-main__form .flex.gap-\[12px\] {
        flex-direction: column !important;
    }
    .rd-kyc-status__text { font-size: 12px !important; }
}
.rd-page .profile-tabs__body {
    background: var(--surface);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
}
.rd-page .profile__content {
    min-width: 0 !important;
    overflow: hidden;
}
.rd-page .profile-tabs__body #profile3 {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}
.rd-page .profile-tabs__body .tab-pane { padding: 0; }
.rd-page .profile-main {
    padding: 16px;
}
.rd-page .profile-main__title {
    font-family: 'Unbounded', var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: var(--text-primary);
}
.rd-page .profile-main .text-\[14px\].font-semibold,
.rd-page .profile-main .text-\[12px\].font-medium {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--text-secondary) !important;
    line-height: 18px;
}
.rd-page .profile-main .text-\[16px\].font-bold {
    font-family: 'Unbounded', var(--font-heading);
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
}
.rd-page .profile-main__form button[type=submit] {
    grid-column: auto !important;
    width: 100% !important;
    margin-top: 0 !important;
    align-self: end;
}
.rd-page .profile-main #avatar_wrapper {
    margin-right: 8px !important;
}
.rd-page .profile-main #avatar_preview {
    border-radius: 8px !important;
}
.rd-page .rd-profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.rd-page .rd-profile-stats-card {
    background: var(--navy);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}
.rd-page .rd-profile-stats-card__label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}
.rd-page .rd-profile-stats-card__value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
}
.rd-page .profile-main .rd-vip-level__right {
    margin-bottom: 20px;
}
.rd-page .profile-main__form .v-input__wrapper,
.rd-page .profile-main .v-input__wrapper,
.rd-page .profile-security .v-input__wrapper {
    background: var(--navy) !important;
    border: none !important;
    border-radius: 12px !important;
    overflow: visible !important;
    transition: outline 0.2s;
}
.rd-page .profile-main__form .v-input__wrapper:focus-within,
.rd-page .profile-main .v-input__wrapper:focus-within,
.rd-page .profile-security .v-input__wrapper:focus-within {
    outline: 1px solid var(--accent-primary);
}
.rd-page .profile-main .v-input__border,
.rd-page .profile-security .v-input__border { display: none !important; }
.rd-page .profile-main__form .v-input__element--base,
.rd-page .profile-main .v-input__element--base,
.rd-page .profile-security .v-input__element--base {
    background: transparent !important;
    color: var(--text-primary) !important;
    font-size: 14px;
    font-weight: 600;
}
.rd-page .profile-main__form .v-input__element--base::placeholder,
.rd-page .profile-security .v-input__element--base::placeholder {
    color: var(--text-muted) !important;
    font-weight: 500;
}
.rd-page .profile-main__form .v-input__label,
.rd-page .profile-main .v-input.gray .v-input__label,
.rd-page .profile-security .v-input__label {
    color: var(--text-secondary) !important;
    font-size: 14px;
    font-weight: 600;
}
.rd-page .profile-main__form select,
.rd-page .profile-main select {
    background: var(--navy) !important;
    color: var(--text-primary) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    font-size: 14px;
    font-weight: 600;
}
.rd-page .profile-main .select2-selection--single,
.rd-page .profile-security .select2-selection--single {
    background: var(--navy) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    height: auto !important;
}
.rd-page .profile-main .select2-selection__rendered,
.rd-page .profile-security .select2-selection__rendered {
    color: var(--text-primary) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 0 !important;
    line-height: normal !important;
}
.rd-page .profile-main__form .v-btn-orange,
.rd-page .profile-main .v-btn-orange,
.rd-page .profile-security .v-btn-orange {
    background: linear-gradient(135deg, var(--btn-primary-from), var(--btn-primary-to)) !important;
    border: none !important;
    border-radius: 12px !important;
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-transform: uppercase;
    color: #fff !important;
    transition: opacity 0.2s;
}
.rd-page .profile-main__form .v-btn-orange .btn-overlay,
.rd-page .profile-security .v-btn-orange .btn-overlay {
    background: transparent !important;
}
.rd-page .profile-main__form .v-btn-orange:hover,
.rd-page .profile-security .v-btn-orange:hover {
    opacity: 0.9;
}
.rd-page .profile-security {
    padding: 16px;
    width: 100% !important;
}
.rd-page .profile-security__title {
    font-family: 'Unbounded', var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.rd-page .rd-security-pass-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}
.rd-page .rd-security-pass-row .v-input { flex: 1; }
.rd-page .rd-security-pass-row .v-btn-orange { flex-shrink: 0; align-self: stretch; }
@media (max-width: 767px) {
    .rd-page .rd-security-pass-row {
        flex-direction: column;
        align-items: stretch;
    }
}
.rd-page .profile-table {
    padding: 16px;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}
.rd-page .profile-table table {
    width: 100%;
}
.rd-page .profile-table table {
    font-size: 13px;
    border-collapse: collapse;
}
.rd-page .profile-table table tr th {
    background: transparent !important;
    color: var(--text-muted) !important;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px !important;
}
.rd-page .profile-table.paddingCust {
    background: transparent !important;
    padding: 0 !important;
    display: block !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
    max-width: 100% !important;
    width: 100% !important;
}
.rd-page .profile-table table tbody tr {
    background: transparent;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.04) !important;
}
.rd-page .profile-table table tbody tr td {
    color: var(--text-primary) !important;
    font-size: 12px;
    font-weight: 600;
    padding: 10px 8px !important;
    border-bottom: none !important;
}
.rd-page .profile-table table tbody tr td:first-child {
    border-radius: 0;
}
.rd-page .profile-table table tbody tr td:last-child {
    border-radius: 0;
}
.rd-page .profile-table #terminate_all_sessions_btn {
    display: inline-block;
}
.rd-page .profile-table .profile-device {
    width: 20px !important;
    background: transparent !important;
}
.rd-page .profile-table .profile-device img {
    width: 20px !important;
    height: 20px !important;
}
.rd-page .profile-table .terminate-session-btn {
    color: #F93939 !important;
    font-size: 20px !important;
}
.rd-nogames {
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
    color: var(--text-secondary);
}
.rd-nogames svg {
    color: var(--text-secondary);
    opacity: 0.4;
}
.rd-nogames p {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
}
.rd-page .profile-main__2fa {
    background: var(--navy);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.rd-page .profile-main__2fa .profile-main__2fa-content { flex: 1; }
.rd-page .profile-main__2fa .v-btn-primary,
.rd-page .profile-main__2fa .v-btn-danger {
    position: relative;
    background: linear-gradient(90deg, var(--btn-primary-from), var(--btn-primary-to)) !important;
    border: none !important;
    color: #fff !important;
    font-family: 'Unbounded', var(--font-heading) !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-xl) !important;
    margin-left: auto;
    flex-shrink: 0;
    padding: 12px 24px !important;
}
.rd-page .profile-main__2fa .v-btn-primary::before,
.rd-page .profile-main__2fa .v-btn-danger::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 0.5px;
    background: linear-gradient(90deg, var(--btn-primary-stroke-from), var(--btn-primary-stroke-to));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.rd-page .profile-main__2fa .v-btn-primary .btn-overlay,
.rd-page .profile-main__2fa .v-btn-danger .btn-overlay { display: none; }
.rd-page .profile-main__2fa .subtitle {
    font-size: 14px;
    font-weight: 500;
}
.rd-page .profile-main__2fa .text-green {
    color: var(--accent-primary) !important;
}
.rd-page .profile-main__2fa .text-red {
    color: var(--text-secondary) !important;
}
.rd-page .profile__sidebar {
    background: var(--surface);
    padding: 16px;
    border-radius: 16px;
    gap: 6px;
}
.rd-page .profile__sidebar-link {
    position: relative;
    background: var(--navy);
    border-radius: 8px;
    color: #A8AEC2;
    font-weight: 600;
    font-size: 15px;
    padding: 12px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    width: 100%;
}
.rd-page .profile__sidebar-link img {
    opacity: 0.6;
    transition: opacity 0.2s;
}
.rd-page .profile__sidebar-link:hover {
    background: linear-gradient(90deg, var(--btn-primary-from), var(--btn-primary-to));
    color: #fff;
}
.rd-page .profile__sidebar-link:hover img {
    opacity: 1;
    filter: brightness(0) invert(1);
}
.rd-page .profile__sidebar-link.active {
    background: linear-gradient(90deg, var(--btn-primary-from), var(--btn-primary-to));
    color: #fff;
    font-weight: 700;
}
.rd-page .profile__sidebar-link.active img {
    opacity: 1;
    filter: brightness(0) invert(1);
}
.rd-page .profile__sidebar-link.active::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 0.5px;
    background: linear-gradient(90deg, var(--btn-primary-stroke-from), var(--btn-primary-stroke-to));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.rd-page .profile-main .text-secondary {
    color: var(--text-secondary) !important;
}
.rd-page #profile4 .profile-main__title {
    text-align: left;
}
.rd-page #profile4 #kyc_qr_section {
    background: transparent;
    padding: 0;
    margin-top: 16px;
}
.rd-page #profile4 #kyc_qr_img {
    border-radius: 12px;
}
.rd-page #profile4 #kyc_waiting_msg {
    background: transparent !important;
    color: var(--text-secondary) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 0 !important;
}
.rd-page #profile4 #kyc_qr_section > div {
    padding: 0 !important;
}
.rd-page #profile4 #kyc_qr_section div[style*="color:rgba(255,255,255,0.6)"] {
    color: var(--text-muted) !important;
    margin-bottom: 12px !important;
}
.rd-page #profile4 #kyc_qr_section div[style*="font-size:18px"] {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--text-primary);
    margin-bottom: 8px !important;
}
.rd-page #profile4 .v-btn-orange {
    background: linear-gradient(90deg, var(--btn-primary-from), var(--btn-primary-to)) !important;
    border: none !important;
    border-radius: 12px !important;
    font-family: 'Unbounded', var(--font-heading) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    color: #fff !important;
}
.rd-page #profile4 .v-btn-orange .btn-overlay { display: none !important; }
.rd-kyc-status {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: var(--navy-2);
    border-radius: 12px;
    margin-top: 0;
}
.rd-kyc-status--rejected { margin-bottom: 12px; }
.rd-kyc-status__icon {
    padding: 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.rd-kyc-status__icon--green { background: rgba(95, 255, 119, 0.15); }
.rd-kyc-status__icon--orange { background: rgba(245, 166, 35, 0.15); }
.rd-kyc-status__icon--red { background: rgba(255, 95, 95, 0.15); }
.rd-kyc-status__title {
    font-family: 'Unbounded', var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-primary) !important;
}
.rd-kyc-status__text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 2px;
}
.rd-2fa-modal {
    background: var(--navy) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    max-width: 480px;
    position: relative;
}
.rd-2fa-modal .modal-base__header { display: none !important; }
.rd-2fa-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--surface);
    border: none;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.rd-2fa-modal__close:hover { color: var(--text-primary); }
.rd-2fa-modal__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--btn-primary-from), var(--btn-primary-to));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.rd-2fa-modal__title {
    font-family: 'Unbounded', var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.rd-2fa-modal__steps {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}
.rd-2fa-modal__steps li {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 18px;
    padding-left: 16px;
    position: relative;
    margin-bottom: 8px;
}
.rd-2fa-modal__steps li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-primary);
}
.rd-2fa-modal__qr {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
.rd-2fa-modal__qr canvas,
.rd-2fa-modal__qr img {
    border-radius: 12px;
    background: #fff;
    padding: 12px;
}
.rd-2fa-modal .v-input__wrapper {
    background: var(--surface) !important;
    border: none !important;
    border-radius: 12px !important;
}
.rd-2fa-modal .v-input__border { display: none !important; }
.rd-2fa-modal .v-input__label {
    color: var(--text-secondary) !important;
    font-size: 14px;
    font-weight: 600;
}
.rd-2fa-modal .v-input__element--base {
    background: transparent !important;
    color: var(--text-primary) !important;
}
.rd-2fa-modal .v-input { margin-bottom: 12px; }
.rd-2fa-modal__btn {
    width: 100%;
    background: linear-gradient(90deg, var(--btn-primary-from), var(--btn-primary-to)) !important;
    border: none !important;
    border-radius: 12px !important;
    font-family: 'Unbounded', var(--font-heading) !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-transform: uppercase;
    color: #fff !important;
}
.rd-2fa-modal__btn .btn-overlay { display: none !important; }
#r2fa_content p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    text-align: center;
    color: var(--text2, #a8aec2);
    margin: 0 0 26px;
    padding: 0 !important;
}
#r2fa_content .v-btn-orange {
    width: 100%;
    height: 44px;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    border: 0.5px solid transparent;
    background: linear-gradient(180deg, #6C2CFF 0%, #B253FF 100%) padding-box,
                linear-gradient(180deg, #D080FF 0%, #EEB2FF 100%) border-box !important;
}
#r2fa_content .v-btn-orange .btn-overlay { display: none !important; }
#r2fa_content svg[stroke="#e67635"] { display: none; }
#r2fa_content .v-input__wrapper {
    background: var(--surface) !important;
    border: none !important;
    border-radius: 12px !important;
}
#r2fa_content .v-input__border { display: none !important; }
#r2fa_content .v-input__label {
    color: var(--text-secondary) !important;
    font-size: 14px;
    font-weight: 600;
}
#r2fa_content .v-input__element--base {
    background: transparent !important;
    color: var(--text-primary) !important;
}

/* ── Transactions page ── */
.rd-page .profile-layout.profile-block {
    background: var(--surface) !important;
    border-radius: 16px !important;
    padding: 16px !important;
}
.rd-page .profile-layout.profile-block h1 {
    font-family: 'Unbounded', var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.rd-page .rd-transactions-filter {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.rd-page .rd-transactions-filter__select {
    min-width: 0;
}
.rd-page .rd-transactions-filter__select .custom-select,
.rd-page .rd-transactions-filter__select .select2 {
    width: 100% !important;
}
.rd-page .rd-transactions-filter__select .select2-selection--single {
    background: var(--navy) !important;
    border: none !important;
    border-radius: 12px !important;
    height: 48px !important;
    padding: 12px 16px !important;
}
.rd-page .rd-transactions-filter__select .select2-selection__rendered {
    color: var(--text-primary) !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 24px !important;
    padding: 0 !important;
}
.rd-page .rd-transactions-filter__btn {
    background: linear-gradient(90deg, var(--btn-primary-from), var(--btn-primary-to)) !important;
    border: none !important;
    border-radius: 12px !important;
    font-family: 'Unbounded', var(--font-heading) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    color: #fff !important;
    height: 48px;
}
.rd-page .rd-transactions-filter__btn .btn-overlay { display: none !important; }
@media (max-width: 767px) {
    .rd-page .rd-transactions-filter { grid-template-columns: 1fr 1fr; }
    .rd-page .rd-transactions-filter__btn { grid-column: 1 / -1; }
}
.rd-page .profile-layout .profile-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 !important;
    background: transparent !important;
}
.rd-page .profile-layout .livefeed_table {
    width: 100%;
    border-collapse: collapse;
}
.rd-page .profile-layout .livefeed_table thead th {
    background: transparent !important;
    color: var(--text-muted) !important;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px !important;
}
.rd-page .profile-layout .livefeed_table .livefeed--th {
    background: transparent !important;
    color: var(--text-muted) !important;
    padding: 0 !important;
}
.rd-page .profile-layout .livefeed_table {
    border-collapse: separate !important;
    border-spacing: 0 4px !important;
}
.rd-page .profile-layout .livefeed_table tbody td {
    padding: 0 !important;
    font-size: 14px;
    font-weight: 500;
}
.rd-page .profile-layout .livefeed_table .livefeed--td {
    padding: 14px 16px !important;
    color: var(--text-primary) !important;
    background: transparent !important;
    -webkit-text-fill-color: unset !important;
}
.rd-page .profile-layout .livefeed_table .livefeed--td .success {
    color: var(--text-primary) !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    background: none !important;
}
.rd-page .profile-layout .livefeed-tr.lf-odd {
    background: var(--background) !important;
    border-radius: 12px;
}
.rd-page .profile-layout .livefeed-tr.lf-odd td:first-child { border-radius: 12px 0 0 12px; }
.rd-page .profile-layout .livefeed-tr.lf-odd td:last-child { border-radius: 0 12px 12px 0; }
.rd-page .profile-layout .livefeed-tr.lf-even {
    background: transparent !important;
}
.rd-page .profile-layout .livefeed-tr td .livefeed--td {
    background: transparent !important;
}

.rd-page .profile-layout .livefeed-tr .td-col .livefeed--td span { font-weight: 600; }
.rd-page .profile-layout .livefeed-tr.success .td-col .livefeed--td span,
.rd-page .profile-layout .livefeed-tr.completed .td-col .livefeed--td span { color: #3fcf6a !important; }
.rd-page .profile-layout .livefeed-tr.success_withdraw .td-col .livefeed--td span { color: #f5a623 !important; }
.rd-page .profile-layout .livefeed-tr.wait .td-col .livefeed--td span { color: #f5a623 !important; }
.rd-page .profile-layout .livefeed-tr.delete .td-col .livefeed--td span { color: #F93939 !important; }
.rd-page .profile-layout .profile-table {
    margin-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 16px !important;
}
.rd-page .profile-layout .pagination .page-link {
    background: var(--navy) !important;
    border: none !important;
    color: var(--text-secondary) !important;
    border-radius: 8px !important;
}
.rd-page .profile-layout .pagination .page-item.active .page-link {
    background: linear-gradient(90deg, var(--btn-primary-from), var(--btn-primary-to)) !important;
    color: #fff !important;
}

/* ── Quests page ── */
.rd-page .rd-quest-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 16px;
    margin-bottom: 20px;
}
.rd-page .rd-quest-hero {
    background: url('/templates/redesign/img/vip/quests-bg-pc.png') right bottom / cover no-repeat;
    border-radius: 16px;
    padding: 32px 16px;
    min-height: 180px;
    display: flex;
    align-items: flex-start;
}
.rd-page .rd-quest-hero__content { width: 65%; }
.rd-page .rd-quest-hero__title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.rd-page .rd-quest-hero__title {
    font-family: 'Unbounded', var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    line-height: 21px;
    color: var(--text-primary);
    margin: 0;
}
.rd-page .quest-header__reward {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-secondary);
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 13px;
    margin: 0;
    flex-shrink: 0;
}
.rd-page .quest-header__reward-label { color: var(--text-secondary); font-size: 14px; font-weight: 600; opacity: 0.8; }
.rd-page .quest-header__reward-value { color: var(--accent-primary); font-size: 16px; font-weight: 600; }
.rd-page .rd-quest-hero__progress-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.rd-page .rd-quest-hero__progress-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    opacity: 0.8;
}
.rd-page .rd-quest-hero__progress-rank {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    opacity: 0.8;
}
.rd-page .rd-quest-hero__progress-rank b { color: var(--text-primary); font-weight: 400; }
.rd-page .rd-quest-hero__bar {
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--navy-2);
    margin-bottom: 8px;
    overflow: hidden;
}
.rd-page .rd-quest-hero__bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--btn-primary-from), var(--btn-primary-to));
    transition: width 0.6s ease;
}
.rd-page .rd-quest-hero__done {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    opacity: 0.8;
    margin-bottom: 12px;
}
.rd-page .rd-quest-hero__done b { color: var(--text-primary); font-weight: 400; opacity: 1; }
.rd-page .quest-header__claim {
    background: linear-gradient(90deg, var(--btn-primary-from), var(--btn-primary-to)) !important;
    border: none !important;
    border-radius: 12px !important;
    color: #fff !important;
    font-weight: 700;
    padding: 12px 24px;
    cursor: pointer;
    box-shadow: none !important;
}
.rd-page .rd-quest-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.rd-page .rd-quest-sidebar__block {
    background: var(--surface);
    border-radius: 12px;
    padding: 16px 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.rd-page .rd-quest-sidebar__title {
    font-family: 'Unbounded', var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.rd-page .rd-quest-sidebar__xp-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--background);
    border-radius: 8px;
    padding: 12px;
}
.rd-page .rd-quest-sidebar__xp-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 18px;
    margin-bottom: 4px;
}
.rd-page .rd-quest-sidebar__xp-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
}
.rd-page .rd-quest-sidebar__history-btn {
    display: block;
    text-align: center;
    text-decoration: none;
    width: 100%;
    margin-top: auto;
}
.rd-page .quest-page { max-width: none !important; padding: 0 !important; }
.rd-page .rd-quest-bonus-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 16px;
    margin-bottom: 20px;
}
.rd-page .rd-quest-bonus-hero {
    background: url('/templates/redesign/img/vip/quest-bonus-bg-pc.png') center / cover no-repeat;
    border-radius: 16px;
    padding: 24px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.rd-page .rd-quest-bonus-hero__left {
    flex-shrink: 0;
}
.rd-page .rd-quest-bonus-hero__left .rd-quest-bonus-hero__reward-badge { display: none; }
.rd-page .rd-quest-bonus-hero__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    flex-shrink: 0;
}
.rd-page .rd-quest-bonus-hero__title {
    font-family: 'Unbounded', var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-primary);
    margin: 0 0 8px;
}
.rd-page .rd-quest-bonus-hero__desc {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0 0 16px;
}
.rd-page .rd-quest-bonus-hero__reward-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--background);
    border-radius: 8px;
    padding: 10px 16px;
}
.rd-page .rd-quest-bonus-hero__reward-label {
    font-size: 12px;
    color: var(--text-muted);
}
.rd-page .rd-quest-bonus-hero__reward-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}
.rd-page .rd-quest-howto {
    background: var(--surface);
    border-radius: 16px;
    padding: 20px;
}
.rd-page .rd-quest-howto__title {
    font-family: 'Unbounded', var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-primary);
    margin: 0 0 16px;
}
.rd-page .rd-quest-howto__steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.rd-page .rd-quest-howto__step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.rd-page .rd-quest-howto__step img { flex-shrink: 0; margin-top: 2px; }
.rd-page .rd-quest-howto__step-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 2px;
}
.rd-page .rd-quest-howto__step-desc {
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
    color: var(--text-muted);
}
.rd-page .rd-quest-bonus-hero__claim {
    border: none;
}
.rd-page .rd-quest-bonus-hero__claim--locked {
    cursor: default;
}
.rd-page .rd-quest-bonus-hero__claim.quest-claim-btn {
    position: relative;
    background: linear-gradient(90deg, var(--btn-primary-from), var(--btn-primary-to)) !important;
    color: #fff !important;
    opacity: 1;
}
.rd-page .rd-quest-bonus-hero__claim.quest-claim-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 0.5px;
    background: linear-gradient(90deg, var(--btn-primary-stroke-from), var(--btn-primary-stroke-to));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.rd-page .rd-quest-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--surface);
    border-radius: 12px;
    padding: 18px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1;
    margin-top: 20px;
}
.rd-page .rd-quest-note img { flex-shrink: 0; margin-top: 2px; }
@media (max-width: 767px) {
    .rd-page .rd-quest-bonus-layout { grid-template-columns: 1fr; }
    .rd-page .rd-quest-bonus-hero {
        background: url('/templates/redesign/img/vip/quest-bonus-bg-mob.png') center / cover no-repeat;
        padding: 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        min-height: auto;
    }
    .rd-page .rd-quest-howto { padding: 12px; }
    .rd-page .rd-quest-note { padding: 12px; font-size: 14px; font-weight: 600; }
    .rd-page .rd-quest-bonus-hero__left .rd-quest-bonus-hero__reward-badge { display: flex; width: 100%; }
    .rd-page .rd-quest-bonus-hero__right .rd-quest-bonus-hero__reward-badge { display: none !important; }
    .rd-page .rd-quest-bonus-hero__right { align-items: stretch; }
    .rd-page .rd-quest-bonus-hero__claim { display: block !important; width: 100%; text-align: center; }
    .rd-page .rd-quest-bonus-hero__title { font-size: 16px; }
}
.rd-page .quest-card {
    border-radius: 16px !important;
    padding: 16px !important;
    min-height: 200px !important;
}
.rd-page .quest-card::before { display: none; }
.rd-page .quest-card:hover {
    transform: none !important;
    box-shadow: none !important;
}
.rd-page .quest-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}
.rd-page .quest-card__title {
    font-family: 'Unbounded', var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}
.rd-page .quest-card__badge {
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 18px !important;
    padding: 4px 8px !important;
    border-radius: 8px !important;
    white-space: nowrap;
    color: #fff !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}
.rd-page .quest-card.quest-card--done {
    background: url('/templates/redesign/img/vip/quest-done-bg.png') center / cover no-repeat !important;
    box-shadow: none !important;
}
.rd-page .quest-card--done .quest-card__title,
.rd-page .quest-card--done .quest-card__desc,
.rd-page .quest-card--done .quest-card__progress-info,
.rd-page .quest-card--done .quest-card__reward-label,
.rd-page .quest-card--done .quest-card__reward-value {
    color: var(--text-secondary) !important;
}
.rd-page .quest-card--done .quest-card__progress { display: none; }
.rd-page .quest-card__badge--completed {
    background: #36A513 !important;
    color: #fff !important;
}
.rd-page .quest-card__badge--active {
    background: var(--accent-primary) !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 4px 8px !important;
}
.rd-page .quest-card__desc-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.rd-page .quest-card__desc {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 18px;
    margin: 0;
}
.rd-page .quest-card__targets {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 0 !important;
}
.rd-page .quest-card__progress-bar {
    height: 6px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.2);
    overflow: hidden;
    margin-bottom: 8px;
}
.rd-page .quest-card__progress-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--btn-primary-from), var(--btn-primary-to));
    transition: width 0.6s ease;
}
.rd-page .quest-card__progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    margin-top: 6px;
}
.rd-page .quest-card__reward {
    background: rgba(35, 52, 76, 0.7) !important;
    border-radius: 8px !important;
    padding: 5px 8px !important;
    margin-top: auto !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.rd-page .quest-card__reward-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 !important;
}
.rd-page .quest-card__reward-value {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}
.rd-page .quest-card__claim {
    position: relative;
    background: linear-gradient(90deg, var(--btn-primary-from), var(--btn-primary-to)) !important;
    border: none !important;
    border-radius: var(--radius-xl) !important;
    color: #fff !important;
    font-family: 'Unbounded', var(--font-heading) !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px;
    padding: 12px 24px !important;
    cursor: pointer;
    box-shadow: none !important;
    width: 100%;
    margin-top: 8px !important;
}
.rd-page .quest-card__claim::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 0.5px;
    background: linear-gradient(90deg, var(--btn-primary-stroke-from), var(--btn-primary-stroke-to));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.rd-page .quest-section { margin-bottom: 20px; }
.rd-page .quest-section__title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px !important;
}
.rd-page .quest-section__count {
    background: var(--accent-secondary) !important;
    color: var(--accent-primary) !important;
    font-size: 15px;
    font-weight: 600;
    padding: 6px 8px;
    border-radius: 6px;
}
.rd-page .quest-header { display: none; }
@media (max-width: 767px) {
    .rd-page .rd-quest-layout { grid-template-columns: 1fr; }
    .rd-page .rd-quest-hero {
        background: url('/templates/redesign/img/vip/quests-bg-mob.png') right bottom / auto 100% no-repeat, var(--surface);
        padding: 12px;
        min-height: 115px;
    }
    .rd-page .rd-quest-hero__content { width: 100%; }
    .rd-page .rd-quest-hero__title { font-size: 18px; }
    .rd-page .rd-quest-sidebar__block { padding: 12px; }
    .rd-page .rd-quest-sidebar__xp-row { margin-bottom: 12px; }
}

/* ── Livefeed (home page) ── */
.rd-page .livefeed {
    margin-bottom: 30px;
}
.rd-page .livefeed__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 12px;
}
.rd-page .livefeed__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-primary);
    white-space: nowrap;
}
.rd-page .livefeed__tabs {
    display: flex;
    gap: 4px;
    background: var(--surface);
    border-radius: 12px;
    padding: 4px;
}
.rd-page .livefeed__body {
    background: var(--surface);
    border-radius: 16px;
    padding: 16px;
    overflow: hidden;
}
.rd-page .livefeed__top {
    display: none !important;
}
.rd-page .livefeed__top-btn {
    background: transparent !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    font-family: 'Unbounded', var(--font-heading) !important;
    text-transform: uppercase !important;
    color: var(--text-primary) !important;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}
.rd-page .livefeed__top-btn.active {
    background: #273852 !important;
    border: 0.5px solid #354362 !important;
    color: var(--text-primary) !important;
}
.rd-page .livefeed__top-btn img { display: none !important; }
.rd-page .livefeed .livefeed_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.rd-page .livefeed .livefeed--th {
    background: transparent !important;
    color: var(--text-muted) !important;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 0 16px 0 !important;
}
.rd-page .livefeed .livefeed-tr:nth-child(odd) td {
    background: var(--navy) !important;
}
.rd-page .livefeed .livefeed-tr:nth-child(even) td {
    background: transparent !important;
}
.rd-page .livefeed .livefeed-tr td {
    padding: 0 !important;
    border: none !important;
}
.rd-page .livefeed .livefeed-tr td:first-child {
    border-radius: 12px 0 0 12px;
}
.rd-page .livefeed .livefeed-tr td:last-child {
    border-radius: 0 12px 12px 0;
}
.rd-page .livefeed .livefeed--td {
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary) !important;
    background: transparent !important;
}
.rd-page .livefeed .livefeed--td .success {
    color: var(--text-primary) !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.rd-page .livefeed .livefeed--td .success::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('/templates/redesign/img/vip/dollar-circle.svg') no-repeat center / contain;
    flex-shrink: 0;
}
.rd-page .livefeed .lf-time { white-space: nowrap; }
.rd-page .livefeed .livefeed--td-time {
    display: flex !important;
    align-items: center;
    gap: 6px;
    color: var(--text-primary) !important;
    font-size: 14px;
    font-weight: 500;
}
.rd-page .livefeed .livefeed--td-time img {
    opacity: 0.6;
    flex-shrink: 0;
}
.rd-page .livefeed .livefeed--td-mult {
    color: #a78bfa;
    font-size: 14px;
    font-weight: 700;
}
.rd-page .livefeed .livefeed--td_icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.rd-page .livefeed .livefeed--td_icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rd-page .livefeed .livefeed--td_name a {
    color: var(--text-primary) !important;
    text-decoration: none;
    font-weight: 600;
}
/* Множитель — синяя «пилюля» (BET / MULTIPLIER / PAYOUT макет) */
.rd-page .livefeed .livefeed--td_mult {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    background: #0d8bff;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-weight: 700;
    font-size: 13px;
    line-height: 18px;
    white-space: nowrap;
}
.rd-page .livefeed .livefeed--td.txt-right { text-align: right; justify-content: flex-end; }
.rd-page .livefeed .tab-pane { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 767px) {
    .rd-page .livefeed .livefeed_table { width: 100%; table-layout: fixed; }
    .rd-page .livefeed { padding: 0; margin: 0; }
    .rd-page .livefeed__top { flex-wrap: wrap; gap: 8px; }
    .rd-page .livefeed__header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .rd-page .livefeed__tabs { width: 100%; }
    .rd-page .livefeed__top-btn { flex: 1; text-align: center; font-size: 11px !important; padding: 10px 8px !important; }
    .rd-page .livefeed__body { padding: 8px !important; overflow-x: hidden !important; }
    .rd-page .livefeed .tab-pane { overflow-x: hidden; }
    .rd-page .livefeed .livefeed--td { padding: 6px 4px !important; font-size: 12px !important; }
    .rd-page .livefeed .livefeed--td_icon { width: 28px; height: 28px; flex-shrink: 0; }
    .rd-page .livefeed .livefeed_table { border-spacing: 0 6px !important; }
    .rd-page .livefeed .livefeed--th { padding: 0 0 10px 0 !important; font-size: 11px !important; }
    .rd-page .livefeed .livefeed--td-mult { font-size: 11px !important; display: inline-block; padding: 2px 8px; border-radius: 999px; background: #0d8bff; color: #fff !important; white-space: nowrap; }
    .rd-page .livefeed .livefeed--td .success { font-size: 12px !important; gap: 3px !important; }
    .rd-page .livefeed .livefeed--td .success::before { width: 12px !important; height: 12px !important; }
    .rd-page .livefeed .livefeed--td_name a { font-size: 12px !important; }
    .rd-page .livefeed table th.hm,
    .rd-page .livefeed table td.hm { display: none !important; }
    .rd-page .livefeed .livefeed_table th:first-child { width: 40%; }
    .rd-page .livefeed .livefeed_table th.lf-time { width: 18%; }
    .rd-page .livefeed .livefeed_table th:nth-child(4) { width: 24%; }
    .rd-page .livefeed .livefeed_table th:last-child { width: 18%; }
    .rd-page .livefeed .livefeed--td_name { min-width: 0; overflow: hidden; }
    .rd-page .livefeed .livefeed_table td:last-child .livefeed--td { padding-right: 8px !important; }
    .rd-page .livefeed .livefeed_table td { vertical-align: middle !important; }
    .rd-page .livefeed .livefeed_table td.lf-time .livefeed--td { display: flex; align-items: center; height: 100%; }
    .rd-page .livefeed .livefeed--th { height: 12px; }
    .rd-page .livefeed__body { padding: 12px !important; overflow-x: hidden !important; }
    .rd-page .slid__prev, .rd-page .slid__next { display: none !important; }
}

/* Тост помилки/події (#error_message/#event_message) — завжди 1-м планом,
   поверх будь-якої модалки (каса #rd_cashier має z-index:1000000). */
.Vue-Toastification__container{ z-index:2000001 !important; }

.bonus-header {
    background: url(../img/support-bg.png) no-repeat center center !important;
    background-size: cover !important;
    padding: 30px 16px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 1;
    border-radius: 16px !important;
    overflow: hidden;
}
.bonus-header__logo,
.bonus-header .rd-header__logo-img {
    margin-bottom: 40px !important;
}
.bonus-header__title {
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    font-size: 22px !important;
    letter-spacing: -0.01em !important;
    color: var(--text-primary) !important;
    margin: 0 0 30px !important;
}
.bonus-header__subtitle {
    font-size: 13px !important;
    font-weight: 400 !important;
    color: var(--text-secondary) !important;
    line-height: 1.5 !important;
}
.bonus-header__items {
    background: var(--background) !important;
}
@media (max-width: 767px) {
    .bonus-header,
    .bonus-header .rd-header__logo-img {
        margin-bottom: 16px !important;
    }
    .bonus-header .rd-header__logo-img {
        width: 150px !important;
    }
    .bonus-header {
        padding: 16px !important;
    }
    .bonus-header__title {
        font-size: 20px !important;
        margin: 0 0 12px !important;
    }
    .bonus-header__subtitle {
        font-size: 14px !important;
    }
    .bonus-header__items {
        flex-direction: row !important;
        justify-content: center !important;
        gap: 0 !important;
        padding: 20px !important;
        margin-top: 12px !important;
    }
    .bonus-header__items-item,
    .bonus-header__items-item:first-child,
    .bonus-header__items-item:last-child,
    .bonus-header__items-item + .bonus-header__items-item {
        flex: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        border: none !important;
        border-top: none !important;
        border-right: none !important;
        border-bottom: none !important;
        border-left: none !important;
        box-shadow: none !important;
        outline: none !important;
    }
    .bonus-header__items-item + .bonus-header__items-item::before {
        display: none !important;
    }
    .bonus-header__items-item .text {
        display: none !important;
    }
    .bonus-header__items-item img {
        margin: 0 !important;
    }
}
.bonus-header::after {
    display: none !important;
}
#error_message, #event_message{ z-index:2000001 !important; }

/* ── RD cashier: мобильные шаги (методы → сумма) + кнопка «назад» ──
   Базовые правила выше жёстко фиксируют ширины панелей (flex:0 0 340/381px),
   из-за чего на мобилке правая панель уезжала за экран. Здесь (в самом конце
   файла, чтобы перебить всё) делаем одноколоночный степ-флоу:
   по умолчанию видим методы, после выбора метода — экран суммы, «назад» — обратно. */
/* Кнопка «назад» — квадратная иконка 32×32 в шапке (Figma), шеврон 14×14.
   Показывается только на мобильном шаге суммы (класс rd-m-amount в @media ниже). */
#rd_cashier .rd-mback{
  display:none; align-items:center; justify-content:center; flex:0 0 32px;
  width:32px; height:32px; padding:0; margin-right:10px;
  background:var(--input,#0e1525); border:1px solid var(--border,#232d44);
  border-radius:9px; color:var(--text2,#a8aec2); cursor:pointer;
  transition:background .15s ease, border-color .15s ease, color .15s ease;
}
#rd_cashier .rd-mback:hover{ background:var(--panel,#1a2336); border-color:#3a496b; color:#fff; }
#rd_cashier .rd-mback:active{ transform:scale(.94); }
#rd_cashier .rd-mback svg{ width:14px; height:14px; display:block; }

/* Поиск в кассе временно скрыт на ВСЕХ версиях (не нужен сейчас; вернуть —
   убрать это правило, HTML/JS #rd_search на месте). */
#rd_cashier .rd-search{ display:none !important; }
@media (max-width:760px){
  /* Bottom-sheet как в макете: прижата к низу, полная ширина, скруглён верх */
  #rd_cashier{ align-items:flex-start !important; padding-top:8px; }
  #rd_cashier .rd-cashier__dialog{
    flex-direction:column !important;
    width:100vw !important; max-width:100vw !important;
    max-height:92vh !important; gap:0 !important; margin:0 !important;
  }
  #rd_cashier .rd-left,
  #rd_cashier .rd-right{
    flex:1 1 auto !important; width:100% !important; max-width:100% !important;
    max-height:92vh !important;
    border-radius:18px 18px 0 0 !important;
    border-left:none !important; border-right:none !important; border-bottom:none !important;
  }
  /* по умолчанию — шаг методов; сумма скрыта, пока не выбрали метод */
  #rd_cashier .rd-right{ display:none !important; }
  #rd_cashier.rd-m-amount .rd-left{ display:none !important; }
  #rd_cashier.rd-m-amount .rd-right{ display:flex !important; }
  /* режим перевода: методов нет — сразу показываем правую панель */
  #rd_cashier.rd-transfer-mode .rd-right{ display:flex !important; }
  /* кнопка «назад» — только на шаге суммы */
  #rd_cashier.rd-m-amount .rd-mback{ display:inline-flex; }

  /* CRYPTO-вкладка: полоска подтабов (Crypto/Cryptobot/xRocket) — постоянный
     переключатель, ВСЕГДА видна (rd-left не прячем даже на шаге суммы). Под ней:
     сетка монет (coins без выбора) ЛИБО форма/QR (монета выбрана или cb/xr).
     Смена монеты — через дропдауны (rd-cnrow), поэтому кнопка «назад» не нужна.
     Перебивает степ-правила fiat выше. */
  #rd_cashier.rd-cryptoview .rd-left{
    display:flex !important; flex:0 0 auto !important;
    overflow:visible !important; max-height:none !important;
    border-radius:18px 18px 0 0 !important; border-bottom:none !important;
  }
  /* Вся левая панель скроллится ЦЕЛИКОМ (монеты + подтабы + бонус-карты доступны).
     Внутренний скролл сетки убран (max-height/overflow), иначе бонус-карты (сиблинг
     снизу) обрезались и до них нельзя было доскроллить (юзер: «скролл не работает»,
     особенно с 2 бонусами casino+sport). */
  #rd_cashier.rd-cryptoview .rd-left > .rd-methods{
    overflow:visible !important; max-height:none !important;
  }
  /* .rd-bonus (спорт-бонус карта) НЕ прячем на крипте — юзер хочет видеть бонус и на
     Crypto (как на Fiat). На шаге сетки монет карта снизу (скролл). На шаге QR весь
     левый скрыт → бонус тоже не мешает. */
  #rd_cashier.rd-cryptoview .rd-left > .rd-features,
  #rd_cashier.rd-cryptoview .rd-left > .rd-history{ display:none !important; }
  /* Кнопка «назад» на крипте: показываем на шаге QR/суммы монеты (rd-showamount),
     чтобы вернуться к сетке монет+сетей. Для cb/xr (rd-tgsub) сетки нет — скрываем. */
  #rd_cashier.rd-cryptoview .rd-mback{ display:none !important; }
  #rd_cashier.rd-cryptoview.rd-showamount:not(.rd-tgsub) .rd-mback{ display:inline-flex !important; }
  /* По умолчанию на крипте: сетка монет видна, форма/QR скрыта. Класс rd-showamount
     ставит applyView, когда монета ВЫБРАНА (для текущего режима) или это cb/xr —
     тогда прячем сетку и показываем форму/QR. НЕ завязано на rd-m-amount (он не
     сбрасывается при смене режима → сетка пропадала после toggle DEPOSIT). */
  #rd_cashier.rd-cryptoview .rd-right{ display:none !important; }
  #rd_cashier.rd-cryptoview.rd-showamount .rd-left > .rd-methods{ display:none !important; }
  #rd_cashier.rd-cryptoview.rd-showamount .rd-right{
    display:flex !important; flex:1 1 auto !important;
    border-radius:0 !important; border-top:none !important;
  }
  /* Крипта на мобильном — ОДИН цельный модал (подтабы сверху + QR/форма снизу), без
     зазора между панелями и без дублирующего крестика. На шаге QR (rd-showamount)
     закрытие — крестик формы (rd-head__close); крестик левой панели прячем, чтобы не
     было двух X. На шаге сетки монет (не showamount) крестик левой панели остаётся. */
  #rd_cashier.rd-cryptoview .rd-cashier__dialog{ gap:0 !important; }
  #rd_cashier.rd-cryptoview.rd-showamount .rd-left__close{ display:none !important; }
  #rd_cashier.rd-cryptoview.rd-showamount .rd-left{ border-radius:18px 18px 0 0 !important; border-bottom:none !important; }
  #rd_cashier.rd-cryptoview.rd-showamount .rd-right{ border-radius:0 0 18px 18px !important; }
  /* МОНЕТЫ: после выбора монеты+сети (rd-showamount + есть сетка = НЕ tgsub) прячем ВЕСЬ
     верх (тумблер+вкладки+подтабы+сетка) → показываем ТОЛЬКО QR/адрес с кнопкой «назад»
     (возврат к сетке), как фиат-флоу. Раньше верх оставался над QR (юзер: «выбрал сеть, а
     сверху всё равно показывает»). cb/xr (tgsub) — остаётся цельный модал с подтабами. */
  #rd_cashier.rd-cryptoview.rd-showamount:not(.rd-tgsub) .rd-left{ display:none !important; }
  #rd_cashier.rd-cryptoview.rd-showamount:not(.rd-tgsub) .rd-right{ border-radius:18px !important; border-top:none !important; }
  /* cb/xr (CryptoBot/xRocket) на мобильном — крестик закрытия ВВЕРХУ (rd-left__close), а
     не в середине формы. У cb/xr нет «шага QR монеты», всё стекается сразу: подтабы →
     бонус → форма, и крестик формы (rd-head__close) уходил в середину (жалоба шефа).
     Прячем крестик формы, показываем крестик левой панели вверху. Спецификой (3 класса)
     перебиваем rd-showamount .rd-left__close{display:none} выше. */
  #rd_cashier.rd-cryptoview.rd-showamount.rd-tgsub .rd-left__close{ display:flex !important; }
  #rd_cashier.rd-cryptoview.rd-tgsub .rd-head__close{ display:none !important; }
  /* ЕДИНЫЙ СКРОЛЛ для ВСЕЙ крипты (монеты И cb/xr, пополнение И вывод): панели растут по
     контенту (overflow:visible, max-height:none), диалог растёт, а скролл-контейнер — сам
     ОВЕРЛЕЙ #rd_cashier (overflow-y:auto, align-items:flex-start, как страница). Раньше было
     по-состояниям: монеты — внутренний скролл .rd-left, cb/xr — скролл оверлея. Из-за этого
     монеты ВЫВОДА не скроллились (внутренний скролл .rd-left не срабатывал → кнопка снизу
     недоступна). Теперь один механизм на всё. touchmove-хендлер (main.js) пропускает скролл
     оверлея. */
  #rd_cashier.rd-cryptoview .rd-right{ overflow:visible !important; max-height:none !important; }
  /* САМ ДИАЛОГ = скролл-контейнер (bottom-sheet): ограничен по высоте (влезает в экран,
     оверлей уже align-items:flex-start + padding 8px), overflow-y:auto. Панели растут внутрь
     (overflow:visible, max-height:none выше) → весь крипто-контент (подтабы+монеты/форма+бонус+
     кнопка) скроллится ВНУТРИ диалога. Раньше полагались на скролл оверлея (flex-элемент выше
     контейнера — ненадёжный quirk, не срабатывал на выводе). Диалог ОГРАНИЧЕН, поэтому его низ
     НЕ уходит за экран (прошлая причина отказа от dialog-scroll была из-за max-height:none). */
  #rd_cashier.rd-cryptoview .rd-cashier__dialog{
    max-height:calc(100vh - 16px) !important; overflow-y:auto !important; overflow-x:hidden !important;
    -webkit-overflow-scrolling:touch;
  }
  #rd_cashier.rd-cryptoview{
    align-items:flex-start !important; padding-top:8px !important; padding-bottom:8px !important;
  }
}

/* ============================================================
   PLAY PAGE — размеры карточек слайдеров как в макете (6 в ряд на десктопе).
   Scoped на .rd-play-bottom, чтобы НЕ трогать главную (она тоже .rd-page).
   Swiper тут slidesPerView:'auto' → читает CSS-ширину слайда.
   ============================================================ */
.rd-play-bottom .swiper-slide-game{ flex:0 0 45% !important; max-width:45% !important; }
@media (min-width:480px){ .rd-play-bottom .swiper-slide-game{ flex-basis:33.333% !important; max-width:33.333% !important; } }
@media (min-width:768px){ .rd-play-bottom .swiper-slide-game{ flex-basis:25% !important; max-width:25% !important; } }
@media (min-width:1024px){ .rd-play-bottom .swiper-slide-game{ flex-basis:20% !important; max-width:20% !important; } }
@media (min-width:1280px){ .rd-play-bottom .swiper-slide-game{ flex-basis:16.666% !important; max-width:16.666% !important; } }
/* Карточки чуть скруглённее — как в макете */
.rd-play-bottom .card-slot_placeholder,
.rd-play-bottom .card-slot_placeholder img{ border-radius:14px !important; }

/* ============================================================
   PLAY PAGE (game-area) — redesign. Старая разметка slot__body (game.css)
   не трогается (JS игры хрупкий): только CSS-оверрайды в контексте .rd-page.
   Панель управления игрой переносим ПОД игру (flex-order), в rd-стиле.
   ============================================================ */
/* game_top и game_wrapper — оставляем ширину .container (как секции ниже),
   чтобы игра и слайдеры были ОДНОЙ ширины (иначе провайдеры «сужались»). */
.rd-page .game_top .v-btn-main2{
  background:#172233 !important; border:1px solid #232f47 !important; border-radius:10px !important;
  color:#cfd6e2 !important; height:36px; padding:0 14px;
}
.rd-page .game_top .v-btn-main2:hover{ background:#1f2b42 !important; border-color:#33405d !important; }

.rd-page .slot__body{
  display:flex; flex-direction:column;
  background:#0B111E; border:1px solid #1e2740; border-radius:16px; overflow:hidden;
}
/* игра сверху, тулбар — снизу */
.rd-page .slot__body-wrapper{ order:1; }
.rd-page .slot__body-header{
  order:2; background:#0e1525; border-top:1px solid #1e2740; padding:12px 16px; gap:8px;
}
/* лого-центр из тулбара убираем (в макете его нет) */
.rd-page .slot__body-header-center{ display:none !important; }
/* кнопки — слева, тумблер «Демо» — справа */
.rd-page .slot__body-header-btns{ order:1; flex:1 1 auto; justify-content:flex-start; }
.rd-page .slot__body-header-left{ order:3; flex:0 0 auto; }
.rd-page .slot__body-header-btn{
  width:38px; height:38px; background:#172233; border:1px solid #232f47; border-radius:10px;
  transition:background .15s ease, border-color .15s ease;
}
.rd-page .slot__body-header-btn:hover{ background:#1f2b42; border-color:#33405d; }
/* тумблер «Демо» — синий, как в макете */
.rd-page .slot__body-header-demo.v-toggle{ background:#1a2336; }
.rd-page .slot__body-header-demo.v-toggle:before{ background:#0d8bff; }
.rd-page .slot__body-header-left .text-secondary{ color:#a8b0c2; }

/* ── Game embedded in site layout (класс .gamepage добавляет play.php JS) ──
   Игра рендерится В БЛОКЕ внутри контентной колонки: сайт-хедер/сайдбар/футер
   ОСТАЮТСЯ видимы. Прячем только лишние слайдеры/лайвфид вокруг игры на странице
   play, чтобы страница была игро-фокусной, но в рамках лейаута сайта. */
.gamepage .rd-chat,
.gamepage .rd-bottombar,
.gamepage .game_top,
.gamepage .game_wrapper .slideContainer,
.gamepage .game_wrapper .livefeed,
.gamepage .game_wrapper .prov_section_html,
.gamepage .game_wrapper [class*="home-slider"],
.gamepage .game_wrapper [class*="freespins"] { display: none !important; }

/* #play вписан в контейнер игры (не fullscreen). Высота — крупная, но в потоке;
   fullscreen доступен по кнопке .fullScreen в слот-хедере (requestFullscreen). */
.gamepage #play {
    display: block !important;
    position: static !important;
    width: 100% !important;
    height: calc(100vh - 150px) !important;
    min-height: 460px;
    max-height: 860px;
    background: #000;
    border: none !important;
    border-radius: 12px;
    /* opacity НЕ форсим: ей управляет JS (play.php) — showFrame()=1 при успехе,
       showGameError()=0 при ошибке. !important тут ломал скрытие iframe на ошибке
       → дамп iframe накладывался на дамп оверлея. */
}
@media (max-width: 768px) {
    .gamepage .rd-header,
    .gamepage .rd-sidebar,
    .gamepage .rd-footer,
    .gamepage .rd-bottombar,
    .gamepage .rd-page .slot__body-header { display: none !important; }
    .gamepage .rd-main { margin-left: 0 !important; padding: 0 !important; }
    .gamepage .rd-layout { overflow: hidden; }
    .gamepage #play {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-height: unset !important;
        max-height: unset !important;
        border-radius: 0 !important;
        z-index: 99999;
    }
}

/* ============================================================
   PAY_OTHER — страница реквизитов перевода (/?do=pay_other) в стиле редизайна.
   .rd-payreq оборачивает старую .bonus-page разметку; функциональные id/JS
   (#p2preq, .copyreqp2p, #timerp2p, #btnPaid/#btnCancel) НЕ трогаем — только вид.
   ============================================================ */
.rd-payreq.bonus-page { display:flex !important; justify-content:center !important; align-items:flex-start; width:100% !important; max-width:100% !important; padding:24px 16px 56px; background:transparent; }
.rd-payreq .bonus-rangs {
    margin: 0 auto;
    background: var(--navy);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 20px;
    padding: 26px 22px;
    width: 440px; max-width: 100%;
    display: flex; flex-direction: column; align-items: stretch; gap: 16px;
    box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
/* Заголовок "Пополнение" — свой чистый класс rd-payreq__title (старый
   .bonus-benefits__title тянул баннер-фон/фикс-ширину из легаси — не используем). */
.rd-payreq__title {
    display: block; width: 100%; margin: 0; padding: 0;
    font-family: var(--font-heading, inherit);
    font-size: 20px; font-weight: 800; line-height: 1.3;
    color: var(--text-primary); text-align: center; text-transform: none;
    word-break: normal; overflow-wrap: anywhere;
}
/* Номер заказа — отдельной приглушённой строкой под заголовком */
.rd-payreq .rd-payreq__order {
    margin-top: -8px; width: 100% !important; align-self: stretch !important; text-align: center !important;
    font-size: 12px; font-weight: 600; letter-spacing: .3px;
    color: var(--text-muted); word-break: break-all; overflow-wrap: anywhere;
}
.rd-payreq .bonus-rangs > .flex.flex-col { width: 100% !important; }
/* Строка-реквизит */
.rd-payreq .v-input.gray { display:flex; flex-direction:column; gap:6px; }
.rd-payreq .v-input__label { font-size:12px; font-weight:600; color: var(--text-muted); text-transform:none; padding:0; }
.rd-payreq .v-input__wrapper {
    display:flex; align-items:center; gap:10px;
    background: var(--background); border:1px solid rgba(255,255,255,.08);
    border-radius:12px; padding:11px 14px; min-height:48px;
}
.rd-payreq .v-input__border { display:none !important; }
.rd-payreq .v-input__element {
    background:transparent !important; border:0 !important; outline:none;
    color: var(--text-primary) !important; font-size:15px; font-weight:600;
    width:100%; padding:0; height:auto; box-shadow:none !important;
}
.rd-payreq .v-input__suffix, .rd-payreq .v-input__suffix-btn { background:none; border:0; padding:0; display:flex; align-items:center; cursor:pointer; }
.rd-payreq .copyreqp2p { color: var(--accent-primary); cursor:pointer; transition:opacity .15s; }
.rd-payreq .copyreqp2p:hover { opacity:.7; }
/* Сумма — акцент */
.rd-payreq #p2psumm { color: var(--accent-primary) !important; font-size:18px; font-weight:800; }
/* Инфо / предупреждения */
.rd-payreq .ctimer-stop {
    display:flex; align-items:flex-start; gap:8px;
    font-size:13px; color: var(--text-primary); font-weight:600; line-height:1.5;
    background: rgba(244,162,2,.10); border:1px solid rgba(244,162,2,.32);
    border-radius:12px; padding:12px 14px; margin:0;
}
.rd-payreq .ctimer-stop b, .rd-payreq .ctimer-stop strong { color:#ffca4a; font-weight:800; }
.rd-payreq .ctimer-stop .icon { color:#f4a202; margin-top:1px; flex-shrink:0; }
/* «Заявки без оплати…» — критично (красный акцент) */
.rd-payreq .bg-secondary, .rd-payreq .dark\:bg-secondary-200 { background: rgba(244,75,75,.12) !important; color: var(--text-primary) !important; font-weight:700 !important; border:1px solid rgba(244,75,75,.32) !important; border-radius:12px !important; }
/* Таймер обратного отсчёта — как серая кнопка «Забрати нагороду» (rd-hero__card-btn) */
.rd-payreq .ctimer {
    display:flex; align-items:center; justify-content:center; gap:2px;
    font-family: var(--font-heading); font-weight:700; font-size:13px; text-transform:uppercase; letter-spacing:.3px;
    background: linear-gradient(180deg, var(--btn-secondary-from) 0%, var(--btn-secondary-to) 100%);
    border: 0.5px solid var(--btn-secondary-stroke-from);
    color: var(--text-primary) !important;
    border-radius:12px; padding:13px; min-height:48px;
}
.rd-payreq .ctimer .min, .rd-payreq .ctimer .sec { color: var(--text-primary); }
/* Кнопки действий */
/* «Я сплатив» — как кнопка «Поповнити» в шапке (.rd-header__deposit-btn) */
.rd-payreq #btnPaid, .rd-payreq .v-btn-yellow {
    position: relative;
    background: linear-gradient(90deg, var(--btn-primary-from), var(--btn-primary-to)) !important;
    color: var(--text-primary) !important; border:0 !important;
    border-radius: var(--radius-xl) !important;
    min-height:48px; font-weight:700; font-size:13px; text-transform:uppercase; letter-spacing:.5px;
    display:flex; align-items:center; justify-content:center;
}
.rd-payreq #btnPaid::before, .rd-payreq .v-btn-yellow::before {
    content:''; position:absolute; inset:0; border-radius: var(--radius-xl); padding:0.5px;
    background: linear-gradient(90deg, var(--btn-primary-stroke-from), var(--btn-primary-stroke-to));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; pointer-events:none;
}
.rd-payreq #btnPaid:hover, .rd-payreq .v-btn-yellow:hover { opacity:.9; }
.rd-payreq #btnCancel, .rd-payreq .v-btn-red {
    background: rgba(255,255,255,.05) !important; color: var(--text-secondary) !important;
    border:1px solid rgba(255,255,255,.1) !important; border-radius:12px !important; min-height:48px; font-weight:700; font-size:15px;
    display:flex; align-items:center; justify-content:center;
}
.rd-payreq #btnCancel:hover, .rd-payreq .v-btn-red:hover { background: rgba(255,255,255,.09) !important; color: var(--text-primary) !important; }

.rd-wallet-backdrop {
    position: fixed; inset: 0; z-index: 109;
    background: rgba(6,9,18,.72); backdrop-filter: blur(1px); -webkit-backdrop-filter: blur(1px);
    opacity: 0; transition: opacity .2s ease;
}
.rd-wallet-backdrop--visible { opacity: 1; }
/* ====================================================================
 * Мульти-валютный кошелёк (Ф3): панель суб-счетов в дропдауне баланса.
 * Наследует базу .rd-balance-dropdown (позиционирование + rd-dropdown--open).
 * ==================================================================== */
.rd-wallet { width: 320px; padding: 12px; }
.rd-wallet__title {
    font-size: 12px; font-weight: 700; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: .05em; padding: 0 4px 10px;
}
.rd-wallet__label {
    font-size: 11px; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: .04em; padding: 0 4px 6px;
}
/* активный счёт — карточка с акцентной подсветкой */
.rd-wallet__active {
    display: flex; align-items: center; gap: 12px;
    padding: 8px; margin-bottom: 12px; border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(108,44,255,.18), rgba(178,83,255,.10));
    border: 1px solid rgba(178,83,255,.35);
}
.rd-wallet__active-flag { font-size: 24px; line-height: 1; }
.rd-wallet__active-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rd-wallet__active-label {
    font-size: 11px; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: .04em;
}
.rd-wallet__active-amount { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.rd-wallet__active-amount b { color: var(--text-secondary); font-weight: 700; }
/* список других счетов */
.rd-wallet__list { display: flex; flex-direction: column; gap: 2px; }
.rd-wallet__acct {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: var(--radius-lg);
    color: var(--text-secondary); font-size: 14px; font-weight: 600;
    width: 100%; background: transparent; border: 0; cursor: pointer; text-align: left;
    transition: background .15s ease, color .15s ease;
}
.rd-wallet__acct:hover { background: var(--navy); color: var(--text-primary); }
.rd-wallet__acct-flag { font-size: 18px; display:flex; align-items:center; }
.rd-wallet__acct-flag img { width:22px; height:22px; object-fit:contain; }
.rd-wallet__acct-code { flex: 1; font-weight: 600; }
.rd-wallet__acct-amount { margin-left: auto; color: var(--text-primary); font-weight: 700; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
/* «≈ $X» рядом с балансом: у активного счёта inline после суммы, у прочих — второй
   строкой под суммой (справа). Курс плавает → приблизительно, приглушённый мелкий. */
.rd-wallet__usd { color: var(--text-muted); font-weight: 400; font-size: 12px; white-space: nowrap; }
.rd-wallet__acct-amount .rd-wallet__usd { font-size: 11px; margin-top: 1px; }
/* Спрайт-флаги (flag-icon) в кошельке/шапке: по центру строки, слегка скруглены. */
.rd-header__balance-flag .flag-icon,
.rd-wallet__active-flag .flag-icon,
.rd-wallet__acct-flag .flag-icon,
.rd-wallet__pick-flag .flag-icon { vertical-align: middle; border-radius: 3px; }
/* кнопка "Добавить счёт" */
.rd-wallet__add {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%; margin-top: 12px; padding: 11px 12px;
    border-radius: var(--radius-lg); border: 1px dashed rgba(255,255,255,.18);
    background: transparent; color: var(--text-secondary);
    font-size: 13px; font-weight: 700; cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.rd-wallet__add:hover { background: var(--navy); color: var(--text-primary); border-color: rgba(178,83,255,.5); }
/* кнопка "назад" в пикере */
.rd-wallet__back {
    display: flex; align-items: center; gap: 6px;
    width: 100%; margin-bottom: 12px; padding: 0;
    background: none; border: none; color: var(--accent);
    font-size: 13px; font-weight: 700; cursor: pointer;
    transition: opacity .15s ease;
}
.rd-wallet__back:hover { opacity: .75; }
.rd-wallet__picker { display: none; }
.rd-wallet__picker-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
}
.rd-wallet__pick {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 10px 6px; border-radius: var(--radius-lg);
    background: var(--navy); border: 1px solid transparent;
    color: var(--text-secondary); font-size: 12px; font-weight: 700; cursor: pointer;
    transition: border-color .15s ease, color .15s ease;
}
.rd-wallet__pick:hover { border-color: rgba(178,83,255,.5); color: var(--text-primary); }
.rd-wallet__pick-flag { font-size: 20px; line-height: 1; display:flex; align-items:center; justify-content:center; }
.rd-wallet__pick-flag img { width:24px; height:24px; object-fit:contain; }
.rd-wallet__pick-code { font-size: 11px; }
/* строка статуса/ошибки */
.rd-wallet__err {
    margin-top: 10px; padding: 8px 10px; border-radius: var(--radius-lg);
    background: rgba(255,90,90,.12); border: 1px solid rgba(255,90,90,.35);
    color: #ff8a8a; font-size: 12px; font-weight: 600; text-align: center;
}
/* мобилка: панель не должна вылезать за экран */
@media (max-width: 768px) {
    .rd-wallet {
        width: min(320px, calc(100vw - 24px));
        right: 50%;
        transform: translateX(50%);
    }
    .rd-wallet__active { padding: 8px; gap: 10px; }
    .rd-wallet__active-flag { font-size: 20px; }
    .rd-wallet__active-amount { font-size: 14px; }
    .rd-wallet__acct { padding: 8px 10px; font-size: 13px; }
    .rd-wallet__acct-flag { font-size: 16px; }
    .rd-wallet__picker-grid { grid-template-columns: repeat(4, 1fr); }
}

/* 404 page */
.rd-404 {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: #0d1525 url('/templates/redesign/img/404-bg-pc.png') right center / cover no-repeat;
    height: 490px;
    display: flex;
    align-items: center;
    padding: 48px;
}
.rd-404__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 385px;
    position: relative;
    z-index: 2;
}
.rd-404__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 5px 10px 5px 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 20px;
}
.rd-404__badge img {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}
.rd-404__title {
    font-size: 44px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.05;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.rd-404__desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.5;
}
@media (max-width: 768px) {
    .rd-404 {
        background-image: url('/templates/redesign/img/404-bg-mob.png');
        background-position: bottom center;
        background-size: cover;
        height: auto;
        min-height: 500px;
        align-items: flex-start;
        padding: 12px;
    }
    .rd-404__title { font-size: 28px; }
    .rd-404__content { max-width: 100%; }
    .rd-404 .rd-header__deposit-btn {
        padding: 12px 24px !important;
        width: auto !important;
        height: auto !important;
        border-radius: var(--radius-xl) !important;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    :root { --header-height: 52px; }

    .rd-header { padding: 8px 12px; }
    .rd-header__left { gap: 8px; }
    .rd-header__right { gap: 8px; }

    .rd-vip-badge { display: none; }

    .rd-header__logo-img { width: 89px; height: auto; }

    .rd-header__deposit-btn {
        padding: 0;
        width: 28px;
        height: 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
    }
    .rd-header__deposit-icon { display: block; width: 18px; height: 18px; }
    .rd-header__deposit-text { display: none; }

    .rd-header__balance {
        height: 28px;
        padding: 0 8px;
        gap: 4px;
        border-radius: 8px;
    }
    .rd-header__balance-amount { font-size: 12px; margin-right: 0; }
    .rd-header__balance-currency { display: none; }
    .rd-header__balance-flag { font-size: 14px; margin-right: 4px; }
    .rd-header__balance-chevron { width: 10px; }

    .rd-header__icons { gap: 2px; }
    .rd-header__icon-btn {
        width: 28px;
        height: 28px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
    }
    .rd-header__icon-btn img { width: 16px; height: 16px; }
    #rdToggleChat { display: none !important; }

    .rd-header__admin-btn {
        width: 28px;
        height: 28px;
        padding: 0;
        font-size: 11px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
    }

    .rd-header__user {
        padding: 0;
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--navy-2);
        border-radius: 8px;
    }
    .rd-header__user-avatar { width: 20px; height: 20px; }
    .rd-header__user-name { display: none; }
    .rd-header__user-chevron { display: none; }
}

/* ── Jackpot block redesign overrides ── */
.rd-page .jp-block {
    background: url('/templates/redesign/img/hero-sport-bg.png') center/cover no-repeat, linear-gradient(135deg, #1a1035 0%, #2a1850 50%, #1a1035 100%);
}
.rd-page .jp-block::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url('/templates/redesign/img/hero-sport-glow.png');
    background-size: cover;
    background-position: bottom right;
    pointer-events: none;
    z-index: 0;
}
.rd-page .jp-block__inner {
    position: relative;
    z-index: 1;
}
.rd-page .jp-block__btn {
    position: relative;
    padding: 12px 24px;
    background: linear-gradient(90deg, var(--btn-primary-from), var(--btn-primary-to));
    border: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-xl);
    text-decoration: none;
    transition: opacity 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.rd-page .jp-block__btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 0.5px;
    background: linear-gradient(90deg, var(--btn-primary-stroke-from), var(--btn-primary-stroke-to));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.rd-page .jp-block__btn:hover {
    opacity: 0.9;
    background: linear-gradient(90deg, var(--btn-primary-from), var(--btn-primary-to));
}
.rd-page .jp-block__slider .home-slider::before {
    background: linear-gradient(to right, rgba(26,16,53,1) 0%, rgba(26,16,53,0.7) 40%, transparent 100%);
}
.rd-page .jp-block__slider .home-slider::after {
    background: linear-gradient(to left, rgba(42,24,80,1) 0%, rgba(42,24,80,0.7) 40%, transparent 100%);
}
@media (max-width: 768px) {
    .rd-page .jp-block__info .jp-block__btn {
        display: none;
    }
    .rd-page .jp-block__btn-mobile {
        display: block;
        padding: 0 16px 20px;
        position: relative;
        z-index: 2;
    }
    .rd-page .jp-block__btn--wide {
        width: 100%;
        padding: 14px 28px;
        font-size: 14px;
    }
}
