html {
    height: 100%;
}
body {
    height: 100%;
    margin: 0;
    color: #000;
    font-family: Tahoma;
    font-size: 14px;
}
a {
    color: #000000;
}
a:hover{
    color: #353434;
    text-decoration: underline;
}
.fs-12, .fs-12 * {
    font-size: 12px;
}
.b {
    font-weight: 700;
}
.regblk, .regblk * {
    color: #49382D;
}
.small, .small * {
    font-size: 10px;
}
.regcolor, .regcolor * {
    color: #955C4A;
}
.red, .red * {
    color: red;
}
.redd, .redd * {
    color: #BA0000 !important;
}
.redd2, .redd2 * {
    color: #8a0108 !important;
}
.brown, .brown * {
    color: #955C4A !important;
}
.color-red {
    color: red;
}
.color-green {
    color: green;
}
.color-info {
    color: #129df0;
}
.color-purple {
    color: purple;
}
.float {
    float: left;
}
.w100 {
    width: 100%;
}
.p2h, .p2h td {
    padding-left: 6px;
    padding-right: 6px;
}
.p2v, .p2v td {
    padding-top: 2px;
    padding-bottom: 2px;
}
.p6h, .p6h td {
    padding-left: 6px;
    padding-right: 6px;
}
.p6v, .p6v td {
    padding-top: 6px;
    padding-bottom: 6px;
}
.pointer, .pointer input {
    cursor: pointer;
}
.ajustify, .ajustify * {
    text-align: justify;
}
.brd2-top {
    border-top: 1px solid #DB9F73;
}
table.coll {
    border-collapse: collapse;
    border-spacing: 0;
}
.p10h, .p10h td {
    padding-left: 10px;
    padding-right: 10px;
}
.p2v, .p2v td {
    padding-bottom: 2px;
    padding-top: 2px;
}
.brd2-all {
    border: 1px solid #DB9F73;
}
.brd2-bt {
    border-bottom: 1px solid #DB9F73;
}
.brd2-top {
    border-top: 1px solid #DB9F73;
}
.bg_l {
    background-image: url(/img/bg/bg_l.gif);
}


.tbl-shp-sides.ls, .tbl-shp-sides_0.ls {
    background-position: left top;
    background-repeat: repeat-y;
}
.tbl-shp-sides.rs, .tbl-shp-sides_0.rs {
    background-position: right top;
    background-repeat: repeat-y;
}
.tbl-shp-sml.rt, .tbl-shp-sml_0.rt {
    background-position: 0 -25px;
    height: 22px;
}
.tbl-shp-sml.tt, .tbl-shp-sml_0.tt {
    background-position: center -50px;
    background-repeat: repeat-x;
    height: 22px;
}
.tbl-shp-sml.lt, .tbl-shp-sml_0.lt {
    background-position: 0 0;
    height: 22px;
}
.tbl-shp-sml.lb, .tbl-shp-sml_0.lb {
    background-position: 0 -75px;
}
.tbl-shp-sml.bb, .tbl-shp-sml_0.bb {
    background-position: center -125px;
    background-repeat: repeat-x;
    height: 18px;
}
.tbl-shp-sml.rb, .tbl-shp-sml_0.rb {
    background-position: 0 -100px;
}
.tbl-shp-sml {
    background: url('/img/bg/tbl-shp-sml.png') no-repeat;
    font-size: 0;
}
.tbl-shp-sides {
    background: url('/img/bg/tbl-shp-sides.png') no-repeat;
    font-size: 0;
}
.tbl-usi_bg {
    background-image: url('/img/bg/tbl-usi_bg.gif');
    background-repeat: repeat;
}

/*****  BTN  ******/
span.butt1, span.butt1.disabled {
    height: 38px;
    font-size: 26px;
    cursor: pointer;
    background: url('/img/bg/btn/tbl-btn2_c-left.png') left 4px no-repeat;
    display: inline-block;
}
span.butt1 span, span.butt1.disabled span {
    height: 38px;
    font-size: 26px;
    cursor: pointer;
    background: url('/img/bg/btn/tbl-btn2_c-right.png') right 4px no-repeat;
    display: inline-block;
}
span.butt1 input, span.butt1 button.butt1, span.butt1.disabled input, span.butt1.disabled button {
    height: 38px;
    border: 0;
    color: #f8dea4 !important;
    cursor: pointer;
    font-family: Tahoma;
    font-size: 11px !important;
    font-weight: 700;
    text-decoration: none;
    margin: 0 33px;
    background: transparent url('/img/bg/btn/tbl-btn2_center.png') center top repeat-x;
    padding-bottom: 4px;
    outline: none;
}

b.butt2 input, b.butt2 button, b.butt2 a.button {
    height: auto;
    border: 0 solid;
    color: #2d1600;
    font-family: Tahoma;
    font-size: 9px;
    font-weight: 700;
    line-height: 15px;
    text-decoration: none;
    margin: 0 8px;
    padding: 0;
}
b.butt2 {
    height: 19px;
    font-size: 15px;
    background: url('/img/bg/btn/btn2-c-left.gif') left bottom no-repeat;
    display: inline-block;
}
b.butt2 b {
    height: 19px;
    font-size: 15px;
    background: url('/img/bg/btn/btn2-c-right.gif') right bottom no-repeat;
    display: inline-block;
}
b.butt2 input, b.butt2 button, b.butt2 a.button, b.butt2 #area_cart_all_items_price {
    height: 15px;
    background: transparent url('/img/bg/btn/btn2-center.gif') center top;
    outline: 0;
}
b.butt2.disabled {
    cursor: default;
    background-image: url(/img/bg/btn/btn2-c-left-dis.gif);
}
b.butt2.disabled b {
    cursor: default;
    background-image: url(/img/bg/btn/btn2-c-right-dis.gif);
}
b.butt2.disabled input, b.butt2.disabled button, b.butt2.disabled a {
    cursor: default;
    background-image: url(/img/bg/btn/btn2-center-dis.gif);
}


/*****  END BTN  ******/



/*****  SHOP TAB  ******/
.btn_1 {
    color: #461c0b !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 11px;
}
.btn_2 {
    color: #ffe9ba !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 11px;
}
/*****  END SHOP TAB  ******/


/*****  CUSTOM CHECKBOX  ******/
.custom-checkbox {
    width: 24px;
    height: 23px;
    display: inline-block;
    background: url(/img/icon/gui-checkbox.png) 0 -23px no-repeat;
    cursor: pointer;
}
.custom-checkbox.checked {
    background-position: 0 0;
}
input.input-custom[type="checkbox"] {
    display: none;
}
input.input-custom[type="checkbox"]:checked + .custom-checkbox {
    background-position: 0 0;
}
/*****  END CUSTOM CHECKBOX  ******/


/***** INPUT COUNT ******/
.cart-amount-input-cont {
    position: relative;
    display: inline-block;
    margin: 0 10px;
}
.b-input, .b-input__inner {
    display: inline-block;
    height: 23px;
    background: url(/img/bg/input/input-text.png) no-repeat;
}
.b-input {
    padding: 0 0 0 5px;
    vertical-align: middle;
    background-position: 0 0;
}
.b-input__inner {
    padding: 0 5px 0 0;
    background-position: 100% -23px;
}
.cart-amount-input-cont .arrow {
    position: absolute;
    top: 0;
    width: 15px;
    height: 21px;
    cursor: pointer;
    background: url(/img/bg/input/input-arrows.png);
}
.cart-amount-input-cont .arrow {
    position: absolute;
    top: 0;
    width: 15px;
    height: 21px;
    cursor: pointer;
    background: url(/img/bg/input/input-arrows.png);
}
.cart-amount-input-cont .arrow.left {
    left: -10px;
    background-position: 0 0;
}
.cart-amount-input-cont .arrow.left-disabled {
    left: -10px;
    cursor: default;
    background-position: 0 100%;
}
.cart-amount-input-cont .arrow {
    position: absolute;
    top: 0;
    width: 15px;
    height: 21px;
    cursor: pointer;
    background: url(/img/bg/input/input-arrows.png);
}
.cart-amount-input-cont .arrow.right {
    right: -10px;
    background-position: 100% 0;
}
.cart-amount-input-cont .arrow.right-disabled {
    right: -10px;
    cursor: default;
    background-position: 100% 100%;
}
.cart_amount_sell_input {
    background: 0;
    font-size: 11px;
    height: 21px;
    line-height: 21px;
    text-align: center;
}
.cart-amount-sell-price input {
    width: 34px;
    padding: 0 4px;
}
.b-input input {
    font-weight: 700;
    border: 0;
    background: 0;
}
.b-input input:focus {
    outline: 0;
}
/***** END INPUT COUNT ******/


/***** NPC LABEL ******/

.tbl-usi_label-center {
    background-image: url(/img/bg/info/tbl-usi_label-center.gif);
    background-repeat: repeat-x;
    height: 19px;
    font-family: Tahoma;
    font-weight: bold;
    font-size: 11px;
    color: #FCF5B7;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 3px;
}

/***** END NPC LABEL ******/

/***** LABEL ******/
.tbl-usi-hdr {background:url(/main/images/tbl-usi-hdr.gif) no-repeat; font-family:tahoma, sans-serif; height:22px;}
.tbl-usi-hdr.lc {background-position:left -25px; width:27px;}
.tbl-usi-hdr.rc {background-position:right 0; width:27px;}
.tbl-usi-hdr.mbg {background-position:center -50px; background-repeat:repeat-x; color:#FCF5B7; font-size:11px; font-weight:bold; height:16px; padding:1px 10px 5px 10px; line-height:16px; vertical-align:middle;}
.tbl-usi-hdr.mbg img {vertical-align:middle;}

.tbl-usi-hdr.lc b,
.tbl-usi-hdr.rc b {display:block; height:22px; font-size:0; overflow:hidden; width:27px;}
/***** END LABEL ******/



/*******   HOT SLOT  ***********/
.hotbar-container {
    position: fixed;
    min-height: 44px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    /*background: linear-gradient(180deg, rgba(20, 20, 30, 0.95) 0%, rgba(15, 15, 25, 0.98) 100%);*/
    background: linear-gradient(180deg, rgb(255 234 183) 0%, rgb(230 195 151) 100%);
    padding: 5px;
    border-radius: 10px;
    /*box-shadow:*/
    /*    0 8px 32px rgba(0, 0, 0, 0.6),*/
    /*    inset 0 1px 0 rgba(255, 255, 255, 0.1),*/
    /*    0 0 40px rgba(100, 150, 255, 0.3);*/
    box-shadow: 0 0px 5px rgb(246 161 9 / 60%), inset 0 1px 0 rgb(230 201 91 / 10%), 0 0 24px rgb(233 230 113 / 30%);
    border: 2px solid rgb(237 147 4 / 30%);
    backdrop-filter: blur(10px);
}

.hotbar {
    display: flex;
    gap: 6px;
    align-items: center;
}

.slot {
    width: 40px;
    height: 40px;
    /*background: linear-gradient(145deg, rgba(40, 40, 55, 0.9), rgba(25, 25, 35, 0.9));*/
    background: linear-gradient(180deg, rgb(255 234 183) 0%, rgb(230 195 151) 100%);
    border: 2px solid rgba(241, 170, 112, 0.6);
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 0 2px 4px rgba(231, 184, 134, 0.5),
        0 2px 8px rgba(235, 196, 150, 0.3);
}

.slot:hover {
    transform: translateY(-2px);
    border-color: rgba(242, 176, 112, 0.8);
    box-shadow:
        inset 0 2px 4px rgba(231, 184, 134, 0.5),
        0 2px 8px rgba(235, 196, 150, 0.3);
    background: linear-gradient(145deg, rgba(242, 191, 151, 0.9), rgba(250, 236, 193, 0.9));
}

.slot:active {
    transform: translateY(-2px) scale(0.95);
}

.slot.active {
    border-color: #ffd700;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 215, 0, 0.6),
        0 4px 16px rgba(255, 215, 0, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow:
            inset 0 2px 4px rgba(0, 0, 0, 0.5),
            0 0 20px rgba(255, 215, 0, 0.6);
    }
    50% {
        box-shadow:
            inset 0 2px 4px rgba(0, 0, 0, 0.5),
            0 0 30px rgba(255, 215, 0, 0.8);
    }
}

.slot .icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.slot .keybind {
    position: absolute;
    bottom: 2px;
    right: 4px;
    font-size: 10px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.4);
    padding: 2px 4px;
    border-radius: 3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}


.slot .cooldown {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.slot.on-cooldown .cooldown {
    display: flex;
}

.slot.on-cooldown {
    opacity: 0.5;
    cursor: not-allowed;
}

.slot.on-cooldown:hover {
    transform: none;
}

.slot.empty {
    opacity: 0.4;
}

.slot.empty .icon {
    font-size: 20px;
    opacity: 0.3;
}

.tooltip {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 15, 25, 0.95);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    border: 1px solid rgba(100, 150, 255, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.slot:hover .tooltip {
    opacity: 1;
}

.tooltip .name {
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 4px;
}

.tooltip .tooltip-count {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 2px;
}

.tooltip .desc {
    color: rgba(255, 255, 255, 0.8);
}


.hotbar-drag-handle {
    touch-action: none;
    user-select: none;
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 40px;
    background: rgba(229, 181, 131, 1);
    border-radius: 6px 0 0 6px;
    cursor: move;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
    transition: all 0.2s;
}

.hotbar-drag-handle:hover {
    background: rgba(233, 169, 108, 0.9);
    color: rgba(255, 255, 255, 0.8);
    width: 15px;
}

/* Кнопка сворачивания */
.hotbar-toggle {
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 40px;
    background: rgba(229, 181, 131, 1);
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    transition: background-color 0.2s, color 0.2s;
    user-select: none;
}

.hotbar-toggle:hover {
    background: rgba(233, 169, 108, 0.9);
    color: rgba(255, 255, 255, 0.8);
}

/* Свернутое состояние */
.hotbar-container.collapsed .hotbar {
    display: none;
}

.hotbar-container.collapsed {
    width: 40px;
}

.hotbar-container.collapsed .hotbar-toggle {
    right: 50%;
    transform: translate(50%, -50%);
    width: 30px;
    height: 30px;
    border-radius: 6px;
}

.hotbar-collapsed-label {
    display: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    white-space: nowrap;
    margin-right: 8px;
}

.hotbar-container.collapsed .hotbar-collapsed-label {
    display: block;
}

.hotbar-container.dragging {
    z-index: 9999;
    opacity: 0.8;
    cursor: move !important;
}

.hotbar-container.dragging * {
    cursor: move !important;
}

/* Overlay для перехвата событий мыши */
.drag-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    cursor: move;
    display: none;
}

.drag-overlay.active {
    display: block;
}

.hotbar-container {
    z-index: 999;
    /*transition: all 0.3s ease;*/
}
/*******  END HOT SLOT  ***********/


/***** MODAL ******/
.error_div {
    position: absolute;
    height: 100%;
    width: 100%;
    filter: "progid:DXImageTransform.Microsoft.Alpha(opacity=80)";
    moz-opacity: .7;
    opacity: .7;
    /*background-image: url(/img/bg/error_bg.gif);*/
    background-color: #222;
    left: 0;
    top: 0;
}

#systemConfirm_div {
    z-index: 1100;
    position: fixed !important;
    border-color: #660000;
    position: absolute;
}

.popup_global_container {
    box-shadow: 3px 3px 3px -1px rgba(0, 0, 0, 0.2);
    font-size: 11px;
}

.popup-top-left {
    position: relative;
    background: url(/img/bg/modal/popup-top-left.png) left top no-repeat;
}

.popup-top-right {
    background: url(/img/bg/modal/popup-top-right.png) right top no-repeat;
}

.popup-top-center {
    margin: 0 36px 0 17px;
    background: url(/img/bg/modal/popup-top-center.png) left top repeat-x;
}

.popup_global_title {
    height: 24px;
    padding-top: 10px;
    color: #f5f4bf;
    font-weight: 700;
    text-align: center;
}

.popup_global_close_btn {
    position: absolute;
    right: -2px;
    top: -2px;
    width: 33px;
    height: 35px;
    background: url(/img/bg/modal/popup-close.png) right top no-repeat;
    cursor: pointer;
}

.popup-left-center {
    position: relative;
    background: url(/img/bg/modal/popup-left-center.png) left top repeat-y;
}

.popup-right-center {
    background: url(/img/bg/modal/popup-right-center.png) right top repeat-y;
}

.popup_global_content {
    overflow: hidden;
    margin: 0 18px;
    background: url(/img/bg/modal/popup-main-bg.png) center center;
}

.popup-left-bottom {
    background: url(/img/bg/modal/popup-left-bottom.png) left bottom no-repeat;
}

.popup-right-bottom {
    background: url(/img/bg/modal/popup-right-bottom.png) right bottom no-repeat;
}

.popup-bottom-center {
    height: 17px;
    margin: 0 18px;
    background: url(/img/bg/modal/popup-bottom-center.png) center bottom repeat-x;
}

b.butt1, b.butt1.disabled {
    height: 38px;
    font-size: 26px;
    cursor: pointer;
    background: url(/img/bg/btn/tbl-btn2_c-left.png) left 4px no-repeat;
    display: inline-block;
}

b.butt1 b, b.butt1.disabled b {
    height: 38px;
    font-size: 26px;
    cursor: pointer;
    background: url(/img/bg/btn/tbl-btn2_c-right.png) right 4px no-repeat;
    display: inline-block;
}

b.butt1 input, b.butt1 button.butt1, b.butt1.disabled input, b.butt1.disabled button {
    height: 38px;
    border: 0;
    color: #f8dea4 !important;
    cursor: pointer;
    font-family: Tahoma;
    font-size: 11px !important;
    font-weight: 700;
    text-decoration: none;
    margin: 0 33px;
    background: transparent url(/img/bg/btn/tbl-btn2_center.png) center top repeat-x;
    padding-bottom: 4px;
    outline: none;
}

#confirm_ms {
    color: #ba0000;
}

#artifact_alt .aa-table p {
    margin: 0;
    margin-block-start: 0;
    margin-block-end: 6px;
}
/***** END MODAL ******/
