:root {
            --dark-bg: #000000;         /* Black */
            --card-bg: #1a1a1a;         /* Dark Gray */
            --primary-red: #FFD100;     /* Egyptian Red CE1126 */
            --secondary-text: #A0A0A0;
            --border-color: #333333;
            --pure-white: #FFFFFF;
        }

        html {
            touch-action: manipulation; /* Disables double-tap zoom */
            -webkit-touch-callout: none; /* Disable the iOS context menu */
            -webkit-user-select: none; /* Disable text selection */
            user-select: none;
        }
        
        /* Allow text selection in input fields and content areas */
       /* input, textarea, [contenteditable] {
            -webkit-user-select: text !important;
            user-select: text !important;
        }*/
        body {
            padding-top: env(safe-area-inset-top);
             padding-top:0rem;
             background: var(--dark-bg);
           color: var(--pure-white);
            font-family: 'Helvetica Neue', sans-serif;
            font-size: 0.8rem;
            padding-bottom: 120px;
   overscroll-behavior-y: none;
    /*overscroll-behavior-y: contain; /* يمنع السحب لتحديث */
  height: 100%;
  overflow: hidden;
 /* touch-action: pan-x pan-y;*/
 scroll-behavior: smooth;
      scrollbar-width: none;         /* Firefox */
  -ms-overflow-style: none; 
        }
 
.page-content {
            scroll-behavior: smooth;
            overflow-y: auto;
            height: 100vh;
        }

        .header {
           background: var(--dark-bg);
           border-bottom: 1px solid #ffffff;
          /* padding: calc(1rem + env(safe-area-inset-top)) 1rem 1rem;  */ 
           padding:1rem;      
           position: fixed;
            width: 100vw;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 10px rgba(0,0,0,0.3);
             transition: none !important;
        }

        .header-content {
            max-width: 800px;
            margin: 0 auto;
            position: relative;
            padding: 0 1rem;
        }

        .logo {
            height: 55px;
            width: 55px;
            object-fit: contain;
            position: absolute;
            right: 0rem;
            top: 50%;
            transform: translateY(-50%);
            border-radius: 8px;
           /* border: 0px solid var(--primary-yellow);*/
            padding: 0px;
        /*    background: var(--dark-bg);
         border: 2px solid var(--pure-white);*/
            transition: transform 0.3s ease;
        }

        .logo:hover {
            transform: translateY(-50%) scale(1.05);
        }

        .tagline {
            font-size: 1rem;
          /* color: var(--primary-red);*/
            text-align: center;
            margin-top: 0.25rem;
            letter-spacing: 0.5px;
            opacity: 0.9;
        }


.calendar-row {
  overflow-x: auto;
  overflow-y: hidden;
  background: linear-gradient(135deg, rgb(27, 25, 25), rgb(77, 60, 60));
  padding: 0.5rem;
  display: flex;
  gap: 0.3rem;
  z-index: 999;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  position: sticky;
  top: 6rem; /* fixed value */
}

.calendar-row::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}


        .day-pill {
            padding: 0.5rem 1.2rem;
            border-radius: 20px;
            background: var(--dark-bg);
            border: 1px solid var(--border-color);
            min-width: 90px;
            text-align: center;
            flex-shrink: 0;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .day-pill.active {
            color: var(--primary-red);
    border-color: var(--primary-red);
            transform: scale(1.05);
        }

        .day-pill.disabled {
            background: #2A2A2A;
            cursor: not-allowed;
            opacity: 0.5;
        }

        .day-pill.today {
           border: 2px solid var(--primary-red);
            font-weight: bold;
        }

        .day-pill.today:not(.active) {
            color: var(--primary-yellow);
            background: #2d2d2d;
        }

        .date-header.today {
         /*   border: 2px solid var(--primary-yellow);*/
            background: #2d2d2d;
        }

        .matches-list {
            max-height: 80vh;
            overflow-y: auto;
            padding: 0 1rem 100px;
            padding-bottom: 55vh;
  /*-webkit-overflow-scrolling: touch; /* For smooth scrolling on iOS */
 /*   overflow-y: auto;
   /* height: calc(100vh - 150px); /* Adjust based on your header/footer height */
   /* overscroll-behavior-y: contain;
    will-change: transform; /* Hint to browser for better performance */
        }

.matches-list-nomax {
            
            overflow-y: auto;
            padding: 0 1rem 100px;
            padding-bottom: 55vh;
  
        }


        .date-header {
          /*  background: var(--card-bg);*/
         background: linear-gradient(135deg,rgb(27, 25, 25),rgb(77, 60, 60));
        /*   background: linear-gradient(90deg, #CE1126 42%, #FFFFFF 79%, #000000 120%) !important;*/
letter-spacing: 0px;
             border: 2px solid var(--primary-red);
            padding: 1rem;
            margin: 1rem 0;
            border-radius: 8px;
            scroll-margin-top: 140px;
            font-size: 1.20em;
                font-weight: 600;
        }

        .match-card {
           /* background: var(--card-bg);*/
             background: linear-gradient(135deg,rgb(27, 25, 25),rgb(77, 60, 60));
            border-radius: 8px;
            margin: .5rem 0;
            padding: .7rem;
            padding-left: 1rem;
            border-left: 4px solid var(--primary-red);
            cursor: pointer;
            display: flex;
             flex-direction: column;
    gap: 0.5rem;
            justify-content: space-between;
            align-items: center;
             position: relative;
    z-index: 1;
        }
.match-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.match-header small {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}
        .participants-grid {
            display: grid;
           grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    padding: 5px;
    margin-bottom: 5rem;
        }
.participants-grid2 {
            display: grid;
    grid-template-columns: 1fr 1fr;      
    gap: 10px;
    width: 100%;
    padding: 5px;
    margin-bottom: 15rem;
        }
        .participant-item {
            background: var(--dark-bg);
            padding: 0.5rem;
            border-radius: 8px;
            display: flex;
            align-items: center;
            gap: .5rem;
           /* border: 1px solid var(--primary-red);*/
             border: 1px solid #ffffff;
            min-height: 70px; /* Consistent height */
        }

        

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
            padding: 0.5rem;
        }

        .stat-card {
            background: var(--dark-bg);
            padding: 1.5rem;
            border-radius: 8px;
            text-align: center;
        }

        .profile-photo-upload {
            width: 300px;
            height: 100px;
           /*border: 2px dashed var(--primary-red);*/
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            margin: 0 auto 1rem;
            background-size: cover;
            background-position: center;
        }
        
        .profile-preview {
            background: var(--card-bg);
            background: linear-gradient(135deg, rgb(27, 25, 25), rgb(77, 60, 60));
            padding-top: 1rem;
            border-radius: 8px;
            overflow: auto;
           /* margin: 1rem;*/
           
        }
#profile-photo-preview {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    display: block; }
    
 .rounded-circle {
    border-radius: 50% !important;
}   

        .hidden {
            display: none !important;
        }

        .back-btn {
            position: absolute;
            left: .4rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--pure-white);
            background: none;
            border: none;
            padding: 0;
            z-index: 1001;
            font-size: 1.7rem;
        }


    .table>:not(caption)>*>* {
    background: transparent;
 }
<!--------------------------------------------->
/* Profile Section - New Styles */
.xprofile-header-section {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                url('https://images.unsplash.com/photo-1574629810360-7efbbe195018') center/cover;
    padding: 2rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.xprofile-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.xdetail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--card-bg);
    border-radius: 8px;
    border-left: 3px solid var(--primary-red);
}

.xdetail-item i {
    font-size: 1.25rem;
    min-width: 24px;
    text-align: center;
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 209, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    color: var(--primary-red);
}

/* Hover effects - New */
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Responsive adjustments - New */
@media (min-width: 576px) {
    .profile-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* Prevent Bootstrap from messing with scroll */
body.modal-noscroll {
    overflow: auto !important;
    padding-right: 0 !important;
    position: static !important;
}

/* Completely disable Bootstrap's scroll lock */
body.modal-open {
    overflow: auto !important;
}

/* Hide backdrops properly */
.modal-backdrop {
    display: none !important;
     pointer-events: none;
    opacity: 0 !important;
}

/* Optional: Add this if modal content should scroll independently */
.modal {
    overflow-y: auto;
}


body.allow-scroll {
    overflow: auto !important;
    padding-right: 0 !important;
}

/* Fix for match-details section */
#match-details {
    overflow-anchor: none; /* Prevent browser scroll anchoring */
}


        .whatsapp-help {
             position: fixed;
              bottom: 100px;
            right: 25px;
            background: #25D366;
            color: white;
            width: 43px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            z-index: 1000;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
        }
       

.whatsapp-icon {
    font-size: 2.8rem; /* Makes icon bigger */
       width: 3rem;
  
 
}
/* Add this CSS rule */
#match-details ~ .whatsapp-help,
#chat-section ~ .whatsapp-help,
#payment-section ~ .whatsapp-help {
    display: none !important;
}

.nav-tabs {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: var(--dark-bg);
    padding: .7rem 0;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #ffffff;
    /*var(--primary-red);*/
    z-index: 1000;
    transition: transform 0.3s ease;
}

/* Modified hidden state */
.nav-tabs-hidden {
    transform: translateY(100%);
    /* Keep display: flex to maintain transition */
    display: flex !important;
}

#backButton {
    position: fixed;
    left: 1rem;
    top: 2.5rem;
    z-index: 1001;
    font-size: 1.7rem;
    color: var(--primary-red);
}

.nav-link i{
    font-size: 1.3rem;
}
/* Remove sibling selector rules */
/* This was causing conflicts with the transition */
/* #backButton:not(.hidden) ~ #nav-tabs { display: none !important; } */
/* .back-btn:not(.hidden) ~ #nav-tabs { display: none !important; } */

/* Ensure nav-tabs stay visible when needed */
#nav-tabs:not(.nav-tabs-hidden) {
    transform: translateY(0);
}


        .nav-link {
           /* color: var(--secondary-text);*/
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            color: #A0A0A0;
            border: none !important;
        }

        .nav-link.active {
            color: var(--primary-white) !important;
            border: none !important;
        }

        .nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
            background-color: transparent !important;
            border-color: transparent !important;
        }

        .match-info {
            padding: 1rem;
            padding-bottom: 0rem;
            padding-top: 0rem;
            height:0px;
        }

        .btn-outline-yellow {
            background: var(--dark-bg);
            color: var(--primary-red);
            border-color: var(--primary-red);
            border: solid 3px;
           /* padding: 0.75rem;*/
            border-radius: 20px;
            font-weight: 600;
            width: 80%;
            position: relative;
            margin: auto;
             font-size: 1.5em;
    /* display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;*/
        }
        
.btn-outline-yellow:hover {
    background: var(--dark-bg) !important;
            color: var(--primary-red) !important;
            border-color: var(--primary-red) !important;
            border: solid 3px;
           /* padding: 0.75rem;*/
            border-radius: 20px;
            font-weight: 600;
            width: 80%;
            position: relative;
            margin: auto;
             font-size: 1.5em;
}
.btn-outline-secondary{
     background: var(--dark-bg);
           /* color: red;*/
    border-color: red;
            border: solid 3px;
           /* padding: 0.75rem;*/
            border-radius: 20px;
            font-weight: 600;
            width: 80%;
            position: relative;
            margin: auto;
            margin-top: 1rem;
            
}
.btn-outline-secondary i {
    font-size: 1.5em;
}

.btn-yellow {
    background: var(--primary-red);
 color: #000000;;
    border: none;
    padding: 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    width: 90vw;
    position: fixed;
    bottom: 1rem;
    left: 0;
    z-index: 3;
    margin: 1rem;
}
.btn-yellow:hover {
    background: var(--primary-red) !important;
 color: #000000; !important;
    border: none;
    padding: 0.75rem;
    border-radius: 20px !important;
    font-weight: 600;
    width: 90vw;
    position: fixed;
    bottom: 1rem;
    left: 0;
    z-index: 3;
    margin: 1rem;
}


.btn-yellow-free {
    background: var(--primary-red);
 color: #000000;
    border: none;
    padding: 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    width: 100%;
   
    z-index: 3;
}
.btn-yellow-free:hover {
    background: var(--primary-red);
 color: #000000;
    border: none;
    padding: 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    width: 100%;
   
    z-index: 3;
}

.btn-danger {
   /* background: var(--primary-red);*/
    border: none;
    padding: 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    width: 100%;
    position: fixed;
    bottom: 1rem;
    left: 0;
    z-index: 3;
}
.btn-danger:hover {
   /* background: var(--primary-red);*/
    border: none;
    padding: 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    width: 100%;
    position: fixed;
    bottom: 1rem;
    left: 0;
    z-index: 3;
}

.bi-person-check-fill{
    padding-right: 10px;
}
        .participants-section {
            margin-bottom: 9.5rem;
        }

        .text-yellow {
             border-color: var(--primary-red);
       color: var(--primary-red);
           /* padding: 5px;*/
            border-radius: 15px;
        }
/*.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
   
       background:  black;
    display: flex;
    flex-direction: column;
 
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s;
}

.loading-logo {
    width: 80vw;
    height:auto;
    margin-bottom: 0rem;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); }
    50% { transform: scale(1.05); }
    100% { transform: scale(0.95); }
}*/
 

   .team-format {
    margin-left: 1rem;
    color: var(--primary-red);
    font-weight: 600;
    white-space: nowrap;
}
 

/* Spots status styles */
.spots-status {
     min-width: 110px; /* Reduced from 140px */
    max-width: 140px; /* Add max-width constraint */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    white-space: nowrap;
    border: 2px solid;
    border-radius: 8px;
    padding: 6px 10px;
    margin-left: auto; /* Push to right */
     margin-left: 0; /* Remove auto margin from column layout */
    flex-shrink: 0; /* Prevent shrinking */
}

.spots-status span {
  width: 7.5rem;
    text-align: center;  
}
.spots-available {
    border-color: #00B140 !important;  /* Egyptian green accent */
  /*  color: #00B140 !important;*/
  /*  color: #28a745 !important;*/
}

.spots-last {
    
     border-color: #ff980f !important;  /* Gold accent */
   /* color: #FFD100 !important;*/
   /* color: #ffc107 !important;*/
}

.spots-full {
 /* border-color: var(--primary-red) !important;*/
 border-color: #ce1126 !important;
/* border: 3px solid; /* Border width */
  /*  border-image: linear-gradient(5deg, #B22222 , #FFD700) 1; /* Gold to 
  /*  color: var(--primary-red) !important;*/
   /* color: #dc3545 !important;*/
 /*   border-image: linear-gradient(90deg, #FFD700, #1E3A8A) 1;*/
}

/* Keep card left border colors */
.match-card.spots-available { border-left-color: #00B140 !important; }
.match-card.spots-last { border-left-color: #ff980f !important; }
.match-card.spots-full {
   /* border-left-color: var(--primary-red) !important;*/
    border-left-color: #ce1126 !important;
    
    }


.spots-status i {
    color: inherit;
}

.match-card {
    gap: .5rem; /* Add space between content and status */
    align-items: center;
     flex-direction: row; /* Change from column to row */
    flex-wrap: wrap; /* Allow items to wrap */
}

/*.match-card-content {
    flex-grow: 1; 
    min-width: 55%; 
}*/

.match-card-content {
     flex: 1; /* Take available space */
    min-width: 0; /* Allow content to shrink */
    width: auto; /* Override 100% width */
}

.match-card-content small {
    font-size: 0.9rem; /* 14px */
    font-weight: 500;
}

/*.match-card-content h6{
    margin-top: .3rem;
    font-size: 1.20rem; 
    font-weight: 600;
    margin-bottom: 0.25rem;
}*/

.match-card-content h6 {
    margin-top: 0.25rem;
     font-size: 1.10rem;
     font-weight: 600;
     letter-spacing: 0px;
}

.match-card small {
    color: var(--pure-white);
    opacity: 0.8;
}

.match-card h6 {
    color: var(--pure-white);
}
 
#detail-description {
    white-space: pre-line; /* Preserve line breaks */
    line-height: 1.6; /* Add spacing between lines */
}

#match-details {
    min-height: 100vh; /* Allow content to expand beyond viewport */
    height: auto; /* Let content determine height */
    /*overflow-y: auto; /* Ensure scrolling if content overflows */
}

.waiting-participant {
    opacity: 0.7;
    border-style: dashed;
    border-color: var(--secondary-text);
}

.waiting-participant .participant-photo {
    filter: grayscale(0.8);
}

.tournament-card {
    background: var(--card-bg);
    border-radius: 8px;
    margin: .5rem 0;
    padding: .7rem;
    padding-left: 1rem;
    border-left: 4px solid var(--primary-red);
    cursor: pointer;
    display: flex;
     flex-direction: column;
gap: 0.5rem;
    justify-content: space-between;
    align-items: center;
     position: relative;
z-index: 1;
gap: .5rem; /* Add space between content and status */
align-items: center;
 flex-direction: row; /* Change from column to row */
flex-wrap: wrap; /* Allow items to wrap */
}
.tournament-header {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
}

.tournament-header small {
display: flex;
width: 100%;
justify-content: space-between;
align-items: center;
}


/* Add these styles at the end of the style section */
.chat-container {
    height:67vh; /* Adjust based on your header height */
    overflow-y: auto;
  /*  padding-bottom: 80px; /* Space for input group */
   
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: .2rem;
   /* margin-bottom: 1rem;*/
}

/*.chat-message {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    background: var(--card-bg);
        border: solid 1px var(--primary-red);
}*/
.chat-message {
    display: flex;
    gap: 12px;
    max-width: 82%;
    margin-bottom: 10px;
}

/* Your messages */
.user-message {
    margin-left: auto;
    flex-direction: row-reverse;
}

.user-message .user-avatar {
    order: 1; /* Image on right side */
}

.user-message .message-bubble {
    background: #897414 ; /*var(--primary-red);*/
    border-radius: 20px 0px 20px 20px;
}

/* Others' messages */
.other-message {
    margin-right: auto;
   /* flex-direction: row-reverse;*/
}

.other-message .message-bubble {
    background: #256521 ; /*var(--card-bg);*/
    border-radius: 0px 20px 20px 20px;
}

/* Sender name styling */
.sender-name {
    font-size: 0.85rem;
    color: var(--primary-red);
    margin-bottom: 4px;
    font-weight: 500;
}

.user-message .sender-name {
    color: rgba(255, 255, 255, 0.9);
    text-align: end;
}

/* Avatar styling */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-red);
}

.user-message .user-avatar {
    border-color: #00B140;
}

/* Message bubble */
.message-bubble {
    padding: 10px;
    color: var(--pure-white);
    min-width: 220px;
    max-width: 500px;
}

/* Time and status */
.message-time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: right;
    margin-top: 0px;
   /* display: flex;*/
    align-items: center;
    gap: 5px;
    justify-content: flex-end;
}

.message-content p{
    margin-bottom: 0rem;
}
.bi-check2-all {
    font-size: 0.9em;
}
/*.user-message {
    background: var(--primary-red);
    margin-left: 40px; 
}*/



.chat-message.user-message .user-avatar {
    border-color: #00B140; /* Different color for user messages */
        display: none;
}
.chat-input-group {
    position: fixed;
    bottom: .5rem; /* Above navigation tabs */
    left: 0;
    right: 0;
    display: flex;
    gap: 8px;
    padding: 8px 16px;
    background: var(--dark-bg);
    border-top: 1px solid var(--border-color);
}

.chat-input {
    flex-grow: 1;
    border-radius: 20px;
    padding: 8px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--pure-white);
}

.chat-send-btn {
    background: var(--primary-red);
    color: var(--pure-white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 0.2s ease;
}

.chat-send-btn:hover {
    transform: scale(1.1);
    background: var(--primary-red);
}

.chat-send-btn i {
    font-size: 1.5rem;
    margin-left: 0px;
}
#chat-input {
    flex-grow: 1;
    border-radius: 20px;
    padding: 0.75rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--pure-white);
}

@media (max-width: 576px) {
 /*   .match-info {
        height: calc(100vh - 18rem); 
    }*/
  /*  .chat-input-group {
        padding: 8px 12px;
    }*/
}
/* Add these styles */
.back-btn {
    position: fixed;
    left: 1rem;
    top: 2.5rem;
    z-index: 1001;
    font-size: 1.7rem;
    color: var(--pure-white) !important;
}

.payment-section {
    padding: 1rem 1rem;
}

/* Add to existing payment styles */
/* Payment Section Styles */
.rounded-pill {
    margin-top: 5px;
}
.payment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-red);
    display: block;
}

.guest-avatar {
    border: 2px dashed var(--secondary-text);
    /* Keep other properties the same as payment-avatar */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.payment-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.payment-option {
    background: var(--card-bg);
    border: 2px solid var(--primary-red);
    border-radius: 8px;
    padding: 1rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-option:hover {
    transform: scale(1.02);
    border-color: #00B140;
}

.payment-option h5 {
    font-size: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.friend-badge {
    background: var(--dark-bg);
    border: 1px solid var(--primary-red);
    border-radius: 15px;
    padding: 0.25rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#checkout-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
#payer-name {
    font-weight: 500;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Add to existing CSS */
#friend-input {
    flex-grow: 1;
    min-width: 70%;
}

#add-participant-btn {
    width: 50px;
    height: 50px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Override nav-tabs styles specifically for the add friend modal */
#addFriendModal .nav-tabs {
    position: static; /* Reset fixed positioning */
    width: auto;
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 1rem;
}

#addFriendModal .nav-link {
    color: var(--secondary-text);
    border: none;
    padding: 0.5rem 1rem;
    position: relative;
    transition: all 0.3s ease;
}

#addFriendModal .nav-link.active {
    color: var(--primary-red);
    background: transparent;
    border-bottom: 2px solid var(--primary-red);
}

#addFriendModal .nav-link:not(.active):hover {
    color: var(--pure-white);
    transform: translateY(-2px);
}

/* Tab content styling */
#addFriendModal .tab-content {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-top: -1px; /* Align with tab border */
      display: block !important;
}

/* Search results list */
#friend-search-results {
    max-height: 370px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

#friend-search-results .list-group-item {
    background: var(--card-bg);
    border-color: var(--border-color);
    margin-bottom: 0.5rem;
    border-radius: 6px;
}

#friend-search-results .list-group-item:hover {
    background: var(--dark-bg);
    border-color: var(--primary-red);
}

/* Ensure only active tab content is visible */
#addFriendModal .tab-content > .tab-pane:not(.active) {
    display: none !important;
}

#addFriendModal .nav-link.active + .tab-content {
    display: block;
}
/* Force show active tab content */
#addFriendModal .tab-content > .tab-pane.active {
    display: block !important;
    opacity: 1;
}

/* Hide other tab inputs */
#addFriendModal #guestTab { 
  /*  display: none; */
}
#addFriendModal #guestTab.active { 
    display: block; 
}

/* Remove default tab fade animation */
#addFriendModal .tab-pane {
    display: none ;
    padding: 0px;
}
#addFriendModal .tab-pane.active {
    display: block ;
     animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#addFriendModal .list-group-item {
    border: 1px solid var(--border-color);
    margin-bottom: 8px;
}

#addFriendModal .list-group-item:hover {
    background-color: var(--dark-bg);
    border-color: var(--primary-red);
}




/* Override nav-tabs styles specifically for the tournament add friend modal */
#tournamentAddFriendModal .nav-tabs {
    position: static; /* Reset fixed positioning */
    width: auto;
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 1rem;
}

#tournamentAddFriendModal .nav-link {
    color: var(--secondary-text);
    border: none;
    padding: 0.5rem 1rem;
    position: relative;
    transition: all 0.3s ease;
}

#tournamentAddFriendModal .nav-link.active {
    color: var(--primary-red);
    background: transparent;
    border-bottom: 2px solid var(--primary-red);
}

#tournamentAddFriendModal .nav-link:not(.active):hover {
    color: var(--pure-white);
    transform: translateY(-2px);
}

/* Tab content styling */
#tournamentAddFriendModal .tab-content {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-top: -1px; /* Align with tab border */
    display: block !important;
}

/* Search results list */
#tournament-friend-search-results {
    max-height: 370px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

#tournament-friend-search-results .list-group-item {
    background: var(--card-bg);
    border-color: var(--border-color);
    margin-bottom: 0.5rem;
    border-radius: 6px;
}

#tournament-friend-search-results .list-group-item:hover {
    background: var(--dark-bg);
    border-color: var(--primary-red);
}

/* Ensure only active tab content is visible */
#tournamentAddFriendModal .tab-content > .tab-pane:not(.active) {
    display: none !important;
}

#tournamentAddFriendModal .nav-link.active + .tab-content {
    display: block;
}

/* Force show active tab content */
#tournamentAddFriendModal .tab-content > .tab-pane.active {
    display: block !important;
    opacity: 1;
}

/* Hide other tab inputs */
#tournamentAddFriendModal #tournamentGuestTab { 
    display: none; 
}
#tournamentAddFriendModal #tournamentGuestTab.active { 
    display: block; 
}

/* Remove default tab fade animation */
#tournamentAddFriendModal .tab-pane {
    display: none;
    padding: 0px;
}
#tournamentAddFriendModal .tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#tournamentAddFriendModal .list-group-item {
    border: 1px solid var(--border-color);
    margin-bottom: 8px;
}

#tournamentAddFriendModal .list-group-item:hover {
    background-color: var(--dark-bg);
    border-color: var(--primary-red);
}

.tournament-payment-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.tournament-payment-option {
    background: var(--card-bg);
    border: 2px solid var(--primary-red);
    border-radius: 8px;
    padding: 1rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tournament-payment-option:hover {
    transform: scale(1.02);
    border-color: #00B140;
}

.tournament-payment-option h5 {
    font-size: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}
/* Red Button Style */
.btn-referee-red {
    background: transparent !important;
    color: white !important;
   /* border: groove;*/
    padding: 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
   /* width: 100%*/
}

.btn-referee-red:hover {
    background: #B22222 !important;
    transform: scale(0.98);
}

.btn-referee-red .bi {
    color: white !important;
}
#referee-info{
  border: groove;
    padding: 1rem;
    border-radius: 20px;  
}

.bi-whistle::before {
    display: inline-block;
    font-family: "bootstrap-icons" !important;
    content: "\F65E"; /* Unicode for whistle icon */
}
/* Participant images */
.participant-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    /*border: 2px solid var(--primary-red);*/
     border: 2px solid #ffffff;
     display: block;
}

.view-image {
    width: 150px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid var(--primary-red);
     display: block;
     margin: auto   ;

}
#referee-form{
    text-align: center;
    border: groove;
    padding: .5rem;
    }
/* Referee form styling */
#referee-form .form-group {
    margin-bottom: 1rem;
}

#referee-form input {
    width: 100%;
    padding: 0.5rem;
    border-radius: 8px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--pure-white);
}

/* Location Text Sizes */
#detail-location-name {
    font-size: 2rem;
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 0.5rem;
}

/* Payment participant items */
.participant-item {
   /* transition: transform 0.2s ease;
      transition: all 0.3s ease;*/
    opacity: 1;
    transform: translateX(0);
}

.participant-item.removing {
    opacity: 0;
    transform: translateX(-100%);
    height: 0;
    padding: 0;
    margin: 0;
    border: 0;
}

.participant-item:hover {
    transform: translateX(5px);
}

.participant-item > div {
   /* flex: 1;*/
    min-width: 0; /* Prevent overflow */
    display: flex;
}

.participant-item img {
    width: 45px;
    height: 45px;
    object-fit: cover;
}

.participant-item .ms-3 {
    flex: 1;
    min-width: 0;
    margin-left: 1rem !important;
}

.participant-item .text-muted {
    font-size: 0.85em;
    color: white !important;

}

/* Center names vertically */
.participant-item .d-flex.align-items-center {
    align-items: center !important;
    flex: 1;
}

.participant-info {
    flex: 1;
    min-width: 0; /* Prevent overflow */
    margin: auto;
}

.participant-info > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.participant-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    margin-right: 1rem;
}

/* Remove button positioning */
.btn-link.text-danger {
    margin-left: 0.5rem;
    vertical-align: middle;
}

#detail-date {
    font-size: 0.9rem;
    color: var(--pure-white);
}

#detail-time-text {
    font-size: .9rem;
    color: var(--secondary-text);
}

/* Description styling */
#detail-description {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    max-height: 4.2em; /* 3 lines * 1.4 line-height */
    transition: max-height 0.3s ease;
}

#detail-description.expanded {
    -webkit-line-clamp: unset;
    max-height: none;
}

.read-more-link {
    font-size: 0.9em;
    text-decoration: none !important;
    display: inline-block;
    margin-top: 0.5rem;
}

#final-payment-btn {
    background: var(--primary-red);
    color: #000000;
    border: none;
    padding: 1rem;
    border-radius: 20px;
    font-weight: 600;
   /* width: 100%;*/
    transition: all 0.3s ease;
     bottom: 1.2rem; /* Was originally 5rem, increase if needed */
      z-index: 1001;
}

#final-payment-btn:disabled {
    opacity: .9;
    background: var(--primary-red);
}

.input-group-split {
    display: flex;
    width: 100%;
}

.input-group-split .form-control {
    flex-grow: 1;
    width: 80%;
    border-radius: 20px 0 0 20px !important;
}

.input-group-split .btn {
    width: 20%;
    min-width: 80px;
    border-radius: 0 20px 20px 0 !important;
    white-space: nowrap;
}

.form-control::placeholder {
    color: inherit;
    opacity: 0.7;
}




/* Promo code specific styling */
#promo-code {
    border-radius: 20px 0 0 20px !important;
}

.promo-section{
 /*   padding-bottom: 1rem;*/
 position: fixed;
    bottom: 9rem;
    background-color: rebeccapurple;
    border-radius: 8px;
    padding: 3px;
}
.btn-promo {
    width: 20% !important;
    border-radius: 0 20px 20px 0 !important;
    /* Keep existing outline-yellow styles */
    background: var(--dark-bg);
    color: var(--primary-red);
    border-color: var(--primary-red);
}


.registration-progress {
  /*  max-width: 300px;
    margin: 0 auto 1.5rem;
    padding: 0 1rem;*/
}

.progress {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

.progress-bar {
    background-color: #00B140 !important;
}
/* Add modal styling */
.modal-content {
    background: var(--card-bg) !important;
   /* border: 2px solid var(--primary-red);*/
}

.modal-header {
    border-bottom-color: var(--border-color);
}

.modal-footer {
    border-top-color: var(--border-color);
}
.modal-body{
    padding: .5rem;
}


#discount-amount{
   color: rgba(var(--bs-danger-rgb), var(--bs-text-opacity)) !important; 
}

/* Confirm button transitions */
#confirm-participants-btn {
    transition: all 0.3s ease;
}

#confirm-participants-btn:disabled {
    opacity: 0.6;
    filter: grayscale(0.8);
}

/* Payment methods entrance animation */
#payment-methods {
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Payment status badges */
.text-success { color: #28a745; }
.text-warning { color: #ffc107; }
/* Add to your existing CSS */
.text-secondary {
    color: var(--secondary-text) !important; /* #A0A0A0 */
}

small .team-format {
    margin-right: 0.5rem;
    color: var(--primary-red);
    font-weight: 500;
    font-size: 1rem;
}


.payment-toast {
    position: fixed;
    top: 30%;
   /* left: 50%;*/
    width: 100vw;
    z-index: 9999;
    background: var(--card-bg);
    border: 15px solid var(--primary-red);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: env(safe-area-inset-bottom);
}


.payment-toast.error {
    border-color: #ce1126;
    background: #2d2d2d;
}

.toast-header {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.toast-header strong {
    color: var(--primary-red);
}

.toast-close {
    background: none;
    border: none;
    color: var(--secondary-text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.toast-body {
    padding: 16px;
    line-height: 1.6;
    text-align: center;
}

.toast-account {
    font-size: 1.2rem;
    color: var(--pure-white);
    display: block;
    margin: 8px 0;
    word-break: break-all;
}

.toast-ref {
    color: var(--primary-red);
    word-break: break-all;
    font-weight: 500;
}

.toast-footer{
    text-align: center;
    margin: auto;
}

/* Style the hamburger menu button */
.hamburger-menu {
    padding: 0.5rem;
    margin-left: -1.3rem;; /*auto Push the button to the right */
        margin-top: -3.2rem;
    background: none;
    border: none;
    display: block; /* Visible by default */
}

/* Hide hamburger menu when back button is visible */
.back-btn:not(.hidden) + .hamburger-menu {
    display: none;
}

.back-btn:not(.hidden) ~ .hamburger-menu {
    display: none !important;
}
 
 .btn-close{ font-size: 1.3rem;}
/* Offcanvas menu styling */
.offcanvas {
    background-color: var(--dark-bg);
    color: var(--pure-white);
    border-left: 2px solid var(--primary-red);
}

.offcanvas-header {
    border-bottom: 1px solid var(--border-color);
}

.offcanvas-title {
    color: var(--primary-red);
}

.offcanvas-body .dropdown-item {
    color: var(--pure-white);
    padding: 0.5rem 1rem;
}

.offcanvas-body .dropdown-item:hover {
    background-color: var(--card-bg);
    color: var(--primary-red);
}





.confirmation-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    z-index: 10000;
    max-width: 400px;
    width: 90%;
    border: solid 2px var(--primary-red);
}

.confirmation-dialog h5 {
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.confirmation-dialog p {
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.dialog-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-cancel {
    background: var(--bg-dark);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-confirm {
    background: var(--primary-red);
    color: white;
    border: 1px solid var(--primary-red-dark);
}

.btn-confirm:hover {
    background: var(--primary-red-dark);
}

.overlay {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    display: none;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    font-size: 1.5rem;
  }
  
  .overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
   
  }
  
  .rotate-icon {
    font-size: 11rem;
    margin-bottom: 0px;
    padding: 0px;
  }
  
  @media screen and (orientation: landscape) {
    #landscapeOverlay {
      display: flex;
    }
  }
  

/*  -------------------------------------------------------------------*/
  .tournament-tabs {
    position: relative;
  }
 
  .tab-nav {
    display: flex;
    gap: 1rem;
    padding: 0.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: sticky;
  top: 3rem; /* exactly below calendar row */
  }
  
  .tab-link {
    background: none;
    border: none;
    width: 50%;
    color: rgba(255,255,255,0.5); /* Inactive tab color */
    padding: 0.5rem 1rem;
    position: relative;
    transition: all 0.3s ease;
  }
  
  .tab-link.active {
    color: white; /* Active tab color */
    font-weight: bold;
  }
  
  .tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: white; /* Active indicator color */
  }
  
  .tab-link:not(.active):hover {
    color: rgba(255,255,255,0.8);
  } 



  .tab-link1 {
    background: none;
    border: none;
    width: 50%;
    color: rgba(255,255,255,0.5); /* Inactive tab color */
    padding: 0.5rem 1rem;
    position: relative;
    transition: all 0.3s ease;
  }
  
  .tab-link1.active {
    color: white; /* Active tab color */
    font-weight: bold;
  }
  
  .tab-link1.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: white; /* Active indicator color */
  }
  
  .tab-link1:not(.active):hover {
    color: rgba(255,255,255,0.8);
  } 




  .next-badge {
    background: var(--primary-red);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.8em;
    font-weight: bold;
  }
  
  .next-section {
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  /* Add these new styles below your existing tournament styles */
.tournament-card {
  /*  background: linear-gradient(135deg, #ff6b6b, #ff8e8e) !important;*/
    border-radius: 15px !important;
   
    color: white !important;
    margin: 0rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .tournament-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  }
  
  /* Ribbon Badge */
  .tournament-ribbon {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ffd93d;
    color: #333;
    padding: 0.3rem 1.2rem;
    border-radius: 20px;
    transform: rotate(15deg);
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 1;
  }
  
  /* Card Header */
  .tournament-header {
    border-bottom: 2px solid rgba(255,255,255,0.2);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }
  
  .tournament-header h4 {
    margin: 0;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
  }
  
  /* Card Body Grid */
  .tournament-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  
  /* Info Items */
  .tournament-info-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .tournament-info-item i {
    color: rgba(255, 255, 255, 0.9);
    min-width: 20px;
  }
  
  /* Prize Pool Section */
  .tournament-prize {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: bold;
  }
  
  /* Keep your existing tab styles, add this media query */
  @media (max-width: 768px) {
    .tournament-grid {
      grid-template-columns: 1fr;
    }
    
    .tournament-header h4 {
      font-size: 1.2rem;
    }
    
    .tournament-ribbon {
      font-size: 0.8rem;
      padding: 0.2rem 1rem;
    }
  }
  /* *************************************** */
  
  .date {
    color: #aaa;
    font-size: 0.9em;
  }
  
  .spec {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.5rem;
    color: #ccc;
  }
  
  .card-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-yellow);
  }

   .payment-option[data-method="instapay"],
.payment-option[data-method="m7afez"] {
  display: none !important;
}
  .tournament-payment-option[data-method="instapay"],
.tournament-payment-option[data-method="m7afez"] {
  display: none !important;
}

.profile-info-grid {
    border: 1px solid rgba(255, 209, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
    font-size: 1rem;
}

.profile-grid-cell {
    width: 150px;
    min-height: 70px;
}

.border-end {
    border-right: 1px solid rgba(255, 209, 0, 0.2) !important;
}

@media (max-width: 576px) {
    .profile-grid-cell {
        width: 50vw;
        padding: 1rem !important;
    }
}

.stats-info-grid {
    border: 1px solid rgba(255, 209, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.stats-grid-cell {
    width: 120px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.border-end {
    border-right: 1px solid rgba(255, 209, 0, 0.2) !important;
}

@media (max-width: 768px) {
    .stats-grid-cell {
        width: 21vw;
       /* border-bottom: 1px solid rgba(255, 209, 0, 0.2);*/
    }
    
    
}

@media (max-width: 576px) {
    .bi-gear {
        font-size: 1.5rem !important;
    }
    
    .profile-header .btn-link {
        padding: 0.25rem !important;
    }
}







/* Avatar Styles */
.tab-btn {
    padding: 1rem 2rem;
    border: none;
    background: #333;
    color: white;
    border-radius: 8px;
    margin: 0 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: linear-gradient(135deg, #1b1919, #4d3c3c);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}


.stat-card {
    background: #1a1a1a;
    padding: 0rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.time-unit {
    text-align: center;
    padding: 0 1rem;
}

.player {
    text-align: center;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.player:hover {
    background: rgba(255,255,255,0.1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}



/* Custom Stats Button Styles */
.stats-sort-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 4px;
    border: 1px solid #444;
    background-color: #333;
    color: white;
    transition: all 0.2s;
}

.stats-sort-btn-active {
    background-color: #FFD100;
    color: #000;
    border-color: #FFD100;
    font-weight: bold;
}

.stats-pagination-btn {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 4px;
    background-color: #333;
    color: white;
    border: 1px solid #444;
}

.stats-pagination-btn:not(.disabled):hover {
    background-color: #444;
}

.stats-page-info {
    font-size: 0.9rem;
    color: #aaa;
    padding: 0 1rem;
}

    
.tooltip-inner {
  max-width: 30rem !important;
  width: 30rem; /* Optional */
  padding: 15px;
  background-color: #fdfdfd;
  color: #333;
  border: 1px solid #ccc;
  font-size: 0.9rem;
  text-align: left;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
  border-top-color: #ccc;
}

/* Hide scrollbars for payment modals on all devices */
/* Modal and iframe styling */
.paymob-modal {
  overflow: hidden !important;
}

.paymob-modal .modal-dialog {
  margin: 0 !important;
  max-width: 100% !important;
  height: 100vh !important;
}

.paymob-modal .modal-content {
  height: 100vh !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}

/* Ensure iframe doesn't interfere with close button */
.iframe-container {
  z-index: 1;
}

.btn-close {
  z-index: 9999 !important;
 /* position: fixed !important;*/
  pointer-events: auto !important;
}

/* Prevent iframe from capturing clicks */
.paymob-iframe {
  pointer-events: auto;
}

/* الحركة الجانبية (يمين ← يسار ← يمين) 
@keyframes side-move {
  0%   { left: 0; }
  50%  { left: calc(100% - 80px); }
  100% { left: 0; }
}

/* النطّ 
@keyframes bounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25%     { transform: translateY(-30px) rotate(90deg); }
  50%     { transform: translateY(0) rotate(180deg); }
  75%     { transform: translateY(-30px) rotate(270deg); }
  100%    { transform: translateY(0) rotate(360deg); }
}

/* الدمج داخل العنصر 
.animated-ball {
  position: absolute;
  bottom: 0;
  width: 80px;
  height: 80px;
  animation:
    side-move 4s linear infinite,
    bounce 0.6s ease-in-out infinite;
}*/
@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinning-ball {
    animation: spin 2s linear infinite;
}
.loading-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8); /* Dark transparent overlay */
  z-index: 100001;
}


