/**
 * Custom Styles
 * Add your custom CSS here
 */

.container,
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

.btn {
    padding: 14px 12px !important;
}

.modal .btn-close {
    color: #fff !important;
    border-radius: .75rem;
    opacity: 1 !important;
    padding: .44rem;
    box-shadow: 0 0 0rem 0.01rem #1a1b2b !important;
    transition: all .23s ease .1s;
}

.modal-body {
    background-color: #0d131c !important;
    color: var(--text-primary) !important;
}

.card {
    overflow: auto;
}

.bg-label-secondary {
    background-color: #1c2531 !important;
    color: #7b879d !important;
}

.custom-card-body {
    flex: 1;
    padding: 0;
}

.form-control,
input.form-control,
select.form-control,
textarea.form-control {
    padding: .2rem .875rem;
    box-shadow: none !important;
    border: 1px solid #dddddd5e !important;
}

/* Live Activity */
nav#layout-navbar+div {
    scrollbar-width: thin;
    overflow-y: auto;
}

.lead-name {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    width: 150px;
}

@media (max-width: 768px) {
    .lead-name {
        width: 100px;
    }
}

@media (min-width: 1200px) {

    .layout-menu-fixed:not(.layout-menu-collapsed) .layout-page,
    .layout-menu-fixed-offcanvas:not(.layout-menu-collapsed) .layout-page {
        padding-left: 0.0;
        padding-right: 0;
    }
}

.dropdown-menu .dropdown-item {
    color: var(--text-primary) !important;
    padding: 10px 0px !important;
    border-radius: var(--rounded-sm) !important;
    transition: all .15s ease !important;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}

@media (min-width: 1200px) {

    .layout-menu-fixed .layout-menu,
    .layout-menu-fixed-offcanvas .layout-menu {
        position: sticky;
        height: 100vh;
    }

    .custom-chat-container {
        position: sticky;
        top: 65px;
    }
}

@media (max-width: 1200px) {
    .custom-chat-container {
        width: 100%;
        top: 0;
        height: 100vh;
        border-left: none;
        position: fixed;
        z-index: 9999;
    }
}

.navbar-dropdown .nav-link.dropdown-toggle {
    background-color: var(--accent-3) !important;
    border: 2px solid var(--accent-4) !important;
    border-radius: 9999px !important;
    padding: 0px 8px 0px 13px !important;
    transition: all .15s ease !important;
    height: 42px;
    width: auto;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.custom-card-body {
    scrollbar-width: none;
}

.custom-card-header {
    padding: 8px 8px;
}

.custom-btn-primary {
    padding: 3px 8px;
}

.progress-circle:before {
    content: "";
    position: absolute;
    width: 45px;
    height: 45px;
    background: #000;
    border-radius: 50%;
    z-index: 5;
}

.live-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: rgba(0, 0, 255, 0.1); !* Light blue for live effect *!*/
    border-radius: 10px;
    animation: pulse 2s infinite ease-in-out;
}

/* Animation for the signal icon (pulse effect) */
.live-icon {
    animation: pulse 1.5s infinite ease-in-out;
}

/* Keyframes for pulse animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
    color: var(--bs-nav-pills-link-active-color) !important;
    background-color: var(--bs-nav-pills-link-active-bg);
}

/* Optional - If you want a circular live indicator */
.live {
    display: inline-block;
    animation: pulse 1.5s infinite ease-in-out;
    border-radius: 50%;
    background-color: #00bfff;
    /* Light blue circle */
}

.live-cashout-wrapper {
    display: flex;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
}


h6.text-secondary.pb-0.mb-0 {
    white-space: nowrap;
}

.card.text-white.me-2.p-2.position-relative .card-body .d-flex {
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.tooltip-ui {
    min-width: 210px;
    background: linear-gradient(180deg, #1b2230, #141a25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    z-index: 9999;
    font-size: 12px;
    color: #cfd6e4;
}

.tooltip-content {
    padding: 10px 12px;
}

.tooltip-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}

.tooltip-row:last-child {
    margin-bottom: 0;
}

.tooltip-row .label {
    color: #8b93a7;
}

.tooltip-row .value {
    font-weight: 500;
    color: #e6ebf5;
}

/* Arrow */
.tooltip-arrow {
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid #1b2230;
}

nav#layout-navbar+div::-webkit-scrollbar {
    width: 1px;
    height: 2px;
    margin: 10px 0;
}

nav#layout-navbar+div::-webkit-scrollbar-track {
    background: var(--bs-dark);
    border-radius: 10px;
    height: 2px;
    margin: 10px 0;
}

nav#layout-navbar+div::-webkit-scrollbar-thumb {
    background-color: #5d5e6038;
    border-radius: 10px;
    border: 0px solid var(--bs-dark);
}

nav#layout-navbar+div::-webkit-scrollbar-thumb:hover {
    background-color: #5d5e6080
}

html {
    scrollbar-width: thin;
    scrollbar-color: transparent;
    scrollbar-color: rgb(26 27 28 / 22%) var(--bs-dark);
}

nav#layout-navbar+div {
    scrollbar-width: thin;
}

/* Fix Swiper loop width collapse - Override box-sizing from content-box to border-box */
.partner-logos-swiper .swiper-wrapper {
    box-sizing: border-box !important;
    width: 100% !important;
}

/* Fix Swiper slides width calculation in loop mode */
.partner-logos-swiper .swiper-slide {
    flex-shrink: 0 !important;
    width: auto !important;
}

/* Size partner logo images properly */
.partner-logos-swiper .swiper-slide img {
    max-width: 120px !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
}

/* Ensure container takes full available space */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 0;
}

.section-title {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.section-title h5 {
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.partner-logos-section {
    width: 100% !important;
    max-width: 100% !important;
}

a.btn.btn-sm.btn-secondary.btn-offer {
    padding: 8px !important;
    margin-right: 85px;
}

.swiper-button-next,
.swiper-button-prev {
    position: absolute;
    top: -45px;
    width: 30px;
    height: 30px;
    margin-top: 0;
    z-index: 10;
    color: #e2e6e9;
    background: #1c2531;
    border-radius: 8px;
}

.swiper-button-prev,
.swiper-rtl .swiper-button-next {
    left: auto;
    right: 45px;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 16px;
}

.swiper-offer .swiper-offer-card {
    width: 100%;
    max-width: 111px;
    margin-right: 8px;
    background: var(--accent-3);
    border-radius: 8px;
    padding: 8px;
}

img.card-img-top.rounded-3 {
    min-width: unset;
}

.swiper-offer .swiper-offer-card .card-img-block,
.swiper-offer .swiper-offer-card .card-img-block img {
    min-height: 95px;
}

.partner-card,
.shop-card {
    max-width: 100%;
    min-width: unset;
    max-height: 178px;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.partner-card:hover,
.shop-card:hover {
    transform: scale(1) !important;
}

.partner-card .badge,
.shop-card .badge {
    border-radius: 0 0 0 10px !important;
    padding: 10px;
    font-size: 16px;
}

.partner-card .play-icon,
.shop-card .play-icon {
    position: absolute;
    padding: 0;
    height: 100%;
    width: 100%;
    align-items: center;
    justify-content: center;
    border-radius: 0 !important;
    font-size: 0.85rem;
    display: none;
    background: #23212108 !important;
    backdrop-filter: blur(3px);
    color: #ebefed !important;
}

.partner-card .play-icon i,
.shop-card .play-icon i {
    background: var(--brand);
    padding: 16px;
    border-radius: 50%;
}

.partner-card:hover .play-icon,
.shop-card:hover .play-icon {
    display: flex;
}

/* ========================================
   SKELETON LOADING STYLES
   ======================================== */

/* Base skeleton element */
.skeleton {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.03) 0%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0.03) 100%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}

/* Shimmer animation */
@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Chat skeleton container */
.skeleton-chat-message {
    display: flex;
    align-items: start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

/* Avatar skeleton */
.skeleton-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Content area skeleton */
.skeleton-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Name skeleton */
.skeleton-name {
    height: 14px;
    width: 120px;
    max-width: 60%;
}

/* Message text skeleton */
.skeleton-text {
    height: 12px;
    width: 100%;
}

.skeleton-text.short {
    width: 70%;
}

.skeleton-text.medium {
    width: 85%;
}

/* Multiple lines skeleton */
.skeleton-lines {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* Generic reusable skeletons */
.skeleton-box {
    height: 100px;
    width: 100%;
}

.skeleton-circle {
    border-radius: 50%;
}

.skeleton-rounded {
    border-radius: 8px;
}

/* Loading state wrapper */
.skeleton-wrapper {
    padding: 1rem;
}

/* Pulse effect alternative (optional) */
.skeleton-pulse {
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ========================================
   CASHOUT SKELETON ELEMENTS
   ======================================== */

.skeleton-cashout-card {
    min-width: 180px;
    background: rgba(255, 255, 255, 0.05);
}

.skeleton-avatar-small {
    width: 25px;
    height: 25px;
    border-radius: 4px;
}

.skeleton-content-inline {
    flex: 1;
    display: flex;
    align-items: center;
}

.skeleton-text-small {
    width: 60px;
    height: 14px;
}

.skeleton-badge {
    width: 40px;
    height: 20px;
    border-radius: 4px;
}

/* ========================================
   AUTH MODAL GRADIENT HEADER
   ======================================== */

.modal-body .tab-content {
    padding: 24px 0;
}

#authModal .modal-content {
    width: auto;
}

.auth-modal-gradient-header .modal-header {
    background: linear-gradient(180deg, #28c76f6b 7%, #16202b 100%) !important;
    border-bottom: 0px !important;
}

.auth-modal-gradient-header {
    background: linear-gradient(135deg, #1a3a3a 0%, #2d5a4a 50%, #3a7a5a 100%);
    border-radius: 0.5rem 0.5rem 0 0;
}

.auth-modal-gradient-header .modal-header {
    background: transparent;
}

.auth-modal-gradient-header .btn-close {
    /* filter: brightness(0) invert(1); */
    opacity: 0.8;
}

.auth-modal-gradient-header .btn-close:hover {
    opacity: 1;
}

.auth-modal-gradient-header .nav-tabs {
    background: transparent;
    border-bottom: none !important;
}

.auth-modal-gradient-header .nav-tabs .nav-link {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.auth-modal-gradient-header .nav-tabs .nav-link {
    color: #fff !important;
    border-radius: 16px !important;
    padding: 5px 15px;
}

.auth-modal-gradient-header .nav-tabs .nav-link.active {
    background: #28c76f !important;
}

/* ========================================
   MODERN TABLE COMPONENT
   ======================================== */

.modern-table {
    background: #0d131c;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    font-size: 0.875rem;
}

.modern-table thead {
    background: #0d131c;
}

.modern-table thead th {
    color: #6c757d;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 0.75rem;
    border: none;
    background: #0d131c !important;
}

.modern-table tbody tr {
    background: #0d131c !important;
    border-bottom: 1px solid #fff !important;
    transition: background-color 0.2s ease;
}

.modern-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.modern-table tbody td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #ffffff1a !important;
    color: #fff;
    vertical-align: middle;
    background: #0d131c !important;
    font-size: 12px !important;
}

.modern-table tbody td:first-child {
    padding-left: 1rem;
}

.modern-table tbody td:last-child {
    padding-right: 1rem;
}

/* Helper classes for table content */
.modern-table .rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.75rem;
}

.modern-table .user-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modern-table .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.modern-table .points-value {
    color: #28c76f;
    font-weight: 600;
}

.modern-table .prize-value {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #ffc107;
    font-weight: 600;
}

.modern-table .status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.col-auto.leaderboard-card {
    background: linear-gradient(180deg, var(--accent-5), var(--accent-0)) !important;
}

.mobile-navbar .nv-item {
    color: #93acd3 !important;
}

.custom-toast {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: #28c76f;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    z-index: 99999;
    display: none;
    animation: slideUp 0.3s ease-out;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
    from {
        bottom: -50px;
        opacity: 0;
    }

    to {
        bottom: 50px;
        opacity: 1;
    }
}

.profile-modal .modal-content {
    background: linear-gradient(180deg, #1a2332 0%, #0f1419 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.profile-modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-modal .modal-body {
    background: transparent;
}

.profile-modal .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .profile-modal .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.profile-modal .stat-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.4));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.profile-modal .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-modal .stat-card:hover {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.6));
    transform: translateY(-2px);
    border-color: rgba(34, 211, 238, 0.3);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.profile-modal .stat-card:hover::before {
    opacity: 1;
}

.profile-modal .stat-label {
    font-size: 0.75rem;
    color: rgba(148, 163, 184, 0.8);
    display: block;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-modal .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-modal .user-header {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(59, 130, 246, 0.05));
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.profile-modal .user-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.profile-modal .nav-pills .nav-link {
    background: rgba(30, 41, 59, 0.3);
    color: rgba(148, 163, 184, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
}

.profile-modal .nav-pills .nav-link:hover {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(34, 211, 238, 0.3);
}

.profile-modal .nav-pills .nav-link.active {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(59, 130, 246, 0.2));
    border-color: rgba(6, 182, 212, 0.5);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
}

.profile-modal h5 {
    color: #ffffff;
    position: relative;
    padding-left: 0.5rem;
}

.profile-modal h5::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: linear-gradient(180deg, #06b6d4, #3b82f6);
    border-radius: 2px;
}

.profile-modal .text-end.user-level {
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    z-index: 99;
    border-radius: 13px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #ea5455;
    padding: 2px 6px;
    font-size: 0.75rem;
}

p.text-body.user-id {
    display: flex;
    align-items: center;
    justify-content: start;
    max-width: 5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.copy-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #28c76f;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: none;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        bottom: -50px;
        opacity: 0;
    }

    to {
        bottom: 20px;
        opacity: 1;
    }
}

label.switch.switch-primary {
    max-width: 40px !important;
    width: 40px !important;
    /* overflow: hidden; */
    height: 20px !important;
}