
/* Main Global Styles */
body {
    background-color: #000;
    color: #fff;
    font-family: 'Work Sans', sans-serif;
    padding-top: 93px;
    margin: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #fff;
    margin-top: 0;
}

/* Links */
a {
    color: #c37601;
    text-decoration: none;
    transition: all 0.3s ease;
}
a:hover, a:focus {
    color: #fff;
    text-decoration: none;
}

/* Buttons */
.btn {
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
}
.btn-custom {
    background: #c37601;
    color: #000;
    border: none;
}
.btn-custom:hover {
    background: #e5a700;
    color: #000;
}

/* Header Styles (Consolidated from inline) */
.custom-navbar {
    background-color: #000;
    border-bottom: 1px solid #c37601;
    height: 93px;
    margin-bottom: 0;
    border-radius: 0;
    display: block;
    padding: 0;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}

.navmain {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 93px;
    width: 100%;
    background: #000;
    padding: 0 15px;
    margin: 0 auto;
}

/* Navbar Content */
.navbar-left-content, .navbar-right-content {
    display: flex;
    align-items: center;
}
.navbar-right-content {
    gap: 15px;
}

.navbar-brand {
    padding: 0;
    height: 93px;
    display: flex;
    align-items: center;
}
.navbar-brand img {
    height: 60px;
}

/* Header Components */
.header-search .completer-input {
    background: #181818;
    border: 1px solid #c37601;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    width: 250px;
    height: 30px;
}

.lang-select-wrapper {
    position: relative;
}
.lang-select-wrapper select {
    background: #000;
    color: #fff;
    border: 1px solid #c37601;
    padding: 5px 25px 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    appearance: none;
    -webkit-appearance: none;
    text-transform: uppercase;
    height: 30px;
}
.lang-select-wrapper .fa-caret-down {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #c37601;
    pointer-events: none;
}

/* Header Buttons */
.apkButton, .loginbtn {
    background: #333;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 0 15px;
    border-radius: 4px;
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 36px;
    border: none;
}
.apkButton {
    background: #333;
}
.loginbtn {
    background: #c37601;
    border: 1px solid #c37601;
}
.loginbtn.sigUpd1casino {
    background: #c37601;
    border: 1px solid #c37601;
}
.apkButton:hover {
    background: #444;
    color: #fff;
}
.loginbtn:hover {
    color: #fff;
    opacity: 0.9;
}

/* User Info */
.user-info-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}
.user-details {
    text-align: right;
    line-height: 1.2;
}
.username {
    color: #fff;
    font-weight: 700;
    font-size: 13px;
}
.balance {
    color: #c37601;
    font-weight: 700;
    font-size: 13px;
}
.balance span {
    color: #fff;
}
.logout-btn {
    height: 30px;
    line-height: 16px;
    font-size: 12px;
    background: #333;
    color: #fff;
    border: 1px solid #c37601;
    padding: 0 10px;
}

/* Mobile Responsive Styles */
@media (max-width: 982px) {
    .header-search, .lang-box { display: none; }
    .navbar-brand img { height: 40px; }
    .navmain { padding: 0 10px; }
}

@media (max-width: 767px) {
    .custom-navbar { height: 60px; }
    .navmain { height: 60px; padding: 0 5px; }
    body { padding-top: 60px; }
    
    .navbar-brand img { 
        height: 40px; 
        width: 114px; 
        object-fit: contain; 
        object-position: left; 
    }
    
    /* Show APK on mobile */
    .apk-box { 
        display: flex !important; 
        position: relative;
        margin-right: 8px;
    }
    
    /* Separator line */
    .apk-box::after {
        content: "";
        position: absolute;
        right: -8px;
        top: 50%;
        transform: translateY(-50%);
        height: 20px;
        width: 1px;
        background-color: #fff;
        opacity: 0.5;
    }

    .apkButton {
        width: 60px;
        height: 33px;
        font-size: 9px;
        padding: 0;
    }
    
    .loginbtn {
        width: 64px;
        height: 34px;
        font-size: 10px;
        padding: 0;
    }
    
    .loginbtn.sigUpd1casino {
        width: 65px;
        height: 34px;
    }
    
    .navbar-right-content {
        gap: 5px;
    }
    
    /* User Info on Mobile */
    .user-details .username, 
    .user-details .balance { font-size: 11px; }
    .logout-btn { height: 24px; line-height: 12px; font-size: 10px; }
    .user-info-wrapper { gap: 8px; }
}

@media (max-width: 991px) {
    .secondary-nav-container {
        overflow: hidden;
    }
    .secondary-nav-inner {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .secondary-nav-list {
        white-space: nowrap;
        gap: 18px !important;
        justify-content: flex-start !important;
    }
    .secondary-nav-list li {
        flex: 0 0 auto !important;
    }
    .secondary-nav-list a {
        padding: 0 10px !important;
    }
}

@media (max-width: 767px) {
    .modal-dialog {
        width: auto !important;
        max-width: 95vw !important;
        margin: 10vh auto !important;
    }
    .user-popup-container {
        width: 100% !important;
        max-width: 420px;
    }
}

.mk-account-page {
    background: #f1f1f1;
    min-height: calc(100vh - 56px);
}

.mk-account-mode {
    padding-top: 56px !important;
}

.mk-account-mode .secondary-nav-container {
    display: none !important;
}

.mk-account-mode .custom-navbar,
.mk-account-mode .navmain,
.mk-account-mode .navbar-brand {
    height: 56px !important;
}

.mk-account-mode .navbar-brand img {
    height: 40px !important;
}

.mk-account-mode .navmain {
    padding: 0 12px !important;
}

.mk-account-mode .header-search .completer-input {
    height: 28px !important;
}

.mk-account-layout {
    display: flex;
    min-height: calc(100vh - 56px);
}

.mk-account-sidebar {
    width: 260px;
    background: #000;
    border-right: 1px solid rgba(195,118,1,0.45);
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
}

.mk-side-title {
    padding: 14px 14px 10px;
    font-weight: 900;
    letter-spacing: 0.8px;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.10);
}

.mk-side-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1 1 auto;
}

.mk-side-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.3px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    height: 44px;
    position: relative;
    overflow: hidden;
}

.mk-side-menu li a i {
    width: 16px;
    text-align: center;
    color: #c37601;
}

.mk-side-menu li.active a {
    background: #c37601;
    color: #000;
}

.mk-side-menu li.active a::after {
    content: "›";
    margin-left: auto;
    font-size: 18px;
    line-height: 1;
}

.mk-side-menu li.active a i {
    color: #000;
}

.mk-side-menu li a:hover {
    background: #c37601;
    color: #000;
}

.mk-side-menu li a:hover i {
    color: #000;
}

.mk-side-menu li a::before {
    content: "";
    position: absolute;
    left: -60%;
    top: -50%;
    width: 40%;
    height: 200%;
    background: rgba(255, 255, 255, 0.55);
    transform: skewX(-20deg);
    opacity: 0;
    pointer-events: none;
}

.mk-side-menu li a.mk-shine::before {
    animation: mkShine 420ms ease-out;
}

@keyframes mkShine {
    0% { left: -60%; opacity: 0; }
    15% { opacity: 0.35; }
    100% { left: 130%; opacity: 0; }
}

.mk-account-content {
    flex: 1 1 auto;
    padding: 16px;
    overflow: hidden;
}

.mk-account-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.mk-account-alert {
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-weight: 800;
}

.mk-account-alert.ok {
    background: rgba(40, 167, 69, 0.18);
    border: 1px solid rgba(40, 167, 69, 0.35);
    color: #137333;
}

.mk-account-alert.err {
    background: rgba(220, 53, 69, 0.18);
    border: 1px solid rgba(220, 53, 69, 0.35);
    color: #b00020;
}

.mk-account-grid {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.mk-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.10);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    flex: 1 1 420px;
}

.mk-card-head {
    background: #000;
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.4px;
    padding: 12px 14px;
}

.mk-card-body {
    padding: 14px;
    color: #111;
}

.mk-card-body label {
    color: #222;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.3px;
}

.mk-card-body .form-control {
    border-radius: 4px;
    height: 40px;
    border: 1px solid rgba(0,0,0,0.25);
    box-shadow: none;
}

.mk-card-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 6px;
}

.mk-card-actions .btn-warning {
    background: #c37601;
    border-color: #c37601;
    color: #000;
    font-weight: 900;
    letter-spacing: 0.4px;
}

.mk-card-actions .btn-warning:hover {
    filter: brightness(1.05);
}

@media (max-width: 991px) {
    .mk-account-layout {
        flex-direction: column;
    }
    .mk-account-sidebar {
        width: 100%;
    }
    .mk-side-menu {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .mk-side-menu li {
        flex: 0 0 auto;
    }
    .mk-side-menu li a {
        border-bottom: 0;
        border-right: 1px solid rgba(255,255,255,0.06);
        white-space: nowrap;
    }
    .mk-account-content {
        padding: 12px;
    }
}

.mk-profile-modal .modal-content {
    background: #0b0b0b;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    color: #fff;
}

.mk-profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
}

.mk-profile-title {
    font-weight: 900;
    letter-spacing: 0.6px;
}

.mk-profile-close {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    padding: 0 4px;
}

.mk-profile-body {
    padding: 14px 16px 18px;
}

.mk-profile-alert {
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.mk-profile-alert.mk-ok {
    background: rgba(40, 167, 69, 0.18);
    border: 1px solid rgba(40, 167, 69, 0.35);
    color: #d7ffe0;
}

.mk-profile-alert.mk-err {
    background: rgba(220, 53, 69, 0.18);
    border: 1px solid rgba(220, 53, 69, 0.35);
    color: #ffd7db;
}

.mk-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.mk-panel {
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
}

.mk-panel-head {
    padding: 10px 12px;
    background: rgba(195,118,1,0.14);
    color: #c37601;
    font-weight: 900;
    letter-spacing: 0.4px;
}

.mk-panel-body {
    padding: 12px;
}

.mk-form-row {
    margin-bottom: 10px;
}

.mk-label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: rgba(255,255,255,0.82);
    margin-bottom: 6px;
}

.mk-input {
    width: 100%;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(0,0,0,0.35);
    color: #fff;
    padding: 0 12px;
    outline: none;
}

.mk-input:disabled {
    opacity: 0.8;
}

.mk-actions {
    margin-top: 12px;
}

.mk-primary-btn {
    width: 100%;
    height: 42px;
    border-radius: 10px;
    border: 0;
    background: #c37601;
    color: #000;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.mk-primary-btn:hover {
    filter: brightness(1.05);
}

@media (max-width: 767px) {
    .mk-profile-grid {
        grid-template-columns: 1fr;
    }
}

.mk-deposit-method {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    margin-bottom: 10px;
}

.mk-deposit-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(195,118,1,0.15);
    color: #c37601;
    flex: 0 0 auto;
    font-size: 18px;
}

.mk-deposit-main {
    flex: 1 1 auto;
    min-width: 0;
}

.mk-deposit-title {
    font-weight: 800;
    letter-spacing: 0.4px;
}

.mk-deposit-sub {
    opacity: 0.75;
    font-size: 12px;
    margin-top: 2px;
}

.mk-deposit-kv {
    display: flex;
    gap: 10px;
    margin-top: 6px;
    align-items: baseline;
}

.mk-deposit-kv .mk-k {
    width: 52px;
    opacity: 0.7;
    font-size: 11px;
    letter-spacing: 0.4px;
    flex: 0 0 auto;
}

.mk-deposit-kv .mk-v {
    font-weight: 700;
    word-break: break-word;
}

.mk-deposit-note {
    margin-top: 8px;
    opacity: 0.85;
    font-size: 12px;
    line-height: 1.35;
}

.mk-deposit-qr {
    flex: 0 0 auto;
    width: 92px;
    height: 92px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.14);
    background: #fff;
}

.mk-deposit-qr img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 767px) {
    .mk-deposit-method {
        padding: 10px;
        gap: 10px;
    }
    .mk-deposit-qr {
        width: 74px;
        height: 74px;
    }
}
