.auth-black {background: #17171c;}
.auth-box {width: 100%;max-width: 550px;background-color: rgb(32 33 42);border-radius: 10px;box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);margin: 150px auto 0 auto;}
.auth-title {color: #e3e3e3;text-shadow: none;padding: 10px 10px;text-align: center;font-size: 1.8em;font-weight: bold;}

.auth-box .body,
.auth-box .footer {padding: 10px 20px;color: #444;}
.auth-group {margin-bottom: 10px;}
.auth-control {display: block;width: 100%;height: 55px;padding: 6px 12px;border-radius: 10px;font-size: 14px;line-height: 1.42857143;color: #d8d8d9;background-color: rgb(27 28 36);border: none;-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
-webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;-o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;}
.auth-inf-green {margin: 10px;padding: 5px;text-align: center;background: rgb(99 255 154 / 7%);border-radius: 10px;color: #4fec6a;border: 1px dashed rgb(79 236 92 / 27%);}
.btn-auth {font-weight: 500;-webkit-border-radius: 3px;-moz-border-radius: 3px;border-radius: 5px;padding: 10px;-webkit-box-shadow: inset 0px -2px 0px 0px rgba(0, 0, 0, 0.09);-moz-box-shadow: inset 0px -2px 0px 0px rgba(0, 0, 0, 0.09);box-shadow: inset 0px -1px 0px 0px rgba(0, 0, 0, 0.09);}
.auth-box .footer .btn {margin-bottom: 15px;}
.auth-header {display: flex;flex: auto;gap: 1em;align-items: center;font-size:20px;flex-direction: row;margin-bottom: 10px;}
.auth-red {border-top: 4px solid #eb4b4b;}
.auth-green {border-top: 4px solid #68bf8f;}
.auth-blue {border-top: 4px solid #68a3bf;}
.auth-items-none { margin: 10px 0px;padding: 10px;color: #383838;border-radius: 4px;background-color: rgb(235 156 75 / 28%);}
.doplata-text{background: #f7f7f7;font-weight: bold;margin-bottom: 10px;color: #686868;}

body { background:#f4f6f9; font-family:Calibri; margin:0; padding:0; min-width:320px; overflow-x:hidden; }

/* Header Styles */
.page-auth-header { background-image:linear-gradient(242.33deg,rgb(31 31 43) 21.41%,rgb(49 49 65) 95%); height:60px; position:fixed; top:0; width:100%; z-index:1000; }
.header { height:60px; display:flex; justify-content:space-between; align-items:center; }
.m-0 { margin:0 auto; max-width:1200px; }
.logo { color:#fff; text-decoration:none; font-size:24px; font-weight:bold; }

.user-menu { display:flex; align-items:center; gap:15px; }
.user-info { display:flex; align-items:center; gap:10px; }
.user-avatar { width:32px; height:32px; border-radius:50%; }
.user-name { color:#fff; }
.online-status { width:8px; height:8px; background:#27ae60; border-radius:50%; }

.btn-header { background:rgba(255,255,255,0.1); color:#fff; text-decoration:none; padding:6px 12px; border-radius:4px; display:flex; align-items:center; gap:5px; }
.btn-header:hover { background:rgba(255,255,255,0.2); color:#fff; text-decoration:none; }
.btn-header.logout { background:#e74c3c; }
.btn-header.logout:hover { background:#c0392b; }

/* Main Content */
.main-content { max-width:1200px; margin:80px auto 20px; padding:0 20px; display:flex; gap:20px; box-sizing:border-box; width:100%; }
.left-column { width:270px; flex-shrink:0; }
.right-column { flex:1; }

/* Navigation Block */
.nav-block { background:#313141; border-radius:8px; padding:15px; margin-bottom:20px; box-shadow:0 2px 4px rgba(0,0,0,0.1); }
.nav-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:15px; }
.nav-block h2 { margin:0; color:#d5d6d7; font-size:18px; font-weight:bold; }

.nav-toggle { display:none; background:none; border:none; padding:5px; cursor:pointer; }
.nav-toggle span { display:block; width:20px; height:2px; background:#b8bdc1; margin:4px 0; transition:.3s; }

/* Navigation Menu */
.nav-menu { list-style:none; padding:0; margin:0; transition:max-height .3s ease-out; overflow:hidden; }
.nav-menu li { margin-bottom:8px; }
.nav-menu li:last-child { margin-bottom:0; }
.nav-menu li a { color:#d3d5d7; text-decoration:none; padding:12px 15px; display:flex; align-items:center; background:#3b3b4b; border-radius:4px; transition:.2s; }
.nav-menu li a:hover { background:#404051; }
.nav-menu li a i { margin-right:10px; width:20px; text-align:center; color:#b0c9e1; }
.nav-menu li a span { color:#dedfdf; flex:1; }
.nav-menu li a .player-count, .nav-menu li a .new-label { margin-left:auto; flex:none; }

.player-count { background:#27ae60; color:#fff!important; padding:2px 8px; border-radius:4px; font-size:12px; }
.new-label { background:#e74c3c; color:#fff!important; padding:2px 8px; border-radius:4px; font-size:11px; text-transform:uppercase; }

/* Data Blocks */
.player-data, .services-block { background:#fff; border-radius:8px; padding:10px; margin-bottom:20px; box-shadow: 0 2px 5px rgb(0 0 0 / 22%); width:100%; box-sizing:border-box; }
.player-data h2, .services-block h2 { margin:0; color:#2c3e50; font-size:20px; font-weight:400; }

/* Player Data */
.data-list { list-style:none; padding:0; margin:0; }
.data-item { display:flex; align-items:center; padding:8px 0; border-bottom:1px solid #eee; }
.data-item:last-child { border-bottom:none; }
.data-label { width:180px; color:#7f8c8d; }
.data-value { flex:1; color:#2c3e50; word-break:break-word; }

.action-buttons { display:flex; gap:20px; }
.btn-action { flex:1; padding:12px; border-radius:4px; border:none; color:#fff; font-size:16px; cursor:pointer; transition:.2s; }
.btn-action:hover { transform:translateY(-2px); }
.btn-extend { background:#f39c12; }
.btn-extend:hover { background:#e67e22; }
.btn-buy { background:#27ae60; }
.btn-buy:hover { background:#219a52; }

/* Forms & Balance */
.balance-section { margin-bottom:30px; }
.balance-section h2 { display:flex; align-items:center; gap:10px; margin-bottom:20px; }
.balance-amount { color:#27ae60; font-weight:bold; }

.form-group { display:flex; flex-direction:column; gap:8px; margin-bottom:15px; }
.form-label { color:#7f8c8d; font-size:14px; }
.form-control { width:100%; padding:8px 12px; border:1px solid #ddd; border-radius:4px; font-size:14px; color:#2c3e50; }
.form-control:focus { border-color:#3498db; outline:none; box-shadow:0 0 0 2px rgba(52,152,219,.2); }

/* Services */
.services-buttons { display:flex; gap:15px; }
.btn-service { flex:1; padding:12px 20px; border:none; border-radius:4px; font-size:14px; cursor:pointer; color:#fff; text-align:center; }
.btn-service.extend { background:#f39c12; }
.btn-service.extend:hover { background:#e67e22; }
.btn-service.buy { background:#27ae60; }
.btn-service.buy:hover { background:#219a52; }
.cars-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-top: 15px; }
.car-card { background: #ffffff; border-radius: 12px; padding: 15px; text-align: center; box-shadow: 0 2px 4px rgb(0 0 0 / 34%); transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column; height: 100%; }
.car-card:hover { transform: translateY(-6px); box-shadow: 0 10px 25px rgba(0,0,0,.25); }
.car-card img { width: 100%; max-height: 140px; object-fit: contain; margin: 10px 0; transition: transform .3s; }
.car-card:hover img { transform: scale(1.07); }
.car-card h3 { margin: 5px 0; font-size: 18px; color: #2c3e50; }
.car-skill { font-size: 13px; color: #27ae60; margin-bottom: 8px; }
.stats { font-size: 13px; color: #555; text-align: left; margin-bottom: 10px; }
.stats div { display: flex; justify-content: space-between; }
.price { margin: 10px 0; }
.price .new { font-size: 18px; font-weight: bold; color: #27ae60; }
.price .old { margin-left: 8px; color: #999; text-decoration: line-through; }
.owned { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: none; justify-content: center; align-items: center; z-index: 2000; }
.modal-box { position: relative; background: #fff; border-radius: 12px; padding: 20px; width: 320px; text-align: center; animation: scaleIn .3s ease; }
.modal-box img { width: 100%; max-height: 150px; object-fit: contain; }
.modal-box .sale { color: #e74c3c; }
.modal-close { position: absolute; top: 10px; right: 12px; font-size: 22px; cursor: pointer; color: #999; transition: color .2s; }
.modal-close:hover { color: #e74c3c; }
@keyframes scaleIn{from{transform:scale(.8);opacity:0;}to{transform:scale(1);opacity:1;}}
/* ===== Mini balance in navigation ===== */
.nav-balance-mini{display:flex;justify-content:space-between;align-items:center;background:#2b2b3a;border-radius:8px;padding:10px 12px;margin-bottom:12px;}
.nav-balance-info{display:flex;flex-direction:column;line-height:1.2;}
.nav-balance-label{font-size:12px;color:#dfdfdf;}
.nav-balance-value{font-size:16px;font-weight:bold;color:#68f1a2;}
.nav-balance-btn{background:#27ae60;color:#fff;text-decoration:none;padding:8px 12px;border-radius:6px;font-size:13px;transition:background .2s;}
.nav-balance-btn:hover{background:#219a52;color:#fff;}
/* ===== Quests stats ===== */
.quests-stats{display:grid;grid-template-columns:220px 1fr;gap:20px;margin-bottom:25px;align-items:stretch;}
/* NPC column */
.qs-npc{background:#f7f7f7;border-radius:12px;display:flex;align-items:center;justify-content:center;padding:10px;}
.qs-npc img{max-width:100%;max-height:180px;object-fit:contain;}
.qs-col{background:#f7f7f7;border-radius:10px;padding:12px;}
.qs-info{background:#f7f7f7;border-radius:12px;padding:12px;display:flex;flex-direction:column;justify-content:space-between;}
.qs-row{display:flex;align-items:center;gap:8px;font-size:14px;color:#2c3e50;margin-bottom:6px;}
.qs-row:last-child{margin-bottom:0;}
.qs-icon{width:15px;height:15px;background:#27ae60;border-radius:3px;}

.elo-progress {
    display:flex;
    align-items:center;
    gap:15px;
    margin:20px 0;
}

.elo-left,.elo-right {
    width:25%;
    font-size:14px;
}

.elo-sub {
    color:#aaa;
    font-size:12px;
}

.elo-bar-wrap {
    width:50%;
    text-align:center;
}

.elo-bar-bg {
    height:2px;
    background:#444;
    position:relative;
}

.elo-bar-fill {
    height:2px;
    width:0;
    background:linear-gradient(90deg,#ff9800,#ff5722);
}

.elo-need {
    font-size:12px;
    color:#bbb;
    margin-top:6px;
}

.quests-list {
max-width:1200px;
margin:20px auto;
font-size:14px;
}

.ql-head,.ql-row {
display:grid;
grid-template-columns:50px 1.5fr 60px 120px 100px 140px 80px;
gap:10px;
padding:10px;
}

.ql-head {
font-weight:bold;
}

.ql-row {
border-bottom:1px solid #333;
color:#fff;
text-decoration:none;
}

.ql-row:hover {
background:#2a2a2a;
}

.sub {
font-size:12px;
color:#aaa;
}


.deposit-table {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.deposit-row {
    display: flex;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    align-items: center;
}

.deposit-row.header {
    background: #f3f3f3;
    font-weight: bold;
}

.deposit-cell {
    flex: 1;
    padding: 0 6px;
    white-space: nowrap;
}

.deposit-cell small {
    color: #999;
    font-size: 12px;
}

.status-paid {
    color: #4caf50;
    font-weight: bold;
}

.status-wait {
    color: #ff9800;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}

.pagination span.active {
    font-weight: bold;
}

.btn{
padding:8px 14px;
margin-right:6px;
border-radius:6px;
text-decoration:none;
color:#fff;
}
.btn:hover{
color:#fff;
opacity: 0.9;
}
.btn.active{
background:#00a65a;
}

.btn-history{
padding: 8px 14px;
margin-right: 6px;
border-radius: 5px;
background: #a5a5a5;
color: #fff;
display: inline-block;
font-size: 14px;
font-weight: 400;
line-height: 1.42857143;
}
.btn-history:hover{
color:#fff;
opacity: 0.9;
text-decoration: none;
}
.btn-history.active{
background:#00a65a;
}

@media (max-width:480px) {
    .pagination a,
    .pagination span {
        padding: 5px 8px;
        font-size: 13px;
    }
}


/* адаптация */
@media (max-width: 768px) {
    .deposit-row {
        flex-wrap: wrap;
        gap: 6px 0;
    }

    .deposit-cell {
        flex: 50%;
        font-size: 13px;
    }

    .deposit-row.header {
        display: none;
    }
}


@media (max-width:768px) {
.ql-head { display:none; }
.ql-row {
grid-template-columns:1fr 1fr;
}
.ql-row div {
font-size:13px;
}
}

/* ===== Items ===== */
.quests-title{margin:20px 0 10px;font-size:18px;font-weight:400;color:#2c3e50;}
.items-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(80px,1fr));gap:15px;margin-bottom:20px;}
.item-card{background:#ffffff;border-radius:10px;padding:10px;text-align:center;box-shadow:0 2px 6px rgba(0,0,0,.15);transition:transform .3s,box-shadow .3s;display:flex;flex-direction:column;height:100%;}
.item-card:hover{transform:translateY(-4px);box-shadow:0 8px 20px rgba(0,0,0,.25);}
.item-card img{width:100%;max-height:80px;object-fit:contain;margin:8px 0;transition:transform .3s;}
.item-card:hover img{transform:scale(1.08);}
.item-card h4{font-size:11px;margin:0;color:#34495e;}
.item-card span{font-size:12px;color:#27ae60;font-weight:bold;}
/* Media */
@media (max-width:768px){.nav-toggle{display:block;}.nav-menu{max-height:0;}.nav-menu.active{max-height:500px;}.main-content{flex-direction:column;padding:0 10px;margin-top:70px;}.left-column,.right-column{width:100%;}.logo{font-size:20px;}.quests-stats{grid-template-columns:1fr;}.qs-npc{display:none;}.qs-info{padding:12px;}}
@media (max-width:480px){.logo{font-size:18px;}.user-avatar{width:28px;height:28px;}.items-grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));}.elo-left,.elo-right {font-size:13px;}}
/* ===== InfoPlayer block ===== */
.infoplayer{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:5px;margin-bottom:10px;}
/* Left column */
.info-left{background:#efefef;border-radius:10px;padding:12px;}
.info-row{display:flex;align-items:center;gap:10px;font-size:14px;color:#2c3e50;margin-bottom:10px;}
.info-row:last-child{margin-bottom:0;}
.info-icon{width:25px;height:25px;background:#f5f5f5;border-radius:5px;}
/* Right column */
.info-right{display:flex;flex-direction:column;background:#efefef;gap:5px;border-radius:10px;padding:5px 10px;}
.info-title{font-size:14px;color:#2c3e50;margin-bottom:6px;}
/* Cells */
.info-cells{display:flex;gap:8px;flex-wrap:wrap;}
.info-cell{width:25px;height:25px;background:#d7d7d7;border-radius:6px;position:relative;cursor:default;transition:transform .3s,box-shadow .3s;}
.info-cell.filled{background:#ffffff;box-shadow:0 2px 4px rgba(0,0,0,.2);}
.info-cell img{width:100%;height:100%;object-fit:contain;pointer-events:none;}
/* Hover animation */
.info-cell:hover{transform:translateY(-4px);box-shadow:0 6px 12px rgba(0,0,0,.25);}
/* Tooltip */
.info-cell::after{content:attr(data-tooltip);position:absolute;bottom:130%;left:50%;transform:translateX(-50%);background:#2c2c3a;color:#fff;font-size:11px;padding:4px 6px;border-radius:4px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .2s;}
.info-cell:hover::after{opacity:1;}
/* ===== Responsive ===== */
@media (max-width:768px){.infoplayer{grid-template-columns:1fr;}.elo-progress {flex-direction:column;}.elo-left,.elo-right,.elo-bar-wrap {width:100%;text-align:center;}}