:root {
    --zohari-blue: #0d1037;
    --zohari-green: #85c440;
    --zohari-purple: #3f2a7b;
    --zohari-sky-blue: #00b2ca;
    --background-color: #f9f9f9;
    --sidebar-bg: #ffffff;
    --sidebar-border: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-x: hidden;
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 20px;
    z-index: 1000;
}

.hamburger {
    width: 30px;
    height: 24px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.hamburger span {
    display: block;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.search-container {
    flex: 1;
    max-width: 500px;
    margin-left: auto;
}

.search-field {
    width: 100%;
    height: 40px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-field:focus {
    outline: none;
    border-color: var(--zohari-sky-blue);
}

.search-icon {
    display: none;
    width: 24px;
    height: 24px;
    cursor: pointer;
    margin-left: auto;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 60px;
    width: 260px;
    height: calc(100vh - 60px);
    background: var(--sidebar-bg);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    z-index: 999;
}

.sidebar.closed {
    transform: translateX(-100%);
}

.nav-section {
    padding: 20px 0;
}

.nav-section.top {
    flex: 0;
}

.nav-section.mid {
    flex: 1;
}

.nav-section.bottom {
    flex: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
    display: block;
    padding: 12px 25px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 30px;
    color: var(--zohari-blue);
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--zohari-sky-blue);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::before {
    transform: scaleY(1);
}

.main-content {
    margin-left: 260px;
    margin-top: 60px;
    /* padding: 30px; */
    transition: margin-left 0.3s ease;
}

.main-content.expanded {
    margin-left: 0;
}

.overlay {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.overlay.active {
    display: block;
}

@media (max-width: 768px) {
    .search-container {
        display: none;
    }

    .search-container.active {
        display: block;
        position: absolute;
        left: 60px;
        right: 20px;
        max-width: none;
    }

    .search-icon {
        display: block;
    }

    .logo {
        /* display: none; */
    }

    .logo.visible {
        display: block;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }
}

.game-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 400px;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.game-banner {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}



.game-title {

    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    transition: color 0.3s ease;
}

.game-card:hover .game-title {
    color: #4CAF50;
}

@media (max-width: 768px) {
    section>div:first-child {
        margin-bottom: 20px;
    }

    section>div:first-child h2 {
        font-size: 24px !important;
    }

    section>div:last-child {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
        gap: 15px !important;
    }

    .game-title {
        font-size: 16px;

    }
}

.logo img {
    height: 35px;
    width: auto;
}

@media (min-width: 1600px) {
    .game-card:nth-child(6) {
        display: none;
    }
}

/* Leaderboard section styles (minimal, responsive) */
.leaderboard-card {
    max-width: 980px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    color: #111827;
    font-family: inherit;
}

/* Header */
.lb-header {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.lb-title {
    display: flex;
    gap: 12px;
    align-items: center;
}

.lb-title h2 {
    font-size: 18px;
    letter-spacing: -0.2px;
}

.lb-sub {
    font-size: 13px;
    color: #6b7280;
}

/* Controls */
.lb-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.lb-controls select {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #e6e9ef;
    background: #fff;
    font-size: 14px;
}

.lb-controls .btn {
    border: none;
    background: #eef2ff;
    color: #3730a3;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

/* Top 3 display */
.lb-top3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.top-card {
    background: linear-gradient(180deg, rgba(250, 250, 255, 1), #fff);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
    box-shadow: 0 4px 10px rgba(2, 6, 23, 0.04);
    transition: transform .18s ease;
}

.top-card:hover {
    transform: translateY(-6px);
}

.top-rank {
    font-weight: 700;
    font-size: 18px;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.rank-1 {
    background: linear-gradient(90deg, #ffc857, #ff8a00);
}

.rank-2 {
    background: linear-gradient(90deg, #e6e8ff, #9aa7ff);
}

.rank-3 {
    background: linear-gradient(90deg, #f2e6dd, #d6a77a);
}

/* Avatar & info */
.avatar {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 15px;
    flex-shrink: 0;
}

.info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.user-name {
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-meta {
    font-size: 13px;
    color: #6b7280;
}

/* List */
.lb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #f1f5f9;
}

.lb-list li {
    display: grid;
    grid-template-columns: 120px 1fr 0px;
    gap: 12px;
    align-items: center;
    padding: 12px 4px;
    border-bottom: 1px solid #f8fafc;
}

.lb-list li:last-child {
    border-bottom: none;
}

.rank-pill {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    background: #f8fafc;
    font-weight: 700;
    color: #374151;
}

.score {
    font-weight: 700;
    text-align: right;
    font-size: 15px;
}

.badge-up {
    color: #059669;
    font-weight: 700;
    margin-left: 8px;
}

.badge-down {
    color: #ef4444;
    font-weight: 700;
    margin-left: 8px;
}

/* Responsive rules */
@media (max-width: 840px) {
    .lb-top3 {
        grid-template-columns: 1fr;
    }

    .lb-list li {
        grid-template-columns: 120px 1fr 0px;
    }

    .avatar {
        width: 42px;
        height: 42px;
        border-radius: 8px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .lb-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .lb-controls {
        width: 100%;
        justify-content: space-between;
    }
}

.tournaments-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.06);
    max-width: 1200px;
    margin: 0 auto;
}

.tc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.tc-header h2 {
    font-size: 18px;
    margin-bottom: 4px;
}

.sub {
    color: #6b7280;
    font-size: 13px;
}

.tc-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.tc-controls button {
    background: #eef2ff;
    border: 0;
    color: #3730a3;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.tc-list-wrap {
    overflow: hidden;
    position: relative;
}

.tc-list {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 8px 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.tc-list::-webkit-scrollbar {
    height: 8px;
}

.tc-item {
    min-width: 220px;
    flex: 0 0 240px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(2, 6, 23, 0.04);
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tc-banner {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 14px;
    background: linear-gradient(135deg, #3f2a7b, #00b2ca);
}

.tc-banner span {
    padding: 8px;
    text-align: center;
}

.tc-banner.accent2 {
    background: linear-gradient(135deg, #85c440, #0d1037);
}

.tc-banner.accent3 {
    background: linear-gradient(135deg, #ff8a00, #ffc857);
}

.tc-banner.accent4 {
    background: linear-gradient(135deg, #9aa7ff, #e6e8ff);
}

.tc-banner.accent5 {
    background: linear-gradient(135deg, #d6a77a, #f2e6dd);
}

.tc-banner.accent6 {
    background: linear-gradient(135deg, #00b2ca, #85c440);
}

.tc-body {
    padding: 12px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tc-meta {
    color: #6b7280;
    font-size: 13px;
}

.tc-title {
    font-size: 15px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tc-desc {
    color: #374151;
    font-size: 13px;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tc-actions {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #f1f5f9;
}

.btn-join {
    background: #0D1037;
    color: #fff;
    border: 0;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    vertical-align: middle;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.btn-details {
    background: #f3f4f6;
    color: #111827;
    border: 0;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
}

/* Expanded grid view */
.tournaments-card.expanded .tc-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    overflow: visible;
    padding: 8px 0;
}

.tournaments-card.expanded .tc-list-wrap {
    overflow: visible;
}

/* Modal */
.tc-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
}

.tc-modal[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
}

.tc-modal-panel {
    background: #fff;
    width: min(680px, 96%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.4);
    position: relative;
}

.tc-modal-banner {
    height: 160px;
    background: linear-gradient(135deg, #3f2a7b, #00b2ca);
    display: block;
}

.tc-modal-content {
    padding: 16px;
}

.tc-modal-close {
    position: absolute;
    right: 10px;
    top: 10px;
    background: transparent;
    border: 0;
    font-size: 22px;
    cursor: pointer;
}

@media (max-width:768px) {
    .tc-list {
        gap: 10px;
        padding: 8px;
    }

    .tc-item {
        min-width: 200px;
        flex: 0 0 200px;
    }

    .tc-header h2 {
        font-size: 16px;
    }
}

:root {
    --zohari-blue: #0d1037;
    --zohari-green: #85c440;
    --zohari-purple: #3f2a7b;
    --zohari-sky-blue: #00b2ca;
    --background-color: #f9f9f9;
    --sidebar-bg: #ffffff;
    --sidebar-border: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-x: hidden;
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 20px;
    z-index: 1000;
}

.hamburger {
    width: 30px;
    height: 24px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.hamburger span {
    display: block;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.search-container {
    flex: 1;
    max-width: 500px;
    margin-left: auto;
}

.search-field {
    width: 100%;
    height: 40px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-field:focus {
    outline: none;
    border-color: var(--zohari-sky-blue);
}

.search-icon {
    display: none;
    width: 24px;
    height: 24px;
    cursor: pointer;
    margin-left: auto;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 60px;
    width: 260px;
    height: calc(100vh - 60px);
    background: var(--sidebar-bg);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    z-index: 999;
}

.sidebar.closed {
    transform: translateX(-100%);
}

.nav-section {
    padding: 20px 0;
}

.nav-section.top {
    flex: 0;
}

.nav-section.mid {
    flex: 1;
}

.nav-section.bottom {
    flex: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 100px;
}

.nav-link {
    display: flex;
    padding: 12px 25px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    align-items: center;
    justify-content: flex-start;
    border-bottom: 1px dashed #efefef;
}

.nav-link svg {
    margin-right: 12px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 30px;
    color: var(--zohari-blue);
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--zohari-sky-blue);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::before {
    transform: scaleY(1);
}

.main-content {
    margin-left: 260px;
    margin-top: 60px;

    transition: margin-left 0.3s ease;
}

.main-content.expanded {
    margin-left: 0;
}

.overlay {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.overlay.active {
    display: block;
}

@media (max-width: 768px) {
    .search-container {
        display: none;
    }

    .search-container.active {
        display: block;
        position: absolute;
        left: 60px;
        right: 20px;
        max-width: none;
    }

    .search-icon {
        display: block;
    }

    .logo {
        /* display: none; */
    }

    .logo.visible {
        display: block;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }
}

.game-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.game-banner {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}



.game-title {

    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-align: center;
    transition: color 0.3s ease;
}

.game-card:hover .game-title {
    color: #4CAF50;
}

@media (max-width: 768px) {
    section>div:first-child {
        margin-bottom: 20px;
    }

    section>div:first-child h2 {
        font-size: 15px !important;
    }

    section>div:last-child {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
        gap: 15px !important;
    }

    .game-title {
        font-size: 16px;

    }
}

.logo img {
    height: 35px;
    width: auto;
}

@media (min-width: 1600px) {
    .game-card:nth-child(6) {
        display: none;
    }
}

/* Leaderboard section styles (minimal, responsive) */
.leaderboard-card {
    max-width: 980px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    color: #111827;
    font-family: inherit;
}

/* Header */
.lb-header {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.lb-title {
    display: flex;
    gap: 12px;
    align-items: center;
}

.lb-title h2 {
    font-size: 18px;
    letter-spacing: -0.2px;
}

.lb-sub {
    font-size: 13px;
    color: #6b7280;
}

/* Controls */
.lb-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.lb-controls select {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #e6e9ef;
    background: #fff;
    font-size: 14px;
}

.lb-controls .btn {
    border: none;
    background: #eef2ff;
    color: #3730a3;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

/* Top 3 display */
.lb-top3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.top-card {
    background: linear-gradient(180deg, rgba(250, 250, 255, 1), #fff);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
    box-shadow: 0 4px 10px rgba(2, 6, 23, 0.04);
    transition: transform .18s ease;
}

.top-card:hover {
    transform: translateY(-6px);
}

.top-rank {
    font-weight: 700;
    font-size: 18px;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.rank-1 {
    background: linear-gradient(90deg, #ffc857, #ff8a00);
}

.rank-2 {
    background: linear-gradient(90deg, #e6e8ff, #9aa7ff);
}

.rank-3 {
    background: linear-gradient(90deg, #f2e6dd, #d6a77a);
}

/* Avatar & info */
.avatar {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 15px;
    flex-shrink: 0;
}

.info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.user-name {
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-meta {
    font-size: 13px;
    color: #6b7280;
}

/* List */
.lb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #f1f5f9;
}

.lb-list li {
    display: grid;
    grid-template-columns: 1fr 120px 0px;
    gap: 12px;
    align-items: center;
    padding: 12px 4px;
    border-bottom: 1px solid #f8fafc;
}

.lb-list li:last-child {
    border-bottom: none;
}

.rank-pill {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    background: #f8fafc;
    font-weight: 700;
    color: #374151;
}

.score {
    font-weight: 700;
    text-align: right;
    font-size: 15px;
}

.badge-up {
    color: #059669;
    font-weight: 700;
    margin-left: 8px;
}

.badge-down {
    color: #ef4444;
    font-weight: 700;
    margin-left: 8px;
}

/* Responsive rules */
@media (max-width: 840px) {
    .lb-top3 {
        grid-template-columns: 1fr;
    }

    .lb-list li {
        grid-template-columns: 120px 1fr 0px;
    }

    .avatar {
        width: 42px;
        height: 42px;
        border-radius: 8px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .lb-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .lb-controls {
        width: 100%;
        justify-content: space-between;
    }
}

.tournaments-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.06);
    max-width: 1200px;
    margin: 0 auto;
}

.tc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.tc-header h2 {
    font-size: 18px;
    margin-bottom: 4px;
}

.sub {
    color: #6b7280;
    font-size: 13px;
}

.tc-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.tc-controls button {
    background: #eef2ff;
    border: 0;
    color: #3730a3;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.tc-list-wrap {
    overflow: hidden;
    position: relative;
}

.tc-list {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 8px 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.tc-list::-webkit-scrollbar {
    height: 8px;
}

.tc-item {
    min-width: 220px;
    flex: 0 0 240px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(2, 6, 23, 0.04);
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-width: 500px;
}

.tc-banner {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 14px;
    background: linear-gradient(135deg, #3f2a7b, #00b2ca);
}

.tc-banner span {
    padding: 8px;
    text-align: center;
}

.tc-banner.accent2 {
    background: linear-gradient(135deg, #85c440, #0d1037);
}

.tc-banner.accent3 {
    background: linear-gradient(135deg, #ff8a00, #ffc857);
}

.tc-banner.accent4 {
    background: linear-gradient(135deg, #9aa7ff, #e6e8ff);
}

.tc-banner.accent5 {
    background: linear-gradient(135deg, #d6a77a, #f2e6dd);
}

.tc-banner.accent6 {
    background: linear-gradient(135deg, #00b2ca, #85c440);
}

.tc-body {
    padding: 12px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tc-meta {
    color: #6b7280;
    font-size: 13px;
}

.tc-title {
    font-size: 15px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tc-desc {
    color: #374151;
    font-size: 13px;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tc-actions {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #f1f5f9;
}

.btn-join {
    background: #00b2ca;
    color: #fff;
    border: 0;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.btn-details {
    background: #f3f4f6;
    color: #111827;
    border: 0;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
}

/* Expanded grid view */
.tournaments-card.expanded .tc-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 14px;
    overflow: visible;
    padding: 8px 0;
}

.tournaments-card.expanded .tc-list-wrap {
    overflow: visible;
}

/* Modal */
.tc-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
}

.tc-modal[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
}

.tc-modal-panel {
    background: #fff;
    width: min(680px, 96%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.4);
    position: relative;
}

.tc-modal-banner {
    height: 160px;
    background: linear-gradient(135deg, #3f2a7b, #00b2ca);
    display: block;
}

.tc-modal-content {
    padding: 16px;
}

.tc-modal-close {
    position: absolute;
    right: 10px;
    top: 10px;
    background: transparent;
    border: 0;
    font-size: 22px;
    cursor: pointer;
}

@media (max-width:768px) {
    .tc-list {
        gap: 10px;
        padding: 8px;
    }

    .tc-item {
        min-width: 200px;
        flex: 0 0 200px;
    }

    .tc-header h2 {
        font-size: 16px;
    }
}

/* Challenge detail component */
.challenge-wrap {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
    padding: 18px;
}

/* Mobile: stack */
@media (max-width: 880px) {
    .challenge-wrap {
        grid-template-columns: 1fr;
        padding: 12px;
    }
}

/* Main banner card */
.challenge-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(2, 6, 23, 0.06);
    position: relative;
}

/* Banner area with aspect ratio */
.challenge-banner {
    width: 100%;
    aspect-ratio: 16/7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 24px;
    background: linear-gradient(135deg, #3f2a7b, #00b2ca);
    position: relative;
}

/* Overlay top-left badges */
.challenge-badges {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.badge {
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.challenge-buttons-holder {
    display: flex;
    flex-flow: row nowrap;
    gap: 10px;
    position: absolute;
    left: 14px;
    bottom: 14px;
    align-items: center;
    justify-content: flex-start;
}

/* Join count rounded pill bottom-left */
.join-count {

    background: rgba(255, 255, 255, 0.92);
    color: #111827;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.06);
}

/* Card body */
.challenge-body {
    padding: 18px;
    display: grid;
    gap: 12px;
}

/* Info column (right) */
.challenge-meta {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.04);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Title & game */
.challenge-title {
    font-size: 20px;
    font-weight: 800;
    color: #0d1037;
    line-height: 1.05;
}

.supporting-game {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 6px;
}

.game-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff8a00, #ffc857);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
}

.game-meta {
    font-size: 14px;
    color: #374151;
}

/* Dates row */
.dates-row {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 13px;
    color: #6b7280;
}

.date-pill {
    background: #f8fafc;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #eef2ff;
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

/* Description */
.challenge-desc {
    color: #374151;
    font-size: 15px;
    line-height: 1.45;
}

/* Rewards */
.rewards {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.reward-pill {
    background: linear-gradient(90deg, #eef2ff, #f8fafc);
    padding: 8px 10px;
    border-radius: 10px;
    font-weight: 700;
    color: #0d1037;
    font-size: 13px;
    border: 1px solid #e6e9ef;
}

/* Actions */
.challenge-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.btn-primary {
    border: 0;
    background: #00b2ca;
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
}

.btn-muted {
    border: 0;
    background: #f3f4f6;
    color: #111827;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
}

/* Other challenges horizontal list */
.other-challenges {
    margin-top: 20px;
}

.oc-title {
    font-weight: 800;
    color: #111827;
    margin-bottom: 10px;
}

.oc-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.oc-item {
    min-width: 220px;
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.04);
    flex: 0 0 220px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.oc-thumb {
    width: 68px;
    height: 68px;
    border-radius: 10px;
    background: linear-gradient(135deg, #85c440, #0d1037);
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oc-info {
    font-size: 14px;
    color: #374151;
}

.oc-meta {
    font-size: 13px;
    color: #6b7280;
}

/* Small helpers */
.kicker {
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.btn-details-H {
    background-color: #6c63ff;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
}

.play-button {
    background-color: #201f31;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease-in-out;
    display: inline-block;

}


/* Game detail template styles (drop into page) */
.game-detail {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
    box-sizing: border-box;
    color: #222;
    font-family: Arial, sans-serif;
}

/* Hero / banner */
.game-hero {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(15, 20, 25, 0.08);
}

.game-banner {
    position: relative;
    background: linear-gradient(120deg, #0f1724 30%, rgba(16, 24, 40, 0.2)), url('assets/images/game-banner.jpg') center/cover no-repeat;
    height: 320px;
    display: flex;
    align-items: flex-end;
    padding: 22px;
}

.game-banner .hero-content {
    color: #fff;
    max-width: 820px;
}

.game-title {
    margin: 0 0 6px;
    font-size: 1.2rem;
    letter-spacing: -0.4px;
}

.game-meta {
    margin: 0 0 14px;
    font-size: 13px;
    opacity: .9;
}

/* Buttons */
.game-actions {
    display: flex;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: transform .12s ease, box-shadow .12s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn-play {
    background: linear-gradient(90deg, #ff7a18, #ffb36a);
    color: #fff;
    box-shadow: 0 6px 18px rgba(255, 115, 35, 0.18);
}

.btn-like {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Content layout */
.row {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    margin-top: 18px;
}

.left {
    flex: 1 1 62%;
}

.right {
    flex: 0 0 320px;
}

/* Tags */
.tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0;
}

.tags a {
    text-decoration: none;
    padding: 6px 10px;
    background: #f1f5f9;
    color: #0f1724;
    border-radius: 999px;
    font-size: 13px;
    transition: background .12s;
}

.tags a:hover {
    background: #e2e8f0;
}

/* Description card */
.card {
    background: #fff;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 2px 10px rgba(15, 20, 25, 0.04);
}

.game-description h2 {
    margin-top: 0;
    font-size: 18px;
}

.game-description p {
    line-height: 1.6;
    color: #374151;
}

/* Sidebar info */
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #374151;
}

.info-item strong {
    color: #0f1724;
}

/* Similar games */
.similar {
    margin-top: 18px;
}

/* .similar-list { display:grid; grid-template-columns: repeat(2, 1fr); gap:12px; margin-top:12px; }
            .game-card { display:flex; gap:12px; align-items:center; background:#fff; padding:10px; border-radius:10px; text-decoration:none; color:inherit; box-shadow: 0 2px 8px rgba(15,20,25,0.04); }
            .game-card img { width:72px; height:56px; object-fit:cover; border-radius:8px; flex-shrink:0; }
            .game-card h4 { margin:0; font-size:15px; }
            .game-card p { margin:4px 0 0; font-size:13px; color:#6b7280; } */

/* Responsive */
@media (max-width:900px) {
    .row {
        flex-direction: column;
    }

    .right {
        flex-basis: 100%;
        width: 100%;
    }

    .similar-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .game-banner {
        height: 240px;
        padding: 16px;
    }
}

@media (max-width:480px) {
    .similar-list {
        grid-template-columns: 1fr;
    }

    .game-banner {
        height: 200px;
        padding: 14px;
    }

    .game-title {
        font-size: 14px;
    }

    .btn {
        padding: 8px 10px;
        font-size: 13px;
    }
}

/* Minimal, theme-friendly styles for the login card */
.login-wrapper {
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    background: var(--card-bg, #ffffff);
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(20, 20, 30, 0.08);
    padding: 28px;
    box-sizing: border-box;
}

.login-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.login-head .logo {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
}

.login-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-title, #0f172a);
}

.login-sub {
    color: var(--muted, #6b7280);
    font-size: 0.92rem;
    margin-top: 4px;
}

/* Form */
.form-group {
    margin-bottom: 14px;
}

.input {
    width: 100%;
    padding: 11px 12px;
    border-radius: 8px;
    border: 1px solid #e6e9ef;
    background: var(--input-bg, #fff);
    font-size: 0.95rem;
    color: var(--text, #0f172a);
    box-sizing: border-box;
}

.input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08);
}

/* Password field with toggle */
.password-wrap {
    position: relative;
}

.toggle-pass {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: #6b7280;
    font-size: 0.95rem;
}

/* Actions */
.actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    margin-bottom: 16px;
}

.btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 10px;
    background: linear-gradient(90deg, #4f46e5, #06b6d4);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.remember {
    display: flex;
    gap: 8px;
    align-items: center;
    color: #475569;
    font-size: 0.9rem;
}

/* Error list */
.error-list {
    background: #fff5f5;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 0.92rem;
}

/* Responsive */
@media (max-width: 520px) {
    .login-card {
        padding: 20px;
        border-radius: 10px;
    }

    .login-head .logo {
        width: 48px;
        height: 48px;
    }
}

/* PROFILE STYLES */

.profile-card-wrapper {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    box-sizing: border-box;
}

.profile-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: center;
    padding: 24px;
    text-align: center;
}

.profile-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-avatar .avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c5ce7, #00b894);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    color: #fff;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.profile-info h2 {
    margin: 0 0 6px 0;
    font-size: 22px;
    color: #222;
}

.profile-info p {
    margin: 4px 0;
    color: #555;
    font-size: 14px;
}

.profile-stats {
    display: flex;
    gap: 16px;
    margin-top: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.stat {
    background: #f7f9fc;
    padding: 12px 16px;
    border-radius: 10px;
    min-width: 120px;
    text-align: center;
}

.stat .num {
    font-weight: 700;
    font-size: 18px;
    color: #111;
}

.stat .label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* Responsive */
@media (max-width:720px) {
    .profile-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-avatar {
        order: -1;
    }

    .profile-stats {
        justify-content: center;
    }
}

.alert {
    background-color: #f44336;
    /* Red */
    color: white;
    padding: 15px;
    margin: auto;
    border-radius: 5px;
    position: fixed;
    z-index: 1;
    bottom: 50px;
    left: 16px;
    right: 16px;
    max-width: 480px;
    text-align: center;
}

.alert.success {
    background-color: #4BB543;
}

/* Green */

.alert.info {
    background-color: #2196F3;
}

/* Blue */

.alert.warning {
    background-color: #ff9800;
}

/* Orange */

.alert.danger {
    background-color: rgb(244 67 54 / 60%);
}

/* Red */

.alert.closebtn {
    position: absolute;
    top: 10px;
    right: 25px;
    color: white;
    font-weight: bold;
    font-size: 22px;
    line-height: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.alert.closebtn:hover {
    color: black;
}

.alert.closebtn:after {
    content: "×";
    font-size: 20px;
    line-height: 20px;
    position: absolute;
    right: 10px;
    top: 0;
}

.alert.closebtn:hover:after {
    color: black;
}

body#main-wrapper {
    position: relative;
}

/* SEARCH MODAL & RESULTS */

.search-results-modal {
    position: fixed;
    top: 80px;
    /* Space for topbar */
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(255 255 255);
    z-index: 999;
    overflow-y: auto;
    animation: fadeIn 0.2s ease;
}

.search-results-content {
    max-width: 800px;
    margin: 20px auto;
    background: #1a1a2e;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-results-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.5rem;
}

.close-search-results {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s;
}

.close-search-results:hover {
    color: #00a859;
}

.search-results-body {
    padding: 20px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.search-loading {
    text-align: center;
    padding: 40px;
    color: #00a859;
    font-size: 1.2rem;
}

.search-results-list {
    display: grid;
    gap: 15px;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s;
    text-decoration: none;
}

.search-result-item:hover {
    background: rgba(0, 168, 89, 0.1);
    transform: translateX(5px);
}

.search-result-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 15px;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.4);
}

.search-result-info {
    flex: 1;
}

.search-result-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.search-result-meta {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .search-results-modal {
        top: 70px;
    }

    .search-results-content {
        margin: 10px;
        border-radius: 8px;
    }

    .search-result-image {
        width: 100px;
        height: 100px;
    }
}

.like-game-btn,
.play-game-btn {
    display: flex;
}

/* --- SECTIONS & GRIDS --- */
.section-title {
    padding: 0 15px 10px 15px;
    font-size: .8rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0 15px 25px 15px;
}

.game-card {
    display: flex;
    flex-direction: column;
}

.thumb {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 12px;
    overflow: hidden;
    background-color: #222;
    margin-bottom: 6px;
    position: relative;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-title {
    font-size: 0.7rem;
    font-weight: 500;
    color: #575757;
}

span.one-liner {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#mainContent {
    margin: auto;
    max-width: 440px;
    margin-top: 75px;
}

.title-see-all a {
    font-size: 12px;
    color: #00b2ca;
    text-decoration: none;
}

/* Horizontal Nav */
/* Navigation container */
.nav-container {
    display: flex;
    overflow-x: auto;
    /* Enables horizontal scrolling */
    white-space: nowrap;
    /* Prevents items from wrapping to the next line */
    padding: 10px;
    gap: 10px;
    /* Space between nav items */

    /* Hide scrollbar for Firefox */
    scrollbar-width: none;
    /* Removes the scrollbar entirely in Firefox */

    /* Hide scrollbar for Internet Explorer and Edge (legacy) */
    -ms-overflow-style: none;
    /* Removes the scrollbar in IE/Edge */
}

/* Hide scrollbar for Webkit browsers (Chrome, Safari) */
.nav-container::-webkit-scrollbar {
    display: none;
    /* Completely hides the scrollbar in Webkit browsers */
}

.nav-container::-webkit-scrollbar-track {
    background: #1e2a44;
    /* Background of the scrollbar track */
}

.nav-container::-webkit-scrollbar-thumb {
    background: #6b7280;
    /* Color of the scrollbar thumb */
    border-radius: 4px;
}

.nav-container::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
    /* Lighter color on hover */
}

/* Rest of the styles remain the same */
.nav-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    background-color: #fff;
    color: #0d1037;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

a.nav-item i {
    margin-right: 5px;
}

.nav-item.active {
    background-color: #0d1037;
    color: #ffffff;
    text-decoration: none;
}

.nav-item:not(.active):hover {
    background-color: #4b5563;
}