/* CSS for Custom Header and User Modal */

:root {
    --modal-bg: #141620;
    --modal-panel-bg: #1e2230;
    --modal-text: #ffffff;
    --modal-text-muted: #8b96a8;
    --modal-accent: #7c4cff;
    --modal-accent-hover: #6a3eed;
    --modal-border: rgba(255, 255, 255, 0.05);
    --modal-border-light: rgba(255, 255, 255, 0.1);
}

/* =========================================
   HEADER NEW ELEMENTS
   ========================================= */

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

.top-nav-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-nav .btn-swap {
    display: flex;
    background: #1a1d29;
    border-radius: 50px;
    padding: 3px;
    border: 1px solid var(--modal-border);
}

.top-nav .one-btn-swap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    color: var(--modal-text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.top-nav .one-btn-swap:hover {
    color: var(--modal-text);
}

.top-nav .one-btn-swap.active {
    background: var(--modal-accent);
    color: #fff;
    box-shadow: 0 4px 10px rgba(124, 76, 255, 0.3);
}

.top-nav .one-btn-swap i, .top-nav .one-btn-swap svg {
    font-size: 16px;
}

/* Header Right Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.action-icon-btn {
    position: relative;
    background: #1a1d29;
    border: 1px solid var(--modal-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--modal-text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-icon-btn:hover {
    background: #252a3a;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #f44336;
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #141620;
}

.header-balance-wrap {
    display: flex;
    align-items: center;
    background: #1a1d29;
    border: 1px solid var(--modal-border);
    border-radius: 8px;
    overflow: hidden;
}

.header-balance-val {
    padding: 0 15px;
    color: var(--modal-text);
    font-weight: 700;
    font-size: 15px;
}

.header-btn-deposit {
    background: var(--modal-accent);
    color: white;
    border: none;
    padding: 10px 20px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
    border-left: 1px solid rgba(0,0,0,0.1);
}

.header-btn-deposit:hover {
    background: var(--modal-accent-hover);
}

.user-level-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c4cff, #3f18a5);
    border: 2px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(124, 76, 255, 0.4);
    transition: transform 0.2s ease;
}

.user-level-btn:hover {
    transform: scale(1.05);
}

/* =========================================
   USER SIDEBAR MODAL (OFFCANVAS)
   ========================================= */

.user-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.user-sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

.user-sidebar-modal {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    max-width: 90vw;
    height: 100vh;
    background: var(--modal-bg);
    z-index: 1001;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.user-sidebar-modal.show {
    right: 0;
}

.user-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--modal-border);
}

.us-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.us-header-left .action-icon-btn {
    width: 35px;
    height: 35px;
}

.us-user-info {
    text-align: right;
    line-height: 1.2;
}

.us-user-greeting {
    font-size: 12px;
    color: var(--modal-text-muted);
}

.us-user-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--modal-text);
    text-transform: uppercase;
}

.us-user-id {
    font-size: 11px;
    color: var(--modal-text-muted);
}

.us-close-btn {
    background: transparent;
    border: none;
    color: var(--modal-text-muted);
    font-size: 20px;
    cursor: pointer;
    margin-left: 10px;
}

.us-close-btn:hover {
    color: var(--modal-text);
}

.user-sidebar-content {
    padding: 20px;
    flex: 1;
}

/* Balance Box */
.us-balance-box {
    margin-bottom: 20px;
}

.us-balance-title {
    font-size: 12px;
    color: var(--modal-text-muted);
    margin-bottom: 5px;
}

.us-balance-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.us-balance-amount {
    font-size: 24px;
    font-weight: 800;
    color: var(--modal-text);
}

.us-balance-actions {
    display: flex;
    gap: 10px;
}

.us-btn-small {
    background: var(--modal-panel-bg);
    border: 1px solid var(--modal-border);
    color: var(--modal-text);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.us-btn-small:hover {
    background: rgba(255,255,255,0.1);
}

/* Balance Items */
.us-balance-list {
    background: var(--modal-panel-bg);
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 20px;
}

.us-balance-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid var(--modal-border-light);
}

.us-balance-item:last-child {
    border-bottom: none;
}

.us-b-icon {
    width: 20px;
    text-align: center;
    margin-right: 15px;
    font-size: 14px;
}

.us-b-val {
    font-weight: 700;
    color: var(--modal-text);
    margin-right: 5px;
}

.us-b-label {
    color: var(--modal-text-muted);
    font-size: 13px;
}

/* Action Buttons */
.us-main-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.us-btn-action {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s;
}

.us-btn-action:hover {
    opacity: 0.8;
}

.us-btn-withdraw {
    background: transparent;
    border: 1px solid var(--modal-accent);
    color: var(--modal-accent);
}

.us-btn-deposit {
    background: var(--modal-accent);
    border: 1px solid var(--modal-accent);
    color: white;
}

/* Panda+ Banner */
.us-level-banner {
    background: linear-gradient(135deg, #1f173b, #110d21);
    border: 1px solid #3f2b7a;
    border-radius: 16px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.us-level-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.us-level-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e67e22, #d35400);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    border: 2px solid #fff;
}

.us-level-info {
    z-index: 2;
}
.us-level-title {
    font-size: 18px;
    font-weight: 800;
    color: white;
    font-style: italic;
    letter-spacing: 1px;
}
.us-level-subtitle {
    font-size: 14px;
    color: #e67e22;
    font-weight: 700;
}

.us-level-link {
    color: white;
    font-size: 12px;
    text-decoration: none;
    font-weight: bold;
    z-index: 2;
}

/* Menu List */
.us-menu-group {
    margin-bottom: 20px;
}

.us-menu-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--modal-text);
    margin-bottom: 10px;
    padding-left: 5px;
}

.us-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.us-menu-list li {
    margin-bottom: 5px;
}

.us-menu-list a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    color: var(--modal-text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.us-menu-list a:hover {
    background: var(--modal-panel-bg);
    color: var(--modal-text);
}

.us-menu-list a i {
    width: 20px;
    text-align: center;
    font-size: 18px;
}

@media(max-width: 768px) {
    .header-actions .action-icon-btn {
        display: none;
    }
}
