
.navbar {
    position: fixed !important; 
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    min-height: 50px !important;
    height: 50px !important;
    max-height: 50px !important;
    border-radius: 0 !important;
    border-top: 0 !important;
    margin-bottom: 0 !important;
    z-index: 1030 !important;
    background-color: #151515 !important;
    border-color: #121212 !important;
}

.navbar-nav > li > a .caret {
    color: #999 !important;
    border-top-color: #999 !important;
}

.navbar-header, .navbar-nav > li > a, .navbar-brand {
    height: 50px !important;
    line-height: 20px !important;
}

.navbar-nav > li > a {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    color: #616161 !important;
}

.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus {
    color: #f8f8f8 !important;
    background-color: transparent !important;
}

.navbar-brand {
    padding: 15px 15px !important;
    color: #777 !important;
}

.navbar-brand:hover,
.navbar-brand:focus {
    color: #999 !important;
}

.navbar-brand > img {
    -webkit-filter: brightness(130%) !important;
    filter: brightness(130%) !important;
}

.navbar-nav > li > a > img, .navbar-nav .rounded {
    height: 30px !important;
    width: auto !important;
    margin-top: -5px !important;
    display: inline-block !important;
    border-radius: 4px;
}

.navbar-nav .rounded, .navbar-nav img {
    max-height: 34px; 
    margin-top: -7px;
}

/* ================================================================
   MOBILE HAMBURGER BUTTON - CIEMNY MOTYW
   ================================================================ */

.navbar-toggle {
    display: none; /* Ukryty domyślnie */
    position: relative;
    float: right;
    margin-right: 10px;
    margin-top: 12px;
    padding: 6px 8px;
    background-color: transparent !important;
    border: 1px solid #121212 !important;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.navbar-toggle:hover {
    background-color: #1e1e1e !important;
}

.navbar-toggle:active {
    background-color: #2a2a2a !important;
}

.navbar-toggle .icon-bar {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 1px;
    background-color: #888 !important;
    margin-top: 3px;
}

.navbar-toggle .icon-bar:first-child {
    margin-top: 0;
}

/* ================================================================
   MOBILE MENU PANEL - CIEMNY MOTYW
   ================================================================ */

.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: linear-gradient(to bottom, #1e1e1e 0%, #151515 100%) !important;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.6) !important;
    z-index: 10000;
    overflow-y: auto;
    transition: right 0.3s ease-in-out;
    -webkit-overflow-scrolling: touch;
    display: none; /* Ukryty domyślnie */
    border-left: 1px solid #121212 !important;
}

.mobile-menu-panel.active {
    right: 0;
}

/* Scrollbar dla menu */
.mobile-menu-panel::-webkit-scrollbar {
    width: 8px;
    background-color: #111;
}

.mobile-menu-panel::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    border-radius: 10px;
    background-color: #111;
}

.mobile-menu-panel::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
    background-color: #555;
}

.mobile-menu-panel::-webkit-scrollbar-thumb:hover {
    background-color: #777;
}

/* ================================================================
   MOBILE MENU HEADER - CIEMNY MOTYW
   ================================================================ */

.mobile-menu-header {
    background: linear-gradient(135deg, #c9302c 0%, #ac2925 100%) !important;
    padding: 15px;
    position: relative;
    color: white !important;
}

.mobile-menu-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15) !important;
    border: none;
    border-radius: 50%;
    color: white !important;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: rotate(90deg);
}

.mobile-user-info {
    display: flex;
    align-items: center;
    margin-top: 35px;
    padding: 10px 0;
}

.mobile-user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    margin-right: 12px;
}

.mobile-user-details {
    flex: 1;
}

.mobile-user-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    color: #fff !important;
}

.mobile-user-balance {
    font-size: 13px;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9) !important;
}

.balance-amount {
    font-weight: bold;
    color: #fff !important;
}

/* ================================================================
   MOBILE MENU CONTENT - CIEMNY MOTYW
   ================================================================ */

.mobile-menu-content {
    padding: 0;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-list li {
    border-bottom: 1px solid #121212 !important;
}

.mobile-menu-list li a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #999 !important;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 15px;
    background-color: transparent !important;
}

.mobile-menu-list li a:hover {
    background-color: #2a2a2a !important;
    color: #fff !important;
    padding-left: 25px;
}

.mobile-menu-list li a:active {
    background-color: #333 !important;
}

.mobile-menu-list li a i {
    width: 24px;
    text-align: center;
    margin-right: 12px;
    font-size: 16px;
    color: #7c7c7c !important;
}

.mobile-menu-list li a:hover i {
    color: #fff !important;
}

.mobile-menu-list li a span {
    flex: 1;
}

/* ================================================================
   MOBILE MENU SECTIONS - CIEMNY MOTYW
   ================================================================ */

.mobile-menu-section-title {
    padding: 12px 20px 8px 20px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #656565 !important;
    background-color: #111 !important;
    border-bottom: 1px solid #121212 !important;
}

/* Highlight items (np. deposit) */
.mobile-menu-highlight a {
    background: linear-gradient(to right, #2a2210 0%, #332a15 100%) !important;
    color: #f0ad4e !important;
    font-weight: bold;
}

.mobile-menu-highlight a:hover {
    background: linear-gradient(to right, #362d15 0%, #3d331a 100%) !important;
    color: #f0ad4e !important;
}

.mobile-menu-highlight a i {
    color: #f0ad4e !important;
}

/* Admin items */
.mobile-menu-admin a {
    background-color: #2a1515 !important;
    color: #d9534f !important;
    font-weight: bold;
}

.mobile-menu-admin a:hover {
    background-color: #331a1a !important;
    color: #c9302c !important;
}

.mobile-menu-admin a i {
    color: #d9534f !important;
}

/* Login button */
.mobile-menu-login a {
    background: linear-gradient(135deg, #449d44 0%, #398439 100%) !important;
    color: white !important;
    font-weight: bold;
    justify-content: center;
}

.mobile-menu-login a:hover {
    background: linear-gradient(135deg, #398439 0%, #255625 100%) !important;
}

.mobile-menu-login a i {
    color: white !important;
}

/* Logout button */
.mobile-menu-logout a {
    color: #c9302c !important;
}

.mobile-menu-logout a:hover {
    background-color: #2a1515 !important;
    color: #d9534f !important;
}

.mobile-menu-logout a i {
    color: #c9302c !important;
}

.mobile-menu-logout a:hover i {
    color: #d9534f !important;
}

/* Divider */
.mobile-menu-divider {
    height: 8px;
    background-color: #0a0a0a !important;
    border: none;
}

/* ================================================================
   MOBILE MENU FOOTER - CIEMNY MOTYW
   ================================================================ */

.mobile-menu-footer {
    padding: 20px;
    text-align: center;
    background-color: #111 !important;
    border-top: 1px solid #121212 !important;
}

.mobile-menu-social {
    margin-bottom: 12px;
}

.mobile-menu-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    margin: 0 5px;
    background-color: #1e1e1e !important;
    border: 1px solid #121212 !important;
    border-radius: 50%;
    color: #7c7c7c !important;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-menu-social a:hover {
    background-color: #c9302c !important;
    border-color: #c9302c !important;
    color: white !important;
    transform: scale(1.1);
}

.mobile-menu-social a:active {
    background-color: #ac2925 !important;
    transform: scale(1.05);
}

.mobile-menu-copyright {
    font-size: 11px;
    color: #656565 !important;
}

/* ================================================================
   MOBILE MENU OVERLAY - CIEMNY MOTYW
   ================================================================ */

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75) !important;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: none; /* Ukryty domyślnie */
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ================================================================
   MEDIA QUERIES - Włączenie funkcji mobile
   ================================================================ */

@media (min-width: 1200px) {
    /* Na desktopie mobile elementy są całkowicie ukryte */
    .navbar-toggle,
    .mobile-menu-panel,
    .mobile-menu-overlay {
        display: none !important;
    }
    
    /* Desktop navbar działa normalnie */
    #navbar.navbar-collapse {
        display: block !important;
    }
    
    /* Desktop navbar colors */
    .navbar-nav > .active > a,
    .navbar-nav > .active > a:hover,
    .navbar-nav > .active > a:focus {
        color: #f8f8f8 !important;
        background-color: #1e1e1e !important;
    }
}

@media (max-width: 1199px) {
    /* Pokazujemy hamburger i panel */
    .navbar-toggle {
        display: block !important;
    }
    .mobile-menu-panel,
    .mobile-menu-overlay {
        display: block !important;
    }
    /* Ukryj desktop menu */
    #navbar.navbar-collapse {
        display: none !important;
    }
    
    .navbar > .container-fluid {
        display: block !important;
        position: relative;
        padding: 0 !important;
        max-width: 100% !important;
    }
    
    .navbar-header {
        position: relative !important;
        width: 100% !important;
        display: block !important;
        height: 50px !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .navbar-brand {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        height: auto !important;
        line-height: normal !important;
    }
    
    #mobileMenuToggle {
        display: block !important;
        position: absolute !important;
        right: 15px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin: 0 !important;
        float: none !important;
    }
}

/* Small mobile optimizations */
@media (max-width: 480px) {
    .mobile-menu-panel {
        width: 90%;
        max-width: 280px;
    }
    
    .mobile-user-avatar {
        width: 42px;
        height: 42px;
    }
    
    .mobile-menu-list li a {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .mobile-menu-section-title {
        padding: 10px 15px 6px 15px;
        font-size: 10px;
    }
}


/* Touch targets */
@media (max-width: 1199px) {
    .mobile-menu-list li a {
        min-height: 48px;
    }
    
    .navbar-toggle {
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
    }
    
    .mobile-menu-close {
        min-width: 44px;
        min-height: 44px;
    }
}

/* ================================================================
   ACCESSIBILITY - CIEMNY MOTYW
   ================================================================ */

.navbar-toggle:focus,
.mobile-menu-close:focus,
.mobile-menu-list li a:focus {
    outline: 2px solid #449d44 !important;
    outline-offset: 2px;
}

.mobile-menu-social a:focus {
    outline: 2px solid #449d44 !important;
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .mobile-menu-panel,
    .mobile-menu-overlay,
    .navbar-toggle,
    .mobile-menu-list li a,
    .mobile-menu-close {
        transition: none !important;
    }
}

/* ================================================================
   DODATKOWE ELEMENTY NAVBAR
   ================================================================ */

/* Dropdown menu w navbar (jeśli jest) */
@media (max-width: 1199px) {
    .navbar .dropdown-menu {
        background-color: #282828 !important;
        border-color: #121212 !important;
    }
    
    .navbar .dropdown-menu > li > a {
        color: #f5f5f5 !important;
    }
    
    .navbar .dropdown-menu > li > a:hover,
    .navbar .dropdown-menu > li > a:focus {
        background-color: #1d1d1d !important;
        color: #f9f9f9 !important;
    }
    
    .navbar .dropdown-menu .divider {
        background-color: #1f1f1f !important;
    }
}

/* Badge/notyfikacje w menu */
.mobile-menu-list .badge {
    background-color: #d9534f !important;
    color: #fff !important;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
}

/* Status indicator (online/offline) */
.mobile-user-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    position: absolute;
    bottom: 2px;
    right: 2px;
}

.mobile-user-status.online {
    background-color: #449d44 !important;
}

.mobile-user-status.offline {
    background-color: #999 !important;
}

/* Level/rank indicator */
.mobile-user-level {
    display: inline-block;
    background: linear-gradient(135deg, #f0ad4e 0%, #ec971f 100%);
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
}

/* VIP badge */
.mobile-user-vip {
    display: inline-block;
    background: linear-gradient(135deg, #f0ad4e 0%, #d58512 100%);
    color: #fff;
    font-size: 9px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 3px;
    margin-left: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Nowe wiadomości indicator */
.mobile-menu-new-indicator {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: #d9534f;
    border-radius: 50%;
    animation: pulse-indicator 2s infinite;
}

@keyframes pulse-indicator {
    0%, 100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: translateY(-50%) scale(1.2);
    }
}

.xp-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: bold;
    color: #f0ad4e;
    margin-left: 6px;
    cursor: default;
    vertical-align: middle;
}

.xp-bar-wrap {
    display: inline-block;
    width: 100px;
    height: 6px;
    background: #333;
    border-radius: 3px;
    overflow: hidden;
    vertical-align: middle;
}

.xp-bar-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #f0ad4e, #ec971f);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.xp-badge-li {
    float: left !important;
    height: 50px !important;
    display: flex !important;
    align-items: center;
    padding: 0 5px !important;
}

.tooltip-inner {
    max-width: 220px;
    text-align: center;
}

/* Loading state */
.mobile-menu-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #656565 !important;
}

.mobile-menu-loading:after {
    content: "";
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 2px solid #656565;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spinner 0.8s linear infinite;
}

.mobile-xp-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 11px;
    font-weight: bold;
    color: #f0ad4e;
}

.mobile-xp-bar-wrap {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    overflow: hidden;
    max-width: 120px;
}

.mobile-xp-bar-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #f0ad4e, #ec971f);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.mobile-xp-text {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: normal;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

.rakeback-anim {
    /* To zapewnia, że tekst jest biały */
    color: #ffffff !important; 
    opacity: 1 !important;
    
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    text-decoration: #ffffff !important;
    
    /* Animacja */
    animation: goldBreath 2s ease-in-out infinite alternate;
}

/* Ikona prezentu - złota */
.rakeback-anim i {
    color: #ffd700 !important;
    margin-right: 5px;
}

@keyframes goldBreath {
    0% {
        text-shadow: 0 0 0px rgba(255, 215, 0, 0); 
        transform: scale(1);
    }
    100% {
        /* Tylko cień jest złoty, tekst zostaje biały */
        text-shadow: 0 0 10px #ffd700, 0 0 20px #ffaa00; 
        transform: scale(1.05); 
    }
}

/* Wyśrodkuj navbar i zmniejsz odstępy */
.navbar > .container-fluid {
    display: flex !important;
    justify-content: center !important;
    max-width: 1200px !important;      /* Węższy = bardziej kompaktowy */
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.navbar-collapse {
    display: flex !important;
    gap: 15px !important;              /* Mała przerwa między lewym a prawym */
}

.navbar-nav:not(.navbar-right) {
    margin-left: 15px !important;      /* Blisko logo */
    margin-right: 0 !important;
}

.navbar-nav.navbar-right {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.navbar-nav > li > a {
    padding-left: 10px !important;     /* Zmniejszone paddingi */
    padding-right: 10px !important;
}

.badge-new {
    display: inline-block;
    background: #d9534f;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
    line-height: 1;
    vertical-align: middle;
    margin-left: 4px;
    letter-spacing: 0.5px;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}