.xm-main-menu {
    display: flex;
}

.main_menu li ul.sub {
    display: none;
    padding: 0;
    margin: 0;
    z-index: 101;
    position: absolute;
    top: 33px;
    left: 0;
}

.main_menu li ul.sub li {
    list-style: none;
    margin: 0 -4px 0 -2px;
    padding: 0;
    height: 26px;
    border: 0;
    vertical-align: bottom;
}

.main_menu li ul.sub li.top,
.main_menu li ul.sub li.bot,
.main_menu li.first ul.sub li.top,
.main_menu li.first ul.sub li.bot,
.main_menu li.par ul.sub li.bot .ct,
.main_menu li.par ul.sub li.top .ct {
    height: 6px;
}

.main_menu li ul.sub li.bot,
.main_menu li.first ul.sub li.bot,
.main_menu li.par ul.sub li.bot .ct {
    height: 8px;
}

.main_menu li.first ul.sub li {
    margin: 0 -4px 0 -1px;
    height: 26px;
    position: relative;
}

.main_menu li.par ul.sub li a {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    color: #26b;
    text-shadow: none;
    font-size: 11px;
    line-height: 24px;
    height: 24px;
    text-align: left;
    background: #fff;
    width: 140px;
    padding-left: 8px;
    margin-left: 6px;
    overflow: hidden;
}

.main_menu li.par ul.sub li.top,
.main_menu li.first.par ul.sub li.top {
    position: relative;
    padding-top: 4px;
    vertical-align: baseline;
}

.main_menu li.par ul.sub li.top .arr {
    position: absolute;
    background: url("/images/ddmenu_arr.png") 0 0;
    width: 17px;
    height: 7px;
    top: 0;
    left: 80px;
    z-index: 120;
}

.main_menu li.par ul.sub li.top .lt {
    background: url("/images/ddmenu_angle.png") 0 0;
    width: 8px;
    height: 6px;
    float: left;
}

.main_menu li.par ul.sub li.top .rt {
    background: url("/images/ddmenu_angle.png") 8px 0;
    width: 8px;
    height: 6px;
    float: right;
}

.main_menu li.par ul.sub li.top .ct {
    background: url("/images/ddmenu_tb.png") 0 0;
    height: 6px;
    margin: 0 8px;
}

.main_menu li.par ul.sub li.bot .lt {
    background: url("/images/ddmenu_angle.png") 0 8px;
    width: 8px;
    height: 8px;
    float: left;
}

.main_menu li.par ul.sub li.bot .rt {
    background: url("/images/ddmenu_angle.png") 8px 8px;
    width: 8px;
    height: 8px;
    float: right;
}

.main_menu li.par ul.sub li.bot .ct {
    background: url("/images/ddmenu_tb.png") 0 8px;
    height: 8px;
    margin: 0 8px;
}

.main_menu li.par ul.sub li .lt {
    background: url("/images/ddmenu_lr.png") 0 0;
    width: 8px;
    float: left;
    height: 26px;
}

.main_menu li.par ul.sub li .rt {
    background: url("/images/ddmenu_lr.png") 8px 0;
    width: 8px;
    float: right;
    height: 26px;
}

.main_menu li.par ul.sub li .ct {
    background: #fff;
    margin: 0 8px;
    height: 26px;
    width: 162px;
}

.main_menu li.first ul.sub li .ct {
    width: 161px;
}

.main_menu li.par ul.sub li a:hover {
    height: 22px;
    border-bottom: 1px solid #dedede;
    border-top: 1px solid #dedede;
    line-height: 22px;
    color: #f62;
}

.xm-main-menu li.par {
    float: none;
    flex: 1 1 0;
    width: auto;
}

.xm-main-menu li.par a,
.xm-main-menu li.par.last a {
    width: auto;
}

.xm-main-menu li.par.last {
    width: auto;
}

.xm-main-menu li.par a.item1,
.xm-main-menu li.par a.item2,
.xm-main-menu li.par a.item3,
.xm-main-menu li.par a.item4,
.xm-main-menu li.par a.item5 {
    background: linear-gradient(#4e9fdb, #1f62b6) !important;
}

.xm-main-menu li.par.act a,
.xm-main-menu li.par a:hover {
    background: linear-gradient(#63b2ec, #2d73c5) !important;
}

.xm-main-menu li.par.last a {
    background: linear-gradient(#f7b154, #ef8522) !important;
}

.xm-main-menu li.par.last.act a,
.xm-main-menu li.par.last a:hover {
    background: linear-gradient(#ffc46f, #ff9732) !important;
}

.xm-inner-page {
    padding: 20px 0 40px;
}

.xm-page-title {
    margin: 0 0 18px;
    font-size: 24px;
    line-height: 30px;
}

.xm-page-intro {
    margin-bottom: 20px;
    color: #555;
    line-height: 20px;
}

.xm-breadcrumbs {
    margin-bottom: 14px;
    font-size: 11px;
    color: #888;
}

.xm-breadcrumbs a {
    color: #2266bb;
}

.xm-home-auth {
    margin: 24px 0 8px;
    display: flex;
    gap: 18px;
}

.xm-home-auth-table {
    margin-top: 20px;
}

.xm-home-auth-card {
    flex: 1;
    padding: 18px 20px;
    border: 1px solid #d7d7d7;
    border-radius: 8px;
    background: linear-gradient(#fff, #f3f3f3);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.xm-home-auth-card h3,
.xm-news-item-title,
.xm-auth-card h2 {
    margin: 0 0 10px;
}

.xm-home-auth-card p,
.xm-news-excerpt,
.xm-auth-card p,
.xm-side-card p {
    margin: 0 0 12px;
    color: #555;
    line-height: 20px;
}

.xm-button {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #e7902f;
    border-radius: 4px;
    background: linear-gradient(#ffcb58, #f29c38);
    color: #333;
    font-weight: bold;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.xm-button:hover {
    text-decoration: none;
    color: #000;
}

.xm-button-secondary {
    border-color: #c9c9c9;
    background: linear-gradient(#fff, #dfdfdf);
}

.xm-news-filter {
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    background: #f7f7f7;
}

.xm-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.xm-filter-row + .xm-filter-row {
    margin-top: 10px;
}

.xm-filter-label {
    min-width: 72px;
    color: #666;
    font-weight: bold;
}

.xm-chip {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid #cfd7df;
    border-radius: 999px;
    background: #fff;
    color: #2266bb;
    text-decoration: none;
}

.xm-chip.active {
    border-color: #f29c38;
    background: #fff6ea;
    color: #d56d00;
    font-weight: bold;
}

.xm-news-list {
    display: grid;
    gap: 14px;
}

.xm-news-item {
    padding: 16px 18px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    background: #fff;
}

.xm-news-meta {
    margin-bottom: 8px;
    color: #888;
    font-size: 11px;
    text-transform: uppercase;
}

.xm-news-item-title a {
    color: #2266bb;
    font-size: 18px;
    line-height: 24px;
}

.xm-news-empty {
    padding: 18px;
    border: 1px dashed #cfcfcf;
    border-radius: 8px;
    background: #fafafa;
    color: #666;
}

.breadcrumbs {
    font-size: 13px;
    margin: 3px 0 10px;
    color: #2266bb;
}

.breadcrumbs a {
    text-decoration: none;
}

.breadcrumbs .active {
    color: #888;
}

.breadcrumbs .arrow {
    display: inline-block;
    padding: 0 6px;
    color: #999;
}

.body .content h1 {
    margin: 0 0 12px;
}

.body .content > .box {
    overflow: hidden;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.body .content > .box .info {
    margin-left: 118px;
}

.body .content > .box .info p {
    margin: 0 0 6px;
    color: #777;
}

.body .content > .box .info h3 {
    margin: 0;
    font-size: 18px;
    line-height: 22px;
}

.news_filter {
    margin: 18px 0;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    background: linear-gradient(#fff, #f5f5f5);
    overflow: hidden;
}

.news_filter_left_corner,
.news_filter_right_corner,
.news_filter_leftb_corner,
.news_filter_rightb_corner,
.news_filter_left_bottom_corner,
.news_filter_right_bottom_corner {
    display: none;
}

.news_filter_year,
.news_filter_mounth_container,
.news_filter_section {
    padding: 12px 14px;
}

.news_filter_year a,
.news_filter_mounth_container a,
.news_filter_mounth_container span {
    display: inline-block;
    margin: 0 8px 8px 0;
}

.news_filter_year a {
    font-weight: bold;
}

.news_filter_year a.selected,
.news_filter_mounth_container .active {
    color: #d56d00;
}

.news_filter_section {
    display: flex;
    border-top: 1px solid #e5e5e5;
    background: #f0f0f0;
}

.news_filter_section_element {
    flex: 1 1 0;
    text-align: center;
}

.news_filter_section_element a {
    display: block;
    padding: 10px 8px;
}

.news_filter_section_element.selected {
    background: linear-gradient(#fff5ea, #f8e0bd);
}

.media_block {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.media_date_and_place {
    margin-bottom: 6px;
    color: #888;
    font-size: 11px;
}

.media_block .news_link {
    display: block;
    margin-bottom: 6px;
    font-size: 18px !important;
    line-height: 22px;
}

.how_it_works {
    margin-top: 24px;
}

.how_it_works_list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.how_it_works_list li {
    width: 229px;
    float: none;
}

.how_it_works_list h3 {
    margin: 10px 0 8px;
    font-size: 17px;
    line-height: 21px;
}

.how_it_works_list p {
    margin: 0;
    color: #555;
    line-height: 18px;
}

.how_it_works_list img {
    display: block;
    width: 229px;
    height: 124px;
    border: 1px solid #ddd;
}

#cardsAll {
    border-collapse: collapse;
}

#cardsAll td,
#cardsAll th {
    padding: 8px 10px;
    vertical-align: top;
}

#cardsAll h3 {
    margin: 0;
}

.TDbullet {
    width: 12px;
    color: #f08d1c;
    font-size: 18px;
    text-align: center;
}

.TDline {
    color: #555;
    line-height: 18px;
    border-bottom: 1px solid #f0f0f0;
}

.xm-how-note,
.xm-placeholder-block {
    margin-top: 20px;
    padding: 18px 20px;
    border: 1px solid #dfdfdf;
    border-radius: 8px;
    background: #fafafa;
}

.xm-placeholder-block h2 {
    margin: 0 0 10px;
}

.xm-services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.xm-service-card {
    padding: 18px 20px;
    border: 1px solid #d7d7d7;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.xm-service-card h2 {
    margin: 0 0 10px;
    font-size: 19px;
    line-height: 24px;
}

.xm-service-card p {
    margin: 0 0 12px;
    color: #555;
    line-height: 20px;
}

.xm-service-list {
    margin: 0;
    padding-left: 18px;
}

.xm-service-list li {
    margin-bottom: 8px;
    color: #333;
}

.xm-service-empty {
    color: #a33b3b;
    font-weight: bold;
}

.xm-services-showcase {
    margin-bottom: 18px;
}

.xm-services-showcase .carousel_wr .box {
    position: static;
    display: flex;
    flex-wrap: wrap;
    width: auto;
    height: auto;
    margin-left: 10px;
    overflow: visible;
}

.xm-services-showcase .carousel_wr .slide {
    float: none;
    margin-bottom: 18px;
}

.xm-service-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 26px;
}

.xm-service-box {
    padding: 0 0 10px;
    border-bottom: 1px solid #e5e5e5;
}

.xm-service-box h2 {
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 23px;
}

.xm-service-box h2 a {
    color: #2266bb;
}

.xm-service-box p {
    margin: 0 0 10px;
    color: #555;
}

.xm-promo-list,
.xm-cards-grid,
.xm-steps-grid {
    display: grid;
    gap: 16px;
}

.xm-promo-card,
.xm-card-card,
.xm-step-card {
    padding: 18px 20px;
    border: 1px solid #d7d7d7;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.xm-promo-card h2,
.xm-card-card h2,
.xm-step-card h2 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 24px;
}

.xm-promo-period,
.xm-card-type {
    margin-bottom: 10px;
    color: #d56d00;
    font-weight: bold;
}

.xm-card-type {
    color: #2266bb;
}

.xm-feature-list {
    margin: 0;
    padding-left: 18px;
}

.xm-feature-list li {
    margin-bottom: 8px;
    color: #333;
}

.xm-card-best {
    margin: 12px 0;
    color: #555;
}

.xm-auth-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.xm-auth-card,
.xm-side-card {
    border: 1px solid #d7d7d7;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.xm-auth-card {
    flex: 1 1 640px;
    padding: 20px 24px;
}

.xm-side-card {
    width: 240px;
    padding: 18px 20px;
}

.xm-side-card ul {
    margin: 0;
    padding-left: 18px;
}

.xm-side-card li {
    margin-bottom: 8px;
    color: #555;
}

.xm-form-grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 12px 16px;
    align-items: start;
}

.xm-form-grid label,
.xm-form-grid .xm-label {
    padding-top: 8px;
    font-weight: bold;
    color: #555;
}

.xm-input,
.xm-auth-card input[type="text"],
.xm-auth-card input[type="password"] {
    width: 100%;
    max-width: 360px;
    padding: 8px 10px;
    border: 1px solid #c7c7c7;
    border-radius: 4px;
    box-sizing: border-box;
}

.xm-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #555;
}

.xm-form-actions {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.xm-help-links {
    margin-top: 14px;
    color: #777;
}

.xm-help-links a {
    margin-right: 14px;
}

.xm-alert {
    margin: 0 0 16px;
    padding: 10px 12px;
    border-radius: 6px;
}

.xm-alert-success {
    border: 1px solid #aed38a;
    background: #eff9e4;
    color: #4d7b2f;
}

.xm-alert-error {
    border: 1px solid #e5b0b0;
    background: #fff0f0;
    color: #a33b3b;
}

.xm-error-list {
    margin: 0;
    padding-left: 18px;
}

.xm-captcha {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 42px;
    border: 1px dashed #c9c9c9;
    border-radius: 6px;
    background: repeating-linear-gradient(-45deg, #fafafa, #fafafa 8px, #f1f1f1 8px, #f1f1f1 16px);
    font-weight: bold;
    letter-spacing: 3px;
    color: #555;
}

.xm-contacts-layout {
    margin-top: 20px;
}

.xm-sidebar-box {
    margin-bottom: 18px;
    padding: 14px 16px;
}

.xm-sidebar-title {
    margin-bottom: 10px;
    font-weight: bold;
}

.xm-contact-table {
    width: 100%;
    margin-top: 14px;
    border-collapse: separate;
    border-spacing: 1px;
    background: #d8d8d8;
}

.xm-contact-table td {
    width: 33.333%;
    padding: 12px 14px;
    vertical-align: top;
    background: #fff;
    color: #555;
    line-height: 20px;
}

.xm-contact-section-title {
    margin-top: 24px;
}

.xm-search-form {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 18px 0 20px;
}

.xm-search-form .xm-input {
    max-width: 420px;
}

.services_menu {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.services_menu li {
    float: none !important;
    display: flex;
    align-items: center;
}

.services_menu .xm-svc-sep {
    color: #d0d0d0;
    font-size: 11px;
    padding: 0;
    user-select: none;
}

.services_menu .xm-account-link {
    font-weight: bold;
    color: #1f62b6;
}

.services_menu .xm-account-link:hover {
    color: #f62;
    text-decoration: none;
}

.xm-notif-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.xm-notif-count {
    display: inline-block;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    line-height: 16px;
    text-align: center;
}

.xm-admin-link {
    color: #a33b3b !important;
    font-weight: bold;
}

.xm-admin-link:hover {
    color: #e74c3c !important;
    text-decoration: none;
}

.xm-inline-logout {
    margin: 0;
}

.xm-inline-logout button {
    padding: 0;
    border: 0;
    background: none;
    color: #2266bb;
    cursor: pointer;
    font: inherit;
}

.xm-inline-logout button:hover {
    text-decoration: underline;
}

.xm-inline-form,
.xm-transfer-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.xm-inline-form .xm-input,
.xm-transfer-form .xm-input {
    max-width: 220px;
}

.xm-form-tools {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 8px;
    color: #666;
}

.xm-toggle-link {
    color: #2266bb;
    text-decoration: none;
    border-bottom: 1px dashed #2266bb;
}

.xm-toggle-link:hover {
    text-decoration: none;
    border-bottom-color: transparent;
}

.xm-register-box {
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid #e7d6b2;
    border-radius: 8px;
    background: #fff8e9;
}

.xm-register-box-title {
    margin-bottom: 6px;
    color: #6f5b2a;
    font-weight: bold;
}

.xm-generated-value {
    font-size: 24px;
    line-height: 28px;
    color: #1f62b6;
    font-weight: bold;
}

.xm-auth-note {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #d9d9d9;
    color: #666;
    line-height: 18px;
}

.xm-balance-card {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid #e4d5af;
    background: #fff8e8;
    color: #6f5b2a;
}

.xm-wallet-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.xm-tip-list {
    margin: 0;
    padding-left: 18px;
}

.xm-tip-list li {
    margin-bottom: 8px;
}

.xm-admin-tabs {
    margin: 18px 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.xm-admin-tabs a {
    display: inline-block;
    padding: 7px 12px;
    border: 1px solid #d7d7d7;
    border-radius: 4px;
    background: #f7f7f7;
    color: #2266bb;
    text-decoration: none;
}

.xm-admin-tabs a.act {
    border-color: #f29c38;
    background: #fff2dd;
    color: #b85e00;
    font-weight: bold;
}

.xm-admin-subtabs {
    margin-top: 0;
}

.xm-admin-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.xm-admin-stat-value {
    font-size: 28px;
    line-height: 32px;
    color: #1f62b6 !important;
    font-weight: bold;
}

.xm-admin-item {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #ececec;
}

.xm-admin-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.xm-admin-item h3 {
    margin: 0 0 12px;
}

.xm-admin-delete {
    margin: 0;
}

.xm-admin-preview {
    margin-top: 8px;
}

.xm-admin-preview img {
    max-width: 180px;
    max-height: 80px;
    border: 1px solid #ddd;
}

.xm-textarea {
    min-height: 90px;
    max-width: 100%;
    resize: vertical;
}

.xm-select,
.xm-admin-balance {
    max-width: 180px;
}

.xm-admin-table td {
    width: auto;
}

/* === Notifications === */

.xm-notification-list {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.xm-notification-item {
    position: relative;
    padding: 12px 14px;
    margin-bottom: 1px;
    border: 1px solid #e2e2e2;
    border-radius: 0;
    background: #fff;
    color: #555;
    line-height: 18px;
}

.xm-notification-item:first-child {
    border-radius: 6px 6px 0 0;
}

.xm-notification-item:last-child {
    border-radius: 0 0 6px 6px;
    margin-bottom: 0;
}

.xm-notification-item:only-child {
    border-radius: 6px;
}

.xm-notification-item + .xm-notification-item {
    border-top-color: #ececec;
}

.xm-notification-item-unread {
    background: #fff8e9;
    border-color: #e7d6b2;
}

.xm-notification-item-unread + .xm-notification-item-unread {
    border-top-color: #eed9b0;
}

.xm-notification-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.xm-notification-head strong {
    color: #333;
}

.xm-notification-badge {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 3px;
    background: #f29c38;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    line-height: 16px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    vertical-align: middle;
}

.xm-notification-item > div {
    margin-bottom: 4px;
}

.xm-notification-item > span {
    display: block;
    margin-top: 4px;
    color: #999;
    font-size: 11px;
}

/* === Promo page improvements === */

.xm-promo-form-card {
    padding: 18px 20px;
    border: 1px solid #d7d7d7;
    border-radius: 8px;
    background: linear-gradient(#fff, #fafafa);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.xm-promo-input-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.xm-promo-input-row .xm-input {
    flex: 1;
    max-width: 280px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.xm-redemption-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 14px;
}

.xm-redemption-table th {
    padding: 10px 12px;
    text-align: left;
    background: linear-gradient(#f5f5f5, #ebebeb);
    border-bottom: 1px solid #d4d4d4;
    color: #555;
    font-size: 12px;
    font-weight: bold;
}

.xm-redemption-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
    vertical-align: top;
}

.xm-redemption-table tr:last-child td {
    border-bottom: 0;
}

.xm-redemption-table tr:hover td {
    background: #fafafa;
}

.xm-promo-available-code {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    background: #f0f7ff;
    border: 1px solid #c4d9f0;
    color: #1f62b6;
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.xm-promo-amount {
    color: #d56d00;
    font-weight: bold;
}

/* === Header / service menu improvements === */

.services_menu li a {
    color: #2266bb;
    text-decoration: none;
    font-size: 11px;
}

.services_menu li a:hover {
    text-decoration: underline;
    color: #f62;
}

.services_menu .xm-balance-link {
    padding: 2px 8px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid #e0e0e0;
    font-weight: bold;
    color: #555;
}

.header .logo {
    transition: opacity 0.15s;
}

.header .logo:hover {
    opacity: 0.85;
}

/* === Homepage section polish === */

.banner_title {
    padding-bottom: 8px;
    border-bottom: 2px solid #f29c38;
}

.news_small_wr .item {
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.news_small_wr .item:last-child {
    border-bottom: 0;
}

.body .content > h1 {
    padding-bottom: 8px;
    border-bottom: 1px solid #e8e8e8;
}

/* === Cabinet dashboard cards === */

.xm-service-box {
    transition: border-color 0.15s;
}

.xm-service-box:hover {
    border-color: #c0c0c0;
}

.xm-placeholder-block > h2 {
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e5e5;
}

/* === Transaction table improvements === */

.xm-contact-table tr:first-child td {
    background: linear-gradient(#f5f5f5, #ebebeb);
    border-bottom: 1px solid #d5d5d5;
    font-size: 12px;
}

.xm-contact-table tr:hover td {
    background: #fafafa;
}

.xm-contact-table tr:first-child:hover td {
    background: linear-gradient(#f5f5f5, #ebebeb);
}

/* === Balance card improvements === */

.xm-balance-card {
    border-radius: 6px;
    background: linear-gradient(#fffbf0, #fff3dc);
}

.xm-balance-card strong {
    font-size: 20px;
    color: #b85e00;
}

@media (max-width: 980px) {
    .xm-home-auth,
    .xm-auth-layout,
    .xm-services-grid,
    .xm-service-columns,
    .how_it_works_list,
    .xm-wallet-grid,
    .xm-admin-stats {
        display: block;
    }

    .xm-home-auth-table td {
        display: block;
        width: auto;
    }

    .xm-home-auth-card,
    .xm-auth-card,
    .xm-side-card {
        margin-bottom: 16px;
        width: auto;
    }

    .xm-form-grid {
        grid-template-columns: 1fr;
    }

    .xm-form-grid label,
    .xm-form-grid .xm-label {
        padding-top: 0;
    }

    .xm-contact-table td {
        display: block;
        width: auto;
    }

    .xm-search-form {
        display: block;
    }

    .xm-search-form .xm-input {
        margin-bottom: 10px;
    }

    .xm-inline-form,
    .xm-transfer-form {
        display: block;
    }

    .xm-inline-form .xm-input,
    .xm-transfer-form .xm-input {
        margin-bottom: 10px;
        max-width: 100%;
    }

    .xm-form-tools {
        display: block;
    }

    .xm-admin-item-head {
        display: block;
    }
}

/* === Дисклеймер фан-проекта === */

.xm-disclaimer-banner {
    margin-bottom: 16px;
    padding: 12px 16px;
    border: 1px solid #f0c040;
    border-radius: 6px;
    background: #fffbe6;
    color: #7a5800;
    line-height: 20px;
    font-size: 13px;
}

.xm-disclaimer-banner strong {
    color: #5a3c00;
}

.xm-checkbox-disclaimer {
    background: #fffbe6;
    border: 1px dashed #e0b020;
    border-radius: 6px;
    padding: 10px 12px;
    gap: 10px;
}

.xm-checkbox-disclaimer input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

/* === Страницы ошибок === */

.xm-error-page {
    max-width: 480px;
    margin: 0 auto;
    padding: 40px 0;
}

.xm-error-code {
    font-size: 96px;
    line-height: 1;
    font-weight: bold;
    color: #d0d8e8;
    letter-spacing: -4px;
    margin-bottom: 16px;
}

.xm-error-code-500 {
    color: #e8c8c8;
}

.xm-error-title {
    margin: 0 0 12px;
    font-size: 26px;
    color: #333;
}

.xm-error-desc {
    margin: 0 0 24px;
    color: #666;
    line-height: 22px;
}

.xm-error-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.xm-error-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    color: #2266bb;
    font-size: 13px;
}

.xm-error-links a {
    color: #2266bb;
}

.xm-error-links a:hover {
    color: #f62;
    text-decoration: none;
}

/* === Что можно оплачивать === */

.xm-what-category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 0;
}

.xm-what-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border: 1px solid #c8d8ee;
    border-radius: 14px;
    background: #f0f6ff;
    color: #1f62b6;
    font-size: 12px;
    text-decoration: none;
    transition: background 0.12s, border-color 0.12s;
}

.xm-what-cat-pill:hover {
    background: #deeaff;
    border-color: #a0bce0;
    color: #1549a0;
    text-decoration: none;
}

.xm-cat-icon {
    font-size: 14px;
    line-height: 1;
}

.xm-service-icon {
    font-size: 16px;
    vertical-align: middle;
}

.xm-service-box h2 {
    display: flex;
    align-items: center;
    gap: 6px;
}

.xm-service-box h2 a {
    color: #2c4a8a;
    text-decoration: none;
}

.xm-service-box h2 a:hover {
    color: #f62;
}

.xm-service-list {
    margin: 8px 0 0;
    padding: 0 0 0 16px;
    color: #555;
    font-size: 12px;
    line-height: 20px;
}

.xm-service-empty {
    margin-top: 8px;
    color: #aaa;
    font-size: 12px;
    font-style: italic;
}

/* === Как оплачивать — шаги === */

.xm-how-steps {
    margin: 20px 0 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.xm-how-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 18px;
    border-bottom: 1px solid #ececec;
    background: #fff;
    transition: background 0.12s;
}

.xm-how-step:last-child {
    border-bottom: 0;
}

.xm-how-step:hover {
    background: #fafafa;
}

.xm-how-step-num {
    font-size: 26px;
    line-height: 1;
    flex-shrink: 0;
    width: 36px;
    text-align: center;
    margin-top: 2px;
}

.xm-how-step-body {
    flex: 1;
}

.xm-how-step-body h3 {
    margin: 0 0 6px;
    font-size: 15px;
    color: #2c4a8a;
}

.xm-how-step-body p {
    margin: 0 0 6px;
    color: #555;
    line-height: 18px;
    font-size: 13px;
}

/* === Как оплачивать — карточки советов === */

.xm-how-grid {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.xm-how-card {
    flex: 1;
    min-width: 180px;
    padding: 14px 16px;
    border: 1px solid #dde6f4;
    border-radius: 8px;
    background: linear-gradient(#fbfdff, #f3f7ff);
}

.xm-how-card h3 {
    margin: 0 0 8px;
    font-size: 14px;
    color: #2c4a8a;
}

.xm-how-card p {
    margin: 0 0 8px;
    color: #555;
    font-size: 12px;
    line-height: 18px;
}


/* === Admin panel additions === */

.xm-admin-stat-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.xm-admin-stat-link:hover {
    border-color: #b0c0d8;
    background: #f5f8ff;
    text-decoration: none;
}

.xm-admin-stat-link h2 {
    font-size: 12px;
    color: #666;
    margin: 0 0 4px;
    font-weight: normal;
}

.xm-admin-stat-link .xm-admin-stat-value {
    font-size: 22px;
    font-weight: bold;
    color: #2c4a8a;
    margin: 0;
}

.xm-admin-delete-btn {
    padding: 2px 8px;
    border: 1px solid #d0a0a0;
    border-radius: 3px;
    background: #fff5f5;
    color: #a33030;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
}

.xm-admin-delete-btn:hover {
    background: #ffe0e0;
    border-color: #c04040;
    color: #7a1010;
}

.xm-admin-self-label {
    color: #aaa;
    font-size: 11px;
    font-style: italic;
}

.xm-admin-type-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    background: #e8eef8;
    color: #2c4a8a;
    border: 1px solid #c0d0e8;
}

.xm-admin-type-topup {
    background: #e8f5e0;
    color: #2a6a10;
    border-color: #b0d8a0;
}

.xm-admin-type-transfer {
    background: #fff3dc;
    color: #7a4800;
    border-color: #e8c878;
}

.xm-admin-type-promo {
    background: #fff0f8;
    color: #800060;
    border-color: #e0b0d0;
}

.xm-admin-new-row td {
    background: #f8fff8;
    border-top: 2px dashed #b8e0b0;
}

.xm-admin-unread-row td {
    background: #fffdf0;
}

.xm-admin-code-input {
    max-width: 120px;
}

.xm-service-box-img {
    float: right;
    margin: 0 0 8px 10px;
}

/* === Контент-таб: счётчик в сабтабах === */

.xm-admin-subtab-count {
    display: inline-block;
    min-width: 18px;
    padding: 0 4px;
    margin-left: 4px;
    border-radius: 8px;
    background: #d0dff4;
    color: #2c4a8a;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    vertical-align: middle;
    line-height: 16px;
}

.xm-admin-tabs .act .xm-admin-subtab-count {
    background: #2c4a8a;
    color: #fff;
}

/* === Контент-таб: описание раздела === */

.xm-admin-section-desc {
    margin: 0 0 14px;
    padding: 8px 12px;
    background: #f4f7fc;
    border-left: 3px solid #4a7ac8;
    border-radius: 2px;
    color: #555;
    font-size: 12px;
    line-height: 18px;
}

/* === Контент-таб: блок добавления новой записи === */

.xm-admin-add-block {
    margin-bottom: 18px;
    border: 1px dashed #8ab4e0;
    border-radius: 6px;
    background: #f6faff;
    overflow: hidden;
}

.xm-admin-add-block-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #eaf3ff;
}

.xm-admin-add-block-title strong {
    color: #2c4a8a;
    font-size: 13px;
}

.xm-admin-toggle-add {
    padding: 4px 12px;
    border: 1px solid #4a7ac8;
    border-radius: 4px;
    background: #fff;
    color: #2c4a8a;
    cursor: pointer;
    font-size: 12px;
    font: inherit;
    font-size: 12px;
}

.xm-admin-toggle-add:hover {
    background: #4a7ac8;
    color: #fff;
}

.xm-admin-add-form {
    padding: 14px 16px;
    border-top: 1px dashed #b0d0f0;
}

/* === Контент-таб: список существующих записей === */

.xm-admin-items-list {
    margin-bottom: 14px;
    border: 1px solid #dde6f4;
    border-radius: 6px;
    overflow: hidden;
}

.xm-admin-row-item {
    border-bottom: 1px solid #edf2f9;
    background: #fff;
    transition: background 0.1s;
}

.xm-admin-row-item:last-child {
    border-bottom: 0;
}

.xm-admin-row-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    cursor: pointer;
    user-select: none;
}

.xm-admin-row-header:hover {
    background: #f5f8ff;
}

.xm-admin-row-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 50%;
    background: #dde8f8;
    color: #2c4a8a;
    font-size: 11px;
    font-weight: bold;
}

.xm-admin-row-preview {
    flex: 1;
    font-size: 12px;
    color: #444;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xm-admin-row-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.xm-admin-row-toggle {
    font-size: 11px;
    color: #4a7ac8;
    white-space: nowrap;
}

.xm-admin-row-delete-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #a33030;
    cursor: pointer;
    white-space: nowrap;
}

.xm-admin-row-delete-label input {
    margin: 0;
    cursor: pointer;
}

.xm-admin-row-body {
    padding: 14px 16px;
    border-top: 1px solid #edf2f9;
    background: #fafcff;
}

.xm-admin-expand-all {
    padding: 5px 12px;
    border: 1px solid #c0cce0;
    border-radius: 4px;
    background: #f0f4fa;
    color: #555;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    margin-right: 8px;
}

.xm-admin-expand-all:hover {
    background: #dde8f8;
}

/* === Пользователи-таб: поиск и заголовок === */

.xm-admin-users-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.xm-admin-users-header h2 {
    margin: 0;
}

.xm-admin-users-summary {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #666;
}

.xm-admin-users-summary strong {
    color: #2c4a8a;
}

.xm-admin-search-bar {
    margin-bottom: 12px;
}

.xm-admin-search-bar .xm-input {
    max-width: 280px;
}

/* === Игры & Заработок === */

.xm-coinflip-arena {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.xm-coin {
    width: 100px;
    height: 100px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 2s ease-out;
}

.xm-coin-side {
    position: absolute;
    width: 100px;
    height: 100px;
    backface-visibility: hidden;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: bold;
    color: #fff;
    border: 5px solid #d56d00;
}

.xm-coin-heads {
    background: linear-gradient(#ffcb58, #f29c38);
}

.xm-coin-tails {
    background: linear-gradient(#ccc, #999);
    transform: rotateY(180deg);
    border-color: #666;
}

.xm-coin-spinning {
    animation: coin-spin 0.2s linear infinite;
}

@keyframes coin-spin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.xm-coin-tails.active {
    background: linear-gradient(#ccc, #999);
    transform: rotateY(0deg); 
    border-color: #666;
}

.xm-arcade-arena {
    height: 300px;
    background: #f0f4fa;
    border: 2px solid #c0cce0;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.xm-falling-coin {
    position: absolute;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, #ffcb58, #f29c38);
    border-radius: 50%;
    border: 2px solid #d56d00;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    font-size: 14px;
    font-weight: bold;
    color: #8a4e00;
    text-align: center;
    line-height: 26px;
}

.xm-falling-coin:hover {
    transform: scale(1.1);
}

.xm-dice-arena {
    text-align: center;
    padding: 30px 0;
}

.xm-dice-value {
    font-size: 64px;
    font-weight: bold;
    color: #2c4a8a;
    background: #fff;
    border: 3px solid #bac7df;
    border-radius: 12px;
    display: inline-block;
    padding: 20px 40px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
    min-width: 80px;
}

.xm-thimbles-arena {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 40px 0;
}

.xm-thimble {
    width: 60px;
    height: 80px;
    background: linear-gradient(to bottom, #d56d00, #a33b3b);
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s, left 0.5s;
    box-shadow: inset -5px 0 10px rgba(0,0,0,0.2);
}

.xm-thimble:hover {
    transform: translateY(-5px);
}

.xm-thimble.lifted {
    transform: translateY(-40px);
}

.xm-thimble-koin {
    position: absolute;
    width: 30px;
    height: 30px;
    background: #ffcb58;
    border-radius: 50%;
    bottom: -15px;
    left: 15px;
    z-index: -1;
    display: none;
    border: 2px solid #d56d00;
    box-sizing: border-box;
}

.xm-thimble.has-koin .xm-thimble-koin {
    display: block;
}

.xm-slots-arena {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 30px 0;
    background: linear-gradient(to bottom, #333, #111);
    border-radius: 12px;
    border: 4px solid #f29c38;
    margin-bottom: 20px;
}

.xm-slot-reel {
    width: 80px;
    height: 120px;
    background: #fff;
    border-radius: 8px;
    border: inset 3px #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.xm-slot-symbol {
    font-size: 48px;
}

.xm-slot-spinning .xm-slot-symbol {
    display: none; 
}

.xm-slot-spinning {
    background: url('/img/new_year/trans.png') repeat-y center center;
    background-size: 60px;
    animation: slot-spin 0.2s linear infinite;
}

@keyframes slot-spin {
    0% { background-position: center 0; }
    100% { background-position: center 120px; }
}
