html {
    background-color:#000;
    -webkit-background-size:cover;
    -moz-background-size:cover;
    -o-background-size:cover;
    background-size:cover;
    background-attachment:fixed;
}

body {
    background:transparent!important;
}

@font-face {
    font-family:OCRA;
    src:url(/fonts/ocra.ttf);
}

@font-face {
    font-family:tf2build;
    src:url(/fonts/tf2build.ttf);
}

@font-face {
    font-family:TF2;
    src:url(/TF2.ttf);
}

@font-face {
    font-family:TF2Secondary;
    src:url(/fontsTF2Secondary.ttf);
}

@font-face {
    font-family:big_noodle_titling;
    src:url(/fonts/big_noodle_titling.ttf);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes floating {
    from {
        transform:translate(0,0px);
    }
    65% {
        transform:translate(0,5px);
    }
    to {
        transform:translate(0,-0px);
    }
}

/* ============================================================
   LAYOUT & VISUAL EFFECTS
   ============================================================ */

.stripe {
    text-align:center;
    position:relative;
}

.stripe:before {
    position:absolute;
    content:'';
    left:50%;
    top:50%;
    height:125%;
    width:0;
    border-right:4px #666 solid;
}

.shadowfilter {
    -webkit-filter:drop-shadow(12px 12px 7px rgba(0,0,0,0.5));
    filter:drop-shadow(12px 12px 7px rgba(0,0,0,0.5));
}

.floating {
    animation-name:floating;
    animation-duration:3s;
    animation-iteration-count:infinite;
    animation-timing-function:ease-in-out;
}

.medal-unlocked {
    -webkit-filter:drop-shadow(12px 12px 7px rgba(0,0,0,0.5));
    filter:drop-shadow(12px 12px 7px rgba(0,0,0,0.5));
}

.medal-locked {
    transform:scale(0.75);
    -webkit-filter:grayscale(90%);
    filter:grayscale(90%);
}

.breakdown-table {
    background-color:#363636;
    border-radius:8px;
}

.breakdown-table > * > * > th {
    vertical-align:middle;
    border:1px solid #4a4a4a;
}

.breakdown-table > * > * > td {
    vertical-align:middle;
    border:0;
}

/* ============================================================
   UI COMPONENTS
   ============================================================ */

.table {
    --bs-table-bg:transparent;
    --bs-table-color-state:inherit;
}

.input::placeholder {
    color:#4a4a4a;
}

.frontpage-link {
    color:#67b2e2;
}

.frontpage-link:hover {
    color:#3799f1;
}

#hyper {
    color:#67B2E2;
    text-decoration:none;
}

#hyper:hover {
    color:#378FC6;
}

.is-size-6-5 {
    font-size:.85rem!important;
}

.tr-link:hover {
    background-color:#4a4a4a;
    cursor:pointer;
    border-radius:8px;
}

.active[data-bs-toggle="collapse"] {
    transform:scale(1.25);
}

.is-black-on-hover:hover {
    background-color:#292929;
}

/* ============================================================
   PROGRESS BARS
   ============================================================ */

.progress-bar {
    background-color:#4a4a4a;
    border-radius:3px;
    box-shadow:inset 0 1px 3px rgba(0,0,0,.2);
}

.progress-bar-fill {
    display:block;
    height:1rem;
    border-radius:3px;
}

.progress-wrapper {
    position:relative;
}

.progress-value {
    position:absolute;
    top:0;
    left:50%;
    transform:translateX(-50%);
    font-size:calc(1rem / 1.5);
    line-height:1rem;
    font-weight:bold;
    width:100%;
    text-align:center;
}

.progress.is-small+.progress-value {
    font-size:calc(0.75rem / 1.5);
    line-height:0.75rem;
}

.progress.is-medium+.progress-value {
    font-size:calc(1.25rem / 1.5);
    line-height:1.25rem;
}

.progress.is-large+.progress-value {
    font-size:calc(1.5rem / 1.5);
    line-height:1.5rem;
}

/* ============================================================
   SERVER ELEMENTS
   ============================================================ */

#copyText {
    cursor:pointer;
    color:palegreen;
}

#server {
    margin-bottom:1em;
}

#server:hover {
    background-color:#5a5a5a!important;
}

.server_column {
    padding-top:.1rem;
    padding-bottom:.1rem;
    padding-left:0px;
    padding-right:0px;
}

/* ============================================================
   MISSION STATES
   ============================================================ */

.is_playing_motd_mission {
    box-shadow:-4px 0px 0px 0px rgba(81,203,238,1),4px 0px 0px 0px rgba(81,203,238,1);
}

.is_completed_mission {
    box-shadow:-4px 0px 0px 0px rgb(81,238,107),4px 0px 0px 0px rgba(81,238,107,1);
}

.has-background-motd-mission {
    background-color:#5a5a5a;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

td.divider {
    border-right:solid 1px #ffffff;
}

td.divider-end {
    border-left:solid 1px #ffffff;
}

.country-image {
    -webkit-filter:grayscale(0%);
    filter:grayscale(0%);
}

.image img.is-slightly-rounded {
    border-radius:5px;
}

.is-horizontal-center {
    justify-content:center;
}

.overflow-dotdot {
    text-overflow:ellipsis;
    overflow:hidden;
}

.is-paddingless {
    padding:0;
}

.donator {
    background-color:#4a4a4a!important;
}

.donator:hover {
    background-color:#696969!important;
}

.donator2 {
    background-color:#5a5a5a!important;
}

.donator2:hover {
    background-color:#696969!important;
}

.map-runs-header {
    cursor:pointer;
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */

.form-check-input {
    background-color:#4a4a4a;
    border-color:#5a5a5a;
}

.form-check-input:checked {
    background-color:#4a4a4a;
    border-color:#5a5a5a;
}

.form-check-input:focus {
    border-color:#dbdbdb;
    box-shadow:0 0 0 .25rem #fff1;
}

.form-check-input:checked[type="checkbox"] {
    background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23dbdbdb' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

.form-control {
    background-color:#4a4a4a;
    border-color:#5a5a5a;
    color:#dbdbdb;
}

.form-control:focus {
    background-color:#4a4a4a;
    border-color:#dbdbdb;
    color:#dbdbdb;
    box-shadow:0 0 0 .25rem #fff1;
}

.form-control::placeholder {
    color:#aaa;
}

.form-select {
    background-color:#4a4a4a;
    border-color:#5a5a5a;
    color:#dbdbdb;
    background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dbdbdb' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

.form-select:focus {
    border-color:#dbdbdb;
    color:#dbdbdb;
    box-shadow:0 0 0 .25rem #fff1;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (min-width:768px) {
    .total-player-count-text {
        margin-right:-250px;
    }

}

/* ============================================================
   VERIFICATION PAGE — bg, layout, header
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: #e0e0e0;
    min-height: 100vh;
    overflow-x: hidden;
}

.bg-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://images.akamai.steamusercontent.com/ugc/772861659217976901/9E8A250972AA71B6B9A2091C8A796ACF7E68836B/') center/cover no-repeat;
    filter: brightness(0.25) saturate(0.7);
    z-index: 0;
}

.bg-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(10,10,15,0.2) 0%, rgba(10,10,15,0.6) 100%);
    z-index: 1;
}

header {
    position: relative;
    z-index: 10;
    background: rgba(10,10,15,0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 6px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 42px;
    width: auto;
    image-rendering: auto;
}

main {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 55px);
    padding: 30px 20px;
}

/* ============================================================
   VERIFICATION BOX & STEPS
   ============================================================ */

.verification-box {
    background: rgba(18,18,28,0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.02);
}

.section-header {
    padding: 18px 22px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.section-title {
    color: #ffdd57;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.step-container {
    padding: 18px 22px;
}

.step-item {
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
    position: relative;
}

.step-item:last-child { margin-bottom: 0; }

.step-item::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 28px;
    width: 1.5px;
    height: calc(100% - 4px);
    background: rgba(255,255,255,0.025);
}

.step-item:last-child::before { display: none; }

.step-number {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    background: rgba(255,221,87,0.08);
    border: 2px solid rgba(255,221,87,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffdd57;
    font-weight: 700;
    font-size: 12px;
    margin-top: 1px;
}

.step-content {
    flex: 1;
    min-width: 0;
}

.step-content h3 {
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 3px;
    line-height: 1.4;
}

.step-content p {
    color: #999;
    font-size: 11px;
    line-height: 1.5;
    margin-bottom: 8px;
}

/* ============================================================
   MOCK TRADE WINDOW
   ============================================================ */

.mock-trade-window {
    background: #0d1520;
    border-radius: 5px;
    border: 1px solid rgba(255,255,255,0.06);
    padding: 8px;
}

.mock-trade-header {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    padding-bottom: 5px;
    margin-bottom: 6px;
}

.mock-tab {
    font-size: 8px;
    color: #555;
    padding-bottom: 3px;
}

.mock-tab.active {
    color: #fff;
    border-bottom: 1.5px solid #66c0f4;
}

.mock-trade-body {
    display: flex;
    gap: 6px;
}

.mock-trade-side {
    flex: 1;
    background: #141e2a;
    border-radius: 3px;
    padding: 5px;
    min-height: 85px;
}

.mock-side-label {
    font-size: 7px;
    color: #444;
    margin-bottom: 3px;
}

.mock-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
}

.mock-item {
    aspect-ratio: 1;
    background: #0d1520;
    border-radius: 2px;
    border: 1px solid rgba(255,255,255,0.03);
}

.mock-item.rare    { background: #2a1a0a; border-color: rgba(207,106,50,0.25); }
.mock-item.gen     { background: #0a1a0a; border-color: rgba(77,116,85,0.25); }
.mock-item.vin     { background: #0a0a1a; border-color: rgba(71,98,145,0.25); }
.mock-item.selected { box-shadow: 0 0 0 1px rgba(255,221,87,0.35); }

.mock-btn {
    margin-top: 5px;
    text-align: right;
}

.mock-btn span {
    display: inline-block;
    background: #66c0f4;
    color: #0f1922;
    font-size: 7px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 2px;
}

/* ============================================================
   MOCK MOBILE PHONE
   ============================================================ */

.mock-mobile {
    display: flex;
    justify-content: center;
    padding: 8px;
}

.mock-phone {
    width: 145px;
    background: #000;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
}

.mock-phone-header {
    display: flex;
    justify-content: space-between;
    padding: 5px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.mock-phone-time {
    font-size: 8px;
    color: #fff;
}

.mock-phone-body { padding: 8px; }

.mock-phone-user {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 6px;
}

.mock-avatar {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9333ea, #ec4899);
}

.mock-phone-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    margin-bottom: 6px;
}

.mock-phone-item {
    aspect-ratio: 1;
    background: #141e2a;
    border-radius: 2px;
    border: 1px solid rgba(255,255,255,0.04);
}

.mock-phone-btn {
    background: #66c0f4;
    color: #0f1922;
    text-align: center;
    font-size: 8px;
    font-weight: 700;
    padding: 5px;
    border-radius: 2px;
    margin-bottom: 3px;
}

.mock-phone-btn.secondary {
    background: #2a2d35;
    color: #777;
}

/* ============================================================
   SUCCESS STATE
   ============================================================ */

.mock-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
}

.success-circle {
    width: 70px; height: 70px;
    background: rgba(74,222,128,0.08);
    border: 2px solid rgba(74,222,128,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.success-circle i {
    color: #4ade80;
    font-size: 32px;
}

.success-text {
    color: #4ade80;
    font-size: 12px;
    font-weight: 600;
}

.success-sub {
    color: #555;
    font-size: 10px;
    margin-top: 3px;
}

/* ============================================================
   VERIFICATION BUTTON
   ============================================================ */

.verification-btn-container {
    padding: 14px 22px 18px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.verification-btn {
    width: 100%;
    background: linear-gradient(135deg, #ffdd57, #f59e0b);
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    padding: 11px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 18px rgba(255,221,87,0.12);
}

.verification-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(255,221,87,0.2);
}

/* ============================================================
   MODAL
   ============================================================ */

.modal__overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal__container {
    background: rgba(15,15,25,0.98);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    box-shadow: 0 30px 100px rgba(0,0,0,0.7);
    animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.header__modal {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;           /* ← Главная правка: было center, стало flex-start */
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.header__modal-title {
    color: #ffdd57;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1.3;
    margin-top: 2px;                   /* небольшая подгонка, чтобы текст не прилипал */
}

.header__modal-close {
    color: #666;
    font-size: 22px;
    font-weight: 300;
    cursor: pointer;
    width: 28px; 
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
    line-height: 1;
    padding-bottom: 2px;
    flex-shrink: 0;                    /* чтобы кнопка не сжималась */
}

.header__modal-close:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.body__modal { 
    padding: 22px 18px; 
}

/* ============================================================
   SPINNER
   ============================================================ */

.spinner-minimal {
    position: relative;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
}

.spinner-ring {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #ffdd57;
    animation: spin 1s linear infinite;
}

.spinner-ring:nth-child(2) {
    width: 68%; height: 68%;
    top: 16%; left: 16%;
    border-top-color: #ffdd57;
    animation-direction: reverse;
    animation-duration: 0.8s;
}

.spinner-dot {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 7px; height: 7px;
    background: #ffdd57;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes pulse {
    0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50%       { opacity: 0.5; transform: translate(-50%, -50%) scale(0.8); }
}

.loading-text {
    color: #ffdd57;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* ============================================================
   MODAL STATUS CONTENT
   ============================================================ */

.status__modal__title {
    text-align: center;
    color: #ffdd57;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
}

.status__items__container {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 14px;
}

.status__check__row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    background: rgba(255,255,255,0.015);
    border: 1px solid rgba(255,255,255,0.035);
    border-radius: 7px;
    transition: all 0.2s;
}

.status__check__row:hover { background: rgba(255,255,255,0.03); }

.status__check__row.warning {
    background: rgba(255,221,87,0.025);
    border-color: rgba(255,221,87,0.08);
}

.status__check__icon {
    width: 16px; height: 16px;
    flex-shrink: 0;
}

.status__check__label {
    flex: 1;
    color: #bbb;
    font-size: 11px;
}

.status__check__badge {
    font-size: 9.5px;
    font-weight: 600;
    padding: 2.5px 9px;
    border-radius: 20px;
    flex-shrink: 0;
}

.status__green {
    background: rgba(74,222,128,0.08);
    color: #4ade80;
    border: 1px solid rgba(74,222,128,0.12);
}

.status__yellow {
    background: rgba(255,221,87,0.08);
    color: #ffdd57;
    border: 1px solid rgba(255,221,87,0.12);
}

.status__more__link {
    color: #ffdd57;
    font-size: 9.5px;
    text-decoration: underline;
    text-underline-offset: 2px;
    margin-left: 3px;
    flex-shrink: 0;
}

.status__bottom__text {
    text-align: center;
    color: #555;
    font-size: 9.5px;
    line-height: 1.5;
}

.status__bottom__text b { color: #ffdd57; }