/* NVUTI Casino - Exact Design Match */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #e0e8f3 !important;
    color: #495463;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Topbar - Темно-синяя полоса с NVUTI */
.topbar-wrap {
    background: #253992;
    padding-top: 0;
}

.topbar {
    padding: 8px 0;
}

.topbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.topbar-content {
    position: relative;
}

.desktop-nav {
    cursor: pointer;
    font-weight: 600;
    padding: 5px;
    color: #fff;
    font-size: 25px;
    text-align: center;
    margin: 0;
}

/* Navbar - Белая полоса навигации */
.navbar {
    background: #fff;
    padding: 12px 0;
    border-bottom: 1px solid #e0e8f3;
}

.navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.navbar-innr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
    align-items: center;
}

.navbar-menu li {
    margin: 0;
}

.navbar-menu li a {
    color: #495463;
    text-decoration: none;
    padding: 8px 0;
    font-size: 14px;
    transition: all 0.3s;
    position: relative;
    font-weight: 400;
}

.navbar-menu li.active a {
    color: #2c80ff;
}

.navbar-menu li.active a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #2c80ff;
}

.navbar-menu li a:hover {
    color: #2c80ff;
}

.navbar-btns {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.navbar-btns li {
    margin: 0;
}

.btn-vk-nav {
    background: #fff !important;
    border: 1px solid #d2dde9 !important;
    color: #495463 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
}

.btn-vk-nav:hover {
    background: #f8f9fa !important;
    border-color: #b1becc !important;
    color: #495463 !important;
}

.btn-vk-nav .fab.fa-vk {
    color: #3b5998;
    font-size: 18px;
    margin: 0;
    flex-shrink: 0;
}

.btn-vk-nav span {
    color: #495463;
    font-weight: 400;
}

/* Registration Form Styles */
#registerBlock .input-item input[type="text"],
#registerBlock .input-item input[type="password"] {
    transition: all 0.3s;
}

#registerBlock .input-item input[type="text"]:focus,
#registerBlock .input-item input[type="password"]:focus {
    outline: none;
    border-color: #2c80ff;
    box-shadow: 0 0 0 3px rgba(44, 128, 255, 0.1);
}

#registerBlock #butRegister:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 128, 255, 0.4);
}

#registerBlock #butRegister:active {
    transform: translateY(0);
}

#registerBlock label[for="CheckBox_9"] a {
    transition: color 0.3s;
}

#registerBlock label[for="CheckBox_9"] a:hover {
    color: #1e5fd9;
}

/* Page Content */
.page-content {
    padding: 20px 0;
    min-height: calc(100vh - 120px);
    background: #e0e8f3;
}

.page-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
    flex-direction: row;
}

.row > * {
    padding-left: 15px;
    padding-right: 15px;
}

.col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
    order: 1;
}

.col-lg-9 {
    flex: 0 0 75%;
    max-width: 75%;
    order: 2;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.aside {
    margin-bottom: 20px;
}

/* Cards */
.content-area.card {
    background: #fff !important;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    overflow: hidden;
}

.content-area.card.user-profile-card {
    background-image: linear-gradient(45deg, #1c65c9 0%, #2c80ff 100%) !important;
    background: linear-gradient(45deg, #1c65c9 0%, #2c80ff 100%) !important;
    color: #fff !important;
    box-shadow: 0 2px 10px rgba(44, 128, 255, 0.3);
}

.content-area.card.user-profile-card .card-innr {
    background: transparent !important;
    color: #fff !important;
}

.card-innr {
    padding: 25px;
}

.card-head {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e8f3;
}

.card-title {
    font-size: 1.3em;
    font-weight: 400;
    color: #253992;
    margin: 0;
}

/* Inputs */
.input-item {
    margin-bottom: 15px;
}

.input-bordered {
    border-radius: 4px;
    border: 1px solid #d2dde9;
    width: 100%;
    padding: 10px 15px;
    line-height: 20px;
    font-size: 14px;
    color: rgb(70, 84, 100);
    transition: all 0.4s;
    background: #fff;
}

.input-bordered::-webkit-input-placeholder {
    color: #758698;
}

.input-bordered::-moz-placeholder {
    color: #758698;
}

.input-bordered:-ms-input-placeholder {
    color: #758698;
}

.input-bordered:-moz-placeholder {
    color: #758698;
}

.input-bordered:focus {
    box-shadow: none;
    outline: none;
    border-color: #b1becc;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    text-align: center;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-primary {
    background: #2c80ff;
    color: #fff;
    box-shadow: 0 5px 23px 0 rgba(0, 125, 255, 0.3);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: #005fee;
    color: #fff;
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-danger {
    background: #dc3545;
    color: #fff;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 18px;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

.btn-outline {
    background: transparent;
    border: 1px solid;
}

.btn-outline.btn-light {
    border-color: #fff;
    color: #fff;
}

.btn-outline.btn-light:hover {
    background: rgba(255,255,255,0.1);
}

.btn-outline.btn-dark {
    border-color: #333;
    color: #333;
}

.btn-vk {
    background: #fff !important;
    border: 1px solid #d2dde9 !important;
    color: #495463 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    padding: 10px 15px;
    text-decoration: none;
}

.btn-vk:hover {
    background: #f8f9fa !important;
    border-color: #b1becc !important;
    color: #495463 !important;
}

.btn-vk .fab.fa-vk {
    color: #3b5998;
    font-size: 18px;
    margin-right: 0;
}

.btn-group {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.btn-group .btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 12px;
}

/* Separator */
.sap-text {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.sap-text span {
    background: #fff;
    padding: 0 10px;
    position: relative;
    z-index: 1;
    color: #758698;
}

.sap-text:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #d2dde9;
}

/* Form Note */
.form-note {
    text-align: center;
    margin-top: 15px;
    color: #495463;
}

.form-note strong {
    color: #2c80ff;
    cursor: pointer;
}

.form-note strong:hover {
    text-decoration: underline;
}

/* Gaps */
.gaps-2x {
    height: 20px;
}

/* Loader */
.loader {
    border-radius: 50%;
    width: 24px;
    height: 24px;
    margin: auto;
    font-size: 10px;
    position: static;
    text-indent: -9999em;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid #ffffff;
    transform: translateZ(0);
    animation: load8 1.1s infinite linear;
}

@keyframes load8 {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Game Section */
.game-amount-controls,
.game-percent-controls {
    margin-top: 10px;
}

.possible-win {
    text-align: center;
    margin: 30px 0;
}

.possible-win-number {
    font-size: 48px;
    font-weight: bold;
    color: #2c80ff;
    line-height: 1;
    margin-bottom: 5px;
}

.possible-win-label {
    color: #758698;
    font-size: 14px;
}

.bet-buttons {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.bet-button-wrapper {
    flex: 1;
}

.bet-range {
    font-size: 12px;
    color: #758698;
    margin-bottom: 8px;
    text-align: center;
}

.bet-button {
    width: 100%;
    padding: 10px 15px;
    background: #495463;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 400;
    transition: all 0.3s;
}

.bet-button:hover {
    background: #3d4550;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bet-button:active {
    transform: translateY(0);
}

.game-hash {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.game-hash-label {
    font-size: 14px;
    color: #495463;
    margin-bottom: 8px;
}

.game-hash-value {
    font-family: monospace;
    font-size: 12px;
    color: #495463;
    word-break: break-all;
    line-height: 1.5;
}

/* Table */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e8f3;
    font-size: 14px;
}

.table th {
    font-weight: 500;
    background: #f8f9fa;
    color: #495463;
}

.table.text-center th,
.table.text-center td {
    text-align: center;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0,0,0,.02);
}

.tnx-table th {
    background: transparent;
    color: #2c80ff;
    font-weight: 500;
    padding: 18px 12px;
    font-size: 13px;
    text-transform: uppercase;
    border-bottom: 2px solid #e0e8f3;
    opacity: 0.85;
}

.tnx-table td {
    padding: 20px 12px;
    font-size: 14px;
    border-bottom: 1px solid #e0e8f3;
    color: #495463;
    line-height: 1.6;
}

.tnx-table tbody tr {
    transition: background-color 0.2s;
}

.tnx-table tbody tr:hover {
    background-color: rgba(0,0,0,0.02);
}

.tnx-table tbody tr:last-child td {
    border-bottom: none;
}

/* Progress Bar */
.progress {
    height: 6px;
    background-color: #e0e8f3;
    border-radius: 3px;
    overflow: hidden;
    width: 100%;
    margin: 0;
    opacity: 0.8;
}

.progress-bar {
    height: 100%;
    background-color: #dc3545;
    transition: width 0.3s ease;
    border-radius: 3px;
}

.progress-bar.bg-danger {
    background-color: #dc3545;
    opacity: 0.85;
}

.progress-bar.bg-success {
    background-color: #ffa500;
    opacity: 0.85;
}

/* Circle Online Indicator */
.circle-online {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #28a745;
    display: inline-block;
    animation: pulse-online 2s infinite;
}

@keyframes pulse-online {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.pulse-online {
    animation: pulse-online 2s infinite;
}

.card-opt {
    position: absolute;
    right: 0;
    top: 0;
}

.text-danger {
    color: #dc3545 !important;
    opacity: 0.85;
}

.text-success {
    color: #28a745 !important;
    opacity: 0.9;
}

.tnx-table .text-danger {
    color: #dc3545 !important;
    opacity: 0.75;
}

.tnx-table .text-success {
    color: #28a745 !important;
    opacity: 0.8;
}

.tnx-table td {
    color: #495463;
    opacity: 0.9;
}

.tnx-table th {
    opacity: 0.9;
}

.text-muted {
    color: #758698;
}

.text-center {
    text-align: center;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.875em;
    font-weight: 500;
}

.badge-dim {
    opacity: 0.8;
}

.badge-md {
    padding: 4px 6px;
    font-size: 12px;
}

.badge-light {
    background: #e6effb;
    color: #495463;
    border: 1px solid #d2dde9;
}

.badge-light:hover {
    background: #d4e0ef;
    opacity: 1;
}

.bg-success {
    background: #28a745;
    color: white;
}

.ms-2 {
    margin-left: 10px;
}

.mb-2 {
    margin-bottom: 10px;
}

.mb-3 {
    margin-bottom: 15px;
}

.mt-2 {
    margin-top: 10px;
}

.mt-4 {
    margin-top: 20px;
}

.my-4 {
    margin-top: 20px;
    margin-bottom: 20px;
}

.p-2 {
    padding: 10px;
}

.bg-light {
    background-color: #f8f9fa;
}

.rounded {
    border-radius: 4px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #495463;
}

.d-grid {
    display: grid;
}

.gap-2 {
    gap: 10px;
}

.w-100 {
    width: 100%;
}

/* Nav Tabs */
.nav-tabs {
    border-bottom: 1px solid #e0e8f3;
    margin-bottom: 20px;
    display: flex;
    list-style: none;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
}

.nav-tabs .nav-item {
    margin-right: 20px;
}

.nav-tabs .nav-link {
    padding: 10px 0;
    color: #495463;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.nav-tabs .nav-link.active {
    color: #2c80ff;
    border-bottom-color: #2c80ff;
}

/* Badge styles */
.badge-dim {
    opacity: 0.8;
}

.badge-md {
    padding: 4px 6px;
    font-size: 12px;
}

.badge-light {
    background: #e6effb;
    color: #495463;
    border: 1px solid #d2dde9;
    cursor: pointer;
    transition: all 0.3s;
}

.badge-light:hover {
    background: #d4e0ef;
    opacity: 1;
}

.d-sm-flex {
    display: flex;
}

.justify-content-center {
    justify-content: center;
}

.no-gutters {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.no-gutters > .col,
.no-gutters > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
}

.input-with-label {
    margin-bottom: 15px;
}

.input-item-label {
    display: block;
    margin-bottom: 8px;
    color: #495463;
    font-weight: 500;
}

.nav-tabs-line {
    border-bottom: 1px solid #e0e8f3;
}

.nav-tabs-line .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px 15px;
}

.nav-tabs-line .nav-link.active {
    border-bottom-color: #2c80ff;
    color: #2c80ff;
}

.tab-content {
    margin-top: 20px;
}

.tab-pane {
    display: none;
}

.tab-pane.active.show {
    display: block;
}

/* User Menu Styles */
.user-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-menu-item {
    display: block;
    padding: 15px 20px;
    color: #495463;
    text-decoration: none;
    border-bottom: 1px solid #e0e8f3;
    transition: all 0.3s;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
}

.user-menu-item:first-child {
    border-top: none;
}

.user-menu-item:hover {
    background: #f8f9fa;
    color: #2c80ff;
}

.user-menu-item.active {
    color: #2c80ff;
    background: #f8f9fa;
    font-weight: 500;
}

.user-menu-item-logout {
    color: #dc3545;
}

.user-menu-item-logout:hover {
    background: #fff5f5;
    color: #dc3545;
}

.user-menu-divider {
    height: 1px;
    background: #e0e8f3;
    margin: 0;
}

/* Responsive */
@media (max-width: 991px) {
    .des {
        display: none !important;
    }
    
    .mmmob {
        display: block !important;
    }
    
    .col-lg-3,
    .col-lg-9 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* На мобильных устройствах порядок сохраняется как в HTML */
    
    .bet-buttons {
        flex-direction: column;
    }
}
