
/* TOP HEADER V5 */

header.top{
 background:linear-gradient(110deg,#131014,#1a111a)!important;
 border-bottom:1px solid #6c2648!important;
}

header.top .head-actions{
 display:flex!important;
 align-items:center!important;
 gap:12px!important;
}

header.top .head-actions #promo-header-button{
 order:1;
}

header.top .head-actions #ticket-link{
 order:2;
}

header.top .head-actions #balance{
 order:3;
}

header.top .head-actions #balance-toggle{
 order:4;
}

header.top .head-actions #giveaway-header{
 order:5;
}

header.top .head-actions #notification-link{
 order:6;
}

header.top .head-actions #account-link{
 order:7;
}

/* WALLET */

header.top .head-actions #balance:not([hidden]){
 display:inline-flex!important;
 align-items:center!important;
 gap:7px!important;
 height:38px!important;
 padding:0 10px!important;
 border:1px solid #52404a!important;
 border-right:0!important;
 border-radius:9px 0 0 9px!important;
 background:#171317!important;
 color:#f8f6f7!important;
 font:700 13px Arial,sans-serif!important;
 white-space:nowrap;
}

header.top .head-actions #balance::before{
 content:"Баланс:";
 font-size:11px;
 font-weight:400;
 color:#beb2ba;
}

header.top .head-actions #balance::after{
 content:"";
 order:-1;
 width:17px;
 height:17px;
 flex-shrink:0;
 background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d2c7ce' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='M4 6l12-3v4M3 7h17v14H3zM15 12h7v5h-7z'/%3E%3C/svg%3E");
}

header.top .head-actions #balance-toggle:not([hidden]){
 width:32px!important;
 height:38px!important;
 min-height:38px!important;
 margin-left:-12px!important;
 padding:0!important;
 background:#171317!important;
 border:1px solid #52404a!important;
 border-left:0!important;
 border-radius:0 9px 9px 0!important;
}

/* PROMO AND TICKETS */

header.top .head-actions #promo-header-button,
header.top .head-actions #ticket-link{
 background:transparent!important;
 border:1px solid #48333f!important;
 border-radius:8px!important;
 min-height:34px!important;
 height:34px!important;
 padding:0 8px!important;
}

header.top #promo-header-button span{
 display:none;
}

header.top #promo-header-button svg{
 width:18px!important;
 height:18px!important;
}

/* GIVEAWAY BUTTON */

header.top .head-actions #giveaway-header:not([hidden]){
 position:relative;
 display:inline-flex!important;
 align-items:center!important;
 justify-content:center;
 height:38px!important;
 min-height:38px!important;
 padding:0 16px!important;
 margin-left:12px;
 border:1px solid #fc367b!important;
 border-radius:9px!important;
 background:linear-gradient(180deg,#ef236a,#bc0646)!important;
 color:white!important;
 font:700 12px Arial,sans-serif!important;
 box-shadow:0 0 20px #ec176036,
 inset 0 1px 5px #ffffff18;
 transition:transform .2s,box-shadow .2s;
}

header.top #giveaway-header::before{
 content:"";
 position:absolute;
 left:-13px;
 width:1px;
 height:26px;
 background:#ffffff25;
}

header.top #giveaway-header:hover{
 transform:translateY(-1px);
 box-shadow:0 0 25px #ec176065!important;
}

/* NOTIFICATIONS */

header.top .head-actions #notification-link{
 position:relative;
 border:0!important;
 background:transparent!important;
 box-shadow:none!important;
 width:36px!important;
 height:38px!important;
 min-height:38px!important;
 padding:7px!important;
}

header.top #notification-link svg{
 width:23px!important;
 height:23px!important;
 color:#e4dbe2!important;
}

header.top #notification-link>span{
 display:none!important;
}

header.top #notification-link.has-unread>span{
 display:block!important;
 position:absolute;
 right:3px;
 top:2px;
 width:8px!important;
 height:8px!important;
 min-width:8px!important;
 padding:0!important;
 font-size:0!important;
 border:1px solid #ff7baa;
 border-radius:50%;
 background:#ee145e!important;
 box-shadow:0 0 8px #ee145e;
}

/* PROFILE ICON */

header.top .head-actions #account-link:has(.nav-avatar){
 position:relative;
 width:36px!important;
 min-width:36px!important;
 height:36px!important;
 min-height:36px!important;
 padding:0!important;
 border:0!important;
 background:transparent!important;
 box-shadow:none!important;
 font-size:0!important;
}

header.top #account-link .nav-avatar{
 display:none!important;
}

header.top #account-link:has(.nav-avatar)::before{
 content:"";
 position:absolute;
 inset:2px;
 background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23dfd3db' stroke-width='1.6'%3E%3Ccircle cx='16' cy='16' r='14'/%3E%3Ccircle cx='16' cy='12' r='4'/%3E%3Cpath d='M8 24v-1a8 8 0 0 1 16 0v1z'/%3E%3C/svg%3E");
}

header.top #account-link:hover{
 filter:brightness(1.3);
}

header.top .head-actions>[hidden]{
 display:none!important;
}

/* ADMIN SYSTEM CARDS */

.system-admin-grid{
 display:grid;
 grid-template-columns:repeat(4,minmax(0,1fr));
 gap:14px;
 margin:18px 0 30px;
}

.system-admin-tile{
 position:relative;
 display:flex!important;
 flex-direction:column;
 align-items:flex-start!important;
 justify-content:flex-start!important;
 gap:12px;
 min-width:0;
 min-height:165px;
 padding:20px!important;
 text-align:left!important;
 border:1px solid #59364a!important;
 border-radius:11px!important;
 color:#f6edf3!important;
 background:
 repeating-radial-gradient(
 ellipse 420px 170px at 100% 0%,
 transparent 0 25px,
 #ad507925 26px 27px,
 transparent 28px
 ),
 linear-gradient(135deg,#211922,#35202f)!important;
 transition:transform .2s,border-color .2s,box-shadow .2s;
}

.system-admin-tile:hover{
 transform:translateY(-3px);
 border-color:#e95697!important;
 box-shadow:0 6px 24px #df28652b;
}

.system-admin-icon{
 display:grid;
 place-items:center;
 width:44px;
 height:44px;
 border:1px solid #894260;
 border-radius:10px;
 background:#6b2c4933;
 color:#ed80b2;
}

.system-admin-icon svg{
 width:24px;
 height:24px;
}

.system-admin-tile strong{
 font:700 15px/1.35 Arial,sans-serif;
}

.system-admin-tile small{
 font:400 12px/1.5 Arial,sans-serif;
 color:#ba9eaf;
}

.system-admin-arrow{
 position:absolute;
 top:16px;
 right:16px;
 color:#e771a7;
}

/* ADMIN MODAL */

dialog.system-admin-dialog{
 box-sizing:border-box;
 width:min(520px,calc(100% - 24px));
 max-height:85vh;
 padding:0!important;
 overflow:auto;
 background:#211922!important;
 border:1px solid #75415c;
 border-radius:14px;
 color:#fff;
 box-shadow:0 20px 70px #000b;
}

.system-admin-dialog::backdrop{
 background:#08060bc9;
 backdrop-filter:blur(7px);
}

.system-admin-dialog>header{
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:12px;
 padding:20px 24px;
 border-bottom:1px solid #553347;
}

.system-admin-dialog h3{
 font-size:20px!important;
 margin:0!important;
}

.system-admin-dialog [data-system-close]{
 width:30px!important;
 height:30px!important;
 padding:0!important;
 border:0!important;
 background:transparent!important;
 font-size:26px!important;
 color:#bba5b3;
}

.system-admin-body{
 padding:24px;
}

.system-admin-body form{
 display:grid;
 gap:15px;
}

.system-admin-body label{
 display:block;
 color:#cdb6c4;
 font-size:13px;
}

.system-admin-body input,
.system-admin-body select{
 width:100%;
 box-sizing:border-box;
 margin-top:7px;
 min-height:44px;
 border:1px solid #674054!important;
 border-radius:8px!important;
 background:#171319!important;
 color:white!important;
}

.system-admin-body form button{
 min-height:44px;
 border-radius:8px!important;
}

.system-admin-dialog [hidden],
.system-admin-body [hidden]{
 display:none!important;
}

@media(max-width:1100px){
 .system-admin-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }
}

@media(max-width:760px){
 header.top .head-actions{
  gap:5px!important;
 }

 header.top #balance::before,
 header.top #balance::after{
  display:none;
 }

 header.top .head-actions #balance-toggle{
  margin-left:-5px!important;
 }

 header.top #giveaway-header:not([hidden]){
  padding:0 8px!important;
  margin-left:0;
 }

 header.top #giveaway-header::before{
  display:none;
 }

 header.top #giveaway-header span{
  display:none;
 }
}

@media(max-width:480px){
 .system-admin-grid{
  gap:8px;
 }

 .system-admin-tile{
  padding:13px!important;
  min-height:145px;
 }

 .system-admin-tile strong{
  font-size:13px;
 }

 .system-admin-body{
  padding:16px;
 }
}

@media(prefers-reduced-motion:reduce){
 .system-admin-tile,
 header.top #giveaway-header{
  transition:none!important;
 }
}

