@font-face {
    font-family: 'Montserrat-SemiBold';
    src: url('../fonts/Montserrat-SemiBold.eot');
    src: url('../fonts/Montserrat-SemiBold.eot?#iefix') format('embedded-opentype'),
        url('../fonts/Montserrat-SemiBold.woff2') format('woff2'),
        url('../fonts/Montserrat-SemiBold.woff') format('woff'),
        url('../fonts/Montserrat-SemiBold.ttf') format('truetype'),
        url('../fonts/Montserrat-SemiBold.svg#Montserrat-SemiBold') format('svg');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter-Regular';
    src: url('../fonts/Inter-Regular.eot');
    src: url('../fonts/Inter-Regular.eot?#iefix') format('embedded-opentype'),
        url('../fonts/Inter-Regular.woff2') format('woff2'),
        url('../fonts/Inter-Regular.woff') format('woff'),
        url('../fonts/Inter-Regular.ttf') format('truetype'),
        url('../fonts/Inter-Regular.svg#Inter-Regular') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter-SemiBold';
    src: url('../fonts/Inter-SemiBold.eot');
    src: url('../fonts/Inter-SemiBold.eot?#iefix') format('embedded-opentype'),
        url('../fonts/Inter-SemiBold.woff2') format('woff2'),
        url('../fonts/Inter-SemiBold.woff') format('woff'),
        url('../fonts/Inter-SemiBold.ttf') format('truetype'),
        url('../fonts/Inter-SemiBold.svg#Inter-Regular') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter-Bold';
    src: url('../fonts/Inter-Bold.eot');
    src: url('../fonts/Inter-Bold.eot?#iefix') format('embedded-opentype'),
        url('../fonts/Inter-Bold.woff2') format('woff2'),
        url('../fonts/Inter-Bold.woff') format('woff'),
        url('../fonts/Inter-Bold.ttf') format('truetype'),
        url('../fonts/Inter-Bold.svg#Inter-Regular') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    overflow-x: hidden;
    background: #262238;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #232324;
    background-color: #262238;
    color: #fff;
    line-height: 1.4;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: #262238;
    min-height: 320px;
    height: auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.header {
    background: #262238;
    padding: 20px;
    border-bottom: 0px solid #262238;
    text-align: center;
}

#createPage .header{
    background-image: url(../images/line_3.png);
    background-position: center 64px;
    background-repeat: no-repeat;
    background-size: auto;
    height: 110px;
}
#detailPage{
    padding-top: 164px;
    position: relative;
    width: 100%;
    -webkit-transition: all 0.4s ease 0s;
    -moz-transition: all 0.4s ease 0s;
    -o-transition: all 0.4s ease 0s;
    transition: all 0.4s ease 0s;
}
#detailPage.info{
    padding-top: 348px;

}
#detailPage .header{
    background-image: url(../images/line_3.png);
    background-position: center 64px;
    background-repeat: no-repeat;
    background-size: auto;
    height: 88px;
    position: relative;
    padding-bottom: 0px;
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    margin: 0 auto;
    width: 100%;
    max-width: 800px;
    z-index: 2;
}

.header h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.btn-primary {
    background-color: #FFFFFF;
    background-image: url(../images/plus.svg);
    background-position: 18px center;
    background-repeat: no-repeat;
    background-size: auto;
    font-family: 'Inter-Bold';
    color: #262238;
    border: none;
    padding: 12px 24px;
    border-radius: 32px;
    font-size: 16px;
    font-weight: normal;
    text-align: center;
    letter-spacing: 0px;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
    height: 53px;
    line-height: 30px;
}
.btn-primary:hover {
    background: #FFFFFF;
    background-image: url(../images/plus.svg);
    background-position: 18px center;
    background-repeat: no-repeat;
    background-size: auto;
}
#createSubmitBtn .btn-primary,
#createSubmitBtn .btn-primary:hover{
    background-image: url(../images/send.png);
    background-position: 96% center;
    background-repeat: no-repeat;
    background-size: auto;
}
#replyFormBlock .btn-primary{
    background-image: url(../images/send.png);
    background-position: 95% center;
    background-repeat: no-repeat;
    background-size: auto;
    line-height: 24px;
    padding-right: 35px;
}

.btn-secondary {
    background: #f5f5f7;
    color: #1d1d1f;
    border: 1px solid #d2d2d7;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-secondary:hover {
    background: #e8e8ed;
}
.btn-secondary[for="replyFileInput"],
.btn-secondary[for="replyFileInput"]:hover,
.btn-secondary[for="fileInput"],
.btn-secondary[for="fileInput"]:hover{
    background-image: url(../images/addthumbs.png);
    background-color: #393452;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: auto;
    color: transparent;
    width: 26px;
    height: 26px;
    border: none;
    padding: 0px;
    border-radius: 6px;
    font-size: 0.01px;
    cursor: pointer;
    transition: all 0.2s;
    display: block;
    margin: 0 auto;
}

.ticket-list {
    padding: 20px;
}
#ticketList{
    background-image: url(../images/line_2.png);
    background-position: center 96%;
    background-repeat: no-repeat;
    background-size: auto;
}
  #ticketList .ttl_notickets h3{
    font-family: 'Inter-Bold';
    font-size: 21px;
    font-weight: normal;
    text-align: center;
    padding-top: 8%;
    padding-bottom: 5%;
}
#ticketList .ttl_notickets p{
    font-family: 'Inter-Regular';
    font-size: 21px;
    font-weight: normal;
    text-align: center;
    color: #6a6579;
    padding-bottom: 7%;
}

.ticket-item {
    background: rgba(134,125,183, 0.2);
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.ticket-item:hover {
    border-color: #007aff;
    transform: translateY(-1px);
    border: 1px solid #e5e5e7;
}
.ticket-item .h_line{
    background: rgba(143,155,177, 0.5);
    height: 11px;
    width: 1px;
    display: inline-block;
    position: relative;
    top: 1px;
    margin-left: 6px;
    margin-right: 5px;
}
.ticket-header {
    display: flex;
    display: inline-block;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
#ticketList .ticket-header{
    display: block;
}

.ticket-id {
    font-weight: 400;
    color: #fff;
    font-size: 16px;
    font-family: "Inter-Regular";
    display: inline-block;
    min-height: 20px;
    vertical-align: top;
}
.ticket-item:hover .ticket-id{
    font-family: 'Inter-SemiBold';
    font-size: 16px;
}

.ticket-date,
.ticket-game{
    font-family: 'Inter-Regular';
    font-size: 11px;
    color: #78728A;
    height: 16px;
    line-height: 16px;
}
.ticket-item:hover .ticket-date,
.ticket-item:hover .ticket-game{
    color: #fff;
}



.ticket-subject {
    font-weight: 400;
    margin-bottom: 0px;
    font-size: 16px;
    font-family: "Inter-Regular";
    white-space: break-spaces;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 70px);
    display: inline-block;
    vertical-align: bottom;
    min-height: 20px;
}
.ticket-item:hover .ticket-subject{
    font-family: 'Inter-SemiBold';
    font-size: 16px;
}

.ticket-status {
    display: inline-block;
    padding: 0px;
    border-radius: 20px;
    font-family: 'Inter-Bold';
    font-weight: normal;
    font-size: 11px;
    text-align: center;
    line-height: 16px;
    width: 78px;
    height: 16px;
}

.status-open { 
		background: #169999;
		color: #fff;
		box-shadow: 0px 0px 20px rgba(22, 153, 153, 0.61);
}
.status-answered { 
		background: #FAF020;
		color: #272332;
		box-shadow: 0px 0px 20px rgba(250, 240, 32, 0.61);
}
.status-closed { 
    background: #58526A; 
    color: #fff; 
}
.status-spam { 
    background: #0F0D0E; 
    color: #737373; 
}

.form-page {
    padding: 20px;
    background: #262238;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #232324;
    background-color: #262238;
    color: #fff;
    line-height: 1.4;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: #262238;
    min-height: 320px;
    height: auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.header {
    background: #262238;
    padding: 20px;
    border-bottom: 0px solid #262238;
    text-align: center;
}

#createPage .header{
    background-image: url(../images/line_3.png);
    background-position: center 64px;
    background-repeat: no-repeat;
    background-size: auto;
    height: 110px;
}
#detailPage{
    padding-top: 164px;
    position: relative;
    width: 100%;
    -webkit-transition: all 0.4s ease 0s;
    -moz-transition: all 0.4s ease 0s;
    -o-transition: all 0.4s ease 0s;
    transition: all 0.4s ease 0s;
}
#detailPage.info{
    padding-top: 348px;

}
#detailPage .header{
    background-image: url(../images/line_3.png);
    background-position: center 64px;
    background-repeat: no-repeat;
    background-size: auto;
    height: 88px;
    position: relative;
    padding-bottom: 0px;
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    margin: 0 auto;
    width: 100%;
    max-width: 800px;
    z-index: 2;
}

.header h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.btn-primary {
    background-color: #FFFFFF;
    background-image: url(../images/plus.svg);
    background-position: 18px center;
    background-repeat: no-repeat;
    background-size: auto;
    font-family: 'Inter-Bold';
    color: #262238;
    border: none;
    padding: 12px 24px;
    border-radius: 32px;
    font-size: 16px;
    font-weight: normal;
    text-align: center;
    letter-spacing: 0px;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
    height: 53px;
    line-height: 30px;
}
.btn-primary:hover {
    background: #FFFFFF;
    background-image: url(../images/plus.svg);
    background-position: 18px center;
    background-repeat: no-repeat;
    background-size: auto;
}
#createSubmitBtn .btn-primary,
#createSubmitBtn .btn-primary:hover{
    background-image: url(../images/send.png);
    background-position: 96% center;
    background-repeat: no-repeat;
    background-size: auto;
}
#replyFormBlock .btn-primary{
    background-image: url(../images/send.png);
    background-position: 95% center;
    background-repeat: no-repeat;
    background-size: auto;
    line-height: 24px;
    padding-right: 35px;
    display: block;
    margin: 0 auto;
    margin-top: 18px;
    width: 100% !important;
    max-width: 320px;
}

.btn-secondary {
    background: #f5f5f7;
    color: #1d1d1f;
    border: 1px solid #d2d2d7;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-secondary:hover {
    background: #e8e8ed;
}
.btn-secondary[for="replyFileInput"],
.btn-secondary[for="replyFileInput"]:hover,
.btn-secondary[for="fileInput"],
.btn-secondary[for="fileInput"]:hover{
    background-image: url(../images/addthumbs.png);
    background-color: transparent;
    background-position: 0px center;
    background-repeat: no-repeat;
    background-size: auto;
    color: #fff;
    width: 190px;
    height: 26px;
    line-height: 26px;
    border: none;
    padding: 0px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: block;
    margin: 0 auto;
    box-sizing: border-box;
    padding-left: 35px;
    position: relative;
    width: 100%;
}


.ticket-list {
    padding: 20px;
}
#ticketList{
    background-image: url(../images/line_2.png);
    background-position: center 96%;
    background-repeat: no-repeat;
    background-size: auto;
}
#ticketList .ttl_notickets h3{
    font-family: 'Inter-Bold';
    font-size: 21px;
    font-weight: normal;
    text-align: center;
    padding-top: 8%;
    padding-bottom: 5%;
}
#ticketList .ttl_notickets p{
    font-family: 'Inter-Regular';
    font-size: 21px;
    font-weight: normal;
    text-align: center;
    color: #6a6579;
    padding-bottom: 7%;
}

.ticket-item {
    background: rgba(134,125,183, 0.2);
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.ticket-item:hover {
    border-color: #007aff;
    transform: translateY(-1px);
    border: 1px solid #e5e5e7;
}
.ticket-item .h_line{
    background: rgba(143,155,177, 0.5);
    height: 11px;
    width: 1px;
    display: inline-block;
    position: relative;
    top: 1px;
    margin-left: 6px;
    margin-right: 5px;
}
.ticket-header {
    display: flex;
    display: inline-block;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
#ticketList .ticket-header{
    display: block;
}

.ticket-id {
    font-weight: 400;
    color: #fff;
    font-size: 16px;
    font-family: "Inter-Regular";
    display: inline-block;
    min-height: 20px;
    vertical-align: top;
}
.ticket-item:hover .ticket-id{
    font-family: 'Inter-SemiBold';
    font-size: 16px;
}

.ticket-date,
.ticket-game{
    font-family: 'Inter-Regular';
    font-size: 11px;
    color: #78728A;
    height: 16px;
    line-height: 16px;
}
.ticket-item:hover .ticket-date,
.ticket-item:hover .ticket-game{
    color: #fff;
}



.ticket-subject {
    font-weight: 400;
    margin-bottom: 0px;
    font-size: 16px;
    font-family: "Inter-Regular";
    white-space: break-spaces;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 70px);
    display: inline-block;
    vertical-align: bottom;
    min-height: 20px;
}
.ticket-item:hover .ticket-subject{
    font-family: 'Inter-SemiBold';
    font-size: 16px;
}

.ticket-status {
    display: inline-block;
    padding: 0px;
    border-radius: 20px;
    font-family: 'Inter-Bold';
    font-weight: normal;
    font-size: 11px;
    text-align: center;
    line-height: 16px;
    width: 78px;
    height: 16px;
}

.status-open { 
    background: #169999; 
    color: #fff; 
}
.status-answered { 
    background: #FAF020; 
    color: #272332; 
}
.status-closed { 
    background: #58526A; 
    color: #fff; 
}
.status-spam { 
    background: #0F0D0E; 
    color: #737373; 
}

.form-page {
    padding: 20px;
    background: #262238;
}

.form-group {
    margin-bottom: 20px;
}
.form-group.nickname{
    width: 60%;
    display: inline-block;
    margin-right: 8%;
}
.form-group.server{
    width: 30%;
    display: inline-block;
}
.form-group.fileInput{
    padding-bottom: 30px;
    background-image: url(../images/line_3.png);
    background-position: center 100%;
    background-repeat: no-repeat;
    background-size: auto;
    margin-bottom: 10px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: normal;
    color: #fff;
    font-size: 14px;
    font-family: 'Inter-Bold';
    letter-spacing: 0.5px;
}
.form-label.fileInput-label{
    margin-bottom: 0px;
}

.form-input, 
.form-select, 
.form-textarea {
    width: 100%;
    padding: 0px 16px;
    border: 1px solid rgb(134, 125, 183);
    border-radius: 8px;
    background: #393452;
    transition: border-color 0.2s;
    color: #fff;
    font-family: "Inter-Regular";
    font-size: 12px;
    line-height: 34px;
}
::-webkit-input-placeholder { /* Chrome/Opera/Safari */
    color: #fff;
}
::-moz-placeholder { /* Firefox 19+ */
    color: #fff;
}
:-ms-input-placeholder { /* IE 10+ */
    color: #fff;
}
:-moz-placeholder { /* Firefox 18- */
    color: #fff;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: #007aff;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.file-upload {
    border: 2px dashed #d2d2d7;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.file-upload:hover {
    border-color: #007aff;
    background: #f0f8ff;
}

#guestSuccessMessage{
    background-image: url(../images/checked_icon.png);
    background-position: center 70px;
    background-repeat: no-repeat;
    background-size: auto;
    text-align: center;
    padding-top: 270px;
}
#guestSuccessMessage h3{
        font-family: 'Inter-Bold';
        font-size: 28px;
        font-weight: normal;
        height: 42px;
}
#guestSuccessMessage .numticket{
        font-family: 'Inter-Bold';
        font-size: 14px;
        font-weight: normal;
}
#guestSuccessMessage #guestEmailText{
    font-family: 'Inter-SemiBold';
    font-size: 15px;
    font-weight: normal;
    line-height: 21px;
    padding-top: 24px;
    display: block;
    max-width: 270px;
    margin: 0 auto;
}
#guestSuccessMessage .to_main{
    background-color: #FFFFFF;
    font-family: "Inter-Bold";
    color: #262238;
    border: none;
    padding: 12px 24px;
    border-radius: 32px;
    font-size: 16px;
    font-weight: normal;
    text-align: center;
    letter-spacing: 0px;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
    height: 53px;
    line-height: 30px;
    display: block;
    margin-top: 20px;
    text-decoration: none;
}

.ticket-detail {
    padding: 20px;
}

.ticket-info {
    position: relative;
    background: #312d3f;
    padding: 20px 0px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
    z-index: 1;
    cursor: pointer;

    border: 1px solid rgba(134, 125, 183, 0);
    overflow: hidden;
    padding-top: 45px;
    height: 42px;

    -webkit-transition: all 0.4s ease 0s;
    -moz-transition: all 0.4s ease 0s;
    -o-transition: all 0.4s ease 0s;
    transition: all 0.4s ease 0s;
}
.ticket-detail.info .ticket-info {
    border: 1px solid rgb(134, 125, 183);
    height: 250px;
    padding-top: 75px;
}
.ticket-info:before{
    content: "";
    display: block;
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    margin: 0 auto;
    width: 100%;
    height: 65px;
    background-color: rgba(30, 27, 45, 1);
    border-radius: 12px;

    -webkit-transition: all 0.4s ease 0s;
    -moz-transition: all 0.4s ease 0s;
    -o-transition: all 0.4s ease 0s;
    transition: all 0.4s ease 0s;
}
#detailPage.closed .ticket-info:before{
      background-color: #000;
}
.ticket-detail.info .ticket-info:before{
    border-radius: 12px 12px 0px 0px;
    height: 41px;
    background-color: #272332;
}
#detailPage.closed{
        background-color: #000;
}
#detailPage.closed .ticket-info{
    background: rgba(134, 125, 183, 0.16);
    border: 1px solid rgba(134, 125, 183, 0.2);
}

.action-buttons {
        display: block;
    gap: 12px;
    margin-bottom: 0px;
    text-align: center;
    height: 70px;
    position: relative;
}

.action-button-block {
    display: block;
    justify-content: center;
    align-items: center;
    background: #f5f5f7;
    padding: 5px 24px;
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: 500;
    text-align: center;
}
#closeTicketBtn.action-button-block{
    position: absolute;
    top: 0px;
    left: 0px;
    display: block;
    justify-content: center;
    align-items: center;
    padding: 5px 0px;
    width: 160px;
    height: 70px;
    max-width: 50%;
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: 500;
    text-align: center;
    background: none;
}
#closeTicketBtn.action-button-block .sub-text{
    display: none;
}
#closeTicketBtn.action-button-block:after {
    content: "Нажмите, если вопрос решён";
    display: block;
    width: 100%;
    height: 30px;
    color: #fff;
    font-family: "Inter-SemiBold";
    font-size: 10px;
    color: rgb(120, 114, 138);
    padding-top: 2px;
}
#closeTicketBtn .action-icon{
    background-image: url(../images/check_small.png);
    background-position: center 0px;
    background-repeat: no-repeat;
    background-size: auto;
    display: block;
    position: absolute;
    top: 11px;
    left: 10px;
    color: transparent;
    margin: 0;
    width: 16px;
    height: 16px;
}
#closeTicketBtn .action-text{
font-family: "Inter-SemiBold";
    font-size: 14px;
    color: rgb(27, 25, 33);
    background: #fff;
    width: 160px;
    height: 28px;
    line-height: 28px;
    display: block;
    border-radius: 24px;
    box-sizing: border-box;
    padding-left: 16px;
}
#detailPage.closed #closeTicketBtn .action-text{
        background: #d3d3d3;
    width: 171px;
    height: 28px;
    margin: 0 auto;
}

.close-action .action-icon,
.refresh-action .action-icon {
    margin-right: 8px;
    font-size: 18px;
    color: #ff3b30;
}
#refreshBtn{
    position: absolute;
    top: 0px;
    right: 0px;
    color: #fff;
    font-family: "Inter-SemiBold";
    font-size: 12px;
    background-color: transparent;
    display: inline-block;
    margin: 0 auto;
    width: 160px;
    height: 70px;
    text-align: center;
    padding: 0px 0px;
    line-height: 18px;
    background-image: url(../images/line_2.png);
    background-position: center 58px;
    background-repeat: no-repeat;
    background-size: auto;
    background: none;
    margin-bottom: 0px;
    vertical-align: middle;
}
#refreshBtn .action-text{
    color: #fff;
    font-family: 'Inter-SemiBold';
    font-size: 14px;
}
.refresh-action .action-icon {
        background-image: url(../images/reff.png);
    background-position: center 4px;
    background-repeat: no-repeat;
    background-size: auto;
    background-color: transparent;
    color: transparent;
    margin-right: 0px;
}


.action-text {
    font-size: 16px;
    color: #1d1d1f;
}

.action-button-block.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.action-button-block.hidden {
    display: none;
}

.refresh-action:not(.disabled):hover {
    background: #e0e0e5;
}

.close-action:not(.disabled):hover {
    background: #fff0f0;
}

/* Стили для кнопки открытия тикета */
.open-action .action-icon {
    margin-right: 8px;
    font-size: 18px;
    color: #34c759; /* Зеленый цвет для иконки */
}

.open-action:not(.disabled):hover {
    background: #e6f7e9; /* Бледно-зеленый фон при наведении */
}

.action-button-block.disabled:hover {
    background: #f5f5f7;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
#ticketInfo .info-row{
    display: inline-block;
    width: 49%;
    justify-content: unset;
    margin-bottom: 0px;
}
#ticketInfo #subject{
    display: block;
    width: 100%;
    padding: 0px 20px;
    margin-bottom: 8px;
}
#ticketInfo #subject .info-value{
    font-family: "Inter-SemiBold";
    font-weight: normal;
    font-size: 15px;
    white-space: break-spaces;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    width: 100%;
}
#ticketInfo #status{
    width: calc(49% - 1px);
    border-right: 1px solid rgba(120, 114, 138, 1);
    margin-bottom: 12px;
    box-sizing: border-box;
    padding-right: 12px;
    text-align: right;
}
#ticketInfo #status .info-label{
	   display: none;
}
#ticketInfo #lastdate{
    box-sizing: border-box;
    padding-left: 9px;
    text-align: left;
    line-height: 12px;
    vertical-align: middle;
}
#ticketInfo #lastdate .info-label{
	  display: none;
}
#ticketInfo #game{
    text-align: center;
    box-sizing: border-box;
    padding-right: 2px;
    display: block;
    margin: 0 auto;
    margin-bottom: 8px;
}
#ticketInfo #nickname{
    text-align: right;
    box-sizing: border-box;
    padding-right: 4px;
}
#ticketInfo #server{
		display: inline-block;
		margin: 0 auto;
		text-align: left;
		padding-left: 4px;
}
#ticketInfo #platform{
    display: block;
    margin: 0 auto;
    text-align: center;
		margin-top: 8px;
}

.info-label {
    font-family: 'Inter-Bold';
    color: #fff;
    font-size: 12px;
}

.info-value {
    font-weight: normal;
    font-family: 'Inter-Regular';
    color: #fff;
    font-size: 12px;
}

.messages {
    margin-bottom: 20px;
}

.message {
    background: #393452;
    border: 1px solid rgb(134, 125, 183);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}
#detailPage.closed .message {
    background: rgba(134, 125, 183, 0.16);
    border: 1px solid rgba(134, 125, 183, 0.2);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
    padding-bottom: 8px;
    border-bottom: none;
}

.message-author {
    font-weight: normal;
    color: #fff;
    font-size: 16px;
    font-family: "Inter-Regular";
    background-image: url(../images/dot2.png);
    background-position: 0px 3px;
    background-repeat: no-repeat;
    background-size: auto;
    padding-left: 24px;
}
.message-author.agsp {
    background-image: url(../images/dot1.png);
    background-position: 0px 3px;
    background-repeat: no-repeat;
    background-size: auto;
}

.message-time {
    font-family: 'Inter-SemiBold';
    font-size: 12px;
    color: rgba(120, 114, 138, 1);
}

.message-content {
    color: #fff;
    word-break: break-word;
    hyphens: none;
}
.message-content img,
.message-content div img{
    max-width: 100%;
}
.message-bottom{
	text-align: right;
	display: block;
	height: 24px;
}

.reply-form {
	background: #262238;
	padding: 20px 0px;
	border-radius: 12px;
}
.reply-form h3{
  color: #fff;
  font-size: 16px;
  font-family: "Inter-SemiBold";
  letter-spacing: 0.5px;
}

/* Стили для неактивного состояния формы ответа */
.reply-form.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.reply-form.disabled .form-textarea {
    background: #f8f8f8;
    color: #86868b;
    cursor: not-allowed;
}

.reply-form.disabled .btn-secondary {
    background: #f8f8f8;
    color: #86868b;
    cursor: not-allowed;
    opacity: 0.6;
}

.reply-form.disabled .btn-primary {
    background: #d2d2d7;
    color: #86868b;
    cursor: not-allowed;
    opacity: 0.6;
}

.navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.navigation h1 {
    flex: 1;
    text-align: center;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
#createPage .navigation h1{
    font-family: "Inter-Bold";
    font-size: 21px;
    text-transform: uppercase;
    font-weight: normal;
    position: absolute;
    top: 82px;
    left: 0px;
    right: 0px;
    width: 100%;
}
#detailPage.closed,
#detailPage.closed .header{
    background: rgba(35, 35, 36, 1);
}
#detailPage .ticketInfo_outer{
        position: fixed;
    top: 88px;
    left: 0px;
    right: 0px;
    margin: 0px auto;
    padding: 0px 20px;
    box-sizing: border-box;
    width: 100%;
    max-width: 800px;
    background: #262238;
    z-index: 2;
    box-shadow: 0px 2px 3px #191722, 3px 0px 0px #262238, -3px 0px 0px #262238;
}
#detailPage.closed .ticketInfo_outer{
        background: #232324;
}
#detailPage #detailTitle{
    background-color: transparent;
    font-family: "Inter-Bold";
    font-size: 18px;
    color: #fff;
    font-weight: normal;
    position: relative;
    top: 0px;
    left: 0px;
    right: 0px;
    width: calc(100% - 2px);
    height: 65px;
    margin: 0 auto;
    margin-bottom: -65px;
    line-height: 40px;
    display: block;
    text-align: center;
    flex: unset;
    z-index: 2;
    pointer-events: none;
    -webkit-transition: all 0.4s ease 0s;
    -moz-transition: all 0.4s ease 0s;
    -o-transition: all 0.4s ease 0s;
    transition: all 0.4s ease 0s;
}
#detailPage .ticket-detail.info #detailTitle{
    color: rgba(173, 157, 222, 0.8);
}
#detailPage #detailTitle:before{
    content: "";
    display: block;
    position: absolute;
    top: 38px;
    left: 0px;
    right: 0px;
    margin: 0 auto;
    width: 12px;
    height: 24px;
    background-image: url(../images/arrow_down.png);
    background-position: center 0px;
    background-repeat: no-repeat;
    background-size: auto;
    border-radius: 12px;
    transform: rotate(0deg);
    transform-origin: center;
    -webkit-transition: all 0.4s ease 0s;
    -moz-transition: all 0.4s ease 0s;
    -o-transition: all 0.4s ease 0s;
    transition: all 0.4s ease 0s;
}
#detailPage .ticket-detail.info #detailTitle:before{
    transform: rotate(180deg);
}
#detailPage.closed .navigation h1{
    background-color: #000;
}

.back-btn, 
.refresh-btn, 
.close-ticket-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    min-width: 100px;
}

.spacer {
    min-width: 100px;
}

.logo {
  width: 147px;
  height: 38px;
  min-width: 147px;
  background-image: url(../images/esprit_home_btn.png);
  background-position: center 0px;
  background-repeat: no-repeat;
  background-size: 100% auto;
  display: inline-block;
}

.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 30px;
    margin-bottom: 0px;
    background-image: url(../images/line.png);
    background-position: center 53px;
    background-repeat: no-repeat;
    background-size: auto;
}
.main-header .spacer{
    display: none;
}

.main-header h1 {
    flex: 1;
    text-align: left;
    margin: 0;
    display: inline-block;
    justify-content: center;
    align-items: center;
    font-family: 'Inter-SemiBold';
    font-size: 21px;
    line-height: 20px;
    color: #fff;
    letter-spacing: 1.5px;
}

.back-btn, 
.refresh-btn {
    color: #007aff;
}
.back-btn{
    background-image: url(../images/ar_back.png);
    background-position: 0px center;
    background-repeat: no-repeat;
    background-size: auto;
    font-family: "Inter-Regular";
    font-size: 14px;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0px;
    padding-left: 30px;
    height: 25px;
    line-height: 25px;
    text-align: left;
    min-width: 136px;
}

.close-ticket-btn {
    color: #ff3b30;
}

.back-btn:hover, 
.refresh-btn:hover {
    background: #f0f8ff;
    border-radius: 6px;
}
.back-btn:hover{
    background-image: url(../images/ar_back.png);
    background-position: 0px center;
    background-repeat: no-repeat;
    background-size: auto;
    background-color: transparent;
}

.close-ticket-btn:hover {
    background: #fff0f0;
    border-radius: 6px;
}

.refresh-btn:disabled, .close-ticket-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.close-ticket-btn.hidden {
    display: none;
}

.hidden {
    display: none;
}

.attachment-list {
    margin-top: 12px;
}

.attachment-item {
    display: inline-block;
    background-color: transparent;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    margin-right: 0px;
    margin-bottom: 0px;
    text-decoration: none;
    color: rgba(173, 157, 222, 0.8);
    background-image: url(../images/attach_icon.png);
    background-position: 0px 5px;
    background-repeat: no-repeat;
    background-size: auto;
}

.attachment-item:hover {
    background-image: url(../images/attach_icon.png);
    background-position: 0px 5px;
    background-repeat: no-repeat;
    background-size: auto;
    background-color: transparent;
}
#outer_attach_img{
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    margin: auto;
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0, 0.5);
    z-index: 4;
}
#outer_attach_img img{
    position: relative;
    margin: auto;
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.message-attachments {
    margin-top: 8px;
    padding-top: 8px;
    border-top: none;
    background-image: url(../images/line_2.png);
    background-position: center 2px;
    background-repeat: no-repeat;
    background-size: auto;
    text-align: center;
}

.status-message {
    margin: 10px 0;
    text-align: center;
}

.status-message .success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 8px 12px;
    border-radius: 6px;
}

.status-message .error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 8px 12px;
    border-radius: 6px;
}

.status-message .info {
    color: #004085;
    background-color: #cce7ff;
    border: 1px solid #b3d7ff;
    padding: 8px 12px;
    border-radius: 6px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 20px;
}

.pagination-btn {
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter-Regular';
}

.pagination-btn:hover:not(:disabled) {
    background: #007aff;
    color: white;
    border-color: #007aff;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    font-size: 14px;
    color: #86868b;
    margin: 0 10px;
}

.file-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.file-preview-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    border: 1px solid #e5e5e7;
    border-radius: 8px;
    padding: 8px;
    max-width: 120px;
}

.file-preview-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 4px;
}

.file-preview-name {
    font-size: 11px;
    color: #86868b;
    text-align: center;
    word-break: break-all;
    max-width: 100px;
    line-height: 1.2;
}

.file-remove-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ff3b30;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.file-remove-btn:hover {
    background: #d70015;
}

.sending-indicator {
    opacity: 0.6;
    pointer-events: none;
}

.sending-indicator::after {
    content: "Отправка...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* Select2 стили */
.select2-container--default .select2-selection--single {
    height: 36px !important;
    border: 1px solid rgb(134 125 183) !important;
    border-radius: 8px !important;
    background: #393452 !important;
    transition: border-color 0.2s;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #fff;
    font-family: 'Inter-Regular';
    font-size: 12px;
}
.select2-container--default .select2-selection--single:focus {
    border-color: rgba(134, 125, 183, 0.2) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #fff !important;
    line-height: 32px !important;
    padding-left: 16px !important;
    font-size: 16px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 32px !important;
    right: 10px !important;
    background-image: url(../images/ar_down.png);
    background-position: 0px 10px;
    background-repeat: no-repeat;
    background-size: auto;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b{
    opacity: 0;
}

.select2-dropdown {
    border: 1px solid rgb(134, 125, 183) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

.select2-container--default .select2-results__option {
    padding: 12px 16px !important;
    font-size: 16px !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: rgba(134, 125, 183, 0.5) !important;
    border-bottom: none !important;
    border-radius: 8px;
}
.select2-container--default .select2-results>.select2-results__options{
    background: #393452;
}
.select2-container--default .select2-search--dropdown {
    border: 1px solid #867db7;
    display: block;
    padding: 1px;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #aaa;
    background-color: #393452 !important;
    color: #fff;
}
.select2-container--default .select2-search--dropdown .select2-search__field{
    
}

.select2-container {
    width: 100% !important;
}

@media (max-width: 600px) {
    .container {
        box-shadow: none;
    }

    .header, .ticket-list, .form-page, .ticket-detail {
        padding: 16px;
    }

    .ticket-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}