/* 3.10: one visual system, wrapping content, no horizontal scrollers. */
body[data-template="cs27Reg"] .cs27-messages-page :is(#companions,#place_for_messages,#messages) {overflow-x:hidden!important;scrollbar-width:thin;scrollbar-color:#a75c42 #242829;scrollbar-gutter:stable;overscroll-behavior-y:contain;}
body[data-template="cs27Reg"] .cs27-messages-page :is(#companions,#place_for_messages,#messages)::-webkit-scrollbar {width:6px;height:0;}
body[data-template="cs27Reg"] .cs27-messages-page :is(#companions,#place_for_messages,#messages)::-webkit-scrollbar-track {background:#242829;border-radius:10px;}
body[data-template="cs27Reg"] .cs27-messages-page :is(#companions,#place_for_messages,#messages)::-webkit-scrollbar-thumb {background:#85503e;border-radius:10px;border:1px solid #242829;}
body[data-template="cs27Reg"] .cs27-messages-page :is(#companions,#place_for_messages,#messages)::-webkit-scrollbar-thumb:hover {background:#ff754b;}
body[data-template="cs27Reg"] .cs27-messages-page :is(.message,.message_text,.message-text,.text_message,.dialog p) {min-width:0;max-width:100%;overflow-wrap:anywhere;word-break:normal;white-space:normal;}
body[data-template="cs27Reg"] .cs27-messages-page #messages :is(p,span,a,div) {min-width:0;overflow-wrap:anywhere;}
body[data-template="cs27Reg"] .cs27-messages-page #messages :is(img,video,iframe) {max-width:100%;}
body[data-template="cs27Reg"] .cs27-messages-page #messages pre {white-space:pre-wrap;overflow-wrap:anywhere;}
body[data-template="cs27Reg"] .cs27-messages-page #chat #messages {padding-right:12px!important;}
body[data-template="cs27Reg"] .cs27-messages-page .block_message_right {overflow:visible;}
/* Apply the identical rail blocks on every page that includes the sidebar. */
body[data-template="cs27Reg"] .row:has(> .cs27-secondary-rail) {display:grid;grid-template-columns:350px minmax(0,1fr);gap:20px;margin-left:0;margin-right:0;align-items:start;}
body[data-template="cs27Reg"] .row:has(> .cs27-secondary-rail) > :is([class*="col-lg-"],.cs27-inner-page) {width:auto;max-width:none;min-width:0;padding-left:0;padding-right:0;}
body[data-template="cs27Reg"] .row:has(> .cs27-secondary-rail) > .cs27-secondary-rail {grid-column:1;grid-row:1;order:0;}
body[data-template="cs27Reg"] .row:has(> .cs27-secondary-rail) > :not(.cs27-secondary-rail):not(script) {grid-column:2;grid-row:1;}
body[data-template="cs27Reg"] .cs27-rail.cs27-secondary-rail {display:block;padding-top:20px;}
body[data-template="cs27Reg"] .cs27-rail.cs27-secondary-rail .block_servers {width:100%;}
body[data-template="cs27Reg"] .cs27-rail :is(.navigation_profile,.block_t_u,.flex_online_users) {min-width:0;max-width:100%;}
/* Wallet: both faces are real content, including when referrals are disabled. */
body[data-template="cs27Reg"] .cs27-settings-page .cs27-wallet {perspective:1200px;outline-offset:5px;}
body[data-template="cs27Reg"] .cs27-settings-page .cs27-wallet .flipper {display:grid;transform-style:preserve-3d;transition:transform .45s ease;}
body[data-template="cs27Reg"] .cs27-settings-page .cs27-wallet :is(.front,.back) {grid-area:1/1;position:relative;inset:auto;width:100%;height:auto;min-height:235px;box-sizing:border-box;padding:22px!important;backface-visibility:hidden;-webkit-backface-visibility:hidden;backdrop-filter:none;border:1px solid #665044;background:linear-gradient(140deg,#38322d,#232728 80%)!important;border-radius:16px;color:#eef0f0;}
body[data-template="cs27Reg"] .cs27-settings-page .cs27-wallet .front {transform:rotateY(0deg);}
body[data-template="cs27Reg"] .cs27-settings-page .cs27-wallet .back {display:flex;flex-direction:column;align-items:stretch;gap:12px;transform:rotateY(180deg);font:400 13px/1.5 'Segoe UI',sans-serif;}
body[data-template="cs27Reg"] .cs27-settings-page .cs27-wallet:focus-within .flipper {transform:rotateY(180deg);}
body[data-template="cs27Reg"] .cs27-settings-page .cs27-wallet .cs27-wallet-caption {font:700 10px/1.5 'Segoe UI',sans-serif;color:#d0a995;letter-spacing:.08em;}
body[data-template="cs27Reg"] .cs27-settings-page .cs27-wallet .cs27-wallet-value {font:750 32px/1.2 'Segoe UI',sans-serif;margin-top:8px;}
body[data-template="cs27Reg"] .cs27-settings-page .cs27-wallet .cs27-wallet-note {color:#bfc5c5;}
body[data-template="cs27Reg"] .cs27-settings-page .cs27-wallet .cs27-wallet-topup {display:flex;align-items:center;justify-content:space-between;gap:12px;background:#ff5728;color:#fff;padding:12px;border-radius:10px;margin-top:auto;font-weight:700;}
body[data-template="cs27Reg"] .cs27-settings-page .cs27-wallet :is(.id_link,.buttons_referal) {display:flex;gap:8px;flex-wrap:wrap;margin:0;padding:0;}
body[data-template="cs27Reg"] .cs27-settings-page .cs27-wallet .id_link > span {min-width:0;flex:1;overflow-wrap:anywhere;font-size:12px;}
body[data-template="cs27Reg"] .cs27-settings-page .cs27-wallet .reveral_link_info {margin:0;color:#c1c8c8;font:400 12px/1.6 'Segoe UI',sans-serif;}
body[data-template="cs27Reg"] .cs27-settings-page .cs27-wallet .btn_referal {flex:1;min-width:90px;margin:0;padding:10px;background:#343a3b;color:#f0f3f3;border:1px solid #505657;border-radius:8px;font-size:11px;}
body[data-template="cs27Reg"] .cs27-settings-page .privaty_block {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:5px;background:#191d1e!important;border:1px solid #3c4243;border-radius:12px;}
body[data-template="cs27Reg"] .cs27-settings-page .privaty_block :is(.checkboxes__item,.checkbox,.checkbox__body) {width:100%;min-width:0;margin:0;}
body[data-template="cs27Reg"] .cs27-settings-page .checkbox.style-h .checkbox__body {padding:13px 8px;min-height:44px;display:flex;align-items:center;justify-content:center;border:1px solid transparent;background:transparent!important;border-radius:8px;color:#bdc4c4;font:600 12px/1.4 'Segoe UI',sans-serif;text-shadow:none;}
body[data-template="cs27Reg"] .cs27-settings-page .checkbox.style-h input:checked ~ .checkbox__body {background:#ff572822!important;border-color:#ff754570;color:#ffac8d;text-shadow:none;}
body[data-template="cs27Reg"] .cs27-settings-page .checkbox.style-h input:focus-visible ~ .checkbox__body {outline:2px solid #ff946e;outline-offset:1px;}
body[data-template="cs27Reg"] .cs27-settings-page :is(.password_setting,.save_signature,.save_all,.btn_edit_date,.btn_avatar_upload) {background:#ff5728!important;border:1px solid #ff754b!important;color:white;box-shadow:none;border-radius:10px;min-height:44px;text-shadow:none;}
body[data-template="cs27Reg"] .cs27-settings-page :is(.password_setting_block,.privaty_block_settings,.link_setting_block,.signature_block_setting,.avatar_setting_block) {padding:20px;background:#222627!important;border:1px solid #3e4445;border-radius:14px;}
body[data-template="cs27Reg"] .cs27-settings-page :is(.custom-input input,.custom-select select,.custom-file-label) {background:#292e2f!important;border-color:#454c4d!important;color:#e9efef!important;}
body[data-template="cs27Reg"] .cs27-settings-page .custom-input.with-button button {background:#394142!important;border:1px solid #4d5758!important;color:#f2f5f5;}
body[data-template="cs27Reg"] .cs27-settings-page .link_text_setting {display:flex;align-items:flex-start;gap:12px;padding:16px;background:#ff57280d!important;border:1px solid #ff754533;border-radius:12px;}
body[data-template="cs27Reg"] .cs27-settings-page .link_text_setting > i {position:static;display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;margin:0;padding:0;font-size:20px;background:#ff572820!important;color:#ff9976!important;border-radius:9px;}
body[data-template="cs27Reg"] .cs27-settings-page .flex_link_setting {min-width:0;}
body[data-template="cs27Reg"] .cs27-settings-page :is(.link_example_setting,.link_info_setting) {font:400 12px/1.55 'Segoe UI',sans-serif;overflow-wrap:anywhere;}
body[data-template="cs27Reg"] .cs27-settings-page .link_example_setting {color:#ffac8d;margin-top:7px;}
body[data-template="cs27Reg"] .cs27-settings-page .link_info_setting {color:#d9dede;}
/* Services: typography and price, without random image crops. */
body[data-template="cs27Reg"] .cs27-inner-page .section_store_card {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:0;}
body[data-template="cs27Reg"] .cs27-inner-page .store_cards_flex > .section {background:transparent!important;border:0;box-shadow:none;padding:0;}
body[data-template="cs27Reg"] .cs27-inner-page .card_privilege.cs27-service-card {position:relative;display:flex;flex-direction:column;gap:18px;min-width:0;width:auto;height:auto;min-height:258px;margin:0;padding:24px;background:linear-gradient(135deg,#2c3031,#202425);border:1px solid #414849;border-radius:17px;color:#eef1f1;text-decoration:none;box-shadow:0 6px 24px #0002;transition:border-color .2s,box-shadow .2s,translate .2s;}
body[data-template="cs27Reg"] .cs27-service-top {display:flex;align-items:center;gap:10px;min-width:0;}
body[data-template="cs27Reg"] .cs27-service-icon {display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border:1px solid #ff754548;border-radius:12px;background:#ff572815;color:#ff986f;font-size:25px;}
body[data-template="cs27Reg"] .cs27-service-kind {font:650 10px/1.4 'Segoe UI',sans-serif;letter-spacing:.07em;color:#aeb8b8;}
body[data-template="cs27Reg"] .cs27-service-discount {margin-left:auto;flex-shrink:0;border-radius:7px;background:#ff572824;color:#ffa17c;font:700 12px/1.4 'Segoe UI',sans-serif;padding:5px 8px;}
body[data-template="cs27Reg"] .cs27-service-name {font:750 25px/1.2 'Segoe UI',sans-serif;margin:0;color:#fff;overflow-wrap:anywhere;}
body[data-template="cs27Reg"] .cs27-service-description {font:400 13px/1.65 'Segoe UI',sans-serif;color:#b6c0c0;margin:0;}
body[data-template="cs27Reg"] .cs27-service-bottom {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;margin-top:auto;padding-top:18px;border-top:1px solid #414748;}
body[data-template="cs27Reg"] .cs27-service-price {display:flex;align-items:baseline;flex-wrap:wrap;gap:5px;font:750 27px/1.3 'Segoe UI',sans-serif;color:#fff;}
body[data-template="cs27Reg"] .cs27-service-price small {font:500 12px/1.4 'Segoe UI',sans-serif;color:#b6bebe;}
body[data-template="cs27Reg"] .cs27-service-action {display:flex;align-items:center;gap:7px;border:1px solid #ff75454d;border-radius:9px;background:#ff572819;color:#ffb193;padding:10px 12px;font:650 12px/1.3 'Segoe UI',sans-serif;}
body[data-template="cs27Reg"] .cs27-service-action i {font-size:20px;}
/* Dialogs and bought-service details, including AJAX-inserted tables. */
body[data-template="cs27Reg"] .modal-content {background:#202425;color:#e4eaea;border:1px solid #414849;box-shadow:0 20px 70px #0006;}
body[data-template="cs27Reg"] .modal-header {border-color:#3e4546;padding:22px 24px 16px;}
body[data-template="cs27Reg"] .modal-body {padding:20px 24px;}
body[data-template="cs27Reg"] .modal-content :is(input,select,textarea) {background-color:#292f30!important;border-color:#465051!important;color:#e9eeee;}
body[data-template="cs27Reg"] .modal-content :is(.custom-input,.custom-select) > button {background:#353e3f!important;border:1px solid #4b5758!important;border-radius:9px;color:#f1f4f4;}
body[data-template="cs27Reg"] .modal-content :is(.text-success-priv,.text-warning-priv) {display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 12px;border-radius:8px;font:600 12px/1.4 'Segoe UI',sans-serif;}
body[data-template="cs27Reg"] .modal-content .text-success-priv {background:#59b78b18!important;border:1px solid #59b78b55;color:#a0dbbd!important;}
body[data-template="cs27Reg"] .modal-content .text-warning-priv {background:#dbaa4b18!important;border:1px solid #dbaa4b55;color:#e9c783!important;}
body[data-template="cs27Reg"] .modal-content table thead :is(tr,td,th) {background:#2c3334!important;color:#b9c4c4!important;}
body[data-template="cs27Reg"] .modal-content table tbody :is(tr,td) {background:#242a2b!important;border-color:#414b4c;color:#e0e7e7;}
body[data-template="cs27Reg"] .modal-content .admin-settings .status_block {background:#242a2b!important;}
body[data-template="cs27Reg"] .modal-content :is(.text_flex_privileges,.flex_modal_head > span) {font:700 17px/1.4 'Segoe UI',sans-serif;color:#f1f4f4;}
/* Wrap layouts instead of masking the whole page with overflow:hidden. */
body[data-template="cs27Reg"] :is(.cs27-inner-page,.cs27-community-page,.modal-body) :is(.row,[class*="col-"],.section,.block,.input-group) {min-width:0;}
body[data-template="cs27Reg"] :is(.table-responsive,.table-adaptive) {width:100%;max-width:100%;min-width:0;overflow:visible!important;}
body[data-template="cs27Reg"] :is(.cs27-inner-page,.cs27-community-page,.modal-body) table {width:100%!important;max-width:100%;min-width:0!important;table-layout:fixed;}
body[data-template="cs27Reg"] :is(.cs27-inner-page,.cs27-community-page,.modal-body) :is(th,td) {min-width:0;white-space:normal!important;overflow-wrap:anywhere;word-break:normal;}
body[data-template="cs27Reg"] .table-adaptive .table-row {min-width:0!important;max-width:100%;}
body[data-template="cs27Reg"] .table-adaptive .table-row > .row {min-width:0!important;max-width:100%;width:100%;margin-left:0;margin-right:0;}
body[data-template="cs27Reg"] .table-adaptive .table-row > .row > div {min-width:0;}
body[data-template="cs27Reg"] .table-adaptive .table-row :is(p,strong,span,a) {white-space:normal!important;overflow-wrap:anywhere;}
body[data-template="cs27Reg"] :is(.cs27-inner-page,.cs27-community-page,.modal-body) :is(pre,code) {white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;}
body[data-template="cs27Reg"] :is(.cs27-inner-page,.cs27-community-page,.modal-body) :is(img,video,iframe) {max-width:100%;}
body[data-template="cs27Reg"] :is(.cs27-inner-page,.cs27-community-page,.modal-body) :is(button,.btn) {max-width:100%;white-space:normal;}
body[data-template="cs27Reg"] :is(.pagination,#pagination,#pagination2,.nav-tabs,.tabs__controls) {max-width:100%;flex-wrap:wrap;}
/* Remaining content pages: discussions, support, appeals, news and forms. */
body[data-template="cs27Reg"] .cs27-inner-page :is(.block_support,.block_complaints,.block_content_new,.block_add_ticket,.block_add_ban,.block_add_topic,.block_new_topic) {padding:24px;border:1px solid #3e4647;border-radius:16px;background:#222728;}
body[data-template="cs27Reg"] .cs27-inner-page .block_support {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;}
body[data-template="cs27Reg"] .cs27-inner-page :is(.block_support_left,.block_support_right) {width:auto;min-width:0;margin:0;}
body[data-template="cs27Reg"] .cs27-inner-page .flex_btn_support {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
body[data-template="cs27Reg"] .cs27-inner-page .btn_support {width:auto;min-width:0;margin:0;}
body[data-template="cs27Reg"] .cs27-inner-page .btn_support a {display:flex;align-items:flex-start;gap:12px;padding:18px;border:1px solid #424b4c;border-radius:12px;background:#2b3233;color:#eef2f2;min-height:110px;}
body[data-template="cs27Reg"] .cs27-inner-page .btn_support a > i {color:#ff986f;background:#ff57281c;border-radius:9px;padding:8px;font-size:23px;}
body[data-template="cs27Reg"] .cs27-inner-page .name_support_btn {font:700 14px/1.4 'Segoe UI',sans-serif;}
body[data-template="cs27Reg"] .cs27-inner-page .desp_support_btn {font:400 12px/1.5 'Segoe UI',sans-serif;color:#b0bdbd;}
body[data-template="cs27Reg"] .cs27-inner-page .news_flex {display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,2fr);gap:22px;}
body[data-template="cs27Reg"] .cs27-inner-page :is(.left_news,.block_content_new) {width:auto;min-width:0;margin:0;}
body[data-template="cs27Reg"] .cs27-inner-page #new_news {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:0;}
body[data-template="cs27Reg"] .cs27-inner-page #new_news > [class*="col-"] {padding:0;width:auto;max-width:none;}
body[data-template="cs27Reg"] .cs27-inner-page .cs27-news-card {margin:0;background:#242a2b;border-color:#414b4c;}
body[data-template="cs27Reg"] .cs27-inner-page .cs27-news-body {padding:22px;}
body[data-template="cs27Reg"] .cs27-inner-page .cs27-forum-post {background:#242a2b;border-color:#424b4c;box-shadow:none;}
body[data-template="cs27Reg"] .cs27-inner-page :is(.forum_info_answer,.flex_forum_info_left,.flex_forum_info_right) {min-width:0;gap:12px;}
body[data-template="cs27Reg"] .cs27-inner-page :is(.name_forum,.forum_name_theme,.desp_forum) {white-space:normal;overflow-wrap:anywhere;}
body[data-template="cs27Reg"] .cs27-inner-page :is(.forum_answer_top,.forum_views_top,.forum_fixed_top) {background:#313a3b;color:#c2cece;border:1px solid #465152;border-radius:8px;}
body[data-template="cs27Reg"] .cs27-inner-page .table-adaptive .table-row {border:1px solid #3e4849;border-radius:12px;margin-bottom:10px;padding:8px;background:#242b2c!important;}
body[data-template="cs27Reg"] .cs27-inner-page .table-adaptive .with-description > span {font:400 11px/1.5 'Segoe UI',sans-serif;color:#a2b2b2;}
body[data-template="cs27Reg"] .cs27-inner-page .table-adaptive .with-description > p {font:600 13px/1.5 'Segoe UI',sans-serif;}
@media (hover:hover) and (pointer:fine) {
body[data-template="cs27Reg"] .cs27-settings-page .cs27-wallet:hover .flipper {transform:rotateY(180deg);}
body[data-template="cs27Reg"] .cs27-inner-page .card_privilege.cs27-service-card:hover {translate:0 -3px;border-color:#ff875b99;box-shadow:0 14px 32px #0004;}
body[data-template="cs27Reg"] .cs27-inner-page .card_privilege.cs27-service-card:hover .cs27-service-action {background:#ff5728;color:white;}
}
@media (min-width:992px) and (max-width:1199px) {
body[data-template="cs27Reg"] .row:has(> .cs27-secondary-rail) {grid-template-columns:280px minmax(0,1fr);gap:16px;}
}
@media (max-width:991px) {
body[data-template="cs27Reg"] .row:has(> .cs27-secondary-rail) {grid-template-columns:1fr;gap:20px;}
body[data-template="cs27Reg"] .row:has(> .cs27-secondary-rail) > :not(script) {grid-column:1!important;grid-row:auto!important;}
body[data-template="cs27Reg"] .row:has(> .cs27-secondary-rail) > .cs27-secondary-rail {order:2;display:block;}
body[data-template="cs27Reg"] .cs27-inner-page :is(.block_support,.news_flex) {grid-template-columns:1fr;}
body[data-template="cs27Reg"] .cs27-inner-page .cs27-forum-post {grid-template-columns:1fr;}
body[data-template="cs27Reg"] .cs27-inner-page .cs27-forum-row {grid-template-columns:1fr;}
}
@media (hover:none), (max-width:991px) {
body[data-template="cs27Reg"] .cs27-settings-page .cs27-wallet .flipper {display:flex;flex-direction:column;gap:10px;transform:none!important;}
body[data-template="cs27Reg"] .cs27-settings-page .cs27-wallet :is(.front,.back) {transform:none;min-height:0;backface-visibility:visible;}
body[data-template="cs27Reg"] .cs27-settings-page .cs27-wallet .front {min-height:170px;}
}
@media (max-width:767px) {
body[data-template="cs27Reg"] .cs27-inner-page #new_news {grid-template-columns:1fr;}
body[data-template="cs27Reg"] .cs27-data-table, body[data-template="cs27Reg"] .cs27-data-table tbody {display:block;width:100%;}
body[data-template="cs27Reg"] .cs27-data-table thead {position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;}
body[data-template="cs27Reg"] .cs27-data-table tbody tr {display:grid;grid-template-columns:1fr;gap:0;width:100%;padding:10px;margin:0 0 12px;border:1px solid #424c4d;border-radius:12px;box-sizing:border-box;}
body[data-template="cs27Reg"] .cs27-data-table tbody td {display:block!important;width:100%!important;max-width:100%;box-sizing:border-box;border:0;padding:9px 10px!important;text-align:left!important;}
body[data-template="cs27Reg"] .cs27-data-table tbody td[data-cs27-label]::before {content:attr(data-cs27-label);display:block;margin-bottom:5px;font:600 11px/1.5 'Segoe UI',sans-serif;color:#a2b4b4;}
body[data-template="cs27Reg"] .table-adaptive .table-row > .row {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
body[data-template="cs27Reg"] .table-adaptive .table-row > .row > div {width:auto!important;max-width:none!important;padding:8px;}
body[data-template="cs27Reg"] .modal-content :is(.modal_bans,.flex_head_privileges) {flex-wrap:wrap;gap:12px;}
body[data-template="cs27Reg"] .modal-content .col_bamb {width:100%;min-width:0;}
}
@media (max-width:575px) {
body[data-template="cs27Reg"] .cs27-inner-page .section_store_card {grid-template-columns:1fr;}
body[data-template="cs27Reg"] .cs27-inner-page .card_privilege.cs27-service-card {padding:20px;}
body[data-template="cs27Reg"] .cs27-inner-page :is(.block_support,.block_complaints,.block_content_new) {padding:16px;}
body[data-template="cs27Reg"] .cs27-inner-page .flex_btn_support {grid-template-columns:1fr;}
body[data-template="cs27Reg"] .cs27-settings-page :is(.password_setting_block,.privaty_block_settings,.link_setting_block) {padding:16px;}
body[data-template="cs27Reg"] .modal-body {padding:16px;}
body[data-template="cs27Reg"] .modal-header {padding:18px 16px 12px;}
body[data-template="cs27Reg"] .table-adaptive .table-row > .row {grid-template-columns:1fr;}
}
@media (prefers-reduced-motion:reduce) {
body[data-template="cs27Reg"] .cs27-settings-page .cs27-wallet .flipper {transition:none;}
body[data-template="cs27Reg"] .cs27-inner-page .card_privilege.cs27-service-card {transition:none;translate:none!important;}
}
/* Server cards: independent markup avoids legacy absolute button offsets. */
body[data-template="cs27Reg"] .cs27-rail .cs27-server.cs27-server-card {display:block;width:100%;min-height:0;padding:16px;margin:0 0 12px;background:linear-gradient(135deg,#2b3233,#232829);border:1px solid #444d4e;border-radius:14px;overflow:visible;box-sizing:border-box;box-shadow:0 4px 15px #0002;}
body[data-template="cs27Reg"] .cs27-server-heading {display:flex;align-items:center;gap:10px;margin-bottom:15px;}
body[data-template="cs27Reg"] .cs27-server-symbol {flex:0 0 34px;display:grid;place-items:center;width:34px;height:34px;border:1px solid #ff754535;border-radius:10px;background:#ff572812;color:#ff9c76;font-size:22px;}
body[data-template="cs27Reg"] .cs27-server-title {flex:1;min-width:0;}
body[data-template="cs27Reg"] .cs27-server-title h3 {font:750 14px/1.45 'Segoe UI',sans-serif;color:#f1f4f4;margin:0;overflow-wrap:anywhere;}
body[data-template="cs27Reg"] .cs27-server-title > span {display:block;margin-top:3px;font:400 10px/1.5 'Segoe UI',sans-serif;color:#a0b0b0;overflow-wrap:anywhere;}
body[data-template="cs27Reg"] .cs27-server-details {display:flex;align-items:center;gap:8px;width:100%;border:0;border-radius:9px;background:#1b2223;padding:8px;margin:0;color:#dfe7e7;text-align:left;cursor:pointer;box-sizing:border-box;}
body[data-template="cs27Reg"] .cs27-map-thumb {display:block;flex:0 0 38px;width:38px;height:38px;background-color:#3c4849;background-position:center;background-size:cover;border-radius:7px;}
body[data-template="cs27Reg"] .cs27-map-caption {display:flex;flex:1;flex-direction:column;gap:4px;min-width:0;}
body[data-template="cs27Reg"] .cs27-map-caption small {font:400 9px/1.3 'Segoe UI',sans-serif;color:#a4b1b1;}
body[data-template="cs27Reg"] .cs27-map-caption strong {font:600 11px/1.4 'Segoe UI',sans-serif;overflow-wrap:anywhere;color:#e6eeee;}
body[data-template="cs27Reg"] .cs27-server-population {display:flex;flex-direction:column;align-items:flex-end;flex-shrink:0;gap:3px;}
body[data-template="cs27Reg"] .cs27-server-population strong {font:750 15px/1.2 'Segoe UI',sans-serif;color:#fff;}
body[data-template="cs27Reg"] .cs27-server-population small {font:400 10px/1.3 'Segoe UI',sans-serif;color:#aebcbc;}
body[data-template="cs27Reg"] .cs27-server-meter {height:4px;background:#414a4b;border-radius:5px;margin:12px 0;overflow:hidden;}
body[data-template="cs27Reg"] .cs27-server-meter > span {display:block;max-width:100%;height:100%;background:linear-gradient(90deg,#ff5728,#ffac70);border-radius:5px;}
body[data-template="cs27Reg"] .cs27-server-actions {display:grid;grid-template-columns:minmax(0,1fr) 62px;gap:8px;}
body[data-template="cs27Reg"] .cs27-server-actions > :is(a,button) {position:static;display:flex;align-items:center;justify-content:center;gap:6px;height:36px;padding:6px;border:1px solid #4b5758;border-radius:9px;background:#303a3b;color:#d4e0e0;font:650 12px/1.3 'Segoe UI',sans-serif;cursor:pointer;}
body[data-template="cs27Reg"] .cs27-server-actions .cs27-server-play {border-color:#ff75454d;background:#ff572820;color:#ffb092;}
body[data-template="cs27Reg"] .cs27-server-actions i {font-size:19px;}
body[data-template="cs27Reg"] .cs27-server-actions > :is(a,button):hover {border-color:#ff946e;background:#ff5728;color:#fff;}
body[data-template="cs27Reg"] .cs27-server-details:hover {background:#303a3b;}
body[data-template="cs27Reg"] .cs27-rail .block_servers .flex_top_usr_i > i {background:#ff57281c!important;color:#ff976e!important;border:1px solid #ff754539;box-shadow:none;}
/* Settings grid and remaining forms. */
body[data-template="cs27Reg"] .cs27-settings-page .block_setting_top {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:22px;}
body[data-template="cs27Reg"] .cs27-settings-page :is(.block_setting_left,.block_setting_right,.flex_edit_avatars) {width:auto;min-width:0;max-width:100%;}
body[data-template="cs27Reg"] .cs27-settings-page .block_avatar_edit {background:#293031;border:1px solid #414b4c;border-radius:14px;padding:18px;}
body[data-template="cs27Reg"] .cs27-settings-page .flex_edit_avatar_setting {display:flex;align-items:center;gap:15px;}
body[data-template="cs27Reg"] .cs27-settings-page .img_edit_settings {width:78px;height:78px;flex-shrink:0;border-radius:14px;object-fit:cover;}
body[data-template="cs27Reg"] .cs27-settings-page .flex_edit_avatars {flex:1;}
body[data-template="cs27Reg"] .cs27-settings-page :is(.btn_avatar_setting,.save_signature) {background:#354142!important;color:#e6eeee;border:1px solid #4b5a5b!important;border-radius:9px;padding:11px 14px;}
body[data-template="cs27Reg"] .cs27-settings-page :is(.block_date_edit,.flex_edit_date select) {background:#293132!important;border-color:#434f50;}
body[data-template="cs27Reg"] .cs27-settings-page .flex_edit_date {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;}
body[data-template="cs27Reg"] .cs27-settings-page .flex_edit_date > * {min-width:0;width:100%;}
body[data-template="cs27Reg"] .cs27-settings-page .black_list {gap:12px;flex-wrap:wrap;padding:16px;}
body[data-template="cs27Reg"] .modal-content .table-adaptive[id^="server-players"] {overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:thin;scrollbar-color:#916044 #252d2e;}
body[data-template="cs27Reg"] :is(.page_authorization,.page_auth_right,.login_block,.authorization) {min-width:0;max-width:100%;}
body[data-template="cs27Reg"] .page_authorization {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);background:#1d2223;}
body[data-template="cs27Reg"] :is(.page_auth_left,.page_auth_right) {width:auto;min-width:0;}
body[data-template="cs27Reg"] .page_auth_right {display:flex;align-items:center;justify-content:center;padding:32px;background:#1d2223;}
body[data-template="cs27Reg"] .page_auth_right .login_block {width:100%;max-width:480px;margin:0;padding:24px;border:1px solid #444e4f;border-radius:18px;background:#252c2d;}
body[data-template="cs27Reg"] .page_auth_right :is(.form_control_auth,.input_login) {max-width:100%;background:#30393a;color:#eef3f3;border-color:#4a5657;}
body[data-template="cs27Reg"] .page_auth_right :is(.text_welcome,.active_recovery) {color:#f5f7f7;}
body[data-template="cs27Reg"] .page_auth_right :is(.second_welcome,.back_recovery) {color:#c0cccc;}
body[data-template="cs27Reg"] .error_block_two {max-width:640px;margin:0 auto 36px;padding:28px;border:1px solid #444e4f;border-radius:18px;background:#242b2c;text-align:center;}
body[data-template="cs27Reg"] .error_text_h1 {font:750 28px/1.3 'Segoe UI',sans-serif;color:#f3f5f5;}
body[data-template="cs27Reg"] .error_text_h2 {font:400 14px/1.6 'Segoe UI',sans-serif;color:#bcc9c9;overflow-wrap:anywhere;}
body[data-template="cs27Reg"] .cs27-inner-page :is(.block_support_add,.add-ban,.block_forum_edit) {padding:24px;background:#232a2b;border:1px solid #424c4d;border-radius:16px;}
@media(max-width:1199px) {
 body[data-template="cs27Reg"] .cs27-settings-page .block_setting_top {grid-template-columns:1fr;}
}
@media(max-width:767px) {
 body[data-template="cs27Reg"] .page_authorization {grid-template-columns:1fr;}
 body[data-template="cs27Reg"] .page_auth_left {min-height:220px;}
 body[data-template="cs27Reg"] .page_auth_right {padding:16px;}
 body[data-template="cs27Reg"] .table-responsive table.admin-settings td {width:auto;}
 body[data-template="cs27Reg"] .modal-content .input-group {flex-wrap:wrap;}
}
/* Shared chat surfaces, matching private messages exactly. */
body[data-template="cs27Reg"] {--cs27-chat-surface:#202223;--cs27-chat-input:#292c2d;}
body[data-template="cs27Reg"] :is(.cs27-chat,.cs27-chat > .block.chat,.cs27-messages-page .block_message_right) {background:var(--cs27-chat-surface)!important;}
body[data-template="cs27Reg"] .cs27-chat #chat #chat_messages,
body[data-template="cs27Reg"] .cs27-messages-page #chat #messages {background:var(--cs27-chat-surface)!important;border-color:#383e3f;overflow-x:hidden!important;overflow-wrap:anywhere;scrollbar-width:thin;scrollbar-color:#a75c42 #242829;}
body[data-template="cs27Reg"] .cs27-chat #chat .input-group #chat_message_input,
body[data-template="cs27Reg"] .cs27-messages-page #chat #personal_message_input {background:var(--cs27-chat-input)!important;border:1px solid #45494a;color:#eee;}
body[data-template="cs27Reg"] .cs27-chat #chat_messages :is(.message,.text_chat,.message_global,.with_code) {min-width:0;max-width:100%;overflow-wrap:anywhere;}
body[data-template="cs27Reg"] .cs27-chat #chat_messages :is(img,video,iframe) {max-width:100%;}
body[data-template="cs27Reg"] .cs27-chat #chat_messages pre {white-space:pre-wrap;overflow-wrap:anywhere;}
body[data-template="cs27Reg"] .cs27-chat #chat_messages::-webkit-scrollbar {width:6px;height:0;}
body[data-template="cs27Reg"] .cs27-chat #chat_messages::-webkit-scrollbar-thumb {background:#85503e;border-radius:10px;}
/* Designer product art, separated from the price and action area. */
body[data-template="cs27Reg"] .cs27-inner-page .card_privilege.cs27-service-card {padding:0 0 20px;gap:15px;overflow:hidden;}
body[data-template="cs27Reg"] .cs27-service-card > :not(.cs27-service-art) {margin-left:20px;margin-right:20px;}
body[data-template="cs27Reg"] .cs27-service-art {aspect-ratio:16/9;width:100%;background:#191d1e;overflow:hidden;border-bottom:1px solid #404849;}
body[data-template="cs27Reg"] .cs27-service-art img {display:block;width:100%;height:100%;object-fit:cover;transition:scale .4s ease;}
body[data-template="cs27Reg"] .cs27-service-card .cs27-service-icon {display:none;}
body[data-template="cs27Reg"] .cs27-service-card .cs27-service-name {font-size:23px;}
body[data-template="cs27Reg"] .cs27-service-card .cs27-service-bottom {margin-top:auto;}
body[data-template="cs27Reg"] .cs27-inner-page .news-block-imgg {aspect-ratio:16/9;min-height:180px;height:auto;border-radius:14px;background-position:center;}
@media(hover:hover) and (pointer:fine) {
 body[data-template="cs27Reg"] .cs27-service-card:hover .cs27-service-art img {scale:1.035;}
}
@media(prefers-reduced-motion:reduce) {
 body[data-template="cs27Reg"] .cs27-service-art img {transition:none;scale:1!important;}
}
/* Compatible styling for the existing GameCMS extra-module templates. */
body[data-template="cs27Reg"] :is(.rcon-shop-product,.product-card,.block_info_rcon,.block_tarif_rcon,.description_rcon) {min-width:0;border:1px solid #424d4e;border-radius:15px;background:#252d2e;color:#e8eeee;box-shadow:none;}
body[data-template="cs27Reg"] .rcon-shop-product .actions {display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:16px;}
body[data-template="cs27Reg"] .rcon-shop-product :is(.btn_buy_rcon,.btn_desp_rcon) {width:auto;margin:0;border-radius:9px;padding:12px;background:#354142;color:#e6eeee;border:1px solid #4c595a;}
body[data-template="cs27Reg"] .rcon-shop-product .btn_buy_rcon {background:#ff572824;color:#ffaf8c;border-color:#ff875852;}
body[data-template="cs27Reg"] .flex_rcon_shop {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;}
body[data-template="cs27Reg"] :is(.left_rcon_shop,.right_rcon_shop) {width:auto;min-width:0;}
body[data-template="cs27Reg"] .img_rcon_shop {width:100%;height:auto;max-width:100%;border-radius:13px;}
body[data-template="cs27Reg"] .block_tarif_rcon {padding:20px;}
body[data-template="cs27Reg"] .block_tarif_rcon .btn {padding:12px 8px;background:#333d3e;color:#d2dede;border:1px solid #4c5b5c;border-radius:10px;}
body[data-template="cs27Reg"] .block_tarif_rcon .btn.active {background:#ff572822;border-color:#ff885970;color:#ffb191;}
body[data-template="cs27Reg"] .description_rcon {padding:20px;overflow-wrap:anywhere;}
body[data-template="cs27Reg"] .product-card {overflow:hidden;display:block;}
body[data-template="cs27Reg"] .product-card > div:first-child {aspect-ratio:16/9;background-size:cover;background-position:center;}
body[data-template="cs27Reg"] .product-card .push_dstore {background:#ff572819;color:#ffa682;border-radius:9px;padding:12px;}
@media(max-width:767px) {body[data-template="cs27Reg"] .flex_rcon_shop {grid-template-columns:1fr;}}
/* Equal top edges for the shared rail and page content. */
body[data-template="cs27Reg"] .row:has(> .cs27-secondary-rail) {padding-top:20px;}
body[data-template="cs27Reg"] .row:has(> .cs27-secondary-rail) > :is(.cs27-secondary-rail,.cs27-inner-page,.cs27-community-page) {padding-top:0;}

/* 3.11: reset inherited offsets at the owning component. */
body[data-template="cs27Reg"] .container {width:calc(100% - 48px)!important;max-width:1360px!important;margin-left:auto!important;margin-right:auto!important;box-sizing:border-box;}
body[data-template="cs27Reg"] .container .container {width:100%!important;max-width:none!important;padding-left:0!important;padding-right:0!important;}
body[data-template="cs27Reg"] .container > .cs27-inner-page.col-lg-12 {padding-left:0;padding-right:0;}
body[data-template="cs27Reg"] .cs27-rail .cs27-server.cs27-server-card {height:auto!important;min-height:0!important;max-height:none!important;isolation:isolate;}
body[data-template="cs27Reg"] .cs27-server.cs27-server-card::after {display:none!important;}
body[data-template="cs27Reg"] .cs27-rail #servers {height:auto;max-height:none;display:block;}
body[data-template="cs27Reg"] .table-adaptive .table-row > .row > div.with-description {height:auto;min-height:62px;display:flex;flex-direction:column;justify-content:center;gap:5px;}
body[data-template="cs27Reg"] .table-adaptive .table-row > .row > div.with-description > :is(p,span) {position:static!important;inset:auto!important;transform:none!important;width:auto!important;max-width:100%;height:auto!important;margin:0!important;overflow:visible!important;line-height:1.5!important;white-space:normal!important;overflow-wrap:anywhere;}
body[data-template="cs27Reg"] .table-adaptive .table-row > .row > div.with-icon > :is(i,img) {top:50%!important;transform:translateY(-50%);}
body[data-template="cs27Reg"] :is(.vertical_navigation_bms,.tabs__controls) {border-bottom:0!important;}
body[data-template="cs27Reg"] .stats_info_bans {height:auto!important;min-width:0;min-height:112px;justify-content:center;gap:10px;padding:18px 10px;background:#26292a!important;border:1px solid #404445;}
body[data-template="cs27Reg"] .text_bans {margin:0;font-size:28px;line-height:1.2;}
body[data-template="cs27Reg"] [class^="info_text_bans"] {height:auto;min-height:0;background:transparent!important;backdrop-filter:none;padding:0;line-height:1.4;text-align:center;}
body[data-template="cs27Reg"] [class^="line_info_stats"] {display:none;}
body[data-template="cs27Reg"] .cs27-chat .login_share_flex {display:flex;align-items:center;justify-content:flex-start;gap:12px;flex-wrap:wrap;}
body[data-template="cs27Reg"] .cs27-chat :is(.interaction_mess,.chat_date) {position:static!important;inset:auto!important;transform:none;margin:0!important;width:auto;float:none;}
body[data-template="cs27Reg"] .cs27-chat .chat_date {display:inline-block;background:transparent;border:0;padding:0;color:#a8acad;font:400 11px/1.4 'Segoe UI',sans-serif;}
body[data-template="cs27Reg"] .cs27-inner-page .section_store_card {grid-template-columns:repeat(3,minmax(0,1fr));}
body[data-template="cs27Reg"] .cs27-service-art img {font-size:13px;color:#abb1b1;}
body[data-template="cs27Reg"] .cs27-service-card .cs27-service-name {font-size:20px;}
body[data-template="cs27Reg"] .cs27-service-card .cs27-service-price {font-size:23px;}
body[data-template="cs27Reg"] .purse_list {width:100%;height:auto;max-height:480px;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#985d44 #232627;}
body[data-template="cs27Reg"] .purse_list :is(.table-responsive,table) {display:table;width:100%!important;max-width:100%;table-layout:fixed;}
body[data-template="cs27Reg"] .purse_list .table-responsive {display:block;}
body[data-template="cs27Reg"] .purse_list :is(th,td) {white-space:normal!important;overflow-wrap:anywhere;padding:14px 10px!important;}
body[data-template="cs27Reg"] .purse_list tbody {display:table-row-group;width:100%;}
body[data-template="cs27Reg"] .purse_list tr {display:table-row;width:100%;}
body[data-template="cs27Reg"] .flex_input_merchant {display:flex;align-items:stretch;gap:10px;}
body[data-template="cs27Reg"] .flex_input_merchant label {flex:1;min-width:0;margin:0;}
body[data-template="cs27Reg"] .flex_input_merchant input {background:#292c2d!important;}
body[data-template="cs27Reg"] .buy_purse {position:static!important;background:#ff5728!important;color:#fff;border:1px solid #ff784f;border-radius:10px;box-shadow:none;min-height:48px;}
body[data-template="cs27Reg"] :is(.discount_purse,.info_discount,.info_reactions_profile) {background:#292c2d!important;border-color:#414546;color:#c9cece;}
body[data-template="cs27Reg"] :is(.discount_purse > i,.forum_profile_reaction > i) {background:#ff57281c!important;color:#ff865e!important;box-shadow:none;}
body[data-template="cs27Reg"] .cs27-inner-page .cs27-forum-row {grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr);gap:24px;}
body[data-template="cs27Reg"] .theme_info_forum {flex:1;width:auto;min-width:0;}
body[data-template="cs27Reg"] .flex_forum_user {gap:6px;line-height:1.5;}
body[data-template="cs27Reg"] .forum_name_theme {display:block;width:auto;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.5;}
body[data-template="cs27Reg"] :is(.user_info_forum,.forum_empty) {background:#292c2d!important;}
body[data-template="cs27Reg"] .cs27-inner-page #new_news .news_block {height:100%;margin:0;padding:0;background:#232627!important;border:1px solid #404445;border-radius:14px;overflow:hidden;}
body[data-template="cs27Reg"] .cs27-inner-page #new_news .flex_new_new {display:flex;flex-direction:column;height:100%;gap:0;}
body[data-template="cs27Reg"] .cs27-inner-page #new_news .news-block-img {width:100%;height:auto;min-height:0;aspect-ratio:16/9;flex:none;border-radius:0;background-position:center;}
body[data-template="cs27Reg"] .cs27-inner-page #new_news .flex_info_new {display:flex;flex:1;flex-direction:column;width:auto;min-width:0;gap:12px;padding:20px;margin:0;}
body[data-template="cs27Reg"] .cs27-inner-page #new_news :is(.name_news,.short_news) {position:static;width:auto;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.5;height:auto;margin:0;}
body[data-template="cs27Reg"] .cs27-inner-page #new_news .flex_info_new > a {margin-top:auto;}
body[data-template="cs27Reg"] .cs27-inner-page #new_news .news-button-bottom {position:static;width:100%;margin:0;border-radius:9px;border-color:#ff784f66;background:#ff57280f;color:#ffb08f;}
body[data-template="cs27Reg"] .cs27-inner-page #new_news > .new_news {display:none;}
body[data-template="cs27Reg"] .cs27-download-action {display:inline-flex!important;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:12px 20px!important;margin:5px!important;border:1px solid #ff784f88!important;border-radius:10px!important;background:#ff5728!important;color:white!important;box-shadow:none!important;transition:background .2s,box-shadow .2s;}
body[data-template="cs27Reg"] .cs27-download-action:hover {background:#ed461b!important;box-shadow:0 6px 18px #ff572830!important;}
@media(max-width:991px) {body[data-template="cs27Reg"] .cs27-inner-page .section_store_card {grid-template-columns:repeat(2,minmax(0,1fr));}body[data-template="cs27Reg"] .cs27-inner-page .cs27-forum-row {grid-template-columns:1fr;}}
@media(max-width:767px) {body[data-template="cs27Reg"] .container {width:calc(100% - 28px)!important;}body[data-template="cs27Reg"] .block_stats_bans {grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:575px) {body[data-template="cs27Reg"] .cs27-inner-page .section_store_card {grid-template-columns:1fr;}body[data-template="cs27Reg"] .flex_input_merchant {flex-wrap:wrap;}body[data-template="cs27Reg"] .buy_purse {width:100%;}}
/* Pagination keeps its navigation arrow in the same row. */
body[data-template="cs27Reg"] :is(#pagination,#pagination2) {width:100%!important;max-width:100%;height:auto;display:flex;justify-content:center;margin:22px 0;padding:0;background:transparent;border:0;}
body[data-template="cs27Reg"] .pagination {display:flex!important;flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:center;gap:7px;width:max-content!important;max-width:100%;height:auto!important;margin:0 auto!important;padding:8px!important;border:1px solid #3f4344;border-radius:12px;background:#242728;}
body[data-template="cs27Reg"] .pagination > li {display:block;float:none!important;width:auto!important;flex:0 0 auto;margin:0!important;padding:0!important;}
body[data-template="cs27Reg"] .pagination > li > :is(a,span) {position:static!important;float:none!important;display:flex!important;align-items:center;justify-content:center;width:auto!important;min-width:36px;height:36px;margin:0!important;padding:6px 10px!important;border-radius:8px;line-height:1.2;}

body[data-template="cs27Reg"] .cs27-chat .message_global {flex:1;min-width:0;}
body[data-template="cs27Reg"] .cs27-chat .login_share_flex {width:100%;}
body[data-template="cs27Reg"] .cs27-chat .interaction_mess {margin-left:auto!important;flex-shrink:0;}
body[data-template="cs27Reg"] .cs27-download-action > div {background:transparent!important;box-shadow:none!important;margin:0!important;padding:0!important;}
body[data-template="cs27Reg"] .container > .row {margin-left:0;margin-right:0;}

/* 3.12: requested spacing and consistent component surfaces. */
body[data-template="cs27Reg"] .chat_message {min-height:50px!important;}
body[data-template="cs27Reg"] .cs27-messages-page #chat #personal_message_input {min-height:10px!important;}
body[data-template="cs27Reg"] .vertical_navigation_bms {border-top:0!important;}
body[data-template="cs27Reg"] {--cs27-button:#303334;--cs27-button-border:#464a4b;--cs27-accent:#ff5728;}
body[data-template="cs27Reg"] :is(button.btn,a.btn,button[class*="btn"],a[class*="btn"],.mp_btn_profile,.settings_header,.black_list_button,.answer_forum,.send_comment_btn,.buy_purse,.button_summa,.add_ticket_support) {background:var(--cs27-button)!important;border-color:var(--cs27-button-border)!important;color:#edf0f0!important;text-shadow:none!important;box-shadow:none;border-radius:9px;}
body[data-template="cs27Reg"] :is(.active_btn_support_top,.add_ticket_support,.settings_header,.send_comment_btn,.buy_purse,.save_all,.password_setting,.pursee-button,.pagination > .active > a) {background:var(--cs27-accent)!important;border-color:#ff784f!important;color:#fff!important;box-shadow:none!important;}
body[data-template="cs27Reg"] :is(.btn_support,.my_stores_mini_btn,.block_forum_profile_top,.info_reactions_profile,.accordion-header,.support_btn_top,.category_content .select_content) {background:#252829!important;border-color:#424647!important;box-shadow:none!important;}
body[data-template="cs27Reg"] :is(.my_stores_mini_btn > i,.accordion-header .flex_accordion_text > i) {background:#ff57281c!important;color:#ff875f!important;box-shadow:none;}
body[data-template="cs27Reg"] .checkbox.style-h input:checked ~ .checkbox__body {background:#ff5728!important;border-color:#ff784f!important;color:#fff!important;text-shadow:none!important;}
body[data-template="cs27Reg"] .cs27-settings-page .checkbox.style-h input:checked ~ .checkbox__body {background:#ff5728!important;border-color:#ff784f!important;color:#fff!important;}
body[data-template="cs27Reg"] .cs27-footer-socials {display:flex;align-items:center;gap:10px;}
body[data-template="cs27Reg"] .cs27-footer-socials a {display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#292c2d;border:1px solid #45494a;color:#ff875f;font-size:25px;}
body[data-template="cs27Reg"] :is(.cs27-forum-post,.block_forum_answer) :is(.left-side,.block_forum_profile_top,.info_reactions_profile) {width:100%;max-width:100%;min-width:0;box-sizing:border-box;}
body[data-template="cs27Reg"] .cs27-forum-post {grid-template-columns:210px minmax(0,1fr);}
body[data-template="cs27Reg"] .cs27-news-list-card {height:100%;display:flex;flex-direction:column;background:#222526!important;border:1px solid #3e4243!important;border-radius:14px;overflow:hidden;}
body[data-template="cs27Reg"] .cs27-inner-page .cs27-news-list-card .cs27-news-body {display:flex;flex:1;flex-direction:column;gap:14px;padding:20px;background:transparent;}
body[data-template="cs27Reg"] .cs27-news-list-card .cs27-news-cover {display:block;width:100%;aspect-ratio:16/9;overflow:hidden;}
body[data-template="cs27Reg"] .cs27-news-list-card .cs27-news-cover img {display:block;width:100%;height:100%;object-fit:cover;}
body[data-template="cs27Reg"] .cs27-news-list-card .name_news {position:static;display:block;width:auto;height:auto;margin:0;white-space:normal;font:700 18px/1.45 'Segoe UI',sans-serif;}
body[data-template="cs27Reg"] .cs27-news-list-card .cs27-news-summary {margin:0;font:400 13px/1.6 'Segoe UI',sans-serif;color:#b5bcbc;}
body[data-template="cs27Reg"] .cs27-news-list-card .cs27-news-meta {display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-top:auto;color:#929b9c;font:400 11px/1.4 'Segoe UI',sans-serif;}
body[data-template="cs27Reg"] .cs27-news-list-card .cs27-news-link {margin:0;font-size:12px;}
/* Explicit row grids: no Bootstrap percent widths or inherited fixed-width p. */
body[data-template="cs27Reg"] .table-adaptive :is(.cs27-stats-row,.cs27-ban-row,.cs27-mute-row) {padding:0!important;background:#252829!important;border:1px solid #3e4445;border-radius:12px;margin-bottom:10px;}
body[data-template="cs27Reg"] .table-adaptive :is(.cs27-stats-row,.cs27-ban-row,.cs27-mute-row) > .row {position:relative;display:grid!important;width:100%!important;margin:0!important;gap:0;align-items:stretch;}
body[data-template="cs27Reg"] .table-adaptive .cs27-ban-row > .row {grid-template-columns:minmax(0,1.05fr) minmax(0,1.25fr) minmax(0,.8fr) minmax(0,1.15fr);}
body[data-template="cs27Reg"] .table-adaptive .cs27-mute-row > .row {grid-template-columns:minmax(0,1.2fr) minmax(0,1.1fr) minmax(0,.7fr) minmax(0,.85fr) minmax(0,1fr);}
body[data-template="cs27Reg"] .table-adaptive .cs27-stats-row > .row {grid-template-columns:62px minmax(0,2.4fr) repeat(3,minmax(0,1fr)) minmax(74px,1.1fr);}
body[data-template="cs27Reg"] .table-adaptive .cs27-stats-row > .row:has(> div:nth-of-type(7)) {grid-template-columns:58px minmax(0,2.4fr) repeat(3,minmax(0,.8fr)) minmax(45px,.6fr) minmax(72px,1fr);}
body[data-template="cs27Reg"] .table-adaptive :is(.cs27-stats-row,.cs27-ban-row,.cs27-mute-row) > .row > div {width:auto!important;max-width:100%!important;min-width:0!important;min-height:76px;height:auto;flex:none;padding:14px 12px!important;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;border-right:0;box-sizing:border-box;}
body[data-template="cs27Reg"] .table-adaptive :is(.cs27-stats-row,.cs27-ban-row,.cs27-mute-row) > .row > div:last-child {border-right:0;}
body[data-template="cs27Reg"] .table-adaptive :is(.cs27-stats-row,.cs27-ban-row,.cs27-mute-row) > .row > div > i {display:none;}
body[data-template="cs27Reg"] .table-adaptive :is(.cs27-stats-row,.cs27-ban-row,.cs27-mute-row) > .row > div > :is(p,span) {position:static!important;inset:auto!important;width:100%!important;max-width:100%!important;min-width:0;margin:0!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;line-height:1.5!important;height:auto!important;}
body[data-template="cs27Reg"] .cs27-stats-row .area-label {position:static;display:flex;width:100%;height:auto;align-items:center;justify-content:center;margin:0;}
body[data-template="cs27Reg"] .cs27-stats-row .area-label .label {position:static;display:inline-flex!important;align-items:center;justify-content:center;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;width:auto!important;min-width:62px;padding:7px 9px!important;border-radius:8px;background:#ff572817!important;border:1px solid #ff784f44;color:#ffb292!important;font-size:11px;}
body[data-template="cs27Reg"] .cs27-stats-row .go_stats_info {position:absolute!important;inset:0!important;width:100%;height:100%;z-index:1;}
body[data-template="cs27Reg"] .cs27-stats-row .area-user a {position:relative;z-index:2;}
body[data-template="cs27Reg"] .cs27-menu-toggle {display:inline-flex;align-items:center;justify-content:center;width:25px;height:30px;border:0;background:transparent!important;color:#aab0b0;cursor:pointer;padding:0;}
body[data-template="cs27Reg"] .cs27-navigation .collapsible:has(> .cs27-menu-toggle) {display:flex;align-items:center;position:relative;}
body[data-template="cs27Reg"] .cs27-navigation .collapsible:has(> .cs27-menu-toggle) > ul {top:100%;}
@media(max-width:767px) {
 body[data-template="cs27Reg"] .table-adaptive :is(.cs27-stats-row,.cs27-ban-row,.cs27-mute-row) > .row {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
 body[data-template="cs27Reg"] .table-adaptive .cs27-stats-row > .row > div:nth-of-type(2) {grid-column:span 1;}
 body[data-template="cs27Reg"] .cs27-forum-post {grid-template-columns:1fr;}
}
body[data-template="cs27Reg"] :is(.block_buy_store,.block_total_store,.block_info_stores,.block_info_stores_left,.right_block_total_store,.prem_card_store) {background:#242728!important;background-image:none!important;border:1px solid #3f4445;border-radius:14px;box-shadow:none!important;}
body[data-template="cs27Reg"] .block_info_stores_left > i {opacity:.12;color:#ff784f;}
body[data-template="cs27Reg"] .button_tarif {background:#303435!important;border:1px solid #464c4d;color:#dce1e1;box-shadow:none;}
body[data-template="cs27Reg"] .button_tarif.active {background:#ff5728!important;border-color:#ff784f;color:#fff;}
body[data-template="cs27Reg"] .bind-card {background:#272b2c!important;border:1px solid #43494a!important;box-shadow:none!important;}
body[data-template="cs27Reg"] .bind-card:has(input:checked) {background:#ff572810!important;border-color:#ff784f!important;}
body[data-template="cs27Reg"] .bind-card:has(input:checked) :is(.bind-icon,.bind-check) {background:#ff5728!important;color:white!important;}
body[data-template="cs27Reg"] :is(.price_current,.flex_sbn_store_priv infos,.prem_card_store > i) {background:#ff57281c!important;color:#ffad8d!important;box-shadow:none!important;}
body[data-template="cs27Reg"] .flex_sbn_store_priv infos i {color:#ff875f!important;}
body[data-template="cs27Reg"] #store_buy_btn {background:#ff5728!important;border:1px solid #ff784f;color:#fff!important;}
body[data-template="cs27Reg"] #store_buy_btn.disabled {opacity:.5;}
body[data-template="cs27Reg"] .cs27-service-description-panel {margin:20px 0;padding:24px;background:#242728;border:1px solid #414647;border-radius:14px;}
body[data-template="cs27Reg"] .cs27-service-description-panel h2 {display:flex;align-items:center;gap:12px;margin:0 0 18px;font:700 19px/1.4 'Segoe UI',sans-serif;color:#f0f3f3;}
body[data-template="cs27Reg"] .cs27-service-description-panel h2 i {display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#ff57281c;color:#ff875f;font-size:23px;}
body[data-template="cs27Reg"] .cs27-service-description-panel .with_code {font:400 14px/1.7 'Segoe UI',sans-serif;color:#c7cece;overflow-wrap:anywhere;}
body[data-template="cs27Reg"] .cs27-service-description-panel .with_code img {max-width:100%;height:auto;}
body[data-template="cs27Reg"] .cs27-service-description-panel .with_code :is(p,ul,ol) {margin-bottom:12px;}
body[data-template="cs27Reg"] .cs27-service-description-panel .with_code :is(ul,ol) {padding-left:22px;}
body[data-template="cs27Reg"] .my_stores_mini_btn {background:#ff57280d!important;border:1px solid #ff784f33;border-radius:11px;}
body[data-template="cs27Reg"] .settings_header {background:#ff5728!important;}

/* 3.12: aligned user search and pagination palette. */
body[data-template="cs27Reg"] .cs27-users-page .search_flex_users {display:flex;align-items:center;gap:16px;flex-wrap:wrap;}
body[data-template="cs27Reg"] .cs27-users-page .search_flex_users > :is(label,.block_search) {flex:0 1 260px;width:260px!important;max-width:100%;margin:0!important;}
body[data-template="cs27Reg"] .cs27-users-page .cs27-user-search {display:flex;align-items:center;gap:10px;height:50px;padding:6px 8px;background:#272b2c;border:1px solid #43494a;border-radius:10px;box-sizing:border-box;}
body[data-template="cs27Reg"] .cs27-users-page .cs27-user-search-button {position:static;display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;margin:0;padding:0;border:0;border-radius:8px;background:#ff57281c;color:#ff875f;font-size:19px;cursor:pointer;}
body[data-template="cs27Reg"] .cs27-users-page #search_login {position:static!important;inset:auto!important;flex:1;min-width:0;width:100%;height:36px!important;min-height:0!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0;color:#edf0f0!important;font:400 13px/36px 'Segoe UI',sans-serif;}
body[data-template="cs27Reg"] .cs27-users-page #search_login::placeholder {color:#abb4b4;opacity:1;}
body[data-template="cs27Reg"] .cs27-user-search:focus-within {border-color:#ff784f;box-shadow:0 0 0 3px #ff572815;}
body[data-template="cs27Reg"] .pagination > li > :is(a,span) {background:#292d2e!important;border:1px solid #454a4b!important;color:#c2cccc!important;box-shadow:none!important;}
body[data-template="cs27Reg"] .pagination > :is(.active,.current) > :is(a,span),body[data-template="cs27Reg"] .pagination > li > :is(a,span):hover {background:#ff5728!important;border-color:#ff784f!important;color:#fff!important;}
body[data-template="cs27Reg"] .cs27-users-page .search_flex_users > label {height:50px;top:0!important;}
body[data-template="cs27Reg"] .cs27-users-page #groups {top:0!important;height:50px!important;background:#272b2c!important;border-color:#43494a!important;}
body[data-template="cs27Reg"] .cs27-users-page .search_flex_users > label > i {background:#ff57281c!important;color:#ff875f!important;top:7px!important;}

/* 3.12: server player dialog. */
body[data-template="cs27Reg"] .cs27-server-modal .modal-content {background:#202425!important;border:1px solid #444a4b;border-radius:18px;}
body[data-template="cs27Reg"] .cs27-server-modal .server_info {position:relative;min-height:180px;height:auto;background-size:cover;background-position:center;isolation:isolate;}
body[data-template="cs27Reg"] .cs27-server-modal .server_info:before {content:"";position:absolute;inset:0;background:linear-gradient(0deg,#202425 0%,#1417189e 100%);z-index:-1;}
body[data-template="cs27Reg"] .cs27-server-modal .info_server {position:relative;padding:30px 50px 24px;display:flex;flex-direction:column;align-items:center;gap:12px;}
body[data-template="cs27Reg"] .cs27-server-modal .name_server_info {margin:0;line-height:1.5;}
body[data-template="cs27Reg"] .cs27-server-modal .player_number_info {margin:0;padding:7px 14px;background:#ff57281c;color:#ffb294;border:1px solid #ff784f40;border-radius:20px;}
body[data-template="cs27Reg"] .cs27-server-modal .connect_server {margin:0;padding:9px 16px;background:#ff5728;color:white;border:0;border-radius:9px;text-decoration:none;}
body[data-template="cs27Reg"] .cs27-server-modal .gradient_server_info {display:none;}
body[data-template="cs27Reg"] .cs27-server-modal [id^="server-players"] {height:auto!important;max-height:420px;margin:0!important;padding:0 5px 0 0!important;overflow-x:hidden!important;overflow-y:auto!important;scrollbar-width:thin;scrollbar-color:#ff784f #252a2b;}
body[data-template="cs27Reg"] .cs27-server-player-row {padding:0!important;margin:0 0 10px!important;background:#292e2f!important;border:1px solid #424849;border-radius:12px;}
body[data-template="cs27Reg"] .cs27-server-player-row > .row {display:grid!important;grid-template-columns:minmax(0,1.5fr) minmax(0,.65fr) minmax(0,.85fr);gap:12px;align-items:center;margin:0!important;padding:14px;}
body[data-template="cs27Reg"] .cs27-server-player-row > .row:has(> div:nth-child(4)) {grid-template-columns:minmax(0,1.5fr) minmax(0,.65fr) minmax(0,.85fr) minmax(190px,1.3fr);}
body[data-template="cs27Reg"] .cs27-server-player-row > .row > div {position:relative;min-width:0;width:auto!important;max-width:100%!important;padding:0!important;}
body[data-template="cs27Reg"] .cs27-server-player-row > .row > div:first-child {padding-left:42px!important;}
body[data-template="cs27Reg"] .cs27-server-player-row .cs27-player-position {position:absolute!important;left:0!important;top:50%!important;transform:translateY(-50%);display:grid;place-items:center;width:30px!important;height:30px!important;margin:0!important;padding:0!important;border-radius:8px;background:#ff572817!important;color:#ffad8d;border:1px solid #ff784f33;}
body[data-template="cs27Reg"] .cs27-server-player-row p {width:auto!important;max-width:100%;height:auto!important;margin:0 0 4px!important;white-space:normal!important;overflow-wrap:anywhere;font-size:13px;line-height:1.5;}
body[data-template="cs27Reg"] .cs27-server-player-row p + span {display:block;color:#94a0a1;font-size:11px;}
body[data-template="cs27Reg"] .cs27-server-player-row .form-group-custom {position:relative;display:flex;flex-direction:row-reverse;align-items:center;gap:8px;margin:0;padding:0;}
body[data-template="cs27Reg"] .cs27-server-player-row .custom-select {flex:1;min-width:0;margin:0;top:0;}
body[data-template="cs27Reg"] .cs27-server-player-row select {height:40px!important;padding:0 22px 0 34px!important;margin:0!important;background:#222728!important;border:1px solid #454e4f;color:#e5eeee;border-radius:8px;}
body[data-template="cs27Reg"] .cs27-server-player-row .custom-select i {top:12px!important;left:10px!important;color:#ff996f;}
body[data-template="cs27Reg"] .cs27-server-player-row .succesy_button_player {position:static!important;inset:auto!important;flex:0 0 36px;width:36px!important;height:36px!important;margin:0!important;padding:0;display:grid;place-items:center;background:#ff5728!important;color:#fff;border:1px solid #ff784f;border-radius:9px;}
@media(max-width:767px) {
 body[data-template="cs27Reg"] .cs27-server-player-row > .row,body[data-template="cs27Reg"] .cs27-server-player-row > .row:has(> div:nth-child(4)) {grid-template-columns:repeat(2,minmax(0,1fr));}
 body[data-template="cs27Reg"] .cs27-server-player-row > .row > div:first-child {grid-column:1/-1;min-height:34px;}
 body[data-template="cs27Reg"] .cs27-server-player-row > .row > div:nth-child(4) {grid-column:1/-1;}
}
