* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.pagination {
    margin: 20px 0;
}

.page-link {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: #3498db;
    color: white;
    text-decoration: none;
}

.page-current {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    background: #3498db;
    color: white;
    border-radius: 4px;
    border: 1px solid #2980b9;
}

.news_page_left {
    float: left;
    width: 110px;
    margin: 18px 13px 0px 7px;
}

.news_date {
    color: #562806;
    font-size: 12px;
    letter-spacing: -1px;
    padding-left: 15px;
}

.news_page_left .news_1,
.news_page_left .news_81 {
    width: 95px;
    margin: 5px 35px 0px 0px;
    height: 22px;
}

.news_page_left .news_1 {
    background: url(/img/news/news_important.gif) no-repeat top center;
}

.news_page_left .news_81 {
    background: url(/img/news/news_common.png) no-repeat top center;
}

.news_page_content {
    float: left;
    width: 480px;
    margin-top: 17px;
}

.news_page_left {
    float: left;
    width: 110px;
    margin: 18px 13px 0px 7px;
}

.news_date {
    color: #562806;
    font-size: 12px;
    letter-spacing: -1px;
    padding-left: 15px;
}

.field-price {
    color: #562806;
    font-size: 7;
}

.news_page_left .news_1,
.news_page_left .news_81 {
    width: 95px;
    margin: 5px 35px 0px 0px;
    height: 22px;
}

.news_page_content {
    float: left;
    width: 480px;
    margin-top: 17px;
}



.news-full .news-content {
    line-height: 1.6;
    font-size: 14px;
}

.back-link {
    color: #3498db;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid #3498db;
    border-radius: 4px;
}

.news-full .news-content {
    line-height: 1.6;
    font-size: 14px;
}

.back-link {
    color: #3498db;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

a {
    font: 12px Arial, sans-serif;
    color: #562806;
    text-decoration: underline;
}
.top_menu {/* position menu top */
    padding-left: 71px;
    /*padding-left: 91px;*/
}
.top_menu a {/* position menu top */
    /*padding-right: 15px;*/
}
.top_menu > a {
    background-repeat: no-repeat;
    display: block;
    float: left;
    margin-right: 3px;
    height: 88px;
}
.top_menu a.news {
    background-position: 0 0;
    width: 100px;
}
.top_menu a.news:hover {
    background-position: 0 -88px;
}
.top_menu a.game {
    width: 100px;
    background-position: -100px 0px;
}
.top_menu a.game:hover {
    background-position: -100px -88px;
}
.top_menu a.forum {
    background-position: -200px 0px;
    width: 100px;
}
.top_menu a.forum:hover {
    background-position: -200px -88px;
}
.top_menu a.media {
    background-position: -300px 0px;
    width: 123px;
}
.top_menu a.media:hover {
    background-position: -300px -88px;
}
.top_menu a.download {
    background-position: -423px 0px;
    width: 100px;
}
.top_menu a.download:hover {
    background-position: -423px -88px;
}
.top_menu a.itemcatalog {
    background-position: -523px 0px;
    width: 100px;
}
.top_menu a.itemcatalog:hover {
    background-position: -523px -88px;
}
.top_menu a.faq {
    background-position: -623px 0px;
    width: 123px;
}

.dashboard-container {
    display: flex;
    width: 100%;
    min-height: 500px;
    gap: 30px;
    padding: 40px 50px;
}

.user-panel {
    width: 280px;
    background: rgba(139, 69, 19, 0.1);
    border: 2px solid #8b4513;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.user-info {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(139, 69, 19, 0.3);
}

.user-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #8b4513, #d2691e);
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 3px solid #8b4513;
}

.user-name {
    font-size: 16px;
    font-weight: bold;
    color: #8b4513;
}

.user-menu {
    display: flex;
    flex-direction: column;
}

.menu-item {
    display: flex;
    align-items: center;
}

.menu-item:hover {
    transform: translateX(5px);
}

.menu-icon {
    font-size: 18px;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

.logout-section {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(139, 69, 19, 0.3);
}

.logout-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 15px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-button:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.logout-icon {
    font-size: 16px;
    margin-right: 8px;
}

.dashboard-content {
    flex: 1;
    background: rgba(139, 69, 19, 0.05);
    border: 2px solid #8b4513;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-placeholder {
    text-align: center;
    color: #8b4513;
}

.content-placeholder h2 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: bold;
}

.content-placeholder p {
    font-size: 16px;
    opacity: 0.8;
}

.top_menu a.faq:hover {
    background-position: -623px -88px;
}
.top_menu a.support {
    background-position: -746px 0px;
    width: 123px;
}
.top_menu a.support:hover {
    background-position: -746px -88px;
}

@font-face {
    font-family: 'PfdavinciscriptproRegular';
    src: url('PfdavinciscriptproRegular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.title h1, .title_content h1 {

}

h1, h2, h3, h4 {
    color: #631334;
    margin-bottom: 10px;
    font-family: 'PfdavinciscriptproRegular'; 
    font-weight: bold; font-size: 50px;
}

baner {
    width: 643px;
    height: 152px;
}
body {
    background: url("../img/background.jpg") no-repeat center top;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 5vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #8b4513;
}

.main-container {
    width: 1028px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 200px;
}

.top-navigation {
    height: 40px;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 20px;
    gap: 15px;
    margin-bottom: 20px;
}

.nav-button {
    border: none;
    cursor: pointer;
    background: transparent;
    transition: transform 0.3s ease;
}

.nav-button:hover {
    transform: scale(1.05);
}

.payment-button {
    background: url("../img/buttons/payment-button.png") no-repeat scroll 0 0 transparent;
    border: 0 none;
    cursor: pointer;
    height: 81px;
    overflow: hidden;
    text-indent: -3000px;
    width: 324px;
}

.gold-button {
    background: url("../img/buttons/gold-button.png") no-repeat scroll 0 0 transparent;
    border: 0 none;
    cursor: pointer;
    height: 81px;
    overflow: hidden;
    text-indent: -3000px;
    width: 324px;
}

.luck-button {
    background: url("../img/buttons/luck-button.png") no-repeat scroll 0 0 transparent;
    border: 0 none;
    cursor: pointer;
    height: 81px;
    overflow: hidden;
    text-indent: -3000px;
    width: 324px;
}

.promo-button {
    background: url("../img/buttons/button_promo.png") no-repeat scroll 0 0 transparent;
    border: 0 none;
    cursor: pointer;
    height: 81px;
    overflow: hidden;
    text-indent: -3000px;
    width: 324px;
}

.send-button {
    background: url("../img/buttons/button_send.png") no-repeat scroll 0 0 transparent;
    border: 0 none;
    cursor: pointer;
    height: 81px;
    overflow: hidden;
    text-indent: -3000px;
    width: 324px;
}

.registration-button {
    width: 258px;
    height: 69px;
    background: url("../img/buttons/registration.png") no-repeat center;
    background-size: contain;
}

.referral-section {
    padding: 20px;
}
.referral-link-container {
    display: flex;
    margin: 10px 0;
}
.referral-input {
    flex: 1;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
}
.copy-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.copy-btn:hover {
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}
.stat-item {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.stat-number {
    font-size: 2em;
    font-weight: bold;
}
.stat-label {
    margin-top: 5px;
}
.referrals-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.referrals-table th,
.referrals-table td {
    padding: 12px;
    text-align: left;

}
.referrals-table th {
    font-weight: bold;
}
.referral-bonuses ul {
    margin: 10px 0;
    padding-left: 20px;
}
.referral-bonuses li {
    margin: 5px 0;
}

.actions-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.actions-table th,
.actions-table td {
    padding: 12px 15px;
    text-align: left;
}

.actions-table th {
    font-weight: 600;
}

.actions-table tr:hover {
}

.action-details {
    font-size: 0.9em;
}

.action-details div {
    margin: 2px 0;
}

.user-actions-history {
    margin-top: 20px;
}

.actions-table td:first-child {
    font-weight: 500;
}

.actions-table tr:nth-child(odd) {
}

.actions-table tr:hover {
}

.download-button {
    width: 258px;
    height: 69px;
    background: url("../img/buttons/download.png") no-repeat center;
    background-size: contain;
}

.storage-table-container {
    border-radius: 4px;
    max-width: 100%;
    margin: 20px 0;
    font-size: 12px;
}

.storage-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #8b4513;
    table-layout: fixed;
    word-wrap: break-word;
}

.storage-table th {
    padding: 6px 8px;
    text-align: center;
    border: 1px solid #8b4513;
    font-weight: bold;
    background: rgba(139, 69, 19, 0.1);
    font-size: 11px; 
}

.storage-table tr:last-child tr {
    border: 1px solid #8b4513;

}

.storage-table td {
    border: 1px solid #8b4513;
    padding: 5px 8px;
    vertical-align: middle;
    font-size: 11px; 
word-break: break-word;
}

.storage-table tr:last-child td {
    border-bottom: none;

}

.storage-table .item-name {
    max-width: 200px;
    word-break: break-word;
    line-height: 1.2;
}

.character-selection {
    padding: 10px;
    border: 1px solid #8b4513;
    border-radius: 4px;
}

.character-selection label {
    margin-right: 10px;
    font-weight: bold;
}

.character-dropdown {
    padding: 5px 10px;
    border: 1px solid #8b4513;
    border-radius: 4px;
}

.empty-storage {
    text-align: center;
    padding: 40px;
    color: #8b4513;
}

.scroll-header {
    background: url("../img/scroll/top.png") no-repeat center top;
    width: 1011px;
    height: 143px;
    z-index: 50; 
    position: relative; 
    margin-left: -10px;
}

.scroll-content {
    background: url("../img/scroll/middle.png") repeat-y top center;
    width: 984px;
    min-height: 580px;
    margin-bottom: -18px;
    padding-bottom: 20px;
    position: relative;
    margin-top: -50px; 
}

.scroll-footer {
    background: url("../img/scroll/bottom.png") no-repeat center top;
    width: 1028px;
    height: 168px;
    margin-top: -1px;
    position: relative; 
    z-index: 5; 
}

.auth-sidebar {
    width: 336px;
    margin-top: -40px;
    z-index: 30;
    position: absolute;
    right: 0;
    top: 0;
}

.navigation-menu {
    display: flex;
    margin-top: 30px;
    padding: 0 20px;
}

.navigation-menu a {
    color: #8b4513;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    padding: 8px 16px;
    border: 2px solid #8b4513;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.7);
}

.navigation-menu a:hover {
    background: #8b4513;
    color: #fff;
}

.content-wrapper {
    display: flex;
    gap: 30px;
    min-height: 500px;
    padding: 40px 50px;
}

.main-content-area {
    flex: 1;
    padding: 10px;
    max-width: 600px; /* Ограничиваем ширину */
    word-wrap: break-word; /* Перенос длинных слов */
    overflow-wrap: break-word
}

.sidebar {
    width: 250px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-block {
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    margin-top: 50px;
    min-height: 160px;
}

.top_menu {
    padding-left: 71px;
    height: 88px;
}

.top_menu a {
    background-image: url("/img/menu/menu_sprite.png");
}

.top_menu a .spacer {
}

.top_menu a.news {
    background-position: 0 0;
    width: 100px;
}
.top_menu a.news:hover {
    background-position: 0 -88px;
}

.top_menu a.game {
    width: 100px;
    background-position: -100px 0px;
}
.top_menu a.game:hover {
    background-position: -100px -88px;
}

.top_menu a.forum {
    background-position: -200px 0px;
    width: 100px;
}
.top_menu a.forum:hover {
    background-position: -200px -88px;
}

.top_menu a.media {
    background-position: -300px 0px;
    width: 123px;
}
.top_menu a.media:hover {
    background-position: -300px -88px;
}

.top_menu a.download {
    background-position: -423px 0px;
    width: 100px;
}
.top_menu a.download:hover {
    background-position: -423px -88px;
}

.top_menu a.itemcatalog {
    background-position: -523px 0px;
    width: 100px;
}
.top_menu a.itemcatalog:hover {
    background-position: -523px -88px;
}

.top_menu a.faq {
    background-position: -623px 0px;
    width: 123px;
}
.top_menu a.faq:hover {
    background-position: -623px -88px;
}

.top_menu a.support {
    background-position: -746px 0px;
    width: 123px;
}
.top_menu a.support:hover {
    background-position: -746px -88px;
}

.top_menu a.active {
    filter: brightness(1.2);
}

.storage-section {
    margin-top: 20px;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.item-card {
    background: rgba(139, 69, 19, 0.1);
    border: 2px solid #8b4513;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.item-image {
    text-align: center;
    margin-bottom: 15px;
}

.item-image img {
    max-width: 64px;
    max-height: 64px;
}

.item-placeholder {
    font-size: 48px;
    color: #8b4513;
}

.item-info {
    flex: 1;
    margin-bottom: 15px;
}

.item-name {
    font-weight: bold;
    color: #8b4513;
    font-size: 16px;
    margin-bottom: 8px;
}

.item-count, .item-source, .item-date {
    font-size: 14px;
    margin-bottom: 4px;
}

.item-actions {
    border-top: 1px solid rgba(139, 69, 19, 0.3);
    padding-top: 15px;
}

.empty-storage {
    text-align: center;
    padding: 40px;
    color: #8b4513;
    font-style: italic;
}

.transfer-result {
    margin-top: 10px;
    padding: 8px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.transfer-result.success {
    background: rgba(40, 167, 69, 0.15);
    color: #155724;
}

.transfer-result.error {
    background: rgba(220, 53, 69, 0.15);
    color: #721c24;
}

.user-balance {
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 5px;
}

.shop-layout {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.shop-left-column {
    width: 314px;
}

.shop-main-content {
    flex: 1;
}

.shop-categories-sidebar {
    margin-top: 20px;
}

.error-message {
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    text-align: center;
}

.success-message {
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    text-align: center;
}

ul.shop_content_list {
    list-style: none;
    width: 600px;
    margin: 7px 0px 0px 0px;
    padding-bottom: 11px;
    background: url(/img/shop/forum_bottom.png) no-repeat bottom left;
}

ul.shop_content_list li.li1,
ul.shop_content_list li.li2,
ul.shop_content_list li.li3 {
    display: inline-block;
    vertical-align: top;
}

ul.shop_content_list li.li3 .field-label-inline-first {
    background: url(/img/shop/img_gold.gif) no-repeat center right;
    padding-right: 20px;
    display: block;
}

ul.shop_content_list li.li3 .field-item.odd {
    margin-top: 30px;
    display: block;
}

ul.shop_content_list li.li3 .field-field-cost {
    font-weight: bold;
    color: #631334;
    padding-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; 
}

ul.shop_content_list li.li3 .field-field-cost {
    font-weight: bold;
    color: #631334;
    font-size: 11px;
    text-align: center;
}

ul.shop_content_list li.li3 .field-field-cost .field-label-inline-first {
    display: inline-block;
    margin-right: 5px;
}

ul.shop_content_list li.li3 .field-field-cost .field-item.odd {
    display: inline-block;
    vertical-align: middle;
}

ul.shop_content_list li.li1 {
    width: 80px;
    padding: 10px;
}

ul.shop_content_list li.li2 {
    width: 350px;
    padding: 10px;
}

ul.shop_content_list li.li3 {
    width: 114px;
    height: 91px;
    text-align: center;
    background: url(/img/shop/price_fon.gif) no-repeat top center;
}



ul.shop_content_list li.li3 .submit_det {
    background: url(/img/shop/submit_det.gif) no-repeat top center;
    height: 31px;
    width: 113px;
    border: 0px;
    cursor: pointer;
    text-align: center;
}

.buy-button {
    background: none;
    border: none;
    color: #e9dac1;
    font-size: 12px Arial, sans-serif;
    cursor: pointer;
    width: 100%;
    height: 100%;
    font-family: inherit;
}

.buy-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.buy-button:hover:not(:disabled) {
    color: #8a1c4a;
}

.block_menu_right {
    width: 313px;
    margin: 0px 0px 8px 0px;
    background: url(/img/shop/menu_right_bottom.png) no-repeat bottom center;
}

.menu_right_top {
    height: 81px;
    background: url(/img/shop/menu_right_top.png) no-repeat top center;
}

.block_menu_right .title_block {
    padding: 35px 0px 0px 30px;
}

.menu_right_content {
    padding: 0px 5px 42px 13px;
    min-height: 130px;
}

ul.sample-menu {
    list-style: none;
    margin: 0px;
    padding-bottom: 11px;
}

ul.sample-menu li.first {
    vertical-align: text-top;
    background: none;
}

ul.sample-menu li {
    list-style: none outside none;
    vertical-align: text-top;
    padding: 9px 0px 10px 5px;
    background: url(/img/shop/menu_right_li.gif) no-repeat top left 15px;;
}

ul.sample-menu li a {
    background: url(/img/shop/img_detailed.gif) no-repeat bottom left;
    padding-left: 28px;
    color: #631334;
    font-size: 13px;
    text-decoration: none;
}

ul.sample-menu li a:hover {
    color: #8a1c4a;
}

ul.sample-menu li ul {
    padding-left: 18px;
}

ul.sample-menu li ul li {
    background: none;
    padding: 9px 0px 3px 5px;
}

ul.sample-menu li ul li a {
    background: url(/img/shop/img_detailed.gif) no-repeat bottom left;
    padding-left: 28px;
    color: #631334;
    font-size: 12px;
}

.field-label-inline-first {
    display: inline;
    font-weight: bold;
    color: #47552e;
    font-size: 11px;
}

.field_content p {
    margin: 5px 0 0 0;
    color: #666;
}

.node.sticky.catalogue {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}