/* Tab 3 Icon - Diamond/VIP */
.van-tab:nth-child(3)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffc107'%3E%3Cpath d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 12l-1.25 2.25L12 17.25l1.25 2.25L12 15zm4-4l-1.25 2.25L16 13.25l1.25 2.25L16 11zm-8 0l-1.25 2.25L8 13.25l1.25 2.25L8 11zm4-4l-1.25 2.25L12 9.25l1.25 2.25L12 7z'/%3E%3C/svg%3E");
}

/* Tab 4 Icon - Gift/Promo */
.van-tab:nth-child(4)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffc107'%3E%3Cpath d='M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3-1.05 0-1.96.54-2.5 1.35l-.5.67-.5-.68C10.96 2.54 10.05 2 9 2 7.34 2 6 3.34 6 5c0 .35.07.69.18 1H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-5-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM9 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm11 15H4v-2h16v2zm0-5H4V8h5.08L7 10.83 8.62 12 11 8.76l1-1.36 1 1.36L15.38 12 17 10.83 14.92 8H20v6z'/%3E%3C/svg%3E");
}

/* Custom Vant Tabs Design & Colors - Modern Redesign */
.van-tabs__wrap {
    height: 70px !important;
    background: rgba(22, 26, 35, 0.85) !important; /* Deep dark glass */
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-radius: 0 !important; /* Sharp Square Shape */
    margin: 5px 0 10px 0 !important;
    box-shadow: 
        0 10px 25px -5px #000000,
        0 8px 10px -6px #000000,
        inset 0 1px 1px #c21502 !important; /* Depth and gloss */
    border: 1px solid #770303 !important;
    padding: 0px !important; /* Inner padding for floating tabs */
    overflow: visible !important;
}

.van-tabs__wrap:hover {
    box-shadow: 
        0 15px 30px -5px #000000,
        inset 0 1px 1px #01015c !important;
    border-color: #770303 !important;
    border-radius: 0 !important;
}

/* Enhanced Nav Container - Modern & Fluid */
.van-tabs__nav,
.van-tabs__nav--line,
.van-tabs__nav--complete {
    background: transparent !important;
    display: flex !important;
    gap: 5px !important; /* Consistent spacing */
    height: 100% !important;
    align-items: center !important; /* Vertically center tabs */
    justify-content: space-evenly !important; /* Distribute tabs beautifully */
    padding: 0 !important;
    box-sizing: border-box !important;
    border: none !important;
    transform: none !important; /* Remove any skew or rotation */
    border-radius: 0 !important; /* Strict Square */
}

/* Specific fix for "line" mode to remove default bottom spacing */
.van-tabs__nav--line {
    padding-bottom: 0 !important;
}

.van-tab {
    line-height: 65px !important;
    color: #8b9bb4 !important; /* Soft blue-grey for inactive */
    font-weight: 600 !important;
    font-size: 15px !important;
    border-radius: 0 !important; /* Quadrilateral (Sharp) */
    position: relative;
    z-index: 1;
    overflow: hidden;
    margin: 0 2px !important; /* Slight separation */
}

/* Hover effect for inactive tabs */
.van-tab:not(.van-tab--active):hover {
    background: #04048d !important;
    color: #cbd5e0 !important;
    border-radius: 0 !important; /* Quadrilateral */
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); /* Strict Square */
}

/* Remove default active background and apply specific color */
.van-tab--active {
    background: #024b1f !important; /* Rich Teal Gradient */
    border: none !important;
    border-radius: 0 !important; /* Quadrilateral (Sharp) */
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); /* Strict Square */
    color: #ffffff !important;
    font-weight: 800 !important;
    box-shadow: 
        0 4px 15px rgba(2, 104, 107, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important; /* Glow and highlight */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    transform: scale(1.05); /* Slight pop */
}

/* Ensure tabs-btn inherits or handles the color correctly */
.van-tab--active .tabs-btn {
    background-color: transparent !important;
}

.van-tabs__line {
    display: none !important;
}

/* --- Sidebar Grid Layout --- */
#sidebar-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 5px;
}

#desktop-sidebar .sidebar-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent; /* Use transparent to show pseudo-elements */
    border-radius: 12px;
    padding: 15px 5px;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    aspect-ratio: 1;
    color: #8b9bb4;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 0; /* Reset */
    overflow: visible; /* Allow active border to show if needed */
}

#desktop-sidebar .sidebar-link span {
    margin-top: 8px;
    font-size: 12px !important;
    font-weight: 500;
    text-align: center;
    color: inherit;
}

#desktop-sidebar .sidebar-link .icon-box {
    width: 36px;
    height: 36px;
    background: transparent !important; /* Remove old gradients */
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
}

#desktop-sidebar .sidebar-link .icon-box svg {
    width: 28px;
    height: 28px;
    fill: #8b9bb4 !important; /* Grey fill */
    transition: all 0.3s ease;
    stroke: none; /* Reset stroke if set elsewhere */
}

/* Hover State */
#desktop-sidebar .sidebar-link:hover {
    background: #c9b504;
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    border-radius: 0 !important; /* Quadrilateral (Sharp) */
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); /* Force Quadrilateral */
}

#desktop-sidebar .sidebar-link:hover .icon-box svg {
    fill: #fff !important;
}

/* Active State (Home) */
#desktop-sidebar .sidebar-link.active-home {
    background: linear-gradient(to right, #1e232d, #252b36);
    color: #fff;
    border-left: 3px solid #ffc107;
    border-radius: 12px; /* Reset radius */
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

#desktop-sidebar .sidebar-link.active-home .icon-box svg {
    fill: #ffc107 !important; /* Yellow icon */
}

/* Top Items (Rotate, Mission) */
#desktop-sidebar .sidebar-link.top-item {
    flex-direction: row;
    aspect-ratio: auto;
    height: 50px;
    padding: 0 10px;
    gap: 8px;
    color: #fff;
    border-radius: 8px;
}

#desktop-sidebar .sidebar-link.top-item span {
    margin-top: 0;
    font-size: 14px !important;
    font-weight: 600;
}

#desktop-sidebar .sidebar-link.top-item .icon-box {
    width: 24px;
    height: 24px;
}

#desktop-sidebar .sidebar-link.top-item .icon-box svg {
    width: 20px;
    height: 20px;
    fill: #fff !important;
}

/* Rotate Button Style */
#desktop-sidebar .sidebar-link .top-item {
    background: linear-gradient(135deg, #e91e63, #9c27b0); /* Pink/Purple */
    box-shadow: 0 4px 10px rgba(233, 30, 99, 0.3);
    order: 2; /* Right side */
}

/* Mission Button Style */
#desktop-sidebar .sidebar-link .top-item {
    background: linear-gradient(135deg, #ff9800, #e65100); /* Orange */
    box-shadow: 0 4px 10px rgba(255, 152, 0, 0.3);
    order: 1; /* Left side */
}

/* Banner Item (Affiliate/Chest) */
#desktop-sidebar .sidebar-link.banner-item {
    grid-column: span 2;
    aspect-ratio: auto;
    height: 80px;
    background: linear-gradient(135deg, #ffff00 0%, #ff0000 100%); /* Yellow Red */
    color: #fff;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    overflow: hidden;
    order: 3;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

#desktop-sidebar .sidebar-link.banner-item .icon-box {
    width: 60px;
    height: 60px;
}

#desktop-sidebar .sidebar-link.banner-item .icon-box svg {
    width: 40px;
    height: 40px;
    fill: #fff !important;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2));
}

#desktop-sidebar .sidebar-link.banner-item span {
    font-size: 15px !important; /* Show text for Affiliate */
    font-weight: 700;
    margin-left: 5px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(162, 170, 7, 0.2);
}

/* Ensure Grid Items are ordered after banner */
#desktop-sidebar .sidebar-link.grid-item {
    order: 4;
}

#desktop-sidebar .sidebar-link.grid-item::after {
    background: rgb(4, 35, 131);
}
#desktop-sidebar .sidebar-link.banner-item::after {
    background: rgb(238, 45, 11);
}
#desktop-sidebar .sidebar-link.mission-item::after {
    background: rgb(47, 158, 62);
}
#desktop-sidebar .sidebar-link.rotate-item::after {
    background: rgb(47, 158, 62);
}

/* --- Animated Moving Border Effect on Hover --- */
#desktop-sidebar .sidebar-link {
    position: relative;
    z-index: 1;
    overflow: hidden; /* Ensure pseudo-element doesn't spill out */
}

/* The rotating gradient (border source) */
#desktop-sidebar .sidebar-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%; /* Make it larger than the container to cover corners */
    height: 200%;
    background: conic-gradient(
        from 0deg, 
        transparent 0%, 
        transparent 70%, 
        #ff0000 80%, 
        #ff7f00 85%, 
        #ffff00 90%, 
        #00ff00 95%, 
        #0000ff 100%
    );
    transform: translate(-50%, -50%);
    z-index: -2;
    animation: rotateBorder 3s linear infinite;
    opacity: 1; /* Always visible */
    border-radius: 50%;
    display: block !important; /* Force display */
}

/* Inner background to mask the center */
#desktop-sidebar .sidebar-link::after {
    content: '';
    position: absolute;
    inset: 1px; /* Border thickness */
    border-radius: 10px; /* Slightly smaller than parent */
    z-index: -1;
    opacity: 1; /* Always visible */
    transition: background 0.3s ease; /* Smooth hover color change */
    display: block !important; /* Force display */
}

/* Show hover color on the inner mask */
#desktop-sidebar .sidebar-link:hover::after {
    background: #c9bc04; /* Lighter background on hover */
}

/* Ensure main element background is transparent to show the mask */
#desktop-sidebar .sidebar-link {
    background: transparent;
}

/* Adjust hover state */
#desktop-sidebar .sidebar-link:hover {
    background: transparent !important; 
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 4px 12px rgba(193, 186, 3, 0.2);
}

/* Keep special backgrounds for Mission item */


/* Change Rotate, Mission and Banner to Yellow on Hover */
#desktop-sidebar .sidebar-link.rotate-item:hover,
#desktop-sidebar .sidebar-link.mission-item:hover,
#desktop-sidebar .sidebar-link.banner-item:hover {
    background: #ffc107 !important; /* Yellow */
    background-image: none !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.5) !important;
}

#desktop-sidebar .sidebar-link.top-item:hover::before,
#desktop-sidebar .sidebar-link.top-item:hover::after,
#desktop-sidebar .sidebar-link.banner-item:hover::before,
#desktop-sidebar .sidebar-link.banner-item:hover::after {
    display: none !important; /* No border effect on colored buttons */
}

@keyframes rotateBorder {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* --- Enhanced Vant Tabs Content Design --- */
.van-tabs__content,
.fish .container .all {
    background: transparent !important; /* Deep Yellow */
    padding: 10px;
    border-radius: 0 !important; /* Square Shape */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    color: #09022d; /* Dark text for contrast */
    min-height: 200px;
    margin-top: 5px; /* Spacing from tabs */
}

.container {
    background: transparent !important;  /* Deep Dark Blue */
    padding: 1px 2px 2px 2px; /* Reduced top padding */
    border-radius: 0 !important; /* Square Shape */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    color: #333333; /* Dark text for contrast */
    min-height: 200px;
    margin-top: 0px; /* Spacing from tabs */
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    align-items: flex-start !important; /* Prevent stretching */
}

/* Wallet Container Override - Reset Generic Container Styles */
.wallet-container .container {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    position: static !important;
    overflow: visible !important;
    color: inherit !important;
    min-height: auto !important;
    margin-top: 0 !important;
    display: block !important;
    flex-wrap: nowrap !important;
    justify-content: normal !important;
    gap: 0 !important;
    align-items: normal !important;
}

.wallet-container .container::after {
    content: none !important;
    display: none !important;
}

/* Reset inner items that might inherit game card styles */
.wallet-container .container .slot-img-wrapper,
.wallet-container .slot-img-wrapper {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    aspect-ratio: auto !important;
    display: inline-block !important;
    margin: 0 !important;
    overflow: visible !important;
    transition: none !important;
}

.wallet-container .container .slot-img-wrapper:hover,
.wallet-container .slot-img-wrapper:hover {
    transform: none !important;
    box-shadow: none !important;
    z-index: auto !important;
}

/* Hide Care/Heart Icon in Wallet */
.wallet-container .care-icon,
.wallet-container .container .care-icon {
    display: none !important;
}

/* Reset Image Styles in Wallet */
.wallet-container .container img,
.wallet-container .container .slot-img-wrapper img,
.wallet-container img {
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    object-fit: contain !important;
    background: transparent !important;
    border: none !important;
}

/* Reset Link Styles in Wallet */
.wallet-container .container a,
.wallet-container .container .slot-img-wrapper a,
.wallet-container a {
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    background: transparent !important;
    text-decoration: none !important;
}

/* --- Fix Promotion/Affiliate Page Container Color --- */
.container[data-v-6cf5705a] {
    background-color: transparent !important;
    background-image: none !important;
    padding-top: 0 !important;
}

.container[data-v-6cf5705a] .info_content {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Remove the pseudo-element blocking the bottom */
.container[data-v-6cf5705a]:after {
    display: none !important;
}

/* --- Fix Promotion Share Container --- */
.promotionShare__container {
    background: transparent !important;
    padding-top: 20px !important;
}

.promotionShare__container .van-nav-bar {
    background-color: transparent !important;
}

.promotionShare__container .van-nav-bar .van-icon,
.promotionShare__container .van-nav-bar .van-nav-bar__title {
    color: #ffffff !important;
}

.promotionShare__container .promotionShare__container-tips {
    color: #ffffff !important;
}

.promotionShare__container .promotionShare__container-slogan p {
    color: #ffffff !important;
}

/* Ensure pointer events are enabled for dragging */
.promotionShare__container .swiper-wrapper {
    pointer-events: auto !important;
}

/* --- Fix Notice Bar on Desktop --- */
@media screen and (min-width: 768px) {
    /* Make the container full width */
    #app .noticeBar__container {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Expand the scrolling body area */
    #app .noticeBar__container-body {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 !important;
        overflow: hidden !important;
    }

    /* Adjust text size and animation for better readability */
    #app .noticeBar__container-body-text {
        font-size: 16px !important;
        line-height: 1.5 !important;
        animation-duration: 25s !important; /* Slower speed for wider screens */
        padding-left: 100% !important; /* Start off-screen */
        white-space: nowrap !important;
    }
}

/* --- Fix Wallet Buttons (Deposit, Withdraw, etc.) --- */
.wallet-container .userDetail {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 10px !important;
    margin-top: 15px !important;
    width: 100% !important;
}

.wallet-container .userDetail > div {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
}

.wallet-container .userDetail .imgD {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1/1 !important;
    background: transparent !important;
    margin-bottom: 0 !important;
    border-radius: 16px !important; /* Matches game items */
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.wallet-container .userDetail .imgD img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Ensure image fills the box */
    border-radius: 0 !important;
}

/* Text Inside the Box */
.wallet-container .userDetail span {
    position: absolute !important;
    bottom: 8px !important;
    left: 0 !important;
    width: 100% !important;
    text-align: center !important;
    color: #ffffff !important;
    font-size: 11px !important; /* Small text to fit */
    font-weight: 700 !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8) !important; /* Readability */
    z-index: 10 !important;
    pointer-events: none !important;
    line-height: 1.1 !important;
    padding: 0 2px !important;
    white-space: normal !important; /* Allow wrapping if needed */
}

/* Animated modifier */
.van-tabs__content--animated,
.fish .container .all,
.container {
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
}

/* Add a subtle shine effect */
.van-tabs__content::after,
.fish .container .all::after,
.container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(4, 1, 36, 0.5), transparent);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .van-tabs__content {
        padding: 5px;
        border-radius: 5px;
    }
}

/* --- Attractive Slots Picture Design --- */
.slotsPic,
.fish .container {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    padding: 2px !important;
    background: transparent !important;
    border-radius: 16px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
    margin: 10px 0;
    overflow: visible !important; /* Allow hover effects to pop out */
    max-height: none !important; /* Override restrictive height */
}

.hide-when-empty {
    display: none !important;
}
.hide-when-empty img {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Auto-hide empty slot wrappers inside slotsPic when there is no valid img */
.slotsPic .slot-img-wrapper:not(:has(img)),
.slotsPic .slot-img-wrapper:has(img[src=""]),
.slotsPic .slot-img-wrapper:has(img[src="#"]),
.slotsPic .slot-img-wrapper:has(img[src="about:blank"]) {
    display: none !important;
}


/* Ensure parent fish container allows overflow for hover effects */
.fish {
    overflow: visible !important;
}

.okwin2Home_flash {
    /* Layout matching slotsPic grid */
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    overflow: visible !important;
    max-height: none !important;

    /* Visuals matching .van-tabs__content (Yellow Design) */
    background: linear-gradient(145deg, #020543, #08013a);
    border-radius: 0 !important; /* Strict Square */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    color: #333333;
    min-height: 200px;
    position: relative;
    
    /* Animation from .van-tabs__content--animated */
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
}

/* Shine effect for okwin2Home_flash */
.okwin2Home_flash::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
}

/* Inner Container Grid Layout */
.okwin2Home_flash .container {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    overflow: visible !important;
}

/* Update: Target the wrapper instead of img for layout */
.slotsPic .slot-img-wrapper,
.okwin2Home_flash .slot-img-wrapper,
.okwin2Home_flash .container .slot-img-wrapper,
.fish .container .slot-img-wrapper,
.container .slot-img-wrapper {
    position: relative;
    display: inline-block;
    aspect-ratio: 1/1;
    margin-bottom: 0;
    border-radius: 0 !important; /* Strict Square */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(135deg, #ff0000 0%, #b71c1c 100%); /* Red square round shape */
    padding: 3px; /* Create a red border effect */
    overflow: visible !important;
}

/* Ensure img fills the wrapper */
.slotsPic img,
.slotsPic .slot-img-wrapper img,
.slotsPic .slot-img-wrapper a,
.okwin2Home_flash img,
.okwin2Home_flash .slot-img-wrapper img,
.okwin2Home_flash .slot-img-wrapper a,
.okwin2Home_flash .container img,
.okwin2Home_flash .container .slot-img-wrapper img,
.okwin2Home_flash .container .slot-img-wrapper a,
.fish .container img,
.fish .container .slot-img-wrapper img,
.fish .container .slot-img-wrapper a {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important; /* Strict Square */
    display: block !important;
}

/* --- Tabbar Container & Items (Moved from index.css) --- */
.tabbar__container {
    position: fixed;
    bottom: 0;
    left: 50%;
    display: flex;
    align-items: flex-end;
    width: 10rem;
    transform: translate(-50%);
    height: 2.2rem;
    font-size: .29333rem;
    background: #021140;
    box-shadow: 0 -.02667rem #4b3c0b;
    transition: background .2s ease, box-shadow .2s ease, filter .2s ease;
    cursor: pointer;
    z-index: 100;
}

.tabbar__container:hover {
    background: #0b1d59;
    box-shadow: 0 -.10667rem #8a6f13;
}

.tabbar__container-item {
    flex: 1;
    height: 100%;
    padding-top: 1.06667rem;
    color: var(--norm_secondary-color);
    text-align: center;
    background-repeat: no-repeat;
    background-size: .53333rem;
    background-position: center .32rem;
}

.tabbar__container-item.promotion {
    background-image: url(/assets/png/yellow_promotion-992842e5.webp);
}

.tabbar__container-item.activity {
    background-image: url(/assets/png/yellow_activity-19e1e2fa.webp);
}

.tabbar__container-item.home {
    position: relative;
    top: -.4rem;
    background-position: center .18667rem;
    color: transparent !important;
    padding-top: 1.54667rem;
    background-size: 1.76rem 1.94667rem;
    background-image: url(/assets/png/yellow_home-5ffdd667.webp);
}

.tabbar__container-item.wallet {
    background-image: url(/assets/png/yellow_wallet-af4b65a8.webp);
}

.tabbar__container-item.turntableBg {
    background-image: var(--3442ba73-getInvitedWheelImgUrl);
    background-size: cover;
    width: 2.04rem;
    height: 2.04rem;
    position: relative;
    top: -.8rem;
    font-size: .34667rem;
    padding-top: 1.68rem;
    font-weight: 600;
}

.tabbar__container-item.main {
    background-image: url(/assets/png/yellow_main-6b8ccc07.webp);
}

.tabbar__container-item.active:not(.home) {
    background-size: 1.06667rem 1.2rem;
    color: var(--main-color);
    padding-top: .98667rem;
}

.tabbar__container-item.active:not(.home).promotion {
    background-image: url(/assets/png/yellow_promotion_a-0f612093.webp);
}

.tabbar__container-item.active:not(.home).activity {
    background-image: url(/assets/png/yellow_activity_a-c2ae8f1e.webp);
}

.tabbar__container-item.active:not(.home).wallet {
    background-image: url(/assets/png/yellow_wallet_a-302b691b.webp);
}

.tabbar__container-item.active:not(.home).main {
    background-image: url(/assets/png/yellow_main_a-66656fc5.webp);
}

.isTurntable .home {
    top: 0;
    height: 100%;
    background-size: 1.06667rem;
    background-position: center .32rem;
    padding-top: 1.06667rem;
    background-image: url(/assets/png/ar064_home-6b4a1a6e.webp) !important;
}

.isTurntable .active.home {
    background-size: 1.06667rem 1.2rem;
    background-image: url(/assets/png/ar064_home_a-096fef13.webp) !important;
}

@media screen and (max-width: 500px) {
    .tabbar__container {
        width: 100%;
        left: 0;
        transform: translate(0);
    }

    html:lang(ar) .tabbar__container {
        left: unset;
        right: 0;
    }
}

@media (min-width: 768px) {
    .tabbar__container {
        position: fixed;
        width: 100%;
        left: 0%;
        transform: none;
        height: 2.2rem;
        z-index: 1001;
    }
}

/* --- Tabbar Item Hover Effects --- */
.tabbar__container-item {
    cursor: pointer;
    transition: all 0.2s ease;
}

.tabbar__container-item:hover {
    color: #ffc107 !important; /* Yellow text */
}

/* Swap icons on hover for known items */
.tabbar__container-item.promotion:hover {
    background-image: url(/assets/png/yellow_promotion_a-0f612093.webp) !important;
}
.tabbar__container-item.activity:hover {
    background-image: url(/assets/png/yellow_activity_a-c2ae8f1e.webp) !important;
}
.tabbar__container-item.wallet:hover {
    background-image: url(/assets/png/yellow_wallet_a-302b691b.webp) !important;
}
.tabbar__container-item.main:hover {
    background-image: url(/assets/png/yellow_main_a-66656fc5.webp) !important;
}

/* For Home, apply brightness filter since active image varies or is unknown */
.tabbar__container-item.home:hover {
    filter: brightness(1.2);
    text-shadow: 0 0 5px rgba(255, 193, 7, 0.5); /* Add glow to text */
}

body .tabbar__container-item:nth-of-type(3) .svg-icon {
    color: var(--text_color_L4);
}

/* --- Index/Home Page Custom Tabbar Styles --- */
/* These styles were originally inline in index.html */
.tabbar__container {
    background: linear-gradient(180deg, #010525 0%, #020b26 100%) !important;
    border-top: 2px solid #ae4106 !important; /* Deep Yellow Border */
    border-top-left-radius: 20px !important;
    border-top-right-radius: 20px !important;
    box-shadow: 0 -10px 30px rgba(2, 1, 75, 0.5) !important;
    padding-bottom: 5px !important;
    z-index: 9999 !important;
}

.tabbar__container .tabbar__container-item {
    transition: transform 0.3s ease, filter 0.3s ease !important;
}

.tabbar__container .tabbar__container-item.active {
    transform: translateY(-8px);
    filter: drop-shadow(0 4px 6px rgba(243, 227, 5, 0.4));
    color: #FFC107 !important;
}

/* --- Bonus Page Custom Tabbar Styles --- */
/* These styles were originally inline in bonus/bonus.php */
.bonus-page .tabbar__container {
    background: linear-gradient(180deg, #2c3e50 0%, #000000 100%) !important;
    border-top: 3px solid #FFC107 !important;
    border-top-left-radius: 20px !important;
    border-top-right-radius: 20px !important;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5) !important;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto !important; /* Override base width */
    z-index: 9999 !important;
    display: flex;
    justify-content: space-around;
    align-items: center;
    transform: none !important; /* Override base transform */
}

.bonus-page .tabbar__container .tabbar__container-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 0.8rem;
    transition: transform 0.3s ease, filter 0.3s ease !important;
    background: none !important; /* Override base background image */
    padding-top: 0 !important; /* Override base padding */
    height: auto !important;
}

.bonus-page .tabbar__container .tabbar__container-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.bonus-page .tabbar__container .tabbar__container-item.active {
    transform: translateY(-8px);
    filter: drop-shadow(0 4px 6px rgba(255, 193, 7, 0.4));
    color: #FFC107 !important;
}

/* Center item special styling for Bonus Page */
.bonus-page .tabbar__container .tabbar__container-item.center-item {
    transform: translateY(-20px);
    background: linear-gradient(135deg, #FFC107 0%, #FF9800 100%) !important;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    justify-content: center;
    border: 4px solid #1a1a1a;
    box-shadow: 0 -5px 15px rgba(255, 193, 7, 0.4);
}

.bonus-page .tabbar__container .tabbar__container-item.center-item i {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: #000;
}

.bonus-page .tabbar__container .tabbar__container-item.center-item span {
    display: none;
}


/* Fix for container images to show fully */
.container .slot-img-wrapper {
    aspect-ratio: auto !important;
    height: auto !important;
}

.container .slot-img-wrapper img,
.container .slot-img-wrapper a {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 17px !important;
    display: block;
    border: none !important;
    background-color: transparent;
}

/* Specific reset for a tag to remove default link styles if needed */
.slotsPic .slot-img-wrapper a,
.okwin2Home_flash .slot-img-wrapper a,
.okwin2Home_flash .container .slot-img-wrapper a,
.fish .container .slot-img-wrapper a,
.container .slot-img-wrapper a {
    text-decoration: none;
    padding: 0;
    margin: 0;
}

/* --- TABS BTN IMAGES --- */
/* Add images to elements with class "tabs-btn" */


.tabs-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 30px;
    font-size: 0 !important;
    color: transparent !important;
    text-shadow: none !important;
    background-repeat: no-repeat !important;
    transform: none !important; /* Ensure no skew inheritance */
    border-radius: 0 !important;
}

/* Create the image element using pseudo-element */
.tabs-btn::before {
    content: '';
    display: block;
    width: 0px; /* Adjust size */
    height: 10px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    padding-bottom: 80px;
    padding-top: 0px;
    padding-left: 20px;
}


.tabs-btn .van-tab__text,
.tabs-btn span,
.tabs-btn p,
.tabs-btn i,
.tabs-btn b,
.tabs-btn em,
.tabs-btn small {
    display: none !important;
}

/* Background images for provided logos */
.van-tab:nth-child(1) .tabs-btn { background-image: url('/assets/slotspic/jili.png'); }
.van-tab:nth-child(2) .tabs-btn { background-image: url('/assets/slotspic/pgsoft.png'); }
.van-tab:nth-child(3) .tabs-btn { background-image: url('/assets/slotspic/playson.png'); }
.van-tab:nth-child(4) .tabs-btn { background-image: url('/assets/slotspic/cq9.png'); }
.van-tab:nth-child(5) .tabs-btn { background-image: url('/assets/slotspic/jdb.png'); }
.van-tab:nth-child(6) .tabs-btn { background-image: url('/assets/slotspic/pragmatic.png'); }
.van-tab:nth-child(7) .tabs-btn { background-image: url('/assets/slotspic/playtech.png'); }
.van-tab:nth-child(8) .tabs-btn { background-image: url('/assets/slotspic/playngo.png'); }
.van-tab:nth-child(9) .tabs-btn { background-image: url('/assets/slotspic/redtiger.png'); }
.van-tab:nth-child(10) .tabs-btn { background-image: url('/assets/slotspic/Evoplay.png'); }
.van-tab:nth-child(11) .tabs-btn { background-image: url('/assets/slotspic/mg.png'); }


/* Hover effects on wrapper */
.slotsPic .slot-img-wrapper:hover,
.okwin2Home_flash .slot-img-wrapper:hover,
.okwin2Home_flash .container .slot-img-wrapper:hover,
.fish .container .slot-img-wrapper:hover,
.container .slot-img-wrapper:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 0, 0, 0.3); /* Red glow */
    z-index: 100;
}

/* Care Icon */
.care-icon {
    position: absolute;
    top: -8px; /* Extend slightly outside/on the border */
    right: -8px;
    width: 36px;
    height: 36px;
    background: transparent; /* No background */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 1;
    transform: scale(1);
}

.care-icon svg {
    width: 28px; /* Larger icon */
    height: 28px;
    fill: rgba(0, 0, 0, 0.3); /* Slight dark fill for contrast */
    stroke: #ff0000; /* Pure Red Stroke */
    stroke-width: 2.5px; /* Thicker stroke */
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); /* Shadow for pop */
}

/* Hover Effects */
.care-icon:hover {
    transform: scale(1.15) rotate(5deg); /* Slight tilt */
}

/* Fill with red on hover (icon or wrapper) or active */
.care-icon:hover svg,
.slotsPic .slot-img-wrapper:hover .care-icon svg,
.okwin2Home_flash .slot-img-wrapper:hover .care-icon svg,
.okwin2Home_flash .container .slot-img-wrapper:hover .care-icon svg,
.fish .container .slot-img-wrapper:hover .care-icon svg,
.container .slot-img-wrapper:hover .care-icon svg,
.care-icon.active svg {
    fill: #ff0000;
    stroke: #ff0000;
    filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0.6)); /* Glowing red */
}

.care-icon.active {
    transform: scale(1.15);
}

/* Responsive Widths for Wrapper */
/* Mobile: 4 items per row */
@media (max-width: 1023px) {
    .slotsPic .slot-img-wrapper,
    .okwin2Home_flash .slot-img-wrapper,
    .okwin2Home_flash .container .slot-img-wrapper,
    .fish .container .slot-img-wrapper,
    .container .slot-img-wrapper {
        width: calc(25% - 6px) !important;
    }
    
    /* Fallback for direct img if JS fails or loads late */
    .slotsPic > img,
    .okwin2Home_flash > img,
    .okwin2Home_flash .container > img,
    .fish .container > img,
    .container > img {
    width: calc(25% - 6px) !important;
    aspect-ratio: 1/1;
    border-radius: 12px !important;
    height: auto !important; /* Ensure aspect ratio is respected */
}

    /* Fix for container mobile width (3 items per row) */
    .container .slot-img-wrapper,
    .container > img {
        width: calc(33.33% - 6px) !important;
    }
}

/* Desktop: 6 items per row */
@media (min-width: 1024px) {
    .slotsPic .slot-img-wrapper,
    .okwin2Home_flash .slot-img-wrapper,
    .okwin2Home_flash .container .slot-img-wrapper,
    .fish .container .slot-img-wrapper,
    .container .slot-img-wrapper {
        width: calc(16.66% - 7px) !important;
    }
    
    .slotsPic > img,
    .okwin2Home_flash > img,
    .okwin2Home_flash .container > img,
    .fish .container > img,
    .container > img {
         width: calc(16.66% - 7px) !important;
         aspect-ratio: 1/1;
         border-radius: 12px !important;
         height: auto !important; /* Ensure aspect ratio is respected */
    }
}

/* --- Game Type List Design (Icon Top, Text Below) --- */
.gameTypeList {
   display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    padding: 5px !important;
    padding-left: 0 !important;
    background: transparent !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
    margin: 5px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 1 !important;
    overflow: hidden !important;
}

/* Moving Gradient Border */
.gameTypeList::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%; 
    height: 150%;
    background: conic-gradient(
        from 0deg, 
        transparent 0%, 
        transparent 70%, 
        #ff0000 80%, 
        #ff7f00 85%, 
        #ffff00 90%, 
        #00ff00 95%, 
        #0000ff 100%
    );
    transform: translate(-50%, -50%);
    animation: rotateBorder 4s linear infinite;
    z-index: -2 !important;
}

/* Inner Background Mask */
.gameTypeList::after {
    content: '';
    position: absolute;
    inset: 1px; /* Border width */
    background: linear-gradient(145deg, #010445, #03013b);
    border-radius: 14px;
    z-index: -1 !important;
}

/* Ensure content sits on top */
.gameTypeList > * {
    position: relative !important;
    z-index: 2 !important;
}

/* Child items */
/* Child items */
.gameTypeList > div, 
.gameTypeList > a,
.gameTypeList .item {
    border-radius: 16px !important;
    overflow: visible !important;
    box-shadow: none !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    background: linear-gradient(135deg, #025735 0%, #02665c 100%) !important;
    padding: 4px !important;
    position: relative !important;
    min-width: 72px;
    min-height: 72px;
    aspect-ratio: 1/1;
    display: flex !important;
    flex-direction: column !important; /* Stack Icon and Text */
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 300 !important;
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6) !important;
    line-height: 1.2 !important;
    cursor: pointer !important;
}

/* Active State for Game Type Items */
.gameTypeList > div.active, 
.gameTypeList > a.active,
.gameTypeList .item.active {
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%) !important;
    box-shadow: 0 0 15px rgba(0, 198, 255, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    transform: translateY(-3px);
    z-index: 5 !important;
}

/* Images inside gameTypeList - HIDDEN */
.gameTypeList img {
    display: none !important;
}

/* Base Icon (::before) */
.gameTypeList > div::before, 
.gameTypeList > a::before,
.gameTypeList .item::before {
    content: '';
    display: block;
    width: 30px !important; /* Increased size */
    height: 50px !important; /* Increased size */
    margin-bottom: 1px !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    transition: transform 0.3s ease !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)) !important;
    z-index: 10 !important;
    position: relative !important;
}

/* --- Specific Icons (Gradient & Colorful) --- */

/* 1. Slots (Red Gradient 7) */
.gameTypeList > div:nth-child(1)::before, 
.gameTypeList > a:nth-child(1)::before, 
.gameTypeList .item:nth-child(1)::before {
    background-image: url('/assets/svg/slots_a-de9dd5ee.svg');
}

/* 2. Casino (Purple Gradient Dice) */
.gameTypeList > div:nth-child(2)::before, 
.gameTypeList > a:nth-child(2)::before, 
.gameTypeList .item:nth-child(2)::before {
    background-image: url('/assets/svg/card_a-1da2e03a.svg');
}
/* 3. Sports (Football Icon) */
.gameTypeList > div:nth-child(3)::before, 
.gameTypeList > a:nth-child(3)::before, 
.gameTypeList .item:nth-child(3)::before {
    background-image: url('/assets/svg/sports_a-5313dd33.svg');
}

/* 4. Fishing (Orange/Red Fish) */
.gameTypeList > div:nth-child(4)::before, 
.gameTypeList > a:nth-child(4)::before, 
.gameTypeList .item:nth-child(4)::before {
    background-image: url('/assets/svg/icon_fish-80dac6e1.svg');
}

/* 5. Minigames (Pink/Blue Puzzle) */
.gameTypeList > div:nth-child(5)::before, 
.gameTypeList > a:nth-child(5)::before, 
.gameTypeList .item:nth-child(5)::before {
    background-image: url('/assets/svg/icon_mini-9bd4090f.svg');
}

/* 6. PVC (Card Icon) */
.gameTypeList > div:nth-child(6)::before, 
.gameTypeList > a:nth-child(6)::before, 
.gameTypeList .item:nth-child(6)::before {
    background-image: url('/assets/svg/icon_chess-b71f3e88.svg');
}


/* Hover Effects */
.gameTypeList > div:hover, 
.gameTypeList > a:hover,
.gameTypeList .item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3) !important;
    background: linear-gradient(135deg, #bcb306 0%, #c6b604 100%) !important; /* Deep Blue Gradient */
}

.gameTypeList > div:hover::before, 
.gameTypeList > a:hover::before,
.gameTypeList .item:hover::before {
    transform: scale(1.15) !important;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4)) !important;
}

/* Clear ::after just in case */
.gameTypeList > div::after,
.gameTypeList > a::after,
.gameTypeList .item::after {
    display: none !important;
}

/* Mobile Scroll Layout */
.gameTypeItem {
    font-size: 12px !important;
    font-weight: bold !important;
}

.gameTypeTitle {
    font-size: 12px !important;
    font-weight: bold !important;
}

@property --gradient-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@media (max-width: 600px) {
    .gameTypeList {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding-bottom: 0px !important;
        gap: 10px !important;
        justify-content: flex-start !important;
        
        /* New Moving Border Technique for Scroll Containers */
        position: relative !important;
        border: 2px solid transparent !important;
        background: 
            linear-gradient(#1b0249, #010129) padding-box,
            conic-gradient(from var(--gradient-angle), transparent 0%, transparent 70%, #ff0000 80%, #ff7f00 85%, #ffff00 90%, #00ff00 95%, #0000ff 100%) border-box !important;
        animation: rotation 4s linear infinite;
        
        /* Remove clip-path as it interferes with scrollbar or border visibility if not sized perfectly */
        clip-path: none !important;
    }
    
    @keyframes rotation {
        0% { --gradient-angle: 0deg; }
        100% { --gradient-angle: 360deg; }
    }
    
    /* Disable pseudo-elements on mobile as we use background-border */
    .gameTypeList::before,
    .gameTypeList::after {
        display: none !important;
    }
    
    .gameTypeList::-webkit-scrollbar {
        display: none; /* Hide scrollbar Chrome/Safari */
    }

    .gameTypeList > div, 
    .gameTypeList > a,
    .gameTypeList .item {
        flex: 0 0 auto !important;
        width: 70px !important;
    }
}

/* Fix for slotsPic images visibility - Make them slightly taller */
.slotsPic .slot-img-wrapper,
.slotsPic > img {
    aspect-ratio: 0.8 !important; /* Taller than square (1/1) */
}


/* Fix for van-swipe-item images on desktop to show fully */
@media (min-width: 1024px) {
    .van-swipe-item img {
        height: 290px !important; /* Force full height */
        object-fit: fill !important; /* Stretch to fill */
        background-color: transparent;
        display: block !important;
        gap: 20px;

    }
    
}

/* Hide class="all" as requested */
.all {
    display: none !important;
}

/* Attendence Icon - Teal/Green Gradient */
#desktop-sidebar .sidebar-link .icon-box.attendence {
    background: linear-gradient(135deg, #11998e, #38ef7d);
}

/* Invite Friend Icon - Purple/Blue Gradient */
#desktop-sidebar .sidebar-link .icon-box.invite {
    background: linear-gradient(135deg, #02732f, #047f3b);
}

/* Promotion Icon - Pink/Red Gradient */
#desktop-sidebar .sidebar-link .icon-box.promotion {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
}

/* --- Profile Modal Design --- */
#profileModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#profileModal.active {
    display: flex;
}

.profile-box {
    background: linear-gradient(145deg, #1a1f3c, #252b4d);
    width: 90%;
    max-width: 500px;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    color: #fff;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.profile-box h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
    background: linear-gradient(90deg, #00d2ff, #3a7bd5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.profile-box label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #aab2c8;
    font-weight: 500;
}

.profile-box input[type="text"],
.profile-box input[type="email"],
.profile-box input[type="password"],
.profile-box input[type="file"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    background: #13172c;
    border: 1px solid #2d3655;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.profile-box input:focus {
    border-color: #3a7bd5;
    box-shadow: 0 0 0 3px rgba(58, 123, 213, 0.2);
    outline: none;
}

.profile-box input:disabled {
    background: #0f1222;
    color: #666;
    cursor: not-allowed;
}

/* OTP Section */
.otp-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.otp-row input {
    margin-bottom: 0;
    flex: 1;
    text-align: center;
    letter-spacing: 1px;
    min-width: 120px;
}

.otp-row .btn {
    padding: 12px 20px;
    font-size: 13px;
    white-space: nowrap;
}

/* Buttons */
.profile-box .btn {
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn.save {
    background: linear-gradient(90deg, #00d2ff, #3a7bd5);
    color: white;
    width: 100%;
    padding: 15px;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(58, 123, 213, 0.4);
}

.btn.save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(58, 123, 213, 0.6);
}

.btn.cancel {
    background: transparent;
    color: #aab2c8;
    width: 100%;
    padding: 10px;
    margin-top: 10px;
}

.btn.cancel:hover {
    color: #fff;
}

#profile_send_otp, #profile_verify_otp {
    background: #2d3655;
    color: #00d2ff;
    border: 1px solid #3a7bd5;
}

#profile_send_otp:hover, #profile_verify_otp:hover {
    background: #3a7bd5;
    color: white;
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
}

.profile-box .preview {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    max-height: 200px;
    display: flex;
    justify-content: center;
    background: #13172c;
}

.profile-box .preview img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

.actions {
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
}

#profile_verify_status {
    font-size: 13px;
    margin-top: -15px;
    margin-bottom: 15px;
    min-height: 20px;
}
.verify-success { color: #00ff88; }
.verify-error { color: #ff4b4b; }
.verify-info { color: #00d2ff; }

.mt-3 { margin-top: 1rem; }

/* Responsive */
@media (max-width: 767px) {
    .profile-box {
        padding: 20px;
    }
    .otp-row {
        gap: 5px;
    }
    .otp-row .btn {
        padding: 12px 8px;
        font-size: 12px;
    }
    .otp-row input {
        font-size: 12px;
        padding: 12px 5px;
        font-weight: 400px;
        flex: 1.5;
        min-width: 100px;
    }
}

@media (min-width: 768px) {
    .actions {
        flex-direction: row;
        justify-content: flex-end;
    }
    .btn.save, .btn.cancel {
        width: auto;
        min-width: 120px;
        margin-top: 0;
    }
}

/* Menu Toggle Button Styling */
#menu-toggle {
    position: fixed;
    top: 8px;
    left: 0;
    margin: 0;
    z-index: 10001;
    /* Glassmorphic Gold/Orange Gradient */
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.9) 0%, rgba(255, 140, 0, 0.9) 100%);
    color: #3e1f00; /* Dark brown for better contrast */
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    border-right: 1px solid rgba(255, 255, 255, 0.4);
    /* Corner shape */
    padding: 6px 10px 8px 8px;
    border-radius: 0 0 16px 0;
    cursor: pointer;
    /* Soft shadow */
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    font-size: 18px;
    line-height: 1;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy transition */
    display: none; /* Hidden by default on desktop */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

#menu-toggle:hover {
    transform: scale(1.05) translate(1px, 1px);
    background: linear-gradient(135deg, rgba(255, 225, 50, 0.95) 0%, rgba(255, 160, 20, 0.95) 100%);
    box-shadow: 6px 6px 20px rgba(255, 140, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    color: #000;
}

#menu-toggle:active {
    transform: scale(0.95);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

/* --- GLOBAL INSTANT MOVEMENT OVERRIDES (Applies to ALL screen sizes) --- */
/* Lock the nav container to stop auto-centering */
.van-tabs__nav {
    transform: none !important;
    transition: none !important;
    left: 0 !important;
    margin-left: 0 !important;
    scroll-behavior: auto !important;
    display: flex !important;
}

/* Ensure the wrap doesn't scroll automatically */
.van-tabs__wrap {
    transform: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
    overflow-x: auto !important; /* Allow manual scroll */
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
}

.van-tabs__track {
    transform: translateZ(0) !important;
    transition: none !important;
    scroll-behavior: auto !important;
}

/* Ensure tabs button doesn't move */
.tabs-btn {
    transform: none !important;
    transition: none !important;
}

/* --- Mobile Performance Optimizations --- */
@media (max-width: 1024px) {
    /* Fix for "button response late" - Optimize click targets */
    .tabs-btn, 
    .van-tab, 
    .van-tabs__wrap, 
    .van-tab__text, 
    .van-tabs__nav {
        transition: none !important; /* Remove delay from transitions */
        touch-action: manipulation !important; /* Eliminate 300ms tap delay */
        -webkit-tap-highlight-color: transparent !important; /* Remove tap highlight lag */
        transform: translateZ(0) !important; /* Force GPU layer */
    }
    
    /* Instant feedback on press */
    .tabs-btn:active, 
    .van-tab:active {
        opacity: 0.7 !important;
        transition: none !important;
    }

    /* Fix for "not sliding smoothly" - Optimize slider tracks */
    .van-tabs__content, 
    .van-swipe__track,
    .van-tabs__track,
    .van-swipe-item {
        will-change: transform !important; /* Hint browser to promote layer */
        transform: translateZ(0) !important; /* Force GPU layer */
        -webkit-transform: translateZ(0) !important;
        backface-visibility: hidden !important;
        -webkit-backface-visibility: hidden !important;
        perspective: 1000px !important;
        -webkit-perspective: 1000px !important;
    }
}
