/* ========================================
   Base Styles & Variables
   ======================================== */

:root {
    --primary-color: #00d4aa;
    --dark-bg: #0a0e27;
    --card-bg: #1a2840;
    --text-light: #e0e0e0;
    --text-muted: #888;
    --border-color: #00d4aa;
    --dark-text: #0C0312;
    --text-danger: #FF3B30;
    --text-gray: #94A3B8;
    --emerald: #00CC99;
    --bg-dark: #0a0e14;
    --input-focus: #21262d;
    --theme-color: #00CC99;
    --text-white: #ffffff;

    /* Icon Accent Colors */
    --icon-complete: #00d294;
    /* Trophy Green */
    --icon-progress: #00a8e1;
    /* Hourglass Blue */
    --icon-played: #ffb74d;
    /* Gamepad Yellow */

    /* iOS Safe Area Support */
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-right: env(safe-area-inset-right, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-left: env(safe-area-inset-left, 0px);
}


/* ========================================
   iOS Safari Fixes (Critical)
   ======================================== */

/* 2. Fix Fixed/Sticky Positioning Jump on iOS Overscroll */
.navbar-container,
.navbar {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* 3. Input Auto-zoom Prevention on iOS */
input,
textarea,
select,
button {
    font-size: 16px;
    /* Prevents auto-zoom on focus */
    -webkit-appearance: none;
    /* iOS button/input reset */
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
}

input:focus,
textarea:focus,
select:focus {
    -webkit-tap-highlight-color: rgba(0, 212, 170, 0.1);
}

/* 4. Remove Default Webkit Button Styles */
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
    border: none;
    background: none;
}

a:-webkit-any-link:focus-visible {
    outline-offset: 0px;
}

/* 5. Fix Flexbox Gap for iOS 14 and older */
@supports not (gap: 1rem) {
    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }

    .row>* {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* 6. Glassmorphism/Backdrop Filter - WebKit Prefix */
.header-scrolled,
.stats-wrap,
.community-wrap,
.testimonial-item,
.packages-header,
.balance-item,
.contact-form-container,
.support-card,
.contact-details,
.social-section,
.info-card,
.settings-card,
.profile-card {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
}

/* 7. Specific Blur Values */
.stats-wrap,
.community-wrap {
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

/* 9. Smooth Scrolling Optimization */
html {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    -webkit-user-select: none;
    user-select: none;
}

body {
    -webkit-user-select: text;
    user-select: text;
}

/* 10. Text Selection Colors */
::selection {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

::-moz-selection {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

/* 11. Link Active/Hover States on iOS */
a {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

a:active {
    opacity: 0.7;
}

/* 12. Image Rendering Optimization */
img {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
}

/* 13. Form Control Focus Ring for iOS */
.form-control:focus,
.form-select:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
    -webkit-outline: none;
}

/* 14. Prevent iOS Zoom on Double Tap */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
textarea,
select {
    font-size: 16px;
    padding: 10px;
    border-radius: 12px;
}

.brand-logo .light {
    display: block !important;
}

.brand-logo .dark {
    display: none !important;
}

/* ========================================
   LIGHT MODE OVERRIDES
   ======================================== */

/* Body Background */
body.light-mode .brand-logo .light,
body.light-mode .logo-box .light {
    display: none !important;
}

body.light-mode .brand-logo .dark,
body.light-mode .logo-box .dark {
    display: block !important;
}

body.light-mode {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.5) 100%), url(../images/bg-image-1.jpg) no-repeat;
    color: #1c1e21 !important;
}

body.light-mode .navbar-container {
    background: #fff;
}

body.light-mode .hero-title {
    background: transparent;
    color: #222C38 !important;
    -webkit-text-fill-color: #222C38;
}

body.light-mode .section-label,
body.light-mode .how-card p,
body.light-mode .packages-heading span,
body.light-mode .history-label {
    color: #272C35 !important;
}

body.light-mode .edit-profile-btn {
    background: rgba(255, 255, 255, 1) !important;
    color: rgba(34, 44, 56, 1);
}

body.light-mode .edit-profile-btn .fa-arrow-left {
    color: rgba(0, 204, 153, 1);
}

body.light-mode .hero-section,
body.light-mode .packages-section,
body.light-mode .games-section,
body.light-mode .brands-section,
body.light-mode .how-works-section,
body.light-mode .testimonials-section,
body.light-mode .stats-section,
body.light-mode .community-section,
body.light-mode .gameplay-section {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Cards & Wrappers */
body.light-mode .stat-card,
body.light-mode .community-wrap,
body.light-mode .bg-card-dark {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(216, 228, 234, 1);
    box-shadow: 0px 18px 50px 0px rgba(16, 33, 43, 0.08);
    backdrop-filter: blur(10px);
}

body.light-mode .stats-wrap {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--Primary-colors-Main-color-Default, rgba(0, 204, 153, 1));
    box-shadow: 0px 10px 40px -20px rgba(0, 128, 96, 0.1);
    backdrop-filter: blur(10px);
}

body.light-mode .packages-header {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.8) 100%), url(../images/package-header-bg.png) no-repeat center center;

}

body.light-mode .wallet-btn {
    color: rgba(255, 255, 255, 1);
}

body.light-mode .social-link {
    background-color: rgba(255, 255, 255, 0.78);
}

body.light-mode .testimonial-item {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

body.light-mode .testimonial-card {
    background: rgba(255, 255, 255, 0.96) !important;
    border-color: rgba(212, 147, 51, 0.72);
    box-shadow:
        inset 0 0 0 1px rgba(255, 190, 78, 0.22),
        0 0 24px rgba(0, 153, 255, 0.14),
        0 16px 50px rgba(22, 31, 39, 0.16);
}

body.light-mode .testimonial-text {
    color: #222C38 !important;
}

body.light-mode .testimonial-bg-image {
    opacity: 0.13;
}

body.light-mode .testimonial-quote {
    color: #00d4aa !important;
    text-shadow: 0 3px 12px rgba(0, 212, 170, 0.45);
}

body.light-mode .testimonials-carousel::before {
    opacity: 0.28;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(228, 236, 239, 0.92) 15%, rgba(228, 236, 239, 0.92) 85%, rgba(255, 255, 255, 0)),
        url('../images/bg-image-1.jpg') center / cover no-repeat;
}

body.light-mode .brands-carousel {
    background-color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    border: 0;
}

/* Text Colors */
body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6,
body.light-mode .stat-text h2 {
    color: #222C38 !important;
    /* var(--dark-text) jaisa */
}

body.light-mode p,
body.light-mode .text-muted,
body.light-mode .form-label,
body.light-mode .notification-actions .btn-secondary,
body.light-mode .btn-outline-primary,
body.light-mode .btn-outline-primary i.icon-edit {
    color: rgba(34, 44, 56, 1) !important;
}

body.light-mode .notification-actions .btn-secondary:hover {
    color: #222C38 !important;
}

body.light-mode .btn-outline-primary {
    border: 1px solid rgba(0, 0, 0, 0.5);
}

body.light-mode .selected-item-tag {
    background: var(--Secondy-colors-Crard-Crad-Border-light-input, rgba(242, 246, 248, 1));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.light-mode .btn-item-delete {
    background: transparent;
    box-shadow: none;
}

body.light-mode .category-overlay {
    background: rgba(255, 255, 255, 0.4);
}


body.light-mode .full-screen-fix {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--Secondy-colors-Crard-Crad-Border-Light-Border, rgba(216, 228, 234, 1));
    box-shadow: 0px 18px 50px 0px rgba(16, 33, 43, 0.08);
    backdrop-filter: blur(10px);
}

body.light-mode .full-screen-fix .text-secondary,
body.light-mode .full-screen-fix .btn-nav-dark {
    color: rgba(34, 44, 56, 1) !important;
}

body.light-mode .full-screen-fix .btn-nav-dark:hover,
body.light-mode .full-screen-fix .btn-nav-dark:focus {
    color: rgba(0, 204, 153, 1) !important;
}

body.light-mode .btn-nav-dark {
    background: var(--Secondy-colors-Crard-Crad-Border-light-input, rgba(242, 246, 248, 1));
    border: 1px solid var(--Secondy-colors-Crard-Crad-Border-Light-Border, rgba(216, 228, 234, 1));
}

body.light-mode .full-screen-fix .second-nav {
    background: rgba(229, 235, 238, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

body.light-mode .full-screen-fix .btn-team-active:hover,
body.light-mode .full-screen-fix .btn-team-active:focus {
    background: var(--emerald);
}

body.light-mode .gb-point-pill.left,
body.light-mode .gb-point-pill.right {
    background: rgb(255 255 255);
    border: 1.5px solid var(--Secondy-colors-Crard-Crad-Border-Border-color, rgb(255 255 255));
}

body.light-mode .btn-team-active {
    color: #fff;
}

body.light-mode .gb-footer-wrapper {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, #fff 100%);
}

body.light-mode .score-counter {
    background: rgba(226, 236, 240, 1);
    border: 2.1px solid var(--Secondy-colors-Crard-Crad-Border-Light-Border, rgba(216, 228, 234, 1));
}

body.light-mode .helper-icon {
    background: var(--Secondy-colors-Crard-Crad-Border-light-icon-card, rgba(242, 246, 248, 1));
    border: 1px solid var(--Secondy-colors-Crard-Crad-Border-Light-Border, rgba(216, 228, 234, 1));
}

body.light-mode .game-view-q-card,
body.light-mode .question-modal-overlay {
    background: rgb(255 255 255);
}

body.light-mode .game-view-progress-track {
    background-color: #c5cdd9;
}

body.light-mode .game-view-timer-box span#gameTimerDisplay {
    color: var(--dark-text) !important;
}

body.light-mode .game-view-score-num,
body.light-mode .game-view-footer-ctrl #btnShowAnswer span,
body.light-mode .game-view-footer-ctrl span {
    color: var(--text-light) !important;
}

body.light-mode .game-view-team-unit {
    border-bottom: 1.5px solid #d9d9d9;
}

body.light-mode .game-view-help-tool {
    background: rgba(223, 232, 237, 1);
    border: 1px solid rgba(192, 206, 213, 1);
}

body.light-mode .winner-screen-overlay {
    background: url(../images/winners-bg.png) no-repeat center center / cover rgb(255 255 255);
}

body.light-mode .rank-2 .podium-block,
body.light-mode .rank-4 .podium-block {
    background: linear-gradient(180deg, #a5a5a51a 0%, #ffffff00 100%);
    border-top: 4px solid #9b9b9b4d;
}

body.light-mode .podium-block {
    color: rgb(2 2 2 / 8%);
}

body.light-mode .winner-title {
    color: #65676b !important;
}

body.light-mode .player-score {
    color: rgba(30, 41, 59, 1);
}

body.light-mode .player-score.green {
    color: var(--theme-color);
}


/* Inputs & Search */
body.light-mode .search-input,
body.light-mode .form-control,
body.light-mode .profile-input,
body.light-mode .form-select,
body.light-mode .address-info,
body.light-mode .btn-social {
    background: var(--Secondy-colors-Crard-Crad-Border-light-input, rgba(242, 246, 248, 1)) !important;
    border: 1px solid var(--Secondy-colors-Crard-Crad-Border-Light-Border, rgba(216, 228, 234, 1)) !important;
    color: rgba(129, 136, 152, 1) !important;
}

body.light-mode .border-dashed {
    background: var(--Secondy-colors-Crard-Crad-Border-light-input, rgba(242, 246, 248, 1));
    border: 2px solid var(--Secondy-colors-Crard-Crad-Border-Light-Border, rgba(216, 228, 234, 1)) !important;
}

body.light-mode .match-tabs .nav-link:not(.active) {
    color: #65676b !important;
}

body.light-mode .btn-send-mail {
    color: #fff;
}

body.light-mode .whatsapp-card {
    background: linear-gradient(299.62deg, #00CC99 8.84%, rgba(77, 255, 210, 0.9) 129.97%);
    border: 1px solid rgba(0, 211, 88, 0.3);
}

body.light-mode .chat-icon-bg {
    background: rgba(255, 255, 255, 0.2);
}

body.light-mode .whatsapp-card h5,
body.light-mode .whatsapp-card p {
    color: #fff !important;
}



/* Buttons */
body.light-mode .btn-dark-action,
body.light-mode .btn-filter {
    background: var(--Secondy-colors-Crard-Crad-Border-light-input, rgba(242, 246, 248, 1)) !important;
    color: rgba(34, 44, 56, 1) !important;
    border: 1px solid var(--Secondy-colors-Crard-Crad-Border-Light-Border, rgba(216, 228, 234, 1)) !important;
}

body.light-mode .detail-item {
    background: rgba(242, 246, 248, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

body.light-mode .btn:hover {
    color: #fff !important;
}

body.light-mode .btn-social:hover,
body.light-mode .btn-social:focus {
    color: rgba(0, 204, 153, 1) !important;
}

body.light-mode .game-card-two {
    background-color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .categories-row,
body.light-mode .vs-tag,
body.light-mode .progress,
body.light-mode .match-tabs .nav-link.active {
    background: var(--Secondy-colors-Crard-Crad-Border-light-input, rgba(242, 246, 248, 1)) !important;
    border: 1px solid var(--Secondy-colors-Crard-Crad-Border-Light-Border, rgba(216, 228, 234, 1)) !important;
}

body.light-mode .cat-thumb {
    background: rgba(255, 255, 255, 0.92);
}

body.light-mode .match-tabs .nav-link.active {
    color: #65676b !important;
}

body.light-mode .btn-item-delete {
    color: rgba(155, 166, 178, 1);
}

body.light-mode .btn-buy:hover,
body.light-mode .btn-buy:focus {
    color: #00d29d !important;
}

body.light-mode .btn-dark-action:hover,
body.light-mode .btn-dark-action:focus {
    color: #1c1e21 !important;
}

body.light-mode .team-option .team-label {
    color: rgba(129, 136, 152, 1) !important;
}

body.light-mode .team-option.selected .team-label,
body.light-mode .team-option:hover,
body.light-mode .team-option .team-label:hover {
    color: rgba(255, 255, 255, 1) !important;
}


body.light-mode .division-option {
    background: var(--Secondy-colors-Crard-Crad-Border-light-input, rgba(242, 246, 248, 1));
    border: 1px solid var(--Secondy-colors-Crard-Crad-Border-Light-Border, rgba(216, 228, 234, 1));
}


body.light-mode .hero-card,
body.light-mode .categories-wrap,
body.light-mode .select-tools-wrap,
body.light-mode .form-card {
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid var(--Secondy-colors-Crard-Crad-Border-Light-Border, rgba(216, 228, 234, 1)) !important;
    box-shadow: 0px 18px 50px 0px rgba(16, 33, 43, 0.08);
}

body.light-mode .team-wrap {
    background: var(--Secondy-colors-Crard-Crad-Border-light-input, rgba(242, 246, 248, 1));
    border: 1px solid var(--Secondy-colors-Crard-Crad-Border-Light-Border, rgba(216, 228, 234, 1));
}

body.light-mode .stats-card,
body.light-mode .withdrawal-card,
body.light-mode .ad-card {
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    border: 0;
}

body.light-mode .powerup-card {
    background: var(--Secondy-colors-Crard-Crad-Border-light-input, rgba(242, 246, 248, 1));
    border: 1px solid var(--Secondy-colors-Crard-Crad-Border-Light-Border, rgba(216, 228, 234, 1));
}

body.light-mode .warning-box {
    border: 1px solid rgba(212, 115, 41, 0.3);
}

body.light-mode .circle-box {
    border: 1px solid rgba(102, 197, 164, 0.3);
}

body.light-mode .time-box {
    border: 1px solid rgba(255, 77, 109, 0.4);
}

body.light-mode .group-box {
    border: 1px solid rgba(0, 153, 255, 0.3);
}

body.light-mode .history-value::before {
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode .header-title h3,
body.light-mode .time-section h5 {
    color: rgba(34, 44, 56, 1) !important;
}

body.light-mode .time-section h5 {
    color: #FBBF24 !important;
}

body.light-mode .timer-box {
    background: rgba(255, 255, 255, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-mode .timer-number,
body.light-mode .timer-label {
    color: rgba(34, 44, 56, 1);
}

body.light-mode .settings-card .card-header,
body.light-mode .setting-item {
    border-bottom: 1px solid rgb(245 245 245);
}

body.light-mode .contact-box,
body.light-mode .info-card,
body.light-mode .settings-card,
body.light-mode .profile-card,
body.light-mode .contact-info,
body.light-mode .light-dark-panel,
body.light-mode .match-tabs {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--Secondy-colors-Crard-Crad-Border-Light-Border, rgba(216, 228, 234, 1));
    box-shadow: 0px 18px 50px 0px rgba(16, 33, 43, 0.08);
    backdrop-filter: blur(10px);
}

body.light-mode .btn-back:hover,
body.light-mode .btn-back:focus {
    background: var(--Primary-colors-Main-color-Default, rgba(0, 204, 153, 1));
    border: 1px solid rgba(0, 204, 153, 1);
    color: #fff;
}

body.light-mode .profile-icon {
    background: #222C38;
    color: #fff !important;
}

body.light-mode .site-menu-drawer {
    background: rgba(255, 255, 255, 0.98);
    border-left: 1px solid var(--Secondy-colors-Crard-Crad-Border-Light-Border, rgba(216, 228, 234, 1));
    box-shadow: -24px 0 55px rgba(16, 33, 43, 0.16);
}

body.light-mode .site-menu-link {
    color: #2d3440;
}

body.light-mode .site-menu-link:hover,
body.light-mode .site-menu-link:focus,
body.light-mode .site-menu-link.active {
    color: var(--primary-color);
    background: rgba(0, 204, 153, 0.12);
}

body.light-mode .navbar-nav .nav-link {
    color: #65676b !important;
}

body.light-mode .navbar-nav .nav-link:hover,
body.light-mode .navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

body.light-mode .security-check .form-check-label {
    color: #00CC99;
}

body.light-mode .accordion-button {
    background: var(--Secondy-colors-Crard-Crad-Border-light-input, rgba(242, 246, 248, 1)) !important;
    border: 1px solid var(--Secondy-colors-Crard-Crad-Border-Light-Border, rgba(216, 228, 234, 1)) !important;
}

body.light-mode #accordionExample .accordion-body {
    background: var(--Secondy-colors-Crard-Crad-Border-light-input, rgba(242, 246, 248, 1)) !important;
    border-top: 1px solid var(--Secondy-colors-Crard-Crad-Border-Light-Border, rgba(216, 228, 234, 1))
}

body.light-mode .accordion-button .fa-plus,
body.light-mode .accordion-button .fa-minus {
    background: var(--Neutral-Gray-Icon, rgba(142, 142, 142, 1));
}

body.light-mode .accordion-button:not(.collapsed) .fa-plus::before {
    color: #fff;
}

body.light-mode .category-title {
    color: rgba(34, 44, 56, 1);
}

body.light-mode #accordionExample .accordion-item {
    background: var(--Secondy-colors-Crard-Crad-Border-light-input, rgba(242, 246, 248, 1));
    border: 1px solid var(--Secondy-colors-Crard-Crad-Border-Light-Border, rgba(216, 228, 234, 1));
}

body.light-mode .rank-1 .crown-icon,
body.light-mode .player-score.green,
body.light-mode .player-score {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 249, 255, 0.94) 100%);
    border: 1px solid rgba(0, 204, 153, 0.28);
    box-shadow: none;
    filter: none;
}

body.light-mode .rank-badge {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.26);
    box-shadow: 0px 10px 26px 0px rgba(15, 23, 42, 0.1);
    color: rgba(100, 116, 139, 1);
}

@import url('venobox.min.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

html,
body {
    margin: 0 !important;
    padding: 0 !important;
}


body {
    font-family: 'Cairo', sans-serif;
    background: #020409;
    background: linear-gradient(135deg, rgba(2, 4, 9, 0.8) 0%, rgba(14, 8, 8, 0.5) 100%), url('../images/bg-image-1.jpg') no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}


.full-screen-fix {
    width: 100% !important;
    /* Screen ki poori width lega */
    max-width: 100% !important;
    padding-left: env(safe-area-inset-left) !important;
    /* Notch se content bachayega */
    padding-right: env(safe-area-inset-right) !important;
    background: linear-gradient(180deg, rgba(26, 31, 41, 0.9) 0%, #14181F 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0px 12px 32px 0px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
}

/* Grid ko control karne ke liye (Flex hata kar Grid) */
.gameboard-main-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

@media (max-width: 992px) {
    .gameboard-main-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .gameboard-main-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Typography
   ======================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: #fff;
}

p {
    color: var(--text-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #00e6b8;
}

.light-text {
    color: var(--text-light) !important;
}

.dark-text {
    color: var(--dark-text) !important;
}

.text-danger {
    color: var(--text-danger) !important;
}

.text-gray {
    color: var(--text-gray) !important;
}

.theme-color {
    color: var(--theme-color) !important;
}

/* ========================================
   Gap Fallback for iOS 14 (margin-based)
   ======================================== */

/* Flexbox gap fallback */
.row.g-4>* {
    margin-bottom: 1.5rem;
    /* 0.375rem × 4char */
}

/* .row.g-4 > *:last-child {
    margin-bottom: 0;
} */

.social-links {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

@supports not (gap: 3rem) {
    .social-links {
        margin: -1.5rem;
    }

    .social-links>* {
        margin: 1.5rem;
    }
}

/* Grid gap support */
@supports (display: grid) {

    .balance-card,
    .form-row {
        display: grid;
        gap: 1.5rem;
    }
}

@supports not (gap: 1.5rem) {

    .balance-card>*,
    .form-row>* {
        margin-bottom: 1.5rem;
    }
}

.min-vh-50 {
    min-height: 50vh;
}

/* iOS Viewport Height Fix */
.min-vh-100 {
    min-height: 100vh;
    min-height: 100dvh;
    /* Dynamic Viewport Height (iOS 15.4+) */
    min-height: -webkit-fill-available;
    /* iOS Safari fallback */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Add top padding for fixed navbar on hero */
.hero-section .min-vh-100 {
    padding-top: calc(var(--safe-area-top) + 80px);
}

/* ========================================
   Navigation
   ======================================== */

.navbar-container {
    background: transparent;
    border-bottom: 0;
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;

    /* iOS Fixes */
    -webkit-transform: translate3d(0, 0, 0);
    /* Enable hardware acceleration */
    transform: translate3d(0, 0, 0);
    padding-top: var(--safe-area-top);
    padding-left: var(--safe-area-left);
    padding-right: var(--safe-area-right);
    left: 0;
    right: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.header-scrolled {
    backdrop-filter: blur(10px);
}

.navbar {
    padding: 0.8rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar .container-lg {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Navbar Left - Language Selector */
.navbar-left {
    flex: 0 0 auto;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.language-selector:hover {
    transform: translateY(-2px);
}

.flag-icon {
    width: 36px;
    height: 36px;
}

.language-text {
    white-space: nowrap;
}

/* Navbar Center - Navigation Menu */
.navbar-center {
    flex: 1;
    justify-content: center;
}

.navbar-nav {
    display: flex;
    gap: 0;
    margin: 0;
}

.navbar-nav .nav-link {
    color: var(--text-light) !important;
    margin: 0 1.5rem;
    transition: color 0.3s ease;
    font-weight: 500;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

/* Navbar Right - Profile & Register */
.navbar-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.profile-icon {
    font-size: 1rem;
    color: var(--text-light);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #222C38;
    padding: 10px;
    border-radius: 100%;
    width: 41px;
    height: 41px;
}

.profile-icon:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.theme-toggle-btn {
    width: 41px;
    height: 41px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 100%;
    background: #222C38;
    color: #FFD166;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    flex: 0 0 41px;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.theme-toggle-btn:hover {
    color: var(--primary-color);
    transform: scale(1.08);
    box-shadow: 0 10px 26px rgba(0, 204, 153, 0.18);
}

.theme-toggle-btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

.theme-toggle-btn .theme-icon {
    position: absolute;
    inset: auto;
    font-size: 1rem;
    line-height: 1;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.theme-toggle-btn .theme-icon-sun {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.theme-toggle-btn .theme-icon-moon {
    color: #222C38;
    opacity: 0;
    transform: scale(0.62) rotate(-28deg);
}

body.light-mode .theme-toggle-btn {
    background: #ffffff;
    border-color: rgba(216, 228, 234, 1);
    color: #FFD166;
    box-shadow: 0 8px 22px rgba(16, 33, 43, 0.08);
}

body.light-mode .theme-toggle-btn .theme-icon-sun {
    opacity: 0;
    transform: scale(0.62) rotate(28deg);
}

body.light-mode .theme-toggle-btn .theme-icon-moon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.site-menu-toggle {
    border: 0;
    cursor: pointer;
}

.site-menu-toggle[aria-expanded="true"] {
    color: var(--primary-color);
}

.site-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1090;
    background: rgba(3, 7, 12, 0.62);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.site-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.site-menu-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    width: min(360px, calc(100vw - 28px));
    padding: calc(var(--safe-area-top) + 24px) 22px 24px;
    background: rgba(20, 24, 31, 0.98);
    border-left: 1px solid rgba(43, 48, 59, 1);
    box-shadow: -24px 0 55px rgba(0, 0, 0, 0.35);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.site-menu-drawer.is-open {
    transform: translateX(0);
}

body.site-menu-open {
    overflow: hidden;
}

.site-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.site-menu-logo {
    display: inline-flex;
    align-items: center;
}

.site-menu-logo .dark,
body.light-mode .site-menu-logo .light {
    display: none;
}

body.light-mode .site-menu-logo .dark {
    display: block;
}

.site-menu-close {
    width: 41px;
    height: 41px;
    border: 0;
    border-radius: 100%;
    background: #222C38;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.25s ease, transform 0.25s ease;
}

.site-menu-close:hover,
.site-menu-close:focus {
    color: var(--primary-color);
    transform: scale(1.06);
}

.site-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.site-menu-link {
    min-height: 50px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 8px;
    color: var(--text-light);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.site-menu-link i {
    width: 22px;
    text-align: center;
    color: var(--primary-color);
}

.site-menu-link:hover,
.site-menu-link:focus,
.site-menu-link.active {
    background: rgba(0, 212, 170, 0.12);
    color: var(--primary-color);
    transform: translateX(-3px);
}

.site-menu-link-danger {
    color: #ff6b6b;
}

.site-menu-link-danger i {
    color: #ff6b6b;
}

.site-menu-link-danger:hover,
.site-menu-link-danger:focus {
    background: rgba(255, 107, 107, 0.12);
    color: #ff8b8b;
}

.btn-register {
    background: var(--primary-color);
    color: var(--dark-bg);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    white-space: nowrap;

    /* iOS Button Fixes */
    -webkit-appearance: none;
    appearance: none;
    -webkit-border-radius: 2rem;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-user-select: none;
    user-select: none;
}

.btn-register:hover {
    background: #00e6b8;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 212, 170, 0.3);
}

.edit-profile-btn {
    background: var(--Secondy-colors-Accent-Cosmos, rgba(34, 44, 56, 1)) !important;
}

.game-balance-btn {
    background: linear-gradient(90deg, #10c6a3, #0fbf9b);
    color: #fff;
    border-radius: 50px;
    padding: 8px 25px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;

    /* iOS Button Fixes */
    -webkit-appearance: none;
    appearance: none;
    -webkit-border-radius: 50px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.game-balance-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    color: #fff;
}

.game-balance-btn .coins {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}

.game-balance-btn .coins i {
    color: #FFD700;
}

/* Hide toggler by default, show on mobile */
.navbar-toggler {
    display: none !important;
    border: none;
    padding: 0;
    order: 1;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28224,224,224,0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ========================================
   Hero Section
   ======================================== */
section {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

.hero-section,
.packages-section {
    background-color: transparent;
    position: relative;
    overflow: hidden;
}

.hero-section::before,
.packages-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('../images/shape.png') no-repeat;
    animation: float 6s ease-in-out infinite;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 9;
    min-height: 100vh;
}

.packages-section {
    padding-top: 200px !important;
}

/* .hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
} */

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1rem;

}

.hero-description {
    font-size: 1rem;
    color: var(--text-muted);
}

/* ========================================
   Game Cards Section
   ======================================== */

.games-section {
    background-color: transparent;
    position: relative;
}

.game-card {
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.5rem;
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-carousel {
    max-width: 1040px;
    height: 265px;
    margin: 0 auto;
    padding: 4rem 0 4.5rem;
    overflow: hidden;
    position: relative;
    touch-action: pan-y;
    user-select: none;
    cursor: grab;
}

.game-carousel:active {
    cursor: grabbing;
}

.game-carousel .game-card {
    width: 42%;
    aspect-ratio: 16 / 9;
    padding: 0;
    overflow: hidden !important;
    animation: none !important;
    backface-visibility: hidden;
    border-radius: 10px !important;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
        rgba(11, 13, 24, 0.9);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
    isolation: isolate;
    transform: translateZ(0);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.game-carousel .game-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transform: translateX(-100%);
    animation: catalog-image-placeholder 1.4s ease-in-out infinite;
    pointer-events: none;
}

.game-carousel.catalog-custom .game-card {
    position: absolute;
    top: 50%;
    left: 50%;
    opacity: 0;
    transform-origin: center center;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease, filter 0.45s ease, box-shadow 0.45s ease;
    filter: saturate(0.9) blur(0.2px);
    pointer-events: none;
    will-change: transform, opacity;
}

.game-carousel.catalog-custom .game-card.is-prev {
    z-index: 2;
    opacity: 0.82;
    transform: translate(-105%, -43%) scale(0.74);
    pointer-events: auto;
    cursor: pointer;
}

.game-carousel.catalog-custom .game-card.is-next {
    z-index: 2;
    opacity: 0.82;
    transform: translate(5%, -43%) scale(0.74);
    pointer-events: auto;
    cursor: pointer;
}

.game-carousel.catalog-custom .game-card.is-center {
    z-index: 5;
    opacity: 1;
    border-radius: 10px !important;
    transform: translate(-50%, -50%) scale(1.08);
    filter: saturate(1.08);
    pointer-events: auto;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.game-carousel.catalog-custom .game-card.is-center img {
    border-radius: 10px !important;
}

.game-carousel.catalog-custom .game-card.is-hidden {
    z-index: 1;
    opacity: 0;
    transform: translate(-50%, 8%) scale(0.62);
}

.game-carousel .game-card:hover {
    opacity: 1;
}

.game-carousel.catalog-custom .game-card.is-center:hover {
    transform: translate(-50%, -53%) scale(1.1);
}

.game-carousel .game-card img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px !important;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.3s ease;
    user-select: none;
}

.game-carousel .game-card img.is-loaded {
    opacity: 1;
}

.game-carousel .game-card:has(img.is-loaded)::before {
    animation: none;
    opacity: 0;
}

.game-carousel .game-card h5 {
    display: none;
}

@keyframes catalog-image-placeholder {
    to {
        transform: translateX(100%);
    }
}

@media (max-width: 768px) {
    .game-carousel {
        max-width: 100%;
        height: 215px;
        padding: 2rem 0 2.75rem;
    }

    .game-carousel .game-card {
        width: 54%;
    }

    .game-carousel.catalog-custom .game-card.is-center {
        transform: translate(-50%, -50%) scale(1.04);
    }

    .game-carousel.catalog-custom .game-card.is-center:hover {
        transform: translate(-50%, -53%) scale(1.06);
    }
}

@media (orientation: portrait) and (max-width: 575.98px) {
    .game-carousel {
        height: 188px;
        max-width: 100%;
        padding: 1.75rem 0 2.25rem;
    }

    .game-carousel .game-card {
        width: 66%;
    }

    .game-carousel.catalog-custom .game-card {
        top: 50%;
        left: 50%;
        filter: saturate(0.9) blur(0.2px);
    }

    .game-carousel.catalog-custom .game-card.is-center {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.04);
        pointer-events: auto;
        filter: saturate(1.08);
    }

    .game-carousel.catalog-custom .game-card.is-prev {
        opacity: 0.82;
        transform: translate(-105%, -43%) scale(0.74);
    }

    .game-carousel.catalog-custom .game-card.is-next {
        opacity: 0.82;
        transform: translate(5%, -43%) scale(0.74);
    }

    .game-carousel.catalog-custom .game-card.is-hidden {
        opacity: 0;
        transform: translate(-50%, 8%) scale(0.62);
    }

    .game-carousel.catalog-custom .game-card.is-center:hover {
        transform: translate(-50%, -53%) scale(1.06);
    }
}

.card-image {
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: 1.5rem;
}

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .card-image img {
    transform: scale(1.05);
}

.card-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* ========================================
   Brands Section
   ======================================== */
.brand-wrap {
    margin-top: 3rem;
    padding-top: 3rem;
}

.brands-carousel {
    width: 100%;
    padding: 2rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.09);
}

.brand-item {
    opacity: 0.6;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    min-height: 100px;
}

.brand-item:hover {
    opacity: 1;
}

.brand-item img {
    max-height: 60px;
    max-width: 120px;
}

/* ========================================
   Section Headers
   ======================================== */

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-label {
    font-size: 1.5rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 1rem;
    position: relative;
}

.section-label::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -30px;
    width: 20px;
    height: 2px;
    background: var(--primary-color);
    transform: translateY(-50%);
}

.section-label::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -30px;
    width: 20px;
    height: 2px;
    background: var(--primary-color);
    transform: translateY(-50%);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
}

.section-header i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-header i.icon.icon-1 img {
    width: 73px;
}

/* ========================================
   How It Works Section
   ======================================== */

.how-works-section {
    position: relative;
}

.how-card {
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.how-card:hover {
    transform: translateY(-8px);
}

.how-card-number {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
    line-height: 1;
    text-shadow: 0 0 20px rgba(0, 212, 170, 0.4);
    margin: 0;
    position: absolute;
    border-radius: 100px;
    padding: 15px;
    border: 1px solid var(--primary-color);
}

.how-card h4 {
    font-size: 1.3rem;
    color: #fff;
    font-weight: 700;
    margin: 0.9rem 0 0 0;
}

.how-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
    flex-grow: 1;
    text-align: right;
}

.how-card-image {
    width: 100%;
    overflow: hidden;
    margin-top: 0.5rem;
}

.how-card-image img {
    width: 100%;
    height: 220px;
    transition: transform 0.3s ease;
    border-radius: 1rem;
}

.how-card-image-light,
body.light-mode .how-card-image-dark {
    display: none;
}

body.light-mode .how-card-image-light {
    display: block;
}

.how-card:hover .how-card-image img {
    transform: scale(1.08);
}



/* ========================================
   Gameplay Section
   ======================================== */

.gameplay-section {
    position: relative;
}

.gameplay-carousel {
    position: relative;
}

.gameplay-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gameplay-item img {
    width: 100%;
    transition: all 0.3s ease;
}

.play-button {
    position: absolute;
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--dark-bg);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gameplay-item:hover .play-button {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.5);
}

/* ========================================
   Testimonials Section
   ======================================== */

.testimonials-section {
    position: relative;
    background: #0c0708;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: -90px;
    left: 0;
    width: 1440px;
    height: 162px;
    background: url('../images/shape-right.png') no-repeat center center;
    background-size: cover;
}

.testimonials-section::after {
    content: '';
    position: absolute;
    top: 91%;
    left: 0;
    width: 1440px;
    height: 162px;
    background: url('../images/shape-left.png') no-repeat center center;
    background-size: cover;
    z-index: 9;
}


.testimonial-item {
    width: 100%;
    min-height: auto;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: visible;
    box-shadow: none;
}

.testimonial-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 12px);
    opacity: 0.28;
    pointer-events: none;
}

.testimonial-item > * {
    position: relative;
    z-index: 1;
}

.testimonial-hand-icon {
    width: 58px;
    height: 59px;
    object-fit: contain;
}

.testimonial-heading {
    margin: 0 0 0.9rem;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.testimonial-card {
    width: 100%;
    max-width: none;
    min-height: 360px;
    padding: 4.25rem clamp(1.25rem, 6vw, 5rem) 5.5rem;
    border: 2px solid rgba(212, 147, 51, 0.55);
    border-radius: 24px;
    background: #100f12;
    box-shadow:
        inset 0 0 0 1px rgba(255, 190, 78, 0.03),
        0 0 22px rgba(0, 153, 255, 0.18),
        0 16px 60px rgba(0, 0, 0, 0.45);
    position: relative;
    overflow: visible;
    text-align: center;
}

.testimonial-quote {
    position: absolute;
    top: -2rem;
    right: clamp(1.35rem, 3vw, 2.75rem);
    color: #00d4aa;
    font-size: 4.25rem;
    font-weight: 900;
    line-height: 1;
    z-index: 4;
}

.testimonial-title-image {
    width: min(100%, 300px);
    max-height: 125px;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.testimonial-text {
    margin: 1rem auto 0;
    max-width: 820px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.65;
    position: relative;
    z-index: 2;
}

.testimonial-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.32;
    z-index: 1;
    pointer-events: none;
}

.testimonial-badge {
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 112px;
    height: 76px;
    object-fit: cover;
    object-position: center bottom;
    border-radius: 14px 14px 0 0;
    transform: translateX(-50%);
    z-index: 2;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.nav-btn {
    width: 45px;
    height: 45px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;

    /* iOS Button Fixes */
    -webkit-appearance: none;
    appearance: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-callout: none;
}

.nav-btn:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.4);
}

.testimonials-carousel .swiper-button-next,
.testimonials-carousel .swiper-button-prev {
    width: 64px !important;
    height: 64px !important;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative !important;
    transition: all 0.3s ease;
    font-size: 2rem;
    font-weight: 900;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    transform: none !important;
    z-index: 10;
}

.testimonials-carousel .swiper-button-prev {
    transform: none !important;
}

.testimonials-carousel .swiper-button-next {
    transform: none !important;
}

.testimonials-carousel .swiper-button-next:hover,
.testimonials-carousel .swiper-button-prev:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    box-shadow: 0 10px 30px rgba(0, 212, 170, 0.5);
}

.testimonials-carousel .swiper-button-prev::before {
    content: '\f053';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1rem;
}

.testimonials-carousel .swiper-button-next::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1rem;
}

.testimonials-carousel .swiper-button-next::after,
.testimonials-carousel .swiper-button-prev::after {
    content: none !important;
}


.gallery-slide {
    display: block;
    width: min(1280px, 68vw);
    height: auto;
    padding: 0;
    border-radius: 12px;
    overflow: visible;
    filter: blur(7px);
    opacity: 0.28;
    transform: scale(0.9);
    transition: filter 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
}

.gallery-slide.swiper-slide-active {
    filter: none;
    opacity: 1;
    transform: scale(1);
}

.gallery-slide.swiper-slide-prev,
.gallery-slide.swiper-slide-next {
    filter: blur(4px);
    opacity: 0.48;
    transform: scale(0.94);
}

.swiper-actions {
    margin-top: 30px;
    display: flex;
    direction: ltr;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 0.35rem 0.5rem;
    position: relative;
    z-index: 12;
}

.gallery-slider .swiper-btn {
    width: 64px !important;
    height: 64px !important;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative !important;
    margin: 0 !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    pointer-events: auto;
    touch-action: manipulation;
}

.gallery-slider .swiper-btn:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.4);
}

.gallery-slider .swiper-btn::before {
    content: '';
    position: absolute;
}

.gallery-slider .swiper-btn.swiper-button-prev::before {
    content: '\f053';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.gallery-slider .swiper-btn.swiper-button-next::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.gallery-slider .swiper-pagination {
    position: static;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    display: none;
}

.gallery-slider .swiper-pagination-bullet {
    width: 14px;
    height: 4px;
    border-radius: 3px;
    margin: 0 !important;
}

.gallery-slider .swiper-pagination-bullet.swiper-pagination-bullet-active {
    background-color: #000;
}

/* Testimonials Swiper Overflow Fix */
.testimonials-carousel {
    overflow: visible;
    padding: 0 0.75rem;
    position: relative;
}

.testimonials-carousel::before {
    content: '';
    position: absolute;
    top: 38%;
    right: 0;
    left: 0;
    height: 44%;
    background:
        linear-gradient(90deg, rgba(14, 16, 22, 0), rgba(18, 20, 27, 0.92) 15%, rgba(18, 20, 27, 0.92) 85%, rgba(14, 16, 22, 0)),
        url('../images/bg-image-1.jpg') center / cover no-repeat;
    opacity: 0.68;
    filter: blur(1px);
    pointer-events: none;
}

.testimonials-carousel .swiper-wrapper {
    overflow: visible;
    align-items: stretch;
}

.testimonials-carousel .swiper-slide {
    overflow: visible;
    height: auto;
}

.swiper-slide.gallery-slide {
    overflow: visible;
}

/* ========================================
   Statistics Section
   ======================================== */

.stats-section {
    position: relative;
    margin: 0px 0 0 0;
    background: #0c0708;
    padding-top: 8rem !important;
}

.stats-wrap {
    background-color: #14181F;
    border: 2px solid rgba(245, 158, 11, 0.25);
    box-shadow: 0px 10px 40px -20px rgba(145, 91, 0, 0.04);
    backdrop-filter: blur(16px);
    border-radius: 1.5rem;
}

.stat-number {
    font-size: clamp(2rem, 5vw, 3.5rem);
    background: #0099FF;
    background: linear-gradient(to left, #0099FF 0%, #00CC99 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
}

/* ========================================
   Community Section
   ======================================== */

.community-section {
    position: relative;
    padding-bottom: 7rem !important;
    background: #0c0708;
}

.community-wrap {
    background: #141419;
    background: -webkit-linear-gradient(90deg, rgba(20, 20, 25, 1) 0%, rgba(10, 10, 15, 1) 100%);
    background: -moz-linear-gradient(90deg, rgba(20, 20, 25, 1) 0%, rgba(10, 10, 15, 1) 100%);
    background: linear-gradient(90deg, rgba(20, 20, 25, 1) 0%, rgba(10, 10, 15, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#141419",
            endColorstr="#0A0A0F",
            GradientType=1);
    border: 2px solid rgba(245, 158, 11, 0.25);
    box-shadow: 0px 10px 40px -20px rgba(145, 91, 0, 0.04);
    backdrop-filter: blur(16px);
    border-radius: 1.5rem;
}

.community-wrap .section-header {
    margin-top: 3rem;
    margin-bottom: 0;
}

.community-wrap .section-header .section-label {
    color: var(--primary-color);
}

.community-wrap .section-header p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 50%;
    text-align: center;
    margin: 30px auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border: 2px solid rgba(0, 212, 170, 0.3);
    border-radius: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 226px;
    background-color: rgba(15, 22, 32, 0.78);
    box-shadow: 0px 16px 32px 0px rgba(0, 0, 0, 0.2);
}

.social-link:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.social-link i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.social-link span {
    font-weight: 600;
    color: var(--text-light);
}

.social-link.instagram {
    border-color: #e4405f;
}

.social-link.instagram i {
    color: #e4405f;
}

.social-link.instagram span {
    color: #e4405f;
}

.social-link.whatsapp {
    border-color: #25d366;
}

.social-link.whatsapp i {
    color: #25d366;
}

.social-link.whatsapp span {
    color: #25d366;
}

.social-link.tiktok {
    border-color: #00f2ea;
    background:
        linear-gradient(135deg, rgba(37, 244, 238, 0.12), rgba(254, 44, 85, 0.1)),
        rgba(8, 8, 12, 0.86);
}

.social-link.tiktok i {
    color: #ffffff;
    text-shadow:
        -2px -1px 0 #00f2ea,
        2px 1px 0 #fe2c55;
}

.social-link.tiktok span {
    color: #ffffff;
    text-shadow: 1px 1px 0 #fe2c55;
}

.social-link.tiktok:hover {
    border-color: #fe2c55;
    box-shadow:
        0 14px 30px rgba(254, 44, 85, 0.18),
        0 0 18px rgba(37, 244, 238, 0.28);
}

/* ========================================
   Footer
   ======================================== */

.footer-section {
    background-color: #1a1a1a;
    /* Dark background */
    color: #ffffff;
}

.social-media-list {
    margin: 34px 0 0 0;
}

/* Oval/Ellipse Shape fix */
.social-media-list li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    /* Oval width */
    height: 40px;
    /* Oval height */
    background-color: #1e2733;
    color: #00d4aa;
    border-radius: 50px;
    /* High radius makes it oval */
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.social-media-list li a:hover {
    border-color: #00d4aa;
    transform: scale(1.05);
    color: #ffffff;
}

/* Bottom content styling */
.footer-bottom-content a {
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-bottom-content a:hover {
    color: #00d4aa;
}

/* Logo specific fix */
.footer-logo img {
    filter: drop-shadow(0 0 10px rgba(0, 212, 170, 0.2));
}

.footer-logo img {
    max-width: 120px;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem;
        flex-wrap: wrap;
    }

    .navbar .container-lg {
        flex-wrap: wrap;
        width: 100%;
        /* iOS Safe Area */
        padding-left: var(--safe-area-left);
        padding-right: var(--safe-area-right);
    }

    /* .navbar-left,
    .navbar-right {
        display: none;
    } */

    .navbar-center {
        flex: 0 0 100%;
        order: 3;
    }

    .navbar-center.collapse {
        display: none !important;
    }

    .navbar-center.collapse.show {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        padding: 1rem 0;
    }

    .navbar-nav {
        flex-direction: column;
        gap: 0;
    }

    .navbar-nav .nav-link {
        margin: 0.5rem 1.5rem;
    }

    .navbar-right {
        gap: 0.75rem;
    }

    .site-menu-drawer {
        width: min(340px, calc(100vw - 20px));
        padding: calc(var(--safe-area-top) + 20px) 16px 22px;
    }

    .site-menu-link {
        min-height: 48px;
    }

    .navbar-toggler {
        display: block !important;
        order: 2;
    }

    .navbar-brand {
        font-size: 1.3rem !important;
    }


    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .game-card {
        padding: 1rem;
    }

    .card-image img {
        height: 150px;
    }

    .how-card {
        padding: 1.5rem 1rem;
    }

    .how-card-number {
        font-size: 2.5rem;
    }

    .how-card h4 {
        font-size: 1.1rem;
    }

    .how-card p {
        font-size: 0.9rem;
    }

    /* .how-card-image img {
        height: 180px;
    } */

    .social-links {
        gap: 1.5rem;
    }

    .social-link {
        min-width: 120px;
        padding: 1rem;
    }

    .social-link i {
        font-size: 2rem;
    }

    .testimonial-item {
        min-height: auto;
        padding: 0;
    }

    .testimonial-hand-icon {
        width: 52px;
        height: 53px;
    }

    .testimonial-heading {
        font-size: 1.6rem;
    }

    .testimonial-card {
        max-width: none;
        min-height: 335px;
        padding: 3.6rem 2rem 5rem;
    }

    .testimonial-quote {
        right: 1.85rem;
        font-size: 5.2rem;
    }

    .testimonial-title-image {
        width: min(100%, 250px);
    }

    .testimonial-text {
        max-width: 640px;
        font-size: 0.9rem;
    }

    .testimonial-badge {
        width: 94px;
        height: 64px;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .row {
        align-items: center;
    }

    /* iOS Safe Area Bottom Padding */
    .footer-section {
        padding-bottom: calc(1rem + var(--safe-area-bottom));
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .navbar-collapse {
        align-items: start;
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }

    .game-card {
        padding: 0.75rem;
    }

    .card-image img {
        height: 120px;
    }

    .how-card-number {
        font-size: 1.8rem;
    }

    .how-card {
        padding: 1.25rem 1rem;
    }

    .how-card h4 {
        font-size: 1rem;
    }

    .how-card p {
        font-size: 0.85rem;
    }

    /* .how-card-image img {
        height: 150px;
    } */

    .testimonial-item {
        min-height: auto;
        padding: 0;
    }

    .gallery-slide {
        width: 86vw;
    }

    .testimonials-carousel::before {
        top: 30%;
        height: 52%;
    }

    .testimonial-hand-icon {
        width: 48px;
        height: 49px;
    }

    .testimonial-heading {
        font-size: 1.45rem;
    }

    .testimonial-card {
        max-width: none;
        min-height: 325px;
        padding: 3.25rem 1.25rem 4.85rem;
        border-radius: 18px;
    }

    .testimonial-quote {
        right: 1.65rem;
        font-size: 4.85rem;
    }

    .testimonial-title-image {
        width: min(100%, 220px);
    }

    .testimonial-text {
        max-width: 100%;
        font-size: 0.82rem;
        line-height: 1.6;
    }

    .testimonial-badge {
        width: 86px;
        height: 58px;
    }

    .nav-btn {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section-label {
        font-size: 0.75rem;
    }

    .social-links {
        flex-direction: column;
        gap: 1rem;
    }

    .social-link {
        width: 100%;
    }

    /* iOS Safe Area Bottom for Mobile */
    body {
        padding-bottom: var(--safe-area-bottom);
    }

    .contact-section,
    .profile-section,
    .notifications-section {
        padding-bottom: calc(3rem + var(--safe-area-bottom));
    }

    /* Form inputs on iOS - Larger touch targets */
    input,
    textarea,
    select,
    button {
        font-size: 16px;
        /* Prevent zoom */
    }

    .btn {
        min-height: 44px;
        font-size: 16px;
    }


}

/* ========================================
   Animations
   ======================================== */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-card,
.how-card,
.stat-item {
    animation: slideInUp 0.6s ease forwards;
}

.stat-item .progress {
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.stat-item .progress .progress-bar {
    background-color: rgba(16, 185, 129, 1);
    border-radius: 3px;
}

.game-card:nth-child(2) {
    animation-delay: 0.1s;
}

.game-card:nth-child(3) {
    animation-delay: 0.2s;
}

/* ========================================
   Owl Carousel Customization
   ======================================== */

.owl-carousel .owl-nav {
    position: absolute;
    top: -60px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.owl-carousel .owl-nav button {
    background: transparent !important;
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    margin: 0 10px !important;
    border-radius: 50%;
    width: 40px !important;
    height: 40px !important;
    font-size: 0.8rem !important;
    transition: all 0.3s ease;
}

.owl-carousel .owl-nav button:hover {
    background: var(--primary-color) !important;
    color: var(--dark-bg) !important;
}

.owl-carousel .owl-dots {
    text-align: center;
    margin-top: 2rem;
}

.owl-carousel .owl-dot {
    background: rgba(0, 212, 170, 0.3) !important;
    border-radius: 50%;
    margin: 0 5px !important;
    transition: all 0.3s ease;
}

.owl-carousel .owl-dot.active {
    background: var(--primary-color) !important;
}

.owl-carousel .owl-dot:hover {
    background: var(--primary-color) !important;
}

/* Essential Owl Carousel base styles */
.owl-carousel {
    display: block;
    width: 100%;
}

.owl-carousel .owl-stage {
    display: flex !important;
}

.owl-carousel .owl-stage-outer {
    overflow: hidden;
}

.owl-carousel .owl-item {
    min-height: 1px;
    width: auto;
}

/* ========================================
   Packages Section
   ======================================== */

/* Packages Header */
.packages-header {
    background: rgba(2, 44, 34, 9.5);
    background: linear-gradient(90deg, rgba(2, 44, 34, 0.9) 100%, rgba(2, 44, 34, 0.6) 0%), url('../images/package-header-bg.png') no-repeat center center;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 1.5rem;
    padding: 2rem;
    margin-bottom: 2.5rem;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.wallet-btn {
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wallet-btn:hover {
    background: #00e6b8;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 212, 170, 0.3);
}

.timer-section {
    display: flex;
    gap: 0.5rem;
}

.time-section {
    margin-top: 50px;
}

.time-section h5 {
    display: block;
    color: #FBBF24;
    margin-bottom: 20px;
    font-size: 12px;
    text-align: left;
}

.timer-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.1rem 0rem;
    border-radius: 0.75rem;
    width: 48px;
}

.timer-box.v2 {
    width: 53px;
}

.timer-number {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-light);
}

.timer-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.header-title {
    width: 100%;
}

.header-title h3 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    color: #fff;
}

.header-title p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}


/* Container styling */
.package-wrapper {
    max-width: 520px;
    margin: 15px auto;
    perspective: 1000px;
}

.packages-heading span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.pkg-card {
    background: url(../images/package-bg.png) no-repeat center center;
    background-size: cover;
    border-radius: 30px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.3s ease;
    padding: 30px;
}

.pkg-card:hover {
    transform: translateY(-10px);
}

.pkg-card.pkg-1 {
    background-image: url('../images/subscriptionFrame.png'), url('../images/subscription.png');
    background-repeat: no-repeat, no-repeat;
    background-position: left 12px bottom 10px, center center;
    background-size: min(38%, 190px) auto, cover;
    border: 0;
    min-height: 320px;
    padding: 42px 30px 34px 44% !important;
}

.pkg-card.pkg-1 .pkg-badge-container,
.pkg-card.pkg-1 .pkg-value,
.pkg-card.pkg-1 .pkg-price,
.pkg-card.pkg-1 .row {
    position: relative;
    z-index: 1;
}

.pkg-card.pkg-1 .pkg-value h2 {
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    line-height: 1.25;
}

.pkg-card.pkg-1 .pkg-price h3 {
    font-size: clamp(1.25rem, 1.8vw, 1.55rem);
    line-height: 1.25;
}

.pkg-card.pkg-2 {
    background: url('../images/package-2.png') no-repeat center center;
    background-size: cover;
    border: 0;
    padding: 50px 30px !important;
}

.pkg-card.pkg-3 {
    background: url('../images/package-3.png') no-repeat center center;
    background-size: cover;
    border: 0;
    padding: 50px 30px !important;
}

.pkg-card.pkg-4 {
    background: url('../images/package-4.png') no-repeat center center;
    background-size: cover;
    border: 0;
    padding: 50px 30px !important;
}

.pkg-value h1 {
    line-height: 45px;
}

/* Top White Badge */
.pkg-badge-container {
    margin-top: -7px;
    margin-bottom: 10px;
}

.pkg-badge {
    background: rgba(255, 255, 255, 0.84);
    color: #1e8b6b;
    padding: 4px 22px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.8rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
    backdrop-filter: blur(8px);
}

.pkg-card h3 {
    color: var(--Secondy-colors-Text-color-Default, rgba(12, 3, 18, 1));
    font-size: 22px;
    font-weight: 900;
    margin-top: 20px;
}

/* Decoration & Floating Icons */
.pkg-decor {
    position: relative;
    height: 60px;
}

.coins-icon {
    font-size: 2.5rem;
    color: #00ffd5;
    display: flex;
    justify-content: center;
    position: relative;
}

.main-c {
    z-index: 2;
    position: relative;
}

.sub-c {
    position: absolute;
    left: 53%;
    top: 5px;
    opacity: 0.5;
    transform: scale(0.8);
}

/* Floating Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.coins-icon {
    animation: float 3s ease-in-out infinite;
}

/* Buy Button Styling */
.btn-buy {
    background-color: #00d29d;
    color: #ffffff;
    border: none;
    font-size: 0.8rem;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(0, 210, 157, 0.3);
    border-radius: 12px;
    display: block;
    padding: 10px !important;
    width: 100%;
}

.btn-buy:hover,
.btn-buy:focus,
.btn-buy:active {
    background-color: #ffffff;
    color: #1e8b6b;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4);
}

.packages-section .btn-purchase-package,
.packages-section .btn-purchase-subscription {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    max-width: 100%;
    min-height: 48px;
    padding: 10px 18px !important;
    line-height: 1.2;
    white-space: nowrap;
}

/* Extra Background Elements (Optional Glass effects) */
.shape-1 {
    position: absolute;
    width: 80px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    top: -20px;
    left: -20px;
    transform: rotate(-20deg);
}

/* Stats Card */
.stats-card {
    background: RGBA(20, 28, 39, 0.95);
    background: linear-gradient(90deg, rgba(20, 28, 39, 0.95) 100%, rgba(10, 15, 22, 0.9) 0%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 1.5rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.stats-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 150px;
    background: radial-gradient(circle at 85% -20%, rgba(0, 212, 170, 0.15), transparent 50%);
    z-index: -1;
}

.stat-item {
    text-align: right;
    padding-bottom: 25px;
}

.stat-item.v2 {
    padding-bottom: 0px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: row;
    align-items: center;
}

#subscription-card .stat-value {
    font-size: 1.5rem;
}

.stat-value .icon-1 {
    flex-shrink: 0;
    margin-right: 8px;
}

.stat-value .icon-1,
.pkg-value h1 i.icon-1 {
    width: 40px;
    height: 40px;
    background: url('../images/icon-4.png') no-repeat center center;
    display: inline-block;
}



.stat-label {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.stat-percentage {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 5px;
}

.stat-heading {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}

/* Balance Card */
.balance-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.balance-item {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.1) 0%, rgba(0, 150, 120, 0.05) 100%);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 1.5rem;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.balance-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    display: block;
}

.balance-title {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.balance-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Withdrawal Card */
.withdrawal-card {
    background: rgba(20, 28, 39, 1);
    border-radius: 1.5rem;
    padding: 1.5rem;
}

.withdrawal-title {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.chart-placeholder {
    width: 100%;
    height: 180px;
    background: rgba(0, 212, 170, 0.05);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.chart-placeholder img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.withdrawal-history {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.history-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    justify-content: space-between;
}

.history-label {
    color: var(--text-light);
    font-size: 0.85rem;
    flex: 1;
    text-align: right;
}

i.icon-blur-blue,
i.icon-blur-orange {
    display: inline-block;
    margin-left: 10px;
}

i.icon-blur-blue {
    width: 12px;
    height: 12px;
    background-color: rgba(16, 185, 129, 1);
    box-shadow: 0px 0px 10px 0px rgba(16, 185, 129, 1);
    border-radius: 50%;
}

i.icon-blur-orange {
    width: 12px;
    height: 12px;
    background-color: rgba(245, 158, 11, 1);
    box-shadow: 0px 0px 10px 0px rgba(245, 158, 11, 1);
    border-radius: 50%;
}

.history-subtitle {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 2px;
}

.history-value {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0 1rem;
    position: relative;
}

.history-value::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(29%);
    width: 2px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
}

.history-item i {
    color: var(--primary-color);
    font-size: 1rem;
}

.history-item i.fa-times-circle {
    color: #ff6b6b;
}

/* Tabbed View Styles */
.custom-packages-tabs .nav-link {
    color: rgba(129, 136, 152, 1);
    background: transparent;
    border: 0px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    font-size: 15px;
    border-radius: 22px;
}

.custom-packages-tabs .nav-link.active {
    background: rgba(0, 204, 153, 1);
    color: #fff;
    border-color: rgba(0, 204, 153, 1);
    border-radius: 22px;
}

.package-nav.nav {
    background: rgba(20, 24, 31, 1);
    border: 1px solid rgba(44, 44, 44, 1);
    padding: 5px;
    border-radius: 22px;
}

.withdrawal-history-tabpanel {
    width: 100%;
}

.history-card {
    background: rgba(20, 28, 39, 0.6);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.history-card:hover {
    background: rgba(20, 28, 39, 0.9);
    border-color: rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.history-value-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
}

.history-value-badge.positive {
    background: rgba(0, 212, 170, 0.2);
    color: var(--primary-color);
}

.history-value-badge.negative {
    background: rgba(255, 59, 48, 0.2);
    color: #ff3b30;
}

.stat-box {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-top: 20px;
}

.stat-box .stat-one {
    flex: 1;
    text-align: right;
}

.stat-box .stat-one h5,
.stat-box .stat-two h5 {
    font-size: 12px;
    color: #94A3B8;
}

.stat-box .stat-one h1 {
    color: #FBBF24;
    font-size: 20px;
}

.stat-box .stat-one i {
    background: url('../images/icon-2.png');
    width: 14px;
    height: 14px;
}

.stat-box .stat-two {
    flex: 1;
    text-align: right;
}

.stat-box .stat-two h1 {
    color: #60A5FA;
    font-size: 20px;
}

.stat-box .stat-two i {
    background: url('../images/icon-3.png');
    width: 14px;
    height: 14px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .timer-section {
        gap: 1rem;
    }

    .timer-box {
        padding: 0.5rem 1rem;
    }

    .timer-number {
        font-size: 1.2rem;
    }

    .package-card {
        padding: 1rem;
    }

    .package-amount {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {

    .packages-section {
        padding-top: 15rem !important;
        padding-bottom: 3rem !important;
    }

    .time-section h5 {
        text-align: right;
    }

    .packages-header {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .package-card {
        padding: 1rem;
    }

    .package-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
    }

    .package-image {
        height: 100px;
        margin: 0.75rem 0;
    }

    .package-amount {
        font-size: 1.75rem;
        margin: 0.75rem 0;
    }

    .package-currency {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .package-btn {
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
    }

    .balance-card {
        gap: 1rem;
    }

    .header-title h3 {
        font-size: 1.3rem;
    }

    .header-title p {
        font-size: 0.85rem;
    }

    .timer-section {
        gap: 0.75rem;
    }

    .timer-box {
        padding: 0.8rem 2.75rem;
    }

    .timer-number {
        font-size: 1rem;
    }

    .timer-label {
        font-size: 0.65rem;
    }

    .btn-buy {
        width: 70%;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .packages-grid {
        grid-template-columns: 1fr;
    }

    .packages-header {
        padding: 1rem;
    }

    .header-content {
        gap: 1rem;
    }

    .wallet-btn {
        width: 100%;
        justify-content: center;
        margin-bottom: 30px;
    }

    .timer-section {
        width: 100%;
        justify-content: space-around;
        margin-bottom: 30px;
    }

    .balance-card {
        grid-template-columns: 1fr;
    }

    .package-amount {
        font-size: 1.5rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .withdrawal-title {
        font-size: 1rem;
    }

    .header-title h3 {
        font-size: 1.1rem;
    }

    .header-title p {
        font-size: 0.8rem;
    }
}

.ad-card {
    margin-top: 1.5rem;
    background: rgba(20, 28, 39, 1);
    border-radius: 1.5rem;
    padding: 1.5rem;
}

.ad-card h3 {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.ad-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ========================================
   Profile Section
======================================== */

.profile-section {
    margin-top: 100px;
    min-height: calc(100vh - 350px);
}

.profile-section::before,
.create-game-section::before,
.categories-section::before,
.game-view-main-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url(../images/shape.png) no-repeat;
    animation: float 6s ease-in-out infinite;
    z-index: -1;
}

.gameboard-section,
.game-history,
.reveal-identity-wrap,
.voiting-wrap {
    position: relative;
}

.gameboard-section::before,
.game-history:before,
.reveal-identity-wrap:before,
.voiting-wrap:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url(../images/shape.png) no-repeat;
    animation: float 6s ease-in-out infinite;
    z-index: -1;
}

/* Info Card Styling */
.info-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1.5rem;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.1);
    background: var(--Secondy-colors-Crard-Crad-Border-Bcakgorund-color, rgba(20, 24, 31, 1));
}

.info-card .card-header {
    margin-bottom: 2rem;
}

.info-card .card-header h5 {
    color: var(--text-light);
    font-size: 1.3rem;
    font-weight: 700;
}

.info-card .card-header i {
    font-size: 1.3rem;
    margin-left: 10px;
}

.card-header i.icon-profile {
    width: 20px;
    height: 20px;
    background: url('../images/profile-icon.png') no-repeat center center;
    background-size: cover;
}

.btn-outline-primary {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 0.5rem 1.5rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: rgba(0, 212, 170, 0.1);
    border-color: var(--primary-color);
    color: var(--text-light);
}

.btn-outline-primary i.icon-edit {
    width: 14px;
    height: 14px;
    background: url('../images/icon-5.png') no-repeat center center;
    background-size: cover;
    display: inline-block;
}

.border-bottom-light {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.icon-6 {
    width: 20px;
    height: 20px;
    background: url('../images/icon-6.png') no-repeat center center;
    background-size: cover;
}

.info-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.5rem;
}

.info-value {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

/* Settings Card Styling */
.settings-card {
    background: var(--Secondy-colors-Crard-Crad-Border-Bcakgorund-color, rgba(20, 24, 31, 1));
    border: 1px solid rgba(34, 44, 56, 1);
    box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.1);
    border-radius: 1.5rem;
    padding: 2rem 0;
    backdrop-filter: blur(10px);
}

.settings-card .card-header {
    margin-bottom: 2rem;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(34, 44, 56, 1);
}

.settings-card .card-header h5 {
    color: var(--text-light);
    font-size: 1.3rem;
    font-weight: 700;
}

.settings-card .card-header i {
    font-size: 1.3rem;
    margin-left: 10px;
}

.setting-item {
    cursor: pointer;
    transition: all 0.3s ease;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(34, 44, 56, 1);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item:hover {
    padding-left: 10px;
}

.setting-title {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.setting-description {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}



.setting-item i {
    font-size: 1.3rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    padding: 5px 16px;
    border-radius: 100%;
    line-height: 51px;
    text-align: center;
}

.setting-item i .lock-icon,
.setting-item i .notification-icon,
.setting-item i .support-icon,
.setting-item i .logout-icon {
    display: inline-block;
}

.setting-item i .lock-icon {
    background: url('../images/lock-icon.png') no-repeat center center;
    background-size: cover;
    width: 17px;
    height: 19px;
}

.setting-item i .notification-icon {
    background: url('../images/notification-icon.png') no-repeat center center;
    background-size: cover;
    width: 20px;
    height: 20px;
}

.setting-item i .support-icon {
    background: url('../images/support-icon.png') no-repeat center center;
    background-size: cover;
    width: 20px;
    height: 20px;
}

.setting-item i .logout-icon {
    background: url('../images/logout-icon.png') no-repeat center center;
    background-size: cover;
    width: 20px;
    height: 20px;
}

.icon-password i {
    background-color: transparent;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Profile Card Styling */
.profile-card {
    background: var(--Secondy-colors-Crard-Crad-Border-Bcakgorund-color, #14181F);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 120px;
    padding-bottom: 10px;
}

.profile-avatar-section {
    position: relative;
    background: url('../images/profile-bg-user.png') no-repeat top center;
    background-size: contain;
    margin-bottom: 1.5rem;
}

.avatar-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

.profile-avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.3);
    position: absolute;
    left: 50%;
    top: 40%;
    transform: translateX(-50%);
    z-index: 9;
}

.online-badge {
    position: absolute;
    bottom: -3px;
    right: 26px;
    width: 99px;
    height: 96px;
    background: #10b981;
    border-radius: 50%;
    border: 3px solid var(--card-bg);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
    z-index: 0;
}



.profile-name {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 700;
}

.profile-id {
    color: rgba(148, 163, 184, 1);
    font-size: 0.9rem;
}

/* Profile Details */
.profile-details {
    padding: 1.5rem;
}

.btn-actions {
    padding: 0 1.5rem;
}

.detail-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    flex: 1;
    text-align: right;
    margin-right: 10px;
}

.detail-value {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0 1rem;
}

.detail-item i {
    color: #10b981;
    font-size: 0.9rem;
    background: rgba(0, 204, 153, 0.15);
    border: 1px solid rgba(0, 204, 153, 0.2);
    border-radius: 7px;
    padding: 0.3rem 0.39rem;
}

/* Action Buttons */
.share-btn {
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 16px;
}

.share-btn:hover {
    background: #00e6b8;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 212, 170, 0.3);
    color: var(--dark-bg);
}

.light-dark-panel {
    background: var(--Secondy-colors-Crard-Crad-Border-Bcakgorund-color, rgba(20, 24, 31, 1));
    border: 1px solid rgba(34, 44, 56, 1);
    box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 1rem;
    margin-top: 20px;
}

/* Theme Toggle Styles */
.theme-toggle-container {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
}

.theme-toggle {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-radius: 24px;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.theme-toggle i {
    font-size: 1.2rem;
}

.theme-toggle:hover {
    background: rgba(0, 212, 170, 0.1);
}

.theme-toggle.active {
    background: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.3);
}

.btn-outline-secondary {
    color: var(--text-light);
    border-color: rgba(0, 212, 170, 0.2);
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: rgba(0, 212, 170, 0.1);
    border-color: var(--primary-color);
    color: var(--text-light);
}

/* ========================================
   Edit Profile Form Styles
   ======================================== */

.edit-profile-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: right;
}

.profile-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-light) !important;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.profile-input::placeholder {
    color: var(--text-muted);
    text-align: right;
}

.profile-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    box-shadow: 0 0 12px rgba(0, 212, 170, 0.2);
    outline: none;
}

.profile-input:hover {
    border-color: rgba(0, 212, 170, 0.3);
}

/* Select dropdown styling */
.profile-input[type="select"],
.profile-input select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2300d4aa' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    padding-left: 2rem;
    appearance: none;
    cursor: pointer;
}

/* Form Actions (Buttons) */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.form-actions .btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border-radius: 1.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Cairo', sans-serif;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-cancel {
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-light);
}

.btn-save {
    background: var(--primary-color);
    color: var(--dark-bg);
    font-weight: 700;
}

.btn-save:hover {
    background: #00e6b8;
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.3);
    transform: translateY(-2px);
}

/* Responsive Design for Form */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .profile-input {
        font-size: 0.9rem;
        padding: 0.65rem 0.85rem;
    }
}

@media (max-width: 576px) {
    .edit-profile-form {
        gap: 1rem;
    }

    .form-label {
        font-size: 0.8rem;
    }

    .profile-input {
        font-size: 0.85rem;
        padding: 0.6rem 0.75rem;
    }

    .form-actions .btn {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }
}





/* ========================================
   Change Password Form Styles
   ======================================== */

.change-password-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lock-icon-header {
    width: 20px;
    height: 20px;
    background: url('../images/lock-icon.png') no-repeat center center;
    background-size: cover;
    display: inline-block;
    margin-left: 10px;
    flex-shrink: 0;
    color: var(--primary-color);
}

.password-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .profile-input {
    padding-right: 3rem;
    width: 100%;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: var(--primary-color);
}

.security-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.security-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}

.security-check .form-check-input {
    width: 20px;
    height: 20px;
    border: 1px solid rgba(0, 212, 170, 0.3);
    background-color: transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin: 0;
    border-radius: 100%;
}

.security-check .form-check-input:checked {
    background-color: transparent;
    border-color: var(--primary-color);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

.security-check .form-check-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    cursor: pointer;
    margin: 0;
    flex: 1;
}

.security-check .form-check-label span {
    flex: 1;
}

/* ========================================
   Change Password - Cross-Browser Fix
   ======================================== */

/* 1. iOS & Android Input Reset */
.password-input-wrapper input {
    -webkit-appearance: none;
    /* iOS default shadow hatane ke liye */
    appearance: none;
    background-color: #222C38 !important;
    color: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 8px !important;
    padding: 12px 15px !important;
    /* iOS Auto-zoom fix: Font size 16px se kam nahi hona chahiye */
    font-size: 16px !important;
    width: 100%;
    box-sizing: border-box;
}

/* 2. Eye Icon Positioning (RTL Friendly) */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.toggle-password {
    position: absolute;
    /* RTL layout mein icon ko hamesha left ya right fix karein */
    left: 10px;
    right: auto;
    background: transparent;
    border: none;
    color: #007bff;
    /* Screenshot wala blue color */
    z-index: 10;
    padding: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
}

/* 3. Checkbox & Security Options Fix */

.security-check {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    cursor: pointer;
}

/* Custom Checkbox for consistency on all phones */
.security-check .form-check-input {
    width: 22px;
    height: 22px;
    margin: 0 !important;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    flex-shrink: 0;
}



.security-check .form-check-label {
    color: #ffffff;
    font-size: 0.95rem;
    margin: 0;
    cursor: pointer;
    line-height: 1.4;
}


/* Mobile Adjustments */
@media (max-width: 576px) {
    .notification-actions {
        flex-direction: column;
    }

    .notification-actions .btn {
        width: 100%;
    }
}

/* Responsive Design for Change Password */
@media (max-width: 768px) {
    .password-input-wrapper .profile-input {
        font-size: 0.9rem;
        padding: 0.65rem 2.5rem 0.65rem 0.85rem;
    }

    .toggle-password {
        right: 0.75rem;
        font-size: 0.9rem;
    }

    .security-options {
        gap: 0.75rem;
        padding: 1rem;
    }

    .security-check .form-check-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .password-field {
        margin-bottom: 1rem;
    }

    .password-input-wrapper .profile-input {
        font-size: 0.85rem;
        padding: 0.6rem 2.25rem 0.6rem 0.75rem;
    }

    .toggle-password {
        right: 0.5rem;
        font-size: 0.85rem;
        padding: 0.4rem;
    }

    .security-options {
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .security-check .form-check-input {
        width: 18px;
        height: 18px;
    }

    .security-check .form-check-label {
        font-size: 0.8rem;
    }
}

/* Responsive Design for Profile Section */
@media (max-width: 992px) {

    .profile-card {
        position: relative;
        top: auto;
    }

    .row.gap-4 {
        gap: 1.5rem !important;
    }
}

@media (max-width: 768px) {
    .profile-section {
        margin-top: 80px;
    }

    .info-card,
    .settings-card,
    .profile-card {
        padding: 1.5rem;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
    }

    .avatar-wrapper {
        width: 100px;
        height: 100px;
    }

    .profile-name {
        font-size: 1.3rem;
    }

    .info-card .card-header h5,
    .settings-card .card-header h5 {
        font-size: 1.1rem;
    }

    .setting-title {
        font-size: 1rem;
    }

    .setting-description {
        font-size: 0.8rem;
    }

    .profile-card {
        order: -1;
    }
}

@media (max-width: 576px) {
    .profile-section {
        margin-top: 60px;
        padding: 9rem 1rem !important;
    }

    .info-card,
    .settings-card,
    .profile-card {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .row.gap-4 {
        gap: 0.5rem !important;
    }

    .col-lg-7,
    .col-lg-5 {
        max-width: 100%;
        flex: 0 0 100%;
    }

    .info-label {
        font-size: 0.75rem;
    }

    .info-value {
        font-size: 0.9rem;
    }

    .profile-name {
        font-size: 1.1rem;
        margin-top: 4rem;
    }

    .light-dark-panel {
        margin-bottom: 1.5rem;
    }

    .online-badge {
        bottom: -43px;
        right: -3px;
        width: 105px;
        height: 106px;
    }

    .profile-id {
        font-size: 0.8rem;
    }

    .setting-title {
        font-size: 0.95rem;
    }

    .setting-description {
        font-size: 0.75rem;
    }

    .mb-4 {
        margin-bottom: 1rem !important;
    }

    .mb-3 {
        margin-bottom: 0.75rem !important;
    }
}

/* ========================================
   Notifications Settings Styles
   ======================================== */

.notifications-section {
    padding-top: 8rem;
}

.notifications-header {
    border-bottom: 1px solid rgba(0, 212, 170, 0.15);
    padding-bottom: 1.5rem;
    margin-bottom: 2.5rem;
}

.notifications-header .d-flex {
    align-items: center;
    gap: 0.75rem;
}

.notifications-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.notifications-header p {
    color: rgba(136, 136, 136, 0.8);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.notification-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* Notification Items Container */
.notification-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.notification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background-color 0.3s ease;
    gap: 2rem;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notification-content>div {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.3;
}

.notification-description {
    font-size: 0.75rem;
    color: rgba(136, 136, 136, 0.9);
    margin: 0;
    line-height: 1.4;
}

/* Toggle Switch Styles */
.toggle-switch {
    position: relative;
    display: inline-flex;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
}

.toggle-switch input {
    display: none;
}

.toggle-switch .slider {
    display: inline-block;
    width: 46px;
    height: 24px;
    background-color: #595959;
    border-radius: 50px;
    position: relative;
    transition: background-color 0.25s ease;
}

.toggle-switch .slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #e0e0e0;
    top: 2px;
    right: 2px;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.toggle-switch input:checked+.slider {
    background-color: var(--primary-color);
}

.toggle-switch input:checked+.slider::before {
    right: 24px;
    left: auto;
    background-color: #fff;
}

/* Avatar Icons */
.avatar-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    flex-shrink: 0;
}

.avatar-icon.k-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.avatar-icon.p-icon {
    background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
}

.icon-cyan {
    color: var(--primary-color);
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* Action Buttons */
.notification-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    margin-top: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.notification-actions .btn {
    padding: 0.6rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification-actions .btn-primary {
    background: var(--primary-color);
    color: #000;
}

.notification-actions .btn-primary:hover {
    background: #00e6b8;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 212, 170, 0.25);
}

.notification-actions .btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.notification-actions .btn-secondary:hover {
    background: rgba(0, 212, 170, 0.08);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .notifications-section {
        padding-top: 6rem;
    }

    .notifications-header h2 {
        font-size: 1.3rem;
    }

    .notification-item {
        gap: 1.5rem;
    }

    .notification-actions {
        flex-direction: column-reverse;
        justify-content: stretch;
    }

    .notification-actions .btn {
        width: 100%;
        padding: 0.7rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .notification-item {
        padding: 1rem 0;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .notification-content {
        flex-basis: 100%;
        order: 1;
    }

    .toggle-switch {
        order: 2;
        align-self: flex-start;
    }

    .toggle-switch .slider {
        width: 42px;
        height: 22px;
    }

    .toggle-switch .slider::before {
        width: 18px;
        height: 18px;
    }

    .toggle-switch input:checked+.slider::before {
        right: 22px;
    }

    .notification-title {
        font-size: 0.9rem;
    }

    .notification-description {
        font-size: 0.7rem;
    }
}

/* ========================================
   Contact Us Form Styles
   ======================================== */

.form-control {
    min-height: 52px;
}

.contact-section {
    padding-top: 8rem;
    min-height: 100vh;
}

.contact-header {
    margin-bottom: 3rem;
}

.contact-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.contact-header p {
    font-size: 0.95rem;
    color: rgba(136, 136, 136, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Form Container */
.contact-form-container {
    background: rgba(26, 40, 64, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 170, 0.1);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
}

.contact-form .form-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
}

.contact-form .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 8px;
    padding: 0.9rem 1rem;
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.contact-form .form-control::placeholder {
    color: rgba(136, 136, 136, 0.6);
}

.contact-form .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 212, 170, 0.2);
    color: #fff;
}

.contact-form textarea.form-control {
    resize: vertical;
    font-family: 'Cairo', sans-serif;
}

.contact-submit-btn {
    background: linear-gradient(135deg, #1dd1a1 0%, #16a085 100%);
    border: none;
    border-radius: 8px;
    padding: 1rem;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.contact-submit-btn:hover {
    background: linear-gradient(135deg, #16a085 0%, #0e5942 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(29, 209, 161, 0.2);
}

.contact-submit-btn i {
    margin-left: 0.5rem;
}

/* Support Card */
.support-card {
    background: rgba(26, 40, 64, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 170, 0.1);
    border-radius: 12px;
    padding: 2rem;
}

.support-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
}


.whatsapp-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    flex-shrink: 0;
}

.whatsapp-content {
    color: #fff;
}

.whatsapp-text {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    margin-bottom: 0.3rem;
}

.whatsapp-text strong {
    font-weight: 700;
}

.whatsapp-description {
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.9;
}

/* Contact Details */
.contact-details {
    background: rgba(26, 40, 64, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 170, 0.1);
    border-radius: 12px;
    padding: 2rem;
}

.details-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.detail-item:hover {
    background: rgba(0, 212, 170, 0.05);
}

.detail-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 212, 170, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.detail-content {
    flex: 1;
}

.detail-label {
    font-size: 0.8rem;
    color: rgba(129, 136, 152, 1);
    margin: 0;
    text-transform: uppercase;
}

.detail-value {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 0.3rem 0 0;
}

/* Social Section */
.social-section {
    background: rgba(26, 40, 64, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 170, 0.1);
    border-radius: 12px;
    padding: 2rem;
}

.social-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.social-icons-wrapper {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-section {
        padding-top: 6rem;
    }

    .contact-header h1 {
        font-size: 2rem;
    }

    .contact-form-container,
    .support-card,
    .contact-details,
    .social-section {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding-top: 5rem;
    }

    .contact-header h1 {
        font-size: 1.75rem;
    }

    .contact-header p {
        font-size: 0.9rem;
    }

    .contact-form-container,
    .support-card,
    .contact-details,
    .social-section {
        padding: 1.5rem;
    }

    .detail-item {
        gap: 1rem;
        padding: 0.8rem;
    }

    .detail-value {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .contact-header h1 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .contact-header p {
        font-size: 0.85rem;
    }

    .contact-form-container,
    .support-card,
    .contact-details,
    .social-section {
        padding: 1rem;
        border-radius: 8px;
    }

    .contact-form .form-label {
        font-size: 0.9rem;
    }

    .contact-form .form-control {
        padding: 0.8rem 0.75rem;
        font-size: 0.9rem;
    }

    .contact-submit-btn {
        padding: 0.9rem;
        font-size: 0.95rem;
    }

    .whatsapp-card {
        padding: 1rem;
        gap: 1rem;
    }

    .whatsapp-icon {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

    .whatsapp-text {
        font-size: 0.9rem;
    }

    .whatsapp-description {
        font-size: 0.8rem;
    }

    .support-title,
    .details-title {
        font-size: 1.1rem;
    }

    .detail-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .social-icons-wrapper {
        gap: 0.8rem;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

.contact-info {
    background: var(--Secondy-colors-Crard-Crad-Border-Bcakgorund-color, rgba(20, 24, 31, 1));
    border: 1px solid rgba(34, 44, 56, 1);
    box-shadow: 0px 8px 32px 0px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 24px;
}

.contact-info h1 {
    font-size: 22px;
    margin-bottom: 20px;
}

/* WhatsApp Box Gradient */
.whatsapp-card {
    background: linear-gradient(299.62deg, #00CC99 8.84%, rgba(38, 49, 64, 0.9) 129.97%);
    border: 1px solid rgba(0, 211, 88, 0.3);
    color: #fff !important;
    transition: transform 0.3s ease;
    margin-top: 30px;
}

.whatsapp-card:hover {
    transform: translateY(-5px);
}

.whatsapp-card span {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 0.5rem 0.8rem;
    color: var(--text-light);
    font-size: 12px;
    display: flex;
}

.whatsapp-card span i.icon-light {
    background: url(../images/icon-7.png) no-repeat center center;
    width: 24px;
    height: 24px;
    display: inline-block;
    background-size: cover;
    margin-left: 10px;
}

.chat-icon-bg {
    width: 48px;
    height: 48px;
    background: rgba(0, 204, 153, 1);
    border-radius: 12px;
    margin-bottom: 20px;
    display: block;
    padding: 0.6rem;
}

.chat-icon-bg i.chat-icon {
    width: 22px;
    height: 22px;
    display: block;
    background: url('../images/chat-icon.png') no-repeat center center;
    background-size: cover;
    text-align: center;
    margin: 0 auto;
}

.address-info {
    background: var(--Secondy-colors-Accent-Cosmos, rgba(34, 44, 56, 1));
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.address-info i.fa-envelope {
    color: rgba(255, 209, 102, 1)
}

.address-info small {
    color: rgba(148, 163, 184, 1);
}

/* Form Inputs Styling */
.form-control,
.form-select {
    background-color: #21262d !important;
    border: 0px solid var(--border-color) !important;
    color: #ffffff !important;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-height: 52px;
    /* iOS Input Fixes */
    -webkit-appearance: none;
    appearance: none;
    font-size: 16px;
    /* Prevents auto-zoom on iOS */
    -webkit-border-radius: 8px;
    border-radius: 8px;
    -webkit-user-select: text;
    user-select: text;
    -webkit-tap-highlight-color: transparent;
    -webkit-background-clip: padding-box;
    /* iOS rendering fix */
    background-clip: padding-box;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--emerald) !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 210, 148, 0.15) !important;
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Custom Upload Box (Dashed Border) */
.border-dashed {
    border: 2px dashed var(--border-color) !important;
    background-color: rgba(22, 27, 34, 0.5);
    transition: all 0.3s ease;
}

.border-dashed:hover {
    border-color: var(--emerald) !important;
    background-color: rgba(0, 210, 148, 0.05);
}

/* Submit Button */
.btn-submit {
    background-color: var(--emerald) !important;
    border: none !important;
    color: #000 !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: #00b884 !important;
    box-shadow: 0px 8px 15px rgba(0, 210, 148, 0.2);
    transform: translateY(-2px);
}

/* RTL Adjustments for Arabic */
[dir="rtl"] .me-3 {
    margin-left: 1rem !important;
    margin-right: 0 !important;
}

.btn-social {
    background: var(--Secondy-colors-Accent-Cosmos, #222C38);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: rgba(0, 204, 153, 1);
    padding: 0.5rem 1rem;
}

[type=email],
[type=number],
[type=tel],
[type=url] {
    direction: rtl;
}

.game-body {
    margin-top: 100px;
    min-height: calc(100vh - 350px);
}

/* Hero Section Styling */
.hero-card {
    background: var(--Secondy-colors-Crard-Crad-Border-Bcakgorund-color, rgba(20, 24, 31, 1));
    border-radius: 24px;
    border: 1px solid rgba(32, 38, 50, 1);
    box-shadow: 0px 1px 0px 1px rgba(255, 255, 255, 0.02) inset;
}

.hero-img-container {
    background: url('../images/select-game-bg.png') center/contain;
    min-height: 300px;
}

.btn-emerald {
    background: var(--Primary-colors-Main-color-Default, rgba(0, 204, 153, 1));
    box-shadow: 0px 8px 24px 0px rgba(25, 230, 162, 0.06);
    color: var(--text-light);
    border-radius: 12px;
    transition: 0.3s;
    display: inline-flex;
}

.btn-emerald:hover {
    background: var(--Primary-colors-Main-color-Default, rgba(0, 204, 153, 1));
    transform: scale(1.05);
}

.icon-8 {
    background: url('../images/icon-8.png') no-repeat center center;
    width: 20px;
    height: 20px;
    display: inline-block;
    background-size: cover;
    margin-left: 10px;
    margin-top: 4px;
}

.icon-9 {
    background: url('../images/icon-8.png') no-repeat center center;
    width: 16px;
    height: 16px;
    display: inline-block;
    background-size: cover;
    margin-left: 10px;
    margin-right: 0 !important;
    position: relative;
    top: 3px;
}

/* Game Cards */
.game-card-two {
    background: var(--Secondy-colors-Crard-Crad-Border-Bcakgorund-color, rgba(20, 24, 31, 1));
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0px 20px 40px 0px rgba(0, 0, 0, 0.24);
    transition: 0.3s;
}

.game-card-two:hover {
    border-color: var(--emerald);
    transform: translateY(-5px);
}

.badge-status {
    background: rgba(102, 197, 164, 0.12);
    border-radius: 20px;
    border: 0px solid rgba(0, 210, 148, 0.2);
    color: #66C5A4;
    padding: 0.5rem 1.2rem;
}

/* ========================================
   Create Game Section
   ======================================== */

/* .create-game-section, .categories-section {
    margin-top: 200px;
} */

/* Progress Steps */
.progress-steps {
    text-align: center;
}

.step {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step.active {
    opacity: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    background: rgba(0, 212, 170, 0.15);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
}

.step.active .step-number {
    background: var(--primary-color);
    color: var(--dark-bg);
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.3);
}

.step-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.step-divider {
    color: var(--text-muted);
    opacity: 0.3;
    font-size: 1.2rem;
    padding: 0 1rem;
}

/* Form Card */
.form-card {
    background: var(--Secondy-colors-Crard-Crad-Border-Bcakgorund-color, rgba(20, 24, 31, 1));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 3rem 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Form Header */
.form-header {
    margin-bottom: 2rem;
}

.form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.form-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Form Labels */
.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.form-label .badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
}

.bg-cyan {
    background-color: var(--primary-color) !important;
    color: var(--dark-bg) !important;
}

/* Form Control Overrides */
.create-game-form .form-control {
    background: rgba(10, 10, 16, 1) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--text-light) !important;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.create-game-form .form-control:focus {
    background-color: rgba(10, 10, 16, 1) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 15px rgba(0, 212, 170, 0.15) !important;
}

.create-game-form .form-control::placeholder {
    color: rgba(161, 161, 170, 1);
}

.team-wrap {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0.5rem;
}

/* Team Options */
.team-option {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.team-option:hover {
    border: 1px solid rgba(0, 242, 254, 0.2);
    background: var(--Primary-colors-Main-color-Default, rgba(0, 204, 153, 1));
    box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.2);
}

.team-wrap button {
    width: 100%;
}

.team-option.selected {
    border: 1px solid rgba(0, 242, 254, 0.2);
    background: var(--Primary-colors-Main-color-Default, rgba(0, 204, 153, 1));
    box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.2);
}

.team-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
}

/* Division Options */
.division-option {
    background: rgba(33, 38, 45, 0.8);
    border: 1px solid rgba(0, 212, 170, 0.15);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.division-option:hover {
    border-color: var(--primary-color);
    background: rgba(33, 38, 45, 1);
}

.division-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.division-indicator.green {
    background: rgba(0, 242, 254, 1);
    box-shadow: 0px 0px 12px 0px rgba(0, 242, 254, 0.4);
}

.division-indicator.yellow {
    background: var(--Primary-colors-Warning-Default, rgba(254, 223, 137, 1));
    box-shadow: 0px 0px 12px 0px rgba(0, 242, 254, 0.4);
}

.division-indicator.red {
    background: rgba(255, 94, 94, 1);
    box-shadow: 0px 0px 12px 0px rgba(255, 94, 94, 0.4);
}

.division-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Buttons */
.btn-add-team {
    background: var(--primary-color);
    border: none;
    color: var(--dark-bg);
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    gap: 0.5rem;
    display: inline-flex;
    align-items: center;
}

.btn-add-team:hover {
    background: #00b884;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 170, 0.3);
    color: var(--dark-bg);
}

.btn-back {
    background: var(--Primary-colors-Main-color-Default, rgba(0, 204, 153, 1));
    border: 1px solid rgba(0, 204, 153, 1);
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-back:hover {
    background: rgba(0, 212, 170, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-0.25rem);
}

/* Responsive Design */
@media (max-width: 768px) {
    .create-game-section {
        padding: 40px 0;
    }

    .form-card {
        padding: 2rem 1.5rem;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .form-subtitle {
        font-size: 0.85rem;
    }

    .progress-steps {
        margin-bottom: 3rem;
    }

    .step {
        gap: 0.35rem;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .step-divider {
        padding: 0 0.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .create-game-section {
        padding: 30px 0;
    }

    .form-card {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }

    .form-title {
        font-size: 1.25rem;
    }

    .form-header {
        margin-bottom: 1.5rem;
    }

    .form-label {
        font-size: 0.9rem;
    }

    .progress-steps {
        margin-bottom: 2rem;
    }

    .step {
        gap: 0.25rem;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
        border-width: 1.5px;
    }

    .step-label {
        font-size: 0.65rem;
    }

    .step-divider {
        display: none;
    }

    .btn-add-team,
    .btn-back {
        width: 100%;
        justify-content: center;
    }

    .team-option,
    .division-option {
        padding: 0.75rem;
    }

    .team-label {
        font-size: 0.85rem;
    }

    .division-label {
        font-size: 0.8rem;
    }
}

.badge-completed {
    background-color: rgba(0, 183, 255, 0.1);
    color: #00b7ff;
}

.vs-tag {
    background: rgba(24, 29, 37, 1);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(155, 166, 178, 1);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-left: 10px;
    margin-right: 10px;
}

.cat-item img {
    border-radius: 10px;
}

/* Categories Thumbnails */
.cat-thumb {
    flex: 1;
    aspect-ratio: 16 / 12;
    background: #0d1117;
    border-radius: 10px;
    overflow: hidden;
    margin: 7px;
    padding: 0;
}

.cat-thumb img {
    width: 100%;
    height: 100%;
}

.categories-row {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 18px;
    padding: 1rem;
}

/* Horizontally Scrollable Categories Container */
.categories-scroll,
.category-row-1,
.gamecard-row-1 {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 0.5rem;
    scroll-behavior: smooth;
    min-width: 0;
    /* Show scrollbars */
    scrollbar-width: thin;
    -ms-overflow-style: auto;
}

.categories-scroll::-webkit-scrollbar,
.category-row-1::-webkit-scrollbar,
.gamecard-row-1::-webkit-scrollbar {
    height: 4px;
}

.categories-scroll::-webkit-scrollbar-track,
.categories-row-1::-webkit-scrollbar-track,
.gamecard-row-1::-webkit-scrollbar-track {
    background: transparent;
}

.categories-scroll::-webkit-scrollbar-thumb,
.categories-row-1::-webkit-scrollbar-thumb,
.gamecard-row-1::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 170, 0.5);
    border-radius: 2px;
}

/* Update cat-thumb for scrollable layout */
.categories-scroll .cat-thumb,
.categories-row-1 .cat-column-1 {
    flex: 0 0 calc(33.333% - 0.35rem);
    min-width: calc(33.333% - 0.35rem);
    aspect-ratio: 16 / 12;
    background: #0d1117;
    border-radius: 10px;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.gamecard-row-1 .card-col-1 {
    flex: 0 0 calc(50% - 0.35rem);
    min-width: calc(50% - 0.35rem);
    aspect-ratio: 16 / 12;
    background: #0d1117;
    border-radius: 10px;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Progress Bar Customization */
.progress {
    height: 8px;
    background-color: #21262d;
    border-radius: 10px;
}

.progress-bar {
    background-color: var(--emerald);
}

/* Buttons inside cards */
.small-btn {
    font-size: 0.85rem;
    border-radius: 10px;
    padding: 8px;
}

.btn-dark-action {
    background: rgba(255, 255, 255, 0.03);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.06)
}

.btn-dark-action:hover {
    background-color: #30363d;
    color: white;
}

.btn-dark-action i {
    margin-right: 10px;
}

.text-emerald {
    color: var(--emerald);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-card {
        text-align: center !important;
    }

    .hero-card .text-end {
        text-align: center !important;
    }
}

/* ========================================
   Statistics Cards
   ======================================== */
.stat-card {
    background: rgba(20, 24, 31, 1);
    border-radius: 20px;
    border: 1px solid rgba(32, 38, 50, 1);
    box-shadow: 0px 12px 24px 0px rgba(0, 0, 0, 0.15);
    transition: 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.stat-text h2 {
    font-size: 2.8rem;
    margin-right: -5px;
    /* RTL fix */
}

/* Icon Container Styling */
.stat-icon {
    border-radius: 15px;
    font-size: 1.8rem;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
}

/* Specific Icon Box Colors */
.icon-complete {
    background-color: rgba(0, 210, 148, 0.08);
    color: var(--icon-complete);
    margin-left: 20px;
}

.icon-progress {
    background-color: rgba(0, 168, 225, 0.08);
    color: var(--icon-progress);
    margin-left: 20px;
}

.icon-played {
    background-color: rgba(255, 183, 77, 0.08);
    color: var(--icon-played);
    margin-left: 20px;
}

/* ========================================
   Search & Filter Section
   ======================================== */
.search-wrapper .search-icon {
    right: 15px;
    /* RTL position */
    color: var(--text-muted);
}

.search-input {
    background: rgba(20, 24, 31, 1) !important;
    border: 1px solid rgba(32, 38, 50, 1) !important;
    border-radius: 12px;
    color: #ffffff !important;
    padding: 12px;
    padding-right: 45px !important;
    /* Icon ke liye space */
}

.search-input:focus {
    background-color: var(--input-focus) !important;
    border-color: #ffffff !important;
    box-shadow: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.btn-filter {
    background: rgba(20, 24, 31, 1) !important;
    color: var(--text-muted) !important;
    border: 1px solid rgba(32, 38, 50, 1) !important;
    border-radius: 12px;
    transition: 0.3s ease;
    padding: 0.5rem 0.95rem;
}

.btn-filter:hover {
    color: #ffffff !important;
    background-color: var(--input-focus) !important;
}


/* ========================================
   Bootstrap 5 Match Tabs (Pills style)
   ======================================== */
.match-tabs {
    background: rgba(20, 24, 31, 1);
    border: 1px solid rgba(32, 38, 50, 1);
    border-radius: 12px;
    padding: 5px;
}

/* RTL context mein pills ko right align karein */
[dir="rtl"] .match-tabs {
    direction: rtl;
}

.match-tabs .nav-link {
    color: var(--text-muted);
    border-radius: 12px;
    font-size: 0.9rem;
    padding: 7px 20px;
    background: transparent;
    transition: 0.2s ease;
    margin: 0 5px 0;
}

.match-tabs .nav-link.active {
    background-color: rgba(255, 255, 255, 0.03);
    color: #fff !important;
    font-weight: 600;
}

.match-tabs .nav-link:hover:not(.active) {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.03);
}

/* Placeholder for tab content bg */
.bg-card-dark {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

.icon-10 {
    background: url('../images/icon-9.png') no-repeat center center;
    width: 32px;
    height: 32px;
    display: inline-block;
    background-size: cover;
    margin-left: 10px;
    margin-right: 0 !important;
}

.icon-11 {
    background: url('../images/icon-10.png') no-repeat center center;
    width: 32px;
    height: 32px;
    display: inline-block;
    background-size: cover;
    margin-left: 10px;
    margin-right: 0 !important;
}

.icon-12 {
    background: url('../images/icon-11.png') no-repeat center center;
    width: 32px;
    height: 32px;
    display: inline-block;
    background-size: cover;
    margin-left: 10px;
    margin-right: 0 !important;
}

.icon-13 {
    background: url('../images/icon-12.png') no-repeat center center;
    width: 24px;
    height: 24px;
    display: inline-block;
    background-size: cover;
    margin-left: 10px;
    margin-right: 0 !important;
}

/* ========================================
   Categories Grid Styles
======================================== */

/* Main Accordion Container */
#accordionExample {
    background: transparent;
    border: none;
}

/* Accordion Item Styling */
#accordionExample .accordion-item {
    background-color: #1c222c;
    /* Dark background from design */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px !important;
    margin-bottom: 15px;
    overflow: hidden;
}

/* Header/Button Styling */
#accordionExample .accordion-button {
    background-color: #1c222c;
    color: #ffffff;
    font-weight: 600;
    padding: 20px 25px;
    box-shadow: none;
    flex-direction: row-reverse;
    /* Arrow ko left side pe karne ke liye */
}

#accordionExample .accordion-button::after {
    display: none;
}

/* Button styling */
.accordion-button {
    background: rgba(22, 27, 34, 1) !important;
    /* Dark background */
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Spacing for elements */
    padding: 15px 25px !important;
    border: 0px solid rgba(32, 38, 50, 1) !important;
    box-shadow: none !important;
    color: #ffffff !important;
    flex-direction: row;
    /* Flex layout for span elements */
}

/* Jab accordion open ho */
.accordion-button:not(.collapsed) {
    color: #00d2a0 !important;
    /* Greenish color */
}

/* Badge Styling (Left side) */
.category-badge {
    background: rgba(255, 255, 255, 0.05);
    /* Dim background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    order: 1;
    /* Left side positioning */
}

/* Title Styling (Middle/Right) */
.category-title {
    flex-grow: 1;
    text-align: right;
    margin-right: 15px;
    font-size: 16px;
    font-weight: 500;
    order: 2;
    /* Middle positioning */
}

/* Plus/Minus Icon (Right side) */
.accordion-button .fa-plus,
.accordion-button .fa-minus {
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    order: 3;
    /* Right side positioning */
}

/* Icon change when open */
.accordion-button:not(.collapsed) .fa-plus::before {
    content: "\f068";
    /* FontAwesome minus icon code */
    color: #00d2a0;
}

/* Bootstrap default arrow remove karne ke liye */
.accordion-button::after {
    display: none !important;
}

/* Jab accordion open ho (Active State) */
#accordionExample .accordion-button:not(.collapsed) {
    background-color: #1c222c;
    color: #00d2a0;
    /* Cyan/Green color from screenshot */
    border-bottom: 1px solid rgba(0, 210, 160, 0.2);
}

/* Custom Icon (Plus/Minus replacement) */
#accordionExample .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z'/%3e%3c/svg%3e");
    background-size: 1.5rem;
    margin-right: 0;
    margin-left: auto;
}

#accordionExample .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2300d2a0'%3e%3cpath d='M4 8a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 4 8z'/%3e%3c/svg%3e");
    transform: rotate(180deg);
}

/* Accordion Body */
#accordionExample .accordion-body {
    padding: 30px;
    box-shadow: 0px 16px 32px 0px rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--Secondy-colors-Crard-Crad-Border-Border-color, rgba(43, 48, 59, 1));
    background: rgba(22, 27, 34, 1);
}

.category-card {
    position: relative;
    border-radius: 16px !important;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--Secondy-colors-Accent-Cosmos, rgba(34, 44, 56, 1));
    aspect-ratio: 1 / .9;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0px 2px 4px 1px rgba(0, 0, 0, 0.2) inset;
    padding: 1rem 1rem 3rem 1rem;
}

/* Image Styling */
.category-image {
    width: 100%;
    height: 100%;
    min-height: 145px !important;
    /* object-fit: cover; */
    display: block;
    transition: filter 0.3s ease;
    border-radius: 16px !important;
    position: relative;
    z-index: 1;
}

@media (min-width:375px) and (max-width:414px) {
    .category-image {
        min-height: 62px !important;
        height: 62px !important;
    }
}

@media (min-width:667px) and (max-width:896px) {
    .category-image {
        min-height: 80px !important;
        height: 80px !important;
    }
}

/* Dark Overlay with Checkbox */
.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Glass effect */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    /* Default hidden */
    transition: opacity 0.3s ease;
}

.category-overlay i {
    color: var(--primary-color, #00d4aa);
    font-size: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(0, 212, 170, 0.5));
    position: absolute;
    top: 10%;
    right: 0%;
    margin-right: 10px;
    z-index: 9;
}

/* Category Name Text */
.category-name {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 15px 5px;
    color: #fff;
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
    left: 0;
}

/* Hover & Active States */
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* Jab category select ho (is par click pe JS se .selected class lagayein) */
.category-card.selected .category-overlay {
    opacity: 1;
}

.category-card.selected {
    border-color: var(--primary-color, #00d4aa);
}

/* ========================================
   Selected Items (Cross Button Logic)
   ======================================== */

.selected-items-list {
    min-height: 55px;
    /* Alignment maintain karne ke liye */
}

/* Individual Selected Item Block */
.selected-item-tag {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(22, 27, 34, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px;
    border-radius: 100px;
    gap: 12px;
    min-width: 140px;
    /* Optional min width */
    cursor: default;
    transition: transform 0.2s, opacity 0.2s;
}

/* Item Image */
.selected-item-img {
    width: 38px;
    height: 38px;
    border-radius: 100px;
    object-fit: cover;
    display: block;
    background-color: #0d1117;
}

/* Item Name (English jaisa screenshot mein hai) */
.selected-item-name {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
}

/* Floating Delete Button (Icon X) */
.btn-item-delete {
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 50%;
    color: rgba(155, 166, 178, 1);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    padding: 0;
    transition: background 0.2s;
}

.btn-item-delete:hover {
    background-color: var(--theme-color);
    color: rgba(255, 255, 255, 1);
}

/* ========================================
   Bottom Actions (Buttons & Icons)
   ======================================== */

.btn-categories-back {
    color: var(--text-light, #e0e0e0);
    background: var(--Primary-colors-Main-color-Default, rgba(0, 204, 153, 1));
    border-radius: 16px;
    padding: 0.8rem 2.5rem;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 14px;
}

.btn-categories-back:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    background: var(--Primary-colors-Main-color-Default, rgba(0, 204, 153, 1));
}

.app-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    transition: transform 0.3s;
}

.app-icon:hover {
    transform: scale(1.1);
}

/* ========================================
   Light Mode Overrides
   ======================================== */

body.light-mode .category-card {
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

body.light-mode .category-name {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.9), transparent);
    color: #000;
}

body.light-mode .btn-categories-back {
    color: #fff;
}

.categories-wrap {
    background: var(--Secondy-colors-Crard-Crad-Border-Bcakgorund-color, rgba(20, 24, 31, 1));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 2rem;
}

.custom-container {
    padding: 15px 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
}

/* Left Side: Counter Badge */
.selection-counter {
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.2);
    color: #00e5ff;
    /* Bright teal text */
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: bold;
}

.subtitle-text {
    transition: color 0.3s ease, transform 0.3s ease;
    font-size: 0.85rem;
    margin-top: 5px;
}

.selection-counter {
    transition: all 0.3s ease;
}

/* Right Side: Text and Icon */
.header-section {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.title-text h6 {
    margin: 0;
    font-weight: 700;
    color: #ffffff;
}

.subtitle-text {
    color: #8b949e;
    /* Muted grey text */
    font-size: 0.85rem;
    margin-top: 4px;
}

.icon-box {
    color: #00d1b2;
    /* Icon color */
    font-size: 1.5rem;
    line-height: 1;
}

@media (max-width: 576px) {
    .btn-categories-back {
        margin-top: 20px;
    }
}

.select-tools-wrap {
    background: var(--Secondy-colors-Crard-Crad-Border-Bcakgorund-color, rgba(20, 24, 31, 1));
    border-radius: 25px;
    padding: 2.5rem;
}

.powerup-card {
    background: var(--Secondy-colors-Accent-Cosmos, rgba(34, 44, 56, 1));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 20px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    min-height: 267px;
}

.powerup-card.active-border {
    background: var(--Secondy-colors-Accent-Cosmos, rgba(34, 44, 56, 1));
    box-shadow: 0px 12px 32px 0px rgba(0, 153, 255, 0.1);
}

/* Border highlighting based on status */
.warning-box.powerup-card.active-border {
    border-color: rgba(212, 115, 41, 0.3);
    box-shadow: 0px 12px 32px 0px rgba(212, 115, 41, 0.1);
}

.circle-box.powerup-card.active-border {
    border: 1px solid rgba(102, 197, 164, 0.3);
    box-shadow: 0px 12px 32px 0px rgba(102, 197, 164, 0.1);
}

.time-box.powerup-card.active-border {
    border: 1px solid rgba(255, 77, 109, 0.4);
    box-shadow: 0px 12px 32px 0px rgba(255, 77, 109, 0.1);
}

.group-box.powerup-card.active-border {
    border: 1px solid rgba(0, 153, 255, 0.3);
    box-shadow: 0px 12px 32px 0px rgba(0, 153, 255, 0.1);
}

.card-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.badge-custom {
    font-size: 10px;
    padding: 6px 15px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(160, 165, 181, 1);
}

.badge-custom.green {
    color: rgba(102, 197, 164, 1);
    background: rgba(102, 197, 164, 0.15);
}

.badge-custom.orange {
    background: rgba(212, 115, 41, 0.15);
    color: rgba(212, 115, 41, 1);
}

.badge-custom.blue {
    color: rgba(0, 153, 255, 1);
    background: rgba(0, 153, 255, 0.15);
}

.badge-custom.pink {
    color: rgba(255, 77, 109, 1);
    background: rgba(255, 77, 109, 0.12);
}

.icon-style {
    font-size: 1.5rem;
    opacity: 0.8;
    border-radius: 16px;
    padding: 1rem;
}

.selection-indicator {
    position: absolute;
    bottom: 15px;
    left: 15px;
    font-size: 1.2rem;
    color: #444;
}

.selection-indicator.selected {
    color: #00d2ff;
}

.logo-box .light {
    display: block;
}

.logo-box .dark {
    display: none;
}

/* Bottom Button */
.btn-action {
    background: var(--Primary-colors-Main-color-Default, rgba(0, 204, 153, 1));
    color: white;
    border-radius: 12px;
    font-size: 1.2rem;
    border: none;
}

.btn-action:hover {
    background: var(--Primary-colors-Main-color-Default, rgba(0, 204, 153, 1));
    color: white;
}

.icon-style-1 {
    background: rgba(212, 115, 41, 0.1);
    border: 1px solid rgba(212, 115, 41, 0.3);
    box-shadow: 0px 0px 24px 0px rgba(212, 115, 41, 0.2);
}

.warning-icon {
    width: 24px;
    height: 24px;
    background: url('../images/warning-icon.png') no-repeat center center;
    background-size: cover;
    display: block;
}

.icon-style-2 {
    background: rgba(102, 197, 164, 0.1);
    border: 1px solid rgba(102, 197, 164, 0.3);
    box-shadow: 0px 0px 24px 0px rgba(102, 197, 164, 0.2);
}

.circle-icon {
    width: 24px;
    height: 24px;
    background: url('../images/circle-icon.png') no-repeat center center;
    background-size: cover;
    display: block;
}

.icon-style-3 {
    background: rgba(255, 77, 109, 0.06);
    border: 1px solid rgba(255, 77, 109, 0.4);
    box-shadow: 0px 0px 24px 0px rgba(255, 77, 109, 0.05);
}

.icon-style-4 {
    background: rgba(0, 153, 255, 0.1);
    border: 1px solid rgba(0, 153, 255, 0.3);
    box-shadow: 0px 0px 24px 0px rgba(0, 153, 255, 0.2);
}

.icon-style-5 {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.time-icon {
    width: 24px;
    height: 24px;
    background: url('../images/time-icon.png') no-repeat center center;
    background-size: cover;
    display: block;
}

.group-icon {
    width: 24px;
    height: 24px;
    background: url('../images/group-icon.png') no-repeat center center;
    background-size: cover;
    display: block;
}

.forward-icon {
    width: 24px;
    height: 24px;
    background: url('../images/forward-icon.png') no-repeat center center;
    background-size: cover;
    display: block;
}

.call-icon {
    width: 24px;
    height: 24px;
    background: url('../images/call-icon.png') no-repeat center center;
    background-size: cover;
    display: block;
}

.card-body-custom p {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 2rem;
}

.border-top-light {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Header Styles */
.header-nav {
    padding: 18px 20px;
}

.header-nav {
    width: 100% !important;
    /* Force full viewport width */
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: 0 !important;
    right: 0 !important;
    position: relative;
}

.header-nav {
    height: auto;
}

.btn-team-active {
    background: var(--emerald);
    color: #000;
    font-weight: bold;
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(0, 210, 133, 0.4);
}

.btn-nav-dark {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-light);
    border-radius: 14px;
    font-size: 0.8rem;
    padding: 10px 25px;
}

.btn-nav-dark:hover,
.btn-nav-dark:focus {
    background: rgba(255, 255, 255, 1);
    color: #000;
}

.btn-exit-game {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: rgba(239, 68, 68, 1);
    border-radius: 14px;
    font-size: 0.8rem;
    padding: 10px 25px;
}

.btn-exit-game:hover,
.btn-exit-game:focus {
    background: rgba(239, 68, 68, 1);
}

/* Category Card */
.category-card-two {
    background: var(--Secondy-colors-Crard-Crad-Border-Bcakgorund-color, rgba(20, 24, 31, 1));
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0px 16px 32px 0px rgba(0, 0, 0, 0.28);
    border-radius: 16px;
    overflow: hidden;
}

.border-active {
    border: 1px solid var(--emerald);
}

.image-side {
    background: transparent;
    color: #1a1a1a;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.placeholder-img {
    position: relative;
}

.cat-label {
    font-weight: bold;
    font-size: 1.1rem;
    position: absolute;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 204, 153, 0.77) 0%, #00CC99 100%);
    width: 100%;
    padding: 15px;
    color: var(--text-light);
}

.points-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #0d1117;
}

.p-row {
    display: flex;
    justify-content: space-around;
}

.p-row span {
    background: var(--Secondy-colors-Accent-Cosmos, rgba(34, 44, 56, 1));
    border: 1px solid rgba(102, 197, 164, 0.26);
    box-shadow: 0px 1px 0px 1px rgba(255, 255, 255, 0.04) inset;
    color: rgba(0, 204, 153, 1);
    padding: 20px;
    width: 45%;
    text-align: center;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1.2rem;
}

.p-row span i {
    color: rgba(148, 163, 184, 1);
}

.p-row.highlight span {
    color: rgba(254, 223, 137, 1);
}

.p-row.bluelight span {
    color: rgba(0, 153, 255, 1);
}

/* Team Panels */
.team-panel {
    background: var(--Secondy-colors-Crard-Crad-Border-Bcakgorund-color, rgba(20, 24, 31, 1));
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0px 16px 40px 0px rgba(0, 0, 0, 0.3);
    border-radius: 32px;
    padding: 20px;
}

.active-panel {
    border: 1px solid rgba(0, 204, 153, 0.4);
    box-shadow: 0px 2px 0px 1px rgba(255, 255, 255, 0.1) inset;
    ;
}

.counter-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0px 2px 12px 1px rgba(0, 0, 0, 0.5) inset;
    border-radius: 24px;
    padding: 5px 15px;
}

.score-text {
    font-size: 2rem;
    color: var(--emerald);
    margin: 0 15px;
    font-weight: bold;
}

.btn-math {
    background: var(--Secondy-colors-Accent-Cosmos, rgba(34, 44, 56, 1));
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.3);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.team-name {
    font-size: 1.5rem;
    font-weight: bold;
}

.text-emerald {
    color: var(--emerald);
}

.powerups-row {
    border-top: 1px solid #30363d;
}

.p-icon {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.7rem;
    padding: 14px 60px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0px 1px 0px 1px rgba(255, 255, 255, 0.02) inset;
    border-radius: 16px;
}

.p-icon-2 {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.7rem;
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0px 1px 0px 1px rgba(255, 255, 255, 0.02) inset;
    border-radius: 16px;
}

.p-icon-3 {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.7rem;
    padding: 14px 10px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0px 1px 0px 1px rgba(255, 255, 255, 0.02) inset;
    border-radius: 16px;
}




.ico-style-1 {
    background: rgba(212, 115, 41, 0.1);
    border: 0.46px solid rgba(212, 115, 41, 0.3);
    box-shadow: 0px 0px 11.08px 0px rgba(212, 115, 41, 0.2);
    display: inline-block;
    margin-bottom: 3px;
    padding: 4px 8px;
    border-radius: 8px;
}

.shield-icon {
    background: url('../images/warning-icon.png') no-repeat center center;
    background-size: cover;
    width: 13.5px;
    height: 16.5px;
    display: block;
}

.ico-style-2 {
    background: rgba(255, 77, 109, 0.06);
    border: 0.46px solid rgba(255, 77, 109, 0.4);
    box-shadow: 0px 0px 11.08px 0px rgba(255, 77, 109, 0.05);
    display: inline-block;
    margin-bottom: 3px;
    padding: 4px 7px;
    border-radius: 8px;
}

.clock-icon {
    background: url('../images/time-icon.png') no-repeat center center;
    background-size: cover;
    width: 18px;
    height: 18px;
    display: block;
}

.ico-style-3 {
    background: rgba(102, 197, 164, 0.1);
    border: 0.46px solid rgba(102, 197, 164, 0.3);
    box-shadow: 0px 0px 11.08px 0px rgba(102, 197, 164, 0.2);
    display: inline-block;
    margin-bottom: 3px;
    padding: 4px 6px;
    border-radius: 8px;
}

.circle-icon-2 {
    background: url('../images/circle-icon.png') no-repeat center center;
    background-size: cover;
    width: 18px;
    height: 18px;
    display: block;
}

.p-icon small {
    font-size: 12px;
    color: var(--text-light);
}

/* jQuery Selection Classes */
.text-emerald {
    color: #00d285 !important;
    text-shadow: 0 0 10px rgba(0, 210, 133, 0.5);
}

.p-icon {
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.p-row span {
    cursor: pointer;
    transition: transform 0.1s;
}

.p-row span:active {
    transform: scale(0.9);
}

/* --- Responsive Adjustments --- */

@media (max-width: 992px) {
    .image-side {
        width: 35%;
        /* Tablet par image section thoda chota */
    }

    .team-name {
        font-size: 1.2rem;
    }
}

@media (min-width: 744px) and (max-width: 932px) {

    /* Override everything for tablet */
    .header-nav {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        align-items: center !important;
        padding: 20px 15px !important;
        justify-content: space-between !important;
        width: 100% !important;
        position: relative;
        left: -5px;
    }

    /* ALL divs must be inline except title */
    .header-nav>div {
        width: auto !important;
        flex: 0 0 auto !important;
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    /* First div - Exit buttons (far right in RTL) */
    .header-nav>div:first-child {
        order: 1 !important;
        gap: 6px !important;
        justify-content: flex-end !important;
    }

    /* Second div - Title (full width, bottom) */
    .header-nav>div:nth-child(2) {
        order: 3 !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        justify-content: center !important;
        padding: 8px 0 !important;
        margin-top: 4px !important;
    }

    /* Third div - Logo & Team (far left in RTL) */
    .header-nav>div:nth-child(3) {
        order: 2 !important;
        gap: 8px !important;
        justify-content: flex-start !important;
    }

    /* Logo */
    .logo-box {
        width: 45px !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
    }

    .logo-box img {
        width: 100% !important;
        height: auto !important;
    }

    .logo-box a {
        display: flex !important;
        align-items: center !important;
    }

    /* Second nav styling */
    .second-nav {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        margin: 0 !important;
        background: none !important;
        border: none !important;
        flex-wrap: nowrap !important;
    }

    .second-nav a {
        margin: 0 !important;
    }

    /* Buttons */
    .btn-exit-game,
    .btn-nav-dark {
        font-size: 0.7rem !important;
        padding: 6px 10px !important;
        white-space: nowrap !important;
        margin: 0 !important;
        border-radius: 6px !important;
    }

    .btn-team-active {
        font-size: 0.8rem !important;
        padding: 8px 16px !important;
        white-space: nowrap !important;
        margin: 0 !important;
        border-radius: 20px !important;
    }

    .second-nav .btn-team-active {
        font-size: 0.78rem !important;
        padding: 6px 14px !important;
    }

    .second-nav a span {
        font-size: 0.65rem !important;
        margin: 0 2px !important;
    }

    /* Title text */
    .header-nav>div:nth-child(2) .text-secondary {
        font-size: 0.85rem !important;
    }
}

/* Landscape Mode for Gaming Feel */
@media (max-height: 500px) and (orientation: landscape) {
    .category-card-two {
        flex-direction: row;
    }

    .image-side {
        width: 50%;
    }

    .points-grid {
        width: 50%;
    }
}

.second-nav {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0px 2px 8px 1px rgba(0, 0, 0, 0.5) inset;
    padding: 10px;
    border-radius: 100px;
}

.text-secondary {
    color: var(--text-light) !important;
}

.logo-box {
    width: 70px;
    height: 100%;
}

.btn-step {
    background: var(--Secondy-colors-Accent-Cosmos, rgba(34, 44, 56, 1));
    border: 0.6px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0px 2.39px 7.17px 0px rgba(0, 0, 0, 0.3);
    color: #fff !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    font-size: 0.8rem !important;
    flex-shrink: 0 !important;
}


/* ========================================
   iPhone Only (max-width: 480px)
   ======================================== */

@media (max-width: 480px) {

    /* Container - flex row wrap */
    .gb-footer-wrapper .row.align-items-center {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 12px !important;
    }

    /* Team panels - 50% width side by side */
    .gb-footer-wrapper .team-select-panel {
        width: calc(50% - 6px) !important;
        flex: 0 0 auto !important;
        padding: 12px !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 8px !important;
    }

    /* First team (left) */
    .gb-footer-wrapper .team-select-panel:first-of-type {
        order: 1 !important;
    }

    /* Second team (right) */
    .gb-footer-wrapper .team-select-panel:last-of-type {
        order: 2 !important;
    }

    /* Sponsor logos - full width below */
    .gb-footer-wrapper .sponsor-logos {
        width: 100% !important;
        order: 3 !important;
        padding: 12px 0 !important;
        display: flex !important;
        justify-content: center !important;
        gap: 20px !important;
        align-items: center !important;
        flex: 0 0 100% !important;
    }

    /* Team score group */
    .team-score-group {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    .score-counter {
        background: rgba(0, 0, 0, 0.3) !important;
        border-radius: 20px !important;
        padding: 6px 12px !important;
        gap: 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .btn-step {
        color: #fff !important;
        width: 25px !important;
        height: 25px !important;
        border-radius: 50% !important;
        font-weight: bold !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        font-size: 0.8rem !important;
        flex-shrink: 0 !important;
    }

    .score-value {
        color: rgba(0, 153, 255, 1) !important;
        font-size: 1rem !important;
        font-weight: bold !important;
        text-align: center !important;
    }

    /* Helpers group */
    .helpers-group {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    .helpers-group:nth-child(1) {
        order: 1 !important;
    }

    .helper-label {
        font-size: 0.65rem !important;
        color: #00d4aa !important;
        text-transform: uppercase !important;
        font-weight: 600 !important;
        margin: 0 !important;
        letter-spacing: 0.5px !important;
    }

    .helper-icons {
        display: flex !important;
        gap: 6px !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .helper-icon {
        width: 32px !important;
        height: 32px !important;
        border-radius: 50% !important;
        background: rgba(0, 0, 0, 0.4) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #888 !important;
        font-size: 0.85rem !important;
        transition: all 0.2s ease !important;
        flex-shrink: 0 !important;
    }

    .helper-icon.active {
        color: #00d4aa !important;
        border-color: rgba(0, 212, 170, 0.3) !important;
    }

    .helper-icon.active-danger {
        color: #ff4d4d !important;
        border-color: rgba(255, 77, 77, 0.3) !important;
    }

    .helper-icon.active-gold {
        color: #ffd700 !important;
        border-color: rgba(255, 215, 0, 0.3) !important;
        font-weight: bold !important;
        font-size: 0.75rem !important;
    }

    .helper-icon.disabled {
        color: #4a4a4a !important;
        border-color: rgba(255, 255, 255, 0.05) !important;
    }

    /* Sponsor images */
    .sponsor-img {
        max-width: 70px !important;
        height: auto !important;
        object-fit: contain !important;
    }
}




.btn-send-mail {
    background: rgba(0, 204, 153, 1);
    color: var(--text-light);
    border-radius: 12px;
}

.btn-send-mail:hover,
.btn-send-mail:focus {
    background: rgba(0, 204, 153, 1);
    color: var(--text-light);
    box-shadow: 0px 4px 16px 0px rgba(0, 204, 153, 0.2);
}

/* Unique Prefixed Classes */
.game-view-main-wrapper {
    padding: 2rem 2%;
}

.game-view-q-card {
    background: var(--Secondy-colors-Crard-Crad-Border-Bcakgorund-color, rgba(20, 24, 31, 1));
    border: 4px solid var(--Primary-colors-Main-color-Default, rgba(0, 204, 153, 1));
    box-shadow: 0px 0px 0px 1px rgba(255, 255, 255, 0.03) inset;
    border-radius: 50px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.answers-wrapper {
    padding: 1.5rem;
}

.game-view-score-num {
    font-size: 24px;
    font-weight: 800;
    position: absolute;
    top: -30px;
    right: 40px;
    background: var(--Secondy-colors-Accent-Cosmos, rgba(34, 44, 56, 1));
    border-radius: 24px;
    padding: 10px 12px;
}

.game-view-score-num span {
    font-size: 14px;
    color: rgba(148, 163, 184, 1);
}

.game-view-cat-badge {
    background: var(--Secondy-colors-Accent-Bright-Azure, rgba(0, 153, 255, 1));
    color: white;
    border: 0px solid rgba(0, 123, 255, 0.2);
    border-radius: 24px;
    position: relative;
    left: -70px;
}

.game-view-progress-track {
    background-color: #21262d;
    height: 10px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    margin-top: 20px;
}

.game-view-progress-fill {
    background-color: #ff9f43;
    height: 100%;
    transition: width 1s linear;
}

.game-view-btn-emerald {
    background: var(--Primary-colors-Main-color-Default, rgba(0, 204, 153, 1));
    color: var(--text-light);
    font-weight: bold;
    border-radius: 24px;
    padding: 10px 25px;
    border: none;
    position: relative;
    right: -35px;
}

.game-view-timer-box {
    color: #0d1117;
    position: absolute;
    top: -30px;
    left: 0;
    transform: translate(130%, 0%);
    background: linear-gradient(180deg, #FFD55E 0%, #FFB65E 100%);
    width: 253px;
}

.game-view-timer-box #gameTimerDisplay {
    width: 100%;
    text-align: center;
}

.game-view-timer-btn {
    cursor: pointer;
    opacity: 0.8;
}

.game-view-btn-outline-blue {
    background-color: #1c2128;
    color: #007bff;
    border: 1px solid #007bff;
    border-radius: 12px;
    padding: 10px 25px;
}


.game-view-team-label {
    background-color: #00d285;
    color: var(--text-light);
    border-radius: 34px;
    border: none;
    padding: 8px 12px;
}

.game-view-points-display {
    background: rgba(0, 0, 0, 0.4);
    border: 2.1px solid var(--Secondy-colors-Accent-Cosmos, rgba(34, 44, 56, 1));
    color: #00d2ff;
    border-radius: 25px;
    box-shadow: 0px 2.1px 12.59px 1.05px rgba(0, 0, 0, 0.5) inset;

}

.game-view-help-tool {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    border: 1.09px solid var(--Secondy-colors-Accent-Cosmos, rgba(34, 44, 56, 1));
    box-shadow: 0px 1.09px 0px 1.09px rgba(255, 255, 255, 0.02) inset;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-view-help-tool.tool-active {
    color: #00d2ff;
}

.game-view-help-tool.tool-disabled {
    color: #e74c3c;
}

.game-view-help-tool.tool-warning {
    color: rgba(254, 223, 137, 1);
}

.game-view-media-frame {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-radius: 24px;
    padding: 24px;
    margin-top: 20px;
    margin-bottom: 20px;
    width: auto;
    margin: 0 auto;
}

.game-view-media-frame img {
    height: 245px;
}

.game-view-footer-ctrl {
    position: absolute;
    width: 100%;
    bottom: -20px;
    transform: translate(5%, 0%);
}



.game-view-team-unit {
    border-bottom: 1.5px solid var(--Secondy-colors-Crard-Crad-Border-Border-color, rgba(43, 48, 59, 1));
    padding-bottom: 20px;
}

.game-view-team-unit:last-child {
    border-bottom: none;
    padding-top: 20px;
}

.game-view-team-unit:nth-child(2),
.game-view-team-unit:nth-child(3) {
    padding-top: 20px;
}

@media (min-width:820px) and (max-width:834px) {

    .game-view-main-wrapper .row.g-4>.col-md-8,
    .game-view-main-wrapper .row.g-4>.col-md-4 {
        width: 100%;
    }

    .game-view-main-wrapper .row.g-4>.order-md-2 {
        order: 1 !important;
    }

    .game-view-main-wrapper .row.g-4>.order-md-1 {
        order: 2 !important;
    }

    .game-view-side-panel {
        display: flex;
        flex-direction: row;
        background-color: transparent;
        position: relative;
        padding: 1.5rem 0 !important;
    }

    .game-view-team-unit {
        padding-bottom: 0px;
        flex: 1;
        border-left: 1.5px solid var(--Secondy-colors-Crard-Crad-Border-Border-color, rgba(43, 48, 59, 1));
        border-bottom: 0;
        padding-right: 10px;
        padding-left: 10px;
        padding-top: 0px !important;
    }

    .game-view-side-panel::after {
        content: '';
        position: absolute;
        top: 0;
        left: -45px;
        bottom: 0;
        background: var(--Secondy-colors-Crard-Crad-Border-Bcakgorund-color, rgba(20, 24, 31, 1));
        width: 118%;
        height: 100%;
        z-index: -1;
    }

    .game-view-team-unit:last-child {
        border-left: none !important;
    }

    .game-view-side-panel {
        margin-top: 80px !important;
    }

    .game-view-timer-box {
        transform: translate(82%, 0%) !important;
    }

    .game-view-main-wrapper {
        padding: 0rem 2% !important;
    }
}

@media (min-width:375px) and (max-width:414px) {
    .game-view-main-wrapper {
        padding: 0rem 3%;
    }

    .game-view-q-card {
        margin-top: 25px !important;
    }
}

@media (min-width:375px) and (max-width:430px) {
    .game-view-media-frame img {
        height: auto;
    }
}

@media (min-width:414px) and (max-width:896px) {

    .game-view-main-wrapper .row.g-4>* {
        margin-bottom: 0rem;
    }

    .game-view-q-card {
        margin-top: 0px;
        padding: 0px !important;
    }

    .game-view-q-card.answers-wrapper {
        padding: 1.5rem !important;
    }

    .game-view-side-panel {
        margin-top: 0px;
    }

    .brand-logo .light,
    .brand-logo .dark {
        max-height: 50px;
    }

    button.navbar-toggler {
        background: #222C38;
        border-radius: 100px;
        padding: 8px;
    }

    .navbar-toggler-icon {
        width: 1.2em;
        height: 1.2em;
    }

    .navbar-container {
        backdrop-filter: blur(10px);
    }

    .navbar-nav .nav-link {
        margin: 0.2rem 1.5rem;
    }

    .hero-content {
        min-height: auto;
        padding-top: 150px;
    }

    .brand-wrap {
        margin-top: 0.5rem;
        padding-top: 0rem;
    }

    .stat-item {
        text-align: center;
    }

    .stat-number {
        font-size: 3rem;
    }

    .footer-logo img {
        max-width: 60px;
    }

    .game-view-media-frame {
        width: 50%;
        padding: 10px;
        margin: 0 auto;
    }

    .answers-wrapper .game-view-media-frame {
        margin: 30px auto 30px auto;
    }

    .game-view-question-box p {
        font-size: 12px !important;
        margin-top: 10px;
    }

    .game-view-progress-track {
        margin-bottom: 45px;
    }

}

@media (min-width:375px) and (max-width:414px) {
    .game-view-side-panel {
        display: flex;
        flex-direction: row;
        background-color: transparent;
        position: relative;
        padding: 1.5rem 0 !important;
    }

    .game-view-side-panel:after {
        content: '';
        position: absolute;
        top: 0;
        left: -45px;
        bottom: 0;
        background: var(--Secondy-colors-Crard-Crad-Border-Bcakgorund-color, rgba(20, 24, 31, 1));
        width: 118%;
        height: 100%;
        z-index: -1;
    }

    .game-view-team-unit {
        padding-bottom: 0px;
        flex: 1;
        border-left: 1.5px solid var(--Secondy-colors-Crard-Crad-Border-Border-color, rgba(43, 48, 59, 1));
        border-bottom: 0;
        padding-right: 10px;
        padding-left: 10px;
    }

    .game-view-team-unit:nth-child(2),
    .game-view-team-unit:nth-child(3) {
        padding-top: 0px;
    }

    .game-view-team-unit:last-child {
        border-bottom: none;
        border-left: none;
        padding-top: 0px;
    }

    .game-view-team-unit.team-3 {
        flex: none;
        padding-bottom: 20px;
        border-bottom: 1.5px solid var(--Secondy-colors-Crard-Crad-Border-Border-color, rgba(43, 48, 59, 1));
        border-left: 0;
    }

    .social-link {
        flex-direction: row;
        text-align: left;
        justify-content: end;
    }

    .social-link.facebook i,
    .social-link.whatsapp i,
    .social-link.instagram i {
        order: 1;
    }

    .brand-logo .light,
    .brand-logo .dark {
        max-height: 50px;
    }

    button.navbar-toggler {
        background: #222C38;
        border-radius: 100px;
        padding: 8px;
    }

    .navbar-toggler-icon {
        width: 1.2em;
        height: 1.2em;
    }

    .game-balance-btn {
        padding: 8px 14px;
        font-size: 16px;
    }

    .navbar-container {
        backdrop-filter: blur(10px);
    }

    .navbar-nav .nav-link {
        margin: 0.2rem 1.5rem;
    }

    .hero-content {
        min-height: auto;
        padding-top: 150px;
    }

    .brand-wrap {
        margin-top: 0.5rem;
        padding-top: 0rem;
    }

    .stat-item {
        text-align: center;
    }

    .stat-number {
        font-size: 3rem;
    }

    .footer-logo img {
        max-width: 60px;
    }
}

@media (min-width:744px) and (max-width:896px) {
    .btn-social {
        padding: 0.5rem 4.4rem;
        width: 25%;
    }
}

.gb-card-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 5px;
}

/* Center Media Section */
.gb-card-media {
    position: absolute;
    width: 32%;
    height: 96.5%;
    z-index: 2;
    border: 3px solid rgba(0, 204, 153, 0.57);
    display: flex;
    flex-direction: column;
    top: 3px;
}

.gb-card-media img {
    width: 100%;
    height: 196px;
    object-fit: cover;
}

.gb-media-label {
    height: 31%;
    background-color: #7edec1;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 15px 0;
    text-align: center;
    position: absolute;
    bottom: 0px;
    width: 100%;
}

/* Points Layout */
.gb-points-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0px 0;
}

.gb-point-row {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 0;
}

/* Pill Shapes */
.gb-point-pill {
    width: 35%;
    height: 93%;
    background-color: var(--pill-bg);
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.4rem;
    transition: 0.3s;
    padding: 30px 0;
}

/* Rounded Sides Matching Screenshot */
.gb-point-pill.left {
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
    padding-left: 25px;
    justify-content: center;
    background: var(--Secondy-colors-Crard-Crad-Border-Bcakgorund-color, rgba(20, 24, 31, 1));
    border: 1.5px solid var(--Secondy-colors-Crard-Crad-Border-Border-color, rgba(43, 48, 59, 1));
}

.gb-point-pill.right {
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    padding-right: 25px;
    /* Text pushed to right */
    justify-content: flex-end;
    justify-content: center;
    background: var(--Secondy-colors-Crard-Crad-Border-Bcakgorund-color, rgba(20, 24, 31, 1));
    border: 1.5px solid var(--Secondy-colors-Crard-Crad-Border-Border-color, rgba(43, 48, 59, 1));
}

/* Colors */
.gb-point-pill.cyan {
    color: rgba(0, 204, 153, 1);
}

.gb-point-pill.disabled {
    color: rgba(78, 82, 92, 1);
    justify-content: center;
    background: var(--Secondy-colors-Crard-Crad-Border-Bcakgorund-color, rgba(20, 24, 31, 1));
    border: 1.5px solid var(--Secondy-colors-Crard-Crad-Border-Border-color, rgba(43, 48, 59, 1));
}

/* Hover Effect */
.gb-point-pill.cyan:hover {
    background-color: #21262d;
    cursor: pointer;
}

@media (min-width:667px) and (max-width: 896px) {
    .gb-point-row {
        padding: 2px 0;
    }

    .gb-card-media img {
        height: 202px;
    }

    .team-select-panel {
        flex-direction: column;
    }

    .gb-footer-wrapper {
        padding: 5px 20px;
    }

    .btn-team-name {
        padding: 5px 20px !important;
    }

    .sponsor-img {
        max-height: 40px !important;
    }

    .helpers-group:nth-child(1) {
        order: 1 !important;
    }

    .btn-team-name {
        font-size: 0.75rem;
    }
}

@media (min-width: 320px) and (max-width: 480px) {
    .game-view-timer-box {
        transform: translate(20%, 0%);
        width: 144px;
    }

    .game-view-timer-btn {
        font-size: 18px !important;
    }

    .game-view-timer-box #gameTimerDisplay {
        font-size: 14px !important;
    }

    .game-view-score-num {
        right: 35px;
        font-size: 16px;
    }

    .game-view-question-box p {
        font-size: 14px !important;
        padding-top: 10px;
    }

    .game-view-btn-emerald {
        right: -18px;
        font-size: 11px;
        padding: 6px 25px;
    }

    .game-view-btn-emerald i {
        font-size: 11px !important;
    }

    .game-view-cat-badge,
    .game-view-btn-back {
        left: -50px !important;
        font-size: 11px !important;
        padding: 6px 25px !important;
    }

    .game-view-progress-track {
        margin-top: 0px;
    }

    .gb-point-pill {
        padding: 10px 0;
        font-size: 0.8rem;
    }

    .gb-point-pill.left {
        padding-left: 0px;
    }

    .gb-point-pill.right {
        padding-right: 0px;
    }

    .game-view-btn-back {
        padding: 10px 25px !important;
    }

}



/* Modal Content Styling */
.custom-checkout-modal {
    background: linear-gradient(180deg, #1A1F29 0%, #11151C 100%);
    border: 1px solid #2b3a4a !important;
    box-shadow: 0px 0px 0px 1.1px rgba(255, 255, 255, 0.08);
    border-radius: 30px !important;
    padding: 15px;
    font-family: 'Cairo', sans-serif;
}

#MainModal:has(.payment-result-modal) .modal-dialog {
    width: min(96vw, 1120px);
    max-width: min(96vw, 1120px);
    margin-right: auto;
    margin-left: auto;
}

#MainModal:has(.payment-result-modal) .custom-checkout-modal {
    overflow: visible;
}

#MainModal .payment-result-modal {
    width: 100%;
    max-width: 1040px;
    padding-top: clamp(16px, 3vw, 32px) !important;
    padding-bottom: clamp(16px, 3vw, 32px) !important;
}

#MainModal .payment-result-modal .receipt-wrapper {
    width: 100%;
}

#MainModal .payment-result-modal .receipt-row {
    gap: 16px;
    align-items: flex-start;
    text-align: start;
}

#MainModal .payment-result-modal .receipt-row span {
    flex: 0 0 auto;
}

#MainModal .payment-result-modal .receipt-row strong {
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: end;
}

@media (orientation: landscape) and (max-height: 560px) {
    #MainModal:has(.payment-result-modal) .modal-dialog {
        width: min(96vw, 1080px);
        max-width: min(96vw, 1080px);
        margin-top: 10px;
        margin-bottom: 10px;
    }

    #MainModal:has(.payment-result-modal) .custom-checkout-modal {
        padding: 10px;
        border-radius: 22px !important;
        overflow: visible;
    }

    #MainModal .payment-result-modal {
        max-width: 1000px;
        padding-top: 8px !important;
        padding-bottom: 10px !important;
    }

    #MainModal .payment-result-modal .receipt-header,
    #MainModal .payment-result-modal .receipt-header-fail {
        padding-top: 14px !important;
        padding-bottom: 14px !important;
    }

    #MainModal .payment-result-modal .receipt-body {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
}

@media (max-width: 575.98px) {
    #MainModal:has(.payment-result-modal) .modal-dialog {
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
        margin: 8px auto;
    }

    #MainModal:has(.payment-result-modal) .custom-checkout-modal {
        padding: 10px;
        border-radius: 22px !important;
        overflow: visible;
    }

    #MainModal:has(.payment-result-modal) #MainModalContent {
        padding: 0 !important;
    }

    #MainModal .payment-result-modal {
        padding: 8px 0 10px !important;
    }

    #MainModal .payment-result-modal .receipt-body {
        padding-right: 14px !important;
        padding-left: 14px !important;
    }

    #MainModal .payment-result-modal .receipt-row {
        flex-wrap: wrap;
        gap: 4px 12px;
        padding: 8px 0;
    }

    #MainModal .payment-result-modal .receipt-row span,
    #MainModal .payment-result-modal .receipt-row strong {
        flex: 1 1 100%;
        text-align: start;
    }

    #MainModal .payment-result-modal .receipt-title,
    #MainModal .payment-result-modal .receipt-title-fail {
        font-size: 22px;
        letter-spacing: 0;
    }
}

/* Close Button Override */
.btn-close-custom {
    background: rgba(255, 255, 255, 0.03);
    border: 1.1px solid rgba(255, 255, 255, 0.08);
    color: white;
    width: 25px;
    height: 34px;
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
    margin-right: 10px;
}

.btn-close-custom:hover {
    background: #2b3a4a;
}

.btn-close-custom .fa-times {
    color: rgba(148, 163, 184, 1);
    font-size: 0.8rem;
}

/* Credits Badge */
.credits-badge {
    background: linear-gradient(180deg, rgba(25, 230, 162, 0.2) 0%, rgba(25, 230, 162, 0.08) 100%);
    color: var(--teal-glow);
    border: 1.1px solid rgba(255, 255, 255, 0.08);
    padding: 4px 16px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    flex: 1;
    display: flex;
}

.credits-badge span {
    color: var(--text-white);
    text-align: left;
}

.credits-badge i.magic-icon {
    align-items: center;
    display: flex;
}

.credits-badge img {
    margin-right: 10px;
}



/* Titles */
.badge-wrap {
    flex: 6;
}

.badge-purchase {
    color: var(--theme-color);
    font-size: 0.8rem;
}

.badge-purchase .fa-circle {
    background-color: rgba(52, 211, 153, 1);
    box-shadow: 0px 0px 8.8px 0px rgba(52, 211, 153, 1);
    font-size: 0.5rem;
    border-radius: 100px;

}

.plan-title {
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
}

.summary-label {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Inner Payment Card */
.payment-card {
    background: var(--Secondy-colors-Accent-Cosmos, rgba(34, 44, 56, 1));
    border: 1.1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0px 2.2px 11px 1.1px rgba(0, 0, 0, 0.1) inset;
    border-radius: 21px;
    padding: 20px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    color: #99aab5;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.summary-line .cur {
    color: var(--text-white);
}

.total-payable-row {
    background: rgba(25, 230, 162, 0.08);
    border: 1.1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.total-amount {
    color: var(--theme-color);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Voucher Section */
.voucher-group {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border: 1.1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0px 2.2px 4.4px 1.1px rgba(0, 0, 0, 0.2) inset;
    padding: 5px;
    border-radius: 17px;
}

.voucher-input {
    background: transparent !important;
    border: none !important;
    color: white !important;
    box-shadow: none !important;
}

.voucher-input:focus {
    box-shadow: none !important;
}

.btn-apply {
    background: var(--Secondy-colors-Accent-Bright-Azure, rgba(0, 153, 255, 0.8));
    border: 1.1px solid rgba(255, 255, 255, 0.08);
    color: white;
    border-radius: 13.5px;
    padding: 6px 20px;
    font-weight: 600;
}

.btn-apply:hover,
.btn-apply:focus {
    background: var(--Secondy-colors-Accent-Bright-Azure, rgba(0, 153, 255, 1));
}

/* Buy Button */
.btn-buy-now {
    background-color: var(--theme-color);
    color: rgba(34, 44, 56, 1);
    font-weight: 800;
    padding: 14px;
    border-radius: 14px;
    border: none;
    box-shadow: 0 10px 20px rgba(0, 214, 164, 0.2);
}

.btn-buy-now:hover {
    background-color: var(--theme-color);
    transform: translateY(-2px);
}

/* Light-mode overrides for checkout modal elements */
body.light-mode .plan-title {
    color: white !important;
}

body.light-mode .voucher-section .text-secondary,
body.light-mode .voucher-section label.text-secondary {
    color: white !important;
}

@media (max-width: 575.98px) and (orientation: portrait) {
    #MainModal .modal-dialog {
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
        margin: 8px auto;
    }

    #MainModal .custom-checkout-modal {
        max-height: calc(100dvh - 16px);
        padding: 12px;
        border-radius: 24px !important;
        overflow: hidden;
    }

    #MainModalContent {
        max-height: calc(100dvh - 40px);
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        padding: 0 !important;
    }

    #MainModal .payment-checkout-header {
        align-items: flex-start;
        gap: 10px;
        padding: 8px 8px 0 !important;
    }

    #MainModal .payment-checkout-body {
        padding: 0 8px 8px !important;
    }

    #MainModal .badge-wrap {
        flex: 1 1 auto;
        min-width: 0;
        margin-bottom: 12px !important;
    }

    #MainModal .badge-purchase {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        margin-bottom: 5px;
        font-size: 0.78rem;
        line-height: 1.2;
    }

    #MainModal .plan-title {
        font-size: clamp(1.08rem, 5vw, 1.35rem);
        line-height: 1.25;
        margin-bottom: 0;
        overflow-wrap: anywhere;
        text-align: right;
    }

    #MainModal .credits-badge {
        flex: 0 1 auto;
        max-width: 48%;
        padding: 5px 10px;
        font-size: 0.78rem;
        line-height: 1.2;
        justify-content: center;
        white-space: normal;
    }

    #MainModal .credits-badge span {
        text-align: center;
    }

    #MainModal .btn-close-custom {
        flex: 0 0 34px;
        width: 34px;
        height: 34px;
        margin-right: 0;
        padding: 0;
    }

    #MainModal .summary-label {
        margin-bottom: 8px !important;
        font-size: 0.95rem;
    }

    #MainModal .payment-card {
        width: 100%;
        margin-bottom: 16px !important;
        padding: 16px;
        border-radius: 18px;
    }

    #MainModal .summary-line,
    #MainModal .total-payable-row {
        gap: 12px;
        line-height: 1.35;
    }

    #MainModal .summary-line {
        align-items: center;
        margin-bottom: 10px;
        font-size: 0.9rem;
    }

    #MainModal .summary-line span:first-child,
    #MainModal .total-payable-row span:first-child {
        flex: 1 1 auto;
        min-width: 0;
        text-align: right;
    }

    #MainModal .summary-line .cur,
    #MainModal .total-amount {
        flex: 0 0 auto;
        max-width: 45%;
        text-align: left;
        white-space: normal;
    }

    #MainModal .total-payable-row {
        align-items: center;
        padding: 12px;
        border-radius: 14px;
    }

    #MainModal .total-amount {
        font-size: 1rem;
        line-height: 1.35;
    }

    #MainModal .voucher-section {
        margin-bottom: 16px !important;
    }

    #MainModal .voucher-section .form-label {
        display: block;
        margin-bottom: 8px !important;
        font-size: 0.9rem;
    }

    #MainModal .voucher-group {
        align-items: center;
        gap: 6px;
        padding: 6px;
        border-radius: 16px;
    }

    #MainModal .voucher-input {
        min-width: 0;
        height: 44px;
        padding: 6px 10px;
        text-align: right;
        font-size: 0.9rem;
    }

    #MainModal .btn-apply {
        flex: 0 0 auto;
        min-width: 88px;
        height: 44px;
        padding: 6px 12px;
        border-radius: 13px;
        font-size: 0.9rem;
    }

    #MainModal .btn-buy-now {
        min-height: 50px;
        padding: 12px 16px;
        border-radius: 15px;
        font-size: 0.98rem;
    }
}



/* Footer Wrapper Background */
.gb-footer-wrapper {
    background: var(--Secondy-colors-Crard-Crad-Border-Bcakgorund-color, rgba(20, 24, 31, 1));
    padding: 20px;
    position: fixed;
    width: 100%;
    z-index: 99;
    bottom: 0;
}

/* Team/Player Buttons */
.btn-team-name {
    background: var(--Primary-colors-Main-color-Default, rgba(0, 204, 153, 1));
    color: white;
    border-radius: 33px;
    font-weight: bold;
    font-size: 1.1rem;
    display: block;
    text-align: center;
    padding: 10px 40px;
}

/* Score Counter Box */
.score-counter {
    background: #111a24;
    border: 1px solid #2c3642;
    border-radius: 50px;
    padding: 6px 10px;
    width: 100%;
}

.score-value {
    color: #0099ff;
    /* Score Blue */
    font-weight: bold;
    font-size: 1.2rem;
    padding: 0 15px;
    text-align: center;
    width: 100%;
}

/* Helper Labels */
.helper-label {
    color: var(--theme-color);
    font-size: 1.02rem;
    font-weight: bold;
}

/* Helper Icons Styling */
.helper-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--Secondy-colors-Accent-Cosmos, rgba(34, 44, 56, 1));
    box-shadow: 0px 1px 0px 1px rgba(255, 255, 255, 0.02) inset;
    font-size: 1.1rem;
    color: #55606d;
}

.helper-icon.active {
    color: #00d285;
}

.helper-icon.active-danger {
    color: #ff3d57;
}

.helper-icon.active-gold {
    color: #ffcc00;
    font-weight: 700;
}

.helper-icon.disabled {
    opacity: 0.3;
}

/* Sponsor Logos */
.sponsor-img {
    max-height: 80px;
    filter: grayscale(0.5);
    transition: 0.3s;
}

.sponsor-img:hover {
    filter: grayscale(0);
}

.game-view-btn-back {
    background: var(--Primary-colors-Error-Default, rgba(255, 77, 109, 1));
    color: var(--text-light);
    font-weight: bold;
    border-radius: 24px;
    padding: 10px 35px;
    border: none;
    position: relative;
    left: -70px;
}

.modal-overlay {
    background: var(--Secondy-colors-Crard-Crad-Border-Bcakgorund-color, rgba(20, 24, 31, 1));
    width: 100%;
    padding: 65px 40px;
    border-radius: 40px;
    border: 2px solid var(--border-color);
    position: relative;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 211, 149, 0.1);
}

.modal-content {
    width: 100%;
    margin: 0 auto;
}

.modal-title {
    color: var(--text-white);
    font-size: 24px;
    margin-bottom: 50px;
    font-weight: 600;
}

/* 2x2 Grid for Teams */
.teams-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.team-btn {
    background: var(--Secondy-colors-Accent-Cosmos, rgba(34, 44, 56, 1));
    color: var(--text-light);
    border: none;
    padding: 20px;
    border-radius: 20px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s ease;
}

.team-btn.active {
    background: var(--Primary-colors-Main-color-Default, rgba(0, 204, 153, 1));
    border: 1px solid var(--Secondy-colors-Crard-Crad-Border-Border-color, rgba(43, 48, 59, 1));
    color: rgba(255, 255, 255, 1);
    font-weight: bold;
}

/* Full width "No Answer" button */
.no-answer-btn {
    width: 100%;
    background: var(--Secondy-colors-Text-color-Muted, rgba(35, 39, 47, 1));
    color: var(--text-light);
    border: none;
    padding: 22px;
    border-radius: 25px;
    font-size: 18px;
    cursor: pointer;
    margin-bottom: 40px;
}

/* Footer Button Positioned bottom right */
.footer-action {
    position: absolute;
    bottom: -80px;
    right: -40px;
}

.back-btn {
    background: var(--Secondy-colors-Accent-Bright-Azure, rgba(0, 153, 255, 1));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 20px 20px;
    /* Rounded top only to match edge */
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.arrow {
    font-size: 20px;
}

/* Hover effects for interactivity */
.team-btn:hover:not(.active),
.no-answer-btn:hover {
    background: #2d3a4b;
}

.board-wrapper {
    margin: 20px 0;
}

@media (min-width: 320px) and (max-width: 667px) {

    .btn-nav-dark,
    .btn-exit-game {
        width: 100%;
    }

    .second-nav {
        width: auto;
    }

    .btn-team-active {
        width: 55%;
        min-height: auto;
        font-size: 13px;
    }

    .gb-card-media {
        height: 93%;
        top: 3px;
    }

    .gb-card-media img {
        height: 132px;
    }

    .gb-point-row {
        padding: 3px 0;
    }

    .gb-media-label {
        font-size: 0.5rem;
    }

    .btn-team-name {
        font-size: 0.75rem;
        padding: 8px 40px;
    }

    .btn-step {
        width: 20px !important;
        height: 20px !important;
    }

    .header-nav {
        padding: 10px 20px;
    }

    .btn-nav-dark,
    .btn-exit-game {
        padding: 5px 25px;
        min-height: auto;
        border-radius: 8px;
    }

    .header-nav>div:nth-child(2) .text-secondary {
        font-size: 0.6rem !important;
    }

    .board-wrapper {
        margin: 10px 0;
    }

    .gb-footer-wrapper {
        padding: 0px 20px;
    }
}

@media (min-width:834px) and (max-width: 852px) {
    .sponsor-img {
        max-height: 40px !important;
    }

    .btn-team-name {
        padding: 8px 40px;
        font-size: 0.76rem;
    }

    .helper-label {
        font-size: 0.9rem;
    }

    .helper-icon {
        width: 24px;
        height: 24px;
        font-size: 0.5rem;
    }
}

@media (min-width:430px) and (max-width: 932px) {
    .btn-team-name {
        background: linear-gradient(135deg, #00d4aa 0%, #00b884 100%) !important;
        padding: 8px 20px !important;
        border-radius: 20px !important;
        font-weight: 600 !important;
        font-size: 0.85rem !important;
        display: inline-block !important;
        white-space: nowrap !important;
        text-align: center !important;
        width: 100% !important;
    }

    .sponsor-img {
        max-height: 40px !important;
    }

    .helper-icon {
        width: 32px !important;
        height: 32px !important;
        border-radius: 50% !important;
        background: rgba(0, 0, 0, 0.4) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.85rem !important;
        transition: all 0.2s ease !important;
        flex-shrink: 0 !important;
    }

    .gb-footer-wrapper {
        padding: 10px 20px;
    }
}

@media (min-width:667px) and (max-width: 932px) {
    body {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .gb-point-row {
        padding: 0px 0;
    }

    .gb-point-pill.left {
        padding-left: 0px;
    }

    .gb-point-pill.right {
        padding-right: 0px;
    }

    .gb-point-pill {
        padding: 12px 0;
        font-size: 0.8rem;
    }

    .gb-card-media {
        height: 93.9%;
        top: 1.5px;
    }

    .gb-card-media img {
        height: 89px;
    }

    .gb-media-label {
        font-size: 0.6rem;
    }

    .game-view-timer-box {
        transform: translate(20%, 0%);
        width: 144px;
    }

    .game-view-timer-btn {
        font-size: 18px !important;
    }

    .game-view-timer-box #gameTimerDisplay {
        font-size: 14px !important;
    }

    .game-view-score-num {
        right: 35px;
        font-size: 16px;
    }

    .game-view-question-box p {
        font-size: 11px !important;
        padding-top: 10px;
        margin-bottom: 10px;
    }

    .game-view-btn-emerald {
        right: -18px;
        font-size: 11px;
        padding: 6px 25px;
    }

    .game-view-media-frame {
        padding: 5px;
        width: auto;
    }

    .game-view-media-frame img {
        height: 135px;
    }

    .game-view-team-label {
        padding: 5px 12px;
        font-size: 14px;
    }

    .game-view-btn-emerald i {
        font-size: 11px !important;
    }

    .game-view-cat-badge,
    .game-view-btn-back {
        left: -50px !important;
        font-size: 11px !important;
        padding: 6px 25px !important;
    }

    .btn-team-name {
        padding: 4px 20px !important;
    }

    .header-nav {
        padding: 9px 15px 0 15px !important;
    }

    .header-nav>div:nth-child(2) {
        order: 2 !important;
        flex: 1 !important;
        width: 100% !important;
        justify-content: center !important;
        padding: 4px 0 !important;
        margin-top: 0px !important;
    }

    .header-nav>div:nth-child(2) .text-secondary {
        font-size: 0.6rem !important;
    }

    .btn-exit-game,
    .btn-nav-dark {
        font-size: 0.6rem !important;
        padding: 3px 10px !important;
    }

    .second-nav {
        padding: 3px 5px;
    }

    .second-nav .btn-team-active {
        font-size: 0.5rem !important;
        padding: 2px 14px !important;
    }

    .second-nav a {
        margin: 0 !important;
        line-height: 10px;
    }

    .second-nav a span {
        font-size: 0.5rem !important;
        margin: 0 2px !important;
    }

    .team-select-panel {
        flex-direction: row;
    }

    .board-wrapper {
        margin: 4px 0 0px 0 !important;
    }

    .score-counter {
        padding: 2px 5px;
    }

    .score-value {
        font-size: 0.9rem;
    }

    .btn-step {
        width: 18px !important;
        height: 18px !important;
    }

    .gp-footer-wrapper {
        margin-top: auto;
        padding-bottom: calc(20px + env(safe-area-inset-bottom)) !important;
    }

    .modal-title-ar {
        font-size: 18px;
    }

    .btn-team-option {
        font-size: 14px !important;
        padding: 15px 8px !important;
        border-radius: 14px !important;
    }

    .btn-no-answer {
        font-size: 12px !important;
        border-radius: 12px !important;
    }

}

/* Modal Overlay */
.question-modal-overlay {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: var(--Secondy-colors-Crard-Crad-Border-Bcakgorund-color, rgba(20, 24, 31, 1));
    border: 4px solid var(--Primary-colors-Main-color-Default, rgba(0, 204, 153, 1));
    box-shadow: 0px 0px 0px 1px rgba(255, 255, 255, 0.03) inset;
    border-radius: 56px;
}

/* Modal Box */
.question-modal-content {
    width: 100%;
    max-width: 800px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
}

/* Title */
.modal-title-ar {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 40px;
}

/* Buttons Styling */
.btn-team-option {
    background-color: #1c222c;
    border: none;
    color: white;
    width: 100%;
    padding: 20px 10px;
    border-radius: 25px;
    font-size: 18px;
    transition: 0.3s;
}

/* Active State (Green Button) */
.active-team {
    background-color: #00d2a0 !important;
    color: white !important;
}

/* No One Answer Button */
.btn-no-answer {
    background-color: #1c222c;
    color: white;
    width: 100%;
    padding: 15px;
    border-radius: 24px;
    font-size: 18px;
}

/* Blue Bottom Button */
.btn-back-to-answer {
    position: absolute;
    bottom: -30px;
    right: 30px;
    background-color: #0095ff !important;
    color: white !important;
    border-radius: 20px !important;
    padding: 12px 25px !important;
    font-weight: bold !important;
    display: flex;
    align-items: center;
    border: none !important;
}

/* Hover Effect */
.btn-team-option:hover,
.btn-no-answer:hover {
    background-color: #2a3444 !important;
}

@media (min-width:375px) and (max-width:414px) {
    .question-modal-content {
        max-width: 100%;
        padding: 30px 0;
    }

    .modal-title-ar {
        font-size: 18px;
    }

    .btn-team-option {
        font-size: 12px !important;
        padding: 10px 10px !important;
        border-radius: 15px !important;
    }

    .btn-no-answer {
        border-radius: 15px !important;
        font-size: 14px !important;
        padding: 10px 10px !important;
    }

    .question-modal-overlay {
        margin-top: 40px !important;
    }

    .category-title {
        font-size: 12px;
    }
}

.winner-screen-overlay {
    background: url('../images/winners-bg.png') no-repeat center center / cover rgba(14, 18, 24, 1);
    border: 2px solid var(--Primary-colors-Main-color-Default, rgba(0, 204, 153, 1));
    box-shadow: 0px 0px 0px 1px rgba(255, 255, 255, 0.03) inset;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-radius: 56px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.winner-modal-content {
    width: 100%;
    max-width: 900px;
    padding: 40px;
    text-align: center;
}

.winner-title {
    color: white;
    font-weight: 800;
    margin-bottom: 60px;
}

/* Podium Layout */
.podium-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

/* Podium Blocks Styling */
.podium-block {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    border-radius: 10px 10px 0 0;
    position: relative;
    margin-top: 15px;
}

/* Dynamic Heights & Colors */
.rank-1 .podium-block {
    height: 220px;
    background: linear-gradient(180deg, #00d2a033 0%, #00d2a000 100%);
    border-top: 4px solid #00d2a0;
}

.rank-2 .podium-block {
    height: 160px;
    background: linear-gradient(180deg, #ffffff1a 0%, #ffffff00 100%);
    border-top: 4px solid #ffffff4d;
}

.rank-3 .podium-block {
    height: 120px;
    background: linear-gradient(180deg, #ff950033 0%, #ff950000 100%);
    border-top: 4px solid #ff9500;
}

.rank-4 .podium-block {
    height: 80px;
    background: linear-gradient(180deg, #ffffff0d 0%, #ffffff00 100%);
    border-top: 4px solid #ffffff1a;
}

/* Player Info */
.player-name {
    color: white;
    margin: 10px 0 5px;
    font-weight: 900;
    font-size: 30px;
    margin-bottom: 20px;
}

.player-score {
    background: rgba(100, 116, 139, 0.15);
    padding: 7px 21px;
    border-radius: 20px;
    color: white;
    font-size: 1.2rem;
    border: 1px solid rgba(203, 213, 225, 0.2);
    font-weight: 800;
}

.player-score.green {
    border: 1px solid rgba(0, 204, 153, 0.4);
    box-shadow: 0px 0px 20px 0px rgba(0, 153, 255, 0.4);
    color: var(--theme-color);
    background: rgba(0, 204, 153, 0.2);
    padding: 6px 27px;
}

.player-score span {
    color: #00d2a0;
    font-size: 0.7rem;
}

.rank-badge {
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    background: rgba(100, 116, 139, 0.15);
    border: 2px solid rgba(203, 213, 225, 0.5);
    box-shadow: 0px 0px 16px 0px rgba(100, 116, 139, 0.4);
    border-radius: 24px;
    text-align: center;
    line-height: 61px;
    margin: 0 auto;
    font-weight: 900;
}

.rank-badge.orange {
    background: rgba(180, 83, 9, 0.15);
    border: 2px solid rgba(245, 158, 11, 0.5);
    box-shadow: 0px 0px 16px 0px rgba(180, 83, 9, 0.4);
}

.player-info {
    text-align: center;
}

.rank-1 .crown-icon {
    color: #00d2a0;
    font-size: 2rem;
    filter: drop-shadow(0 0 10px #00d2a0);
    border: 2px solid rgba(0, 204, 153, 1);
    box-shadow: 0px 0px 16px 2px rgba(0, 153, 255, 0.3) inset;
    border-radius: 36px;
    width: 72px;
    height: 72px;
    text-align: center;
    line-height: 61px;
    margin: 0 auto;
}

/* Action Buttons */
.btn-play-again {
    background-color: #0095ff !important;
    color: white !important;
    border-radius: 15px !important;
    padding: 12px 30px !important;
    font-weight: 700 !important;
}

.btn-exit-lobby {
    background-color: #1c222c !important;
    color: #a0a0a0 !important;
    border: 1px solid #343a40 !important;
    border-radius: 15px !important;
    padding: 12px 30px !important;
}

@media (min-width:667px) and (max-width:932px) {
    .question-modal-content {
        padding: 30px 0;
    }

    .modal-title-ar {
        margin-bottom: 15px;
        font-size: 16px;
    }

    .game-view-main-wrapper {
        padding: 0rem 2%;
    }

    .winner-modal-content {
        padding: 0px 40px;
    }

    .winner-screen-overlay {
        margin-top: 15px;
        margin-bottom: 15px;
    }

    .winner-title {
        margin-bottom: 20px
    }

    .podium-container {
        margin-top: 0px;
    }

    .rank-1 .podium-block {
        height: 180px;
    }

    .podium-block {
        font-size: 3rem;
    }

    .rank-3 .podium-block {
        height: 100px;
    }

    .rank-2 .podium-block {
        height: 130px;
    }

    .rank-4 .podium-block {
        height: 80px;
    }

    .sm-mt-1 {
        margin-top: 1rem !important;
    }
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .podium-container {
        gap: 5px;
    }

    .player-name {
        font-size: 0.8rem;
    }

    .podium-block {
        font-size: 2rem;
    }

    .winner-modal-content {
        padding: 20px;
    }
}

@media (min-width:375px) and (max-width:414px) {
    .player-score.green {
        padding: 2px 10px;
    }

    .player-score {
        font-size: 0.4rem;
        padding: 2px 10px;
    }

    .winner-actions {
        margin-top: 80px !important;
    }

    .player-score span {
        font-size: 0.6rem;
    }

    .category-card {
        padding: 0.5rem 0.5rem 2rem 0.5rem;
    }

    .category-name {
        padding: 5px 5px;
        font-size: 0.8rem;
    }

    .subtitle-text {
        font-size: 0.55rem;
    }

    .create-game-section,
    .categories-section {
        margin-top: 80px;
    }
}

@media (min-width:744px) and (max-width:874px) {
    .game-view-main-wrapper {
        padding: 2rem 2%;
    }
}

@media (min-width:414px) and (max-width:932px) {
    .how-card {
        text-align: right;
        gap: 0;
    }

    .how-card-number {
        position: relative;
        width: 64px;
    }

    .how-card p {
        margin-top: 20px;
    }
}

/* The main centered card */
.login-card {
    background: var(--Secondy-colors-Crard-Crad-Border-Bcakgorund-color, rgba(20, 24, 31, 1));
    border-radius: 32px;
    padding: 2rem 3rem 1rem 3rem;
    /* Generous padding */
    width: 100%;
    max-width: 580px;
    /* Precise sizing */
    backdrop-filter: blur(24px);
    position: relative;
    margin: 4rem auto;
    border: 1px solid rgba(0, 204, 153, 0.15);
}

.login-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 60px;
    background: radial-gradient(70.71% 141.42% at 50% 0%, rgba(0, 204, 153, 0.15) 0%, rgba(0, 204, 153, 0) 70%);
}

/* Custom top-left back button */
.login-back-btn {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: none;
    border: 1px solid #ffffff33;
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    z-index :10;
}

.login-back-btn:hover {
    background: #ffffff1a;
    color: white;
}

/* Logo styling */
.logo-container {
    width: 120px;
    height: auto;
    margin: 0 auto 1.5rem auto;
    display: block;
}

.logo-container.light,
body.light-mode .logo-container.dark {
    display: block;
}

.logo-container.dark,
body.light-mode .logo-container.light {
    display: none;
}

/* Typo updates */
.card-title-eng {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.card-subtitle-eng {
    font-weight: 400;
    color: rgba(129, 136, 152, 1);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* Arabic labels */
.form-label {
    color: white;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-label span {
    color: rgba(129, 136, 152, 1);
}

.password-strength-container {
    max-width: 450px;
    margin: 0 auto;
    font-family: 'Cairo', sans-serif;
}

/* Strength Text */
.strength-label {
    color: var(--theme-color);
    font-weight: bold;
    font-size: 0.9rem;
    margin-right: 15px;
}

/* Horizontal Bars */
.strength-bars {
    display: flex;
    gap: 8px;
    flex-grow: 1;
}

.bar {
    height: 4px;
    flex-grow: 1;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Active Glow State */
.bar.active {
    background-color: var(--theme-color);
    box-shadow: 0 0 8px rgba(0, 214, 164, 0.6);
}

/* Validation List */
.validation-list {
    list-style: none;
    margin-top: 15px;
}

.validation-list li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: rgba(129, 136, 152, 1);
    transition: color 0.3s;
}

/* When condition is met */
.validation-list li.valid {
    color: var(--theme-color);
}

.validation-list li i {
    font-size: 0.75rem;
}

.validation-list li.valid i {
    color: var(--theme-color);
}

/* Bullet point for inactive state */
.validation-list li:not(.valid)::before {
    content: "•";
    font-size: 1.2rem;
    margin-left: 5px;
}

/* Custom Input Styling (general) */
.custom-input {
    background: var(--Secondy-colors-Accent-Cosmos, rgba(34, 44, 56, 1));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #fff;
    padding: 0.4rem 1.25rem;
    width: 100%;
    font-weight: 400;
    position: relative;
}

.custom-input:focus {
    outline: none;
    border-color: #2b3a4a;
    background-color: #1c2732;
}

.custom-input.success {
    background: rgba(0, 204, 153, 0.05);
    border: 1px solid rgba(0, 204, 153, 1);
}

.custom-input.success .phone-input-icon {
    color: rgba(0, 204, 153, 1);
}

.custom-input.error {
    background: rgba(255, 77, 109, 0.05);
    border: 1px solid rgba(255, 77, 109, 1);
}

.custom-input.error .phone-input-icon {
    color: rgba(255, 77, 109, 1);
}

/* Phone input group specific rules */
.phone-group {
    display: flex;
    gap: 0;
    /* Important for combined look */
    align-items: center;
}

/* Left phone number field with prefix-icon placeholder */
.input-number-field {
    border-radius: 20px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.input-number-field input {
    background: none;
    border: none;
    color: #fff;
    width: calc(100% - 30px);
    outline: none;
}

/* Lock icon inside the phone number input */
.phone-input-icon {
    color: rgba(139, 153, 163, 1);
    margin-left: 10px;
}

/* Right country code field as a button/dropdown */
.country-code-field {
    border-radius: 20px;
    width: 90px;
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    position: relative;
    background: var(--Secondy-colors-Accent-Cosmos, rgba(34, 44, 56, 1));
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1rem 0.75rem;
    border-right: none;
    margin-left: 10px;
}

.country-code-field span {
    color: var(--text-light);
}

.country-code-field i {
    font-size: 0.8rem;
    color: rgba(139, 153, 163, 1);
}

/* Password input specific teal-green glow border */
.password-field-container {
    border: 1.5px solid var(--theme-color);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: var(--Secondy-colors-Accent-Cosmos, rgba(34, 44, 56, 1));
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
}

.password-field-container.success {
    background: rgba(0, 204, 153, 0.05);
    border: 1px solid rgba(0, 204, 153, 1);
    box-shadow: 0px 0px 0px 4px rgba(0, 204, 153, 0.1);
}

.password-field-container.success .password-field-icons {
    color: rgba(0, 204, 153, 1);
}

.password-field-container.error {
    background: rgba(255, 77, 109, 0.05);
    border: 1px solid rgba(255, 77, 109, 1);
    box-shadow: 0px 0px 0px 4px rgba(255, 77, 109, 0.1);
}

.password-field-container.error .password-field-icons {
    color: rgba(255, 77, 109, 1);
}

.password-input {
    background: none;
    border: none;
    flex-grow: 1;
    padding: 1rem 2.5rem 1rem 1.25rem;
    outline: none;
    color: white;
}

.password-field-icons {
    display: flex;
    gap: 15px;
    padding: 0 1.25rem;
    color: rgba(106, 115, 128, 1);
    /* Green from image 1 */
}

.password-field-container .fa-lock {
    position: absolute;
    right: 20px;
    top: 20px;
}

.pass-toggle {
    cursor: pointer;
}

/* Link and Checkbox Row */
.option-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    margin-bottom: 2rem;
    font-size: 0.85rem;
}

.forgot-link {
    color: rgba(0, 153, 255, 1);
    text-decoration: none;
}

.form-check-label {
    color: rgba(160, 170, 181, 1);
}

.custom-checkbox {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid rgba(0, 204, 153, 1);
    border-radius: 4px;
    background: none;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    margin-left: 8px;
}

.custom-checkbox:checked::after {
    content: "\f00c";
    /* FontAwesome check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #fff;
    position: absolute;
    top: -2px;
    left: 1px;
    font-size: 12px;
}

.custom-checkbox:checked {
    background-color: rgba(0, 204, 153, 1);
    border-color: rgba(0, 204, 153, 1);
}

/* Massive Action Button styling with unique glows */
.main-action-btn {
    border: 1.5px solid var(--Primary-colors-Main-color-Default, rgba(0, 204, 153, 1));
    border-radius: 100px;
    color: rgba(0, 204, 153, 1);
    font-weight: 700;
    padding: 0.8rem 1.25rem;
    font-size: 1.1rem;
    transition: background 0.2s, box-shadow 0.2s;
    position: relative;
}

.main-action-btn:hover {
    background-color: #00bf92;
    box-shadow: 0 8px 20px rgba(0, 214, 164, 0.45), 0 -8px 20px rgba(0, 214, 164, 0.45);
    color: rgba(0, 41, 31, 1);
}

/* Footer text styling */
.footer-text {
    color: rgba(129, 136, 152, 1);
    font-size: 0.9rem;
    margin-top: 2rem;
}

.register-link {
    color: rgba(0, 204, 153, 1);
    text-decoration: none;
}

/* Remove default Bootstrap arrow since we used FontAwesome */
.country-code-field::after {
    display: none;
}

/* Dropdown list styling */
.custom-dropdown-list {
    background-color: #1c2732 !important;
    border: 1px solid #2b3a4a;
    border-radius: 8px;
    min-width: 100px;
}

.custom-dropdown-list .dropdown-item {
    color: white;
    font-size: 0.9rem;
    text-align: center;
}

.custom-dropdown-list .dropdown-item:hover {
    background-color: var(--theme-color);
    color: black;
}

.error-text {
    display: block;
    text-align: right;
}

.error-text i {
    color: rgba(255, 77, 109, 1);
    margin-left: 5px;
}

.error-text span {
    color: rgba(255, 77, 109, 1);
}

.otp-wrapper {
    font-family: 'Cairo', sans-serif;
}

/* Timer Styling */
.otp-timer {
    color: var(--theme-color);
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

/* Base Input Styling */
.otp-input {
    width: 65px;
    height: 80px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: white;
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    outline: none;
    transition: all 0.2s ease;
}

/* Jab box mein number ho (Filled State) */
.otp-input.filled {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Active/Focused State (The 3rd box in your image) */
.otp-input.active,
.otp-input:focus {
    border-color: var(--theme-color);
    box-shadow: 0 0 10px rgba(0, 214, 164, 0.2);
    caret-color: var(--theme-color);
    /* Custom teal blinking cursor */
}

/* Remove Arrows from Number Inputs */
.otp-input::-webkit-inner-spin-button,
.otp-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.toggle-container {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    /* Fully rounded capsule shape */
    padding: 6px;
    /* Space between outer border and inner buttons */
    display: flex;
    width: 100%;
    max-width: 600px;
    gap: 5px;
    font-family: 'Cairo', sans-serif;
}

.toggle-option {
    flex: 1;
    text-align: center;
    padding: 7px 20px;
    border-radius: 10px;
    cursor: pointer;
    color: var(--text-inactive);
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

/* Active State Styling */
.toggle-option.active {
    background: rgba(0, 204, 153, 0.1);
    border: 1px solid rgba(0, 204, 153, 0.2);
    color: rgba(0, 204, 153, 1);
    box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.2);
}

/* Hover effect for inactive option */
.toggle-option:not(.active):hover {
    background: rgba(0, 204, 153, 0.1);
    border: 1px solid rgba(0, 204, 153, 0.2);
    color: rgba(0, 204, 153, 1);
    box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.2);
}

body.light-mode .login-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1.5px solid var(--Secondy-colors-Crard-Crad-Border-Light-Border, rgba(216, 228, 234, 1));
    box-shadow: 0px 18px 50px 0px rgba(16, 33, 43, 0.08);
    backdrop-filter: blur(10px);
}

body.light-mode .custom-input,
body.light-mode .country-code-field,
body.light-mode .custom-dropdown-list,
body.light-mode .password-field-container,
body.light-mode .otp-input,
body.light-mode .toggle-container {
    background: var(--Secondy-colors-Crard-Crad-Border-light-input, rgba(242, 246, 248, 1)) !important;
    border: 1px solid var(--Secondy-colors-Crard-Crad-Border-Light-Border, rgba(216, 228, 234, 1)) !important;
    color: rgba(139, 153, 163, 1);
}

body.light-mode .input-number-field input,
body.light-mode .password-input {
    color: rgba(139, 153, 163, 1);
}

body.light-mode .country-code-field span,
body.light-mode .dropdown-item,
body.light-mode .otp-input {
    color: rgba(34, 44, 56, 1);
}

body.light-mode .login-back-btn {
    background: var(--Secondy-colors-Crard-Crad-Border-light-icon-card, rgba(242, 246, 248, 1));
    border: 1px solid var(--Secondy-colors-Crard-Crad-Border-Light-Border, rgba(216, 228, 234, 1));
}

body.light-mode .main-action-btn:hover {
    color: var(--text-white);
}

@media (min-width:375px) and (max-width:414px) {
    .modal-dialog {
        max-width: 100%;
    }
}

@media (max-width: 575.98px) and (orientation: portrait) {
    .navbar {
        padding: 0.55rem 0.9rem;
    }

    .navbar .container-lg {
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        direction: ltr;
        padding-left: 0;
        padding-right: 0;
    }

    .navbar-brand {
        order: 3;
        flex: 0 0 auto;
        margin: 0;
        padding: 0;
    }

    .brand-logo .light,
    .brand-logo .dark {
        width: 74px;
        max-width: 74px;
        max-height: 44px;
        object-fit: contain;
    }

    .navbar-right {
        order: 1;
        flex: 1 1 auto;
        min-width: 0;
        direction: ltr;
        justify-content: flex-start;
        gap: 8px;
    }

    .profile-icon,
    .theme-toggle-btn {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        padding: 0;
        font-size: 0.95rem;
    }

    .navbar-right .site-menu-toggle,
    .navbar-right .profile-icon:not(.theme-toggle-btn) {
        order: 1;
    }

    .navbar-right .game-balance-btn {
        order: 2;
    }

    .navbar-right .theme-toggle-btn {
        order: 3;
    }

    .game-balance-btn {
        max-width: clamp(132px, 43vw, 186px);
        min-width: 0;
        padding: 7px 11px;
        gap: 7px;
        font-size: 13px;
        line-height: 1;
        white-space: nowrap;
        overflow: hidden;
    }

    .game-balance-btn > span:first-child {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .game-balance-btn .coins {
        flex: 0 0 auto;
        gap: 5px;
    }

    .navbar-center {
        order: 3;
    }
}

/* Custom responsive fixes for packages and subscriptions page */
@media (max-width: 991.98px) {
    .pkg-card.pkg-1 {
        background-position: left 10px bottom 10px, center center;
        background-size: min(36%, 180px) auto, cover;
        padding-left: 40% !important;
    }
}

@media (max-width: 768px) {
    .package-wrapper {
        max-width: 560px;
    }

    .pkg-card.pkg-1 {
        min-height: 300px;
        background-position: left 10px bottom 10px, center center;
        background-size: min(36%, 180px) auto, cover;
        padding: 34px 24px 28px 38% !important;
    }

    .pkg-card.pkg-1 .pkg-badge {
        font-size: 0.76rem;
        padding-inline: 16px;
    }

    .pkg-card.pkg-1 .pkg-value h2,
    .pkg-card.pkg-1 .pkg-price h3 {
        overflow-wrap: anywhere;
    }

    .btn-purchase-wrapper {
        display: inline-block !important;
        width: auto !important;
    }

    .btn-purchase-package,
    .btn-purchase-subscription {
        width: auto !important;
        min-width: 132px;
        min-height: 42px;
        display: inline-flex !important;
        margin: 0 !important;
        padding: 8px 14px !important;
        font-size: 0.76rem;
    }
}

@media (max-width: 576px) {
    .pkg-card.pkg-1 {
        min-height: 280px;
        border-radius: 22px;
        background-position: left 8px bottom 10px, center center;
        background-size: min(35%, 150px) auto, cover;
        padding: 28px 18px 24px 34% !important;
    }

    .pkg-card.pkg-1 .pkg-price h3 {
        margin-top: 14px;
    }

    .btn-purchase-package,
    .btn-purchase-subscription {
        min-width: 118px;
        min-height: 38px;
        padding: 7px 12px !important;
        font-size: 0.72rem;
    }

    .custom-packages-tabs {
        width: 100% !important;
        display: flex !important;
    }
    .custom-packages-tabs .nav-item {
        flex: 1 1 auto !important;
        text-align: center !important;
    }
    .custom-packages-tabs .nav-link {
        width: 100% !important;
        text-align: center !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

@media (orientation: landscape) and (max-height: 520px) {
    .testimonials-section {
        padding-top: 1.75rem !important;
        padding-bottom: 1.75rem !important;
    }

    .testimonials-section .section-header {
        margin-bottom: 0.75rem;
    }

    .testimonial-hand-icon {
        width: 34px;
        height: 35px;
    }

    .testimonial-heading {
        margin-bottom: 0.45rem;
        font-size: 1rem;
    }

    .gallery-slide {
        width: min(720px, 68vw);
    }

    .testimonial-card {
        min-height: 220px;
        padding: 2rem 1.25rem 3rem;
        border-radius: 14px;
    }

    .testimonial-quote {
        top: -0.9rem;
        right: 1.1rem;
        font-size: 3rem;
    }

    .testimonial-title-image {
        width: min(100%, 185px);
        max-height: 82px;
    }

    .testimonial-text {
        margin-top: 0.45rem;
        max-width: 520px;
        font-size: 0.66rem;
        line-height: 1.45;
    }

    .testimonial-badge {
        width: 62px;
        height: 42px;
    }

    .swiper-actions {
        margin-top: 0.75rem;
    }

    .gallery-slider .swiper-btn,
    .testimonials-carousel .swiper-button-next,
    .testimonials-carousel .swiper-button-prev {
        width: 44px !important;
        height: 44px !important;
    }
}
