/* ===============================
   Base & Layout
   =============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 0.8rem;
}
/* ===============================
   Sticky Footer Layout
   =============================== */
html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Let main content fill the remaining space */
.main-content {
    flex: 1;
    padding: 0 0 2rem 0;
}

/* Optional: Ensure container height behaves correctly */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
body {
    font-family: "Segoe UI", sans-serif;
    background-color: #121212;
    color: #f0f0f0;
    line-height: 1.6;
}
i.ph {
    position: relative;
}
.ph-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===============================
   Headings - Yellow Styling
   =============================== */
h1, h2, h3 {
    display: block;
    width: 100%;
    color: #e4b600;
    margin-bottom: 1rem;
}
h1 {
    font-size: 14px;
}

/* ===============================
   Links & Buttons
   =============================== */
a {
    color: #e4b600;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===============================
   Container
   =============================== */
/* Only apply flex layout to header container */
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
/* ===============================
   Header
   =============================== */
.site-header {
    background-color: #1e1e1e;
    color: #fff;
    height: 60px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0; /* remove default h1 spacing */
    line-height: 60px; /* vertical align fallback for logo */
}
/* ===============================
   Header Layout
   =============================== */
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-left {
    flex: 1;
}
.nav-center {
    flex: 1;
    text-align: center;
}

.nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.logo-img {
    max-height: 30px;
    height: auto;
}
.logo-img:hover {
    cursor: pointer;
    transform: scale(0.99);
}
/* ===============================
   Logo and Tagline Styling
   =============================== */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-tagline {
    font-size: 0.7rem;
    color: #ccc;
    margin-top: 0.4rem;
    letter-spacing: 0.2em;
    font-weight: 600;
}
/* ===============================
   Logo and Tagline (Mobile Scaling)
   =============================== */
@media (max-width: 600px) {
    .header-flex {
        justify-content: space-between;
        align-items: center;
        padding: 0 0.5rem;
        height: 60px;
    }

    .site-header,
    .site-header .container {
        height: 60px;
    }

    .nav-left {
        flex: 0 0 auto;
    }

    .nav-center {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .logo-container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        line-height: 1;
    }

    .logo-img {
        max-height: 22px;
        height: auto;
    }

    .logo-tagline {
        font-size: 0.5rem;
        letter-spacing: 0.05em;
        margin-top: 0.15rem;
        white-space: nowrap;
        color: #ccc;
    }

    .nav-right {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 0.6rem;
    }

    .nav-widgets {
        display: flex;
        align-items: center;
        gap: 0.4rem;
    }
    .nav-notification-widget, .nav-online-widget {
        margin: unset !important;
        color: #ccc;
    }
    .nav-notification-widget i,
    .nav-online-widget i {
        font-size: 1.2rem;
        color: #ccc;
    }
    .nav-balance-widget i {
        font-size: 1.2rem;
        color: #e4b600;
    }

    .nav-notification-widget .badge {
        font-size: 0.6rem;
        top: -5px;
        right: -5px;
        color: #ccc;
    }

    .nav-balance-widget span,
    .nav-online-widget span {
        font-size: 0.7rem;
    }
}

/* ─────────────────────────────────────────────────────
   BREADCRUMB NAVIGATION
────────────────────────────────────────────────────── */
.breadcrumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 3px;
}
.breadcrumb a {
    color: #e4b600;
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
.breadcrumb span {
    color: #FFFFF;
}
.breadcrumb-placeholder {
}

/* ===============================
   Navigation Styles - Slide-in Drawer
   =============================== */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: none;
}

.nav-overlay.show {
    display: block;
}
.hamburger {
    font-size: 1.5rem;
}
/* ░░ Navigation Container ░░ */
.main-nav {
    z-index: 1000;
}

/* ░░ Hamburger Icon (within header) ░░ */
.nav-toggle {
    background: #222;
    border: none;
    color: #ccc;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0.4rem 0.75rem;
    margin: 0;
}
@media (min-width: 600px) {
    .nav-toggle {
        display: none;
    }
}
.nav-toggle {
    display: block;
    z-index: 1002; /* Above overlay and nav */
}
/* ░░ Drawer Panel ░░ */
.nav-drawer {
    position: fixed;
    top: 0;
    left: -260px;
    width: 250px;
    height: 100vh;
    background-color: #1e1e1e;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.4);
    padding: 1rem;
    transition: left 0.3s ease;
    z-index: 1001;
    display: flex;                /* ✅ Flex layout */
    flex-direction: column;
    overflow: hidden;            /* prevents scrollbars from breaking layout */
}

.nav-drawer ul {
    flex-grow: 1;                /* ✅ Expand to fill space above footer */
    overflow-y: auto;            /* ✅ Allow scroll if nav items overflow */
    padding: 0;
    margin: 0;
    list-style: none;
}

.nav-drawer.show {
    left: 0;
}

/* ░░ Close Button ░░ */
.nav-drawer-header {
    display: flex;
    justify-content: flex-end;  /* ✅ align content to the right */
    align-items: center;
    height: 40px;
    padding: 0 1rem;
    margin-bottom: 0.5rem;
}
/* ✅ Ensure the button doesn't expand */
.nav-drawer-header button {
    all: unset;                 /* remove default styles */
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    font-size: 1.2rem;
}
.close-drawer {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}
/* Push footer to bottom */
.nav-drawer-footer {
    margin-top: auto;            /* ✅ Push footer to bottom */
    padding-top: 1rem;
    font-size: 0.8rem;
    color: #aaa;
    text-align: center;
    border-top: 1px solid #333;
}
.nav-drawer-footer img {
    max-width: 60px;         /* or whatever size looks best */
    height: auto;
    display: block;
    margin: 0 auto 0.5rem;   /* center image + spacing below */
    transition: opacity 0.2s ease;
}

/* ░░ Avatar Display in Drawer ░░ */
.nav-avatar-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.nav-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #333;
}

/* ░░ Drawer Menu Links ░░ */
.nav-drawer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-drawer ul li {
    margin-bottom: 1rem;
}

.nav-drawer a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
/* ===============================
   Header Widget Container
   =============================== */

.nav-widgets {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto; /* pushes it to the right in a flex container */
}
.nav-notification-widget, .nav-online-widget {
    color: #ccc;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #222;
    padding: 0.4rem 0.75rem;
    border-radius: 5px;
    height: 32px;
    margin-right: 1rem;
}
/* ░░ Always-visible Balance Widget (within header) ░░ */
.nav-balance-widget {
    color: #ffd700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #222;
    padding: 0.4rem 0.75rem;
    border-radius: 5px;
    height: 32px;
    margin-right: 1rem;
}
.nav-balance-widget:hover {
    text-decoration: none;
    cursor: pointer;
}
/* ===============================
   Online User Widget
   =============================== */

/* ░░ Overlay behind nav drawer ░░ */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
}

.nav-overlay.show {
    display: block;
}
/*
@media (max-width: 600px) {
    .nav-notification-widget,
    .nav-online-widget {
        display: none;
    }
}
*/
/* ===============================
   Hero Section
   =============================== */
.hero {
    text-align: center;
    padding: 3rem 1rem;
    background: #1e1e1e;
    border-radius: 12px;
    margin-bottom: 2rem;
    margin-top: 1.5rem;
}

.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}
.hero span {
    font-size: 1.2rem
}
/* ===============================
   Features Section
   =============================== */
.features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.feature-card {
    background-color: #1b1b1b;
    padding: 1.5rem;
    border-radius: 10px;
    width: 300px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: #ffffff;
}

/* ===============================
   Footer
   =============================== */
.site-footer {
    background-color: #1e1e1e;
    color: #ccc;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    font-weight: 600;
}
/* ===============================
   Form Row Layout (Label Left, Field Right)
   =============================== */
.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
}

.form-row label {
    width: auto;
    min-width: 130px;
    margin-bottom: 0;
    padding-right: 1rem;
    text-align: left;
}
.form-row label i {
    vertical-align: middle;
}
#race-setup-form .form-row label {
    min-width: 100px;
}

.form-row input,
.form-row select,
.form-row textarea,
.form-row span,
.form-row button {
    flex: 1;
}
/* Optional: Align hidden input + change button */
#changeFuelBtn {
    margin-left: 1rem;
}
.form-row.validation {
    display: none;
    margin-bottom: 0;
}

.form-row.validation small {
    font-size: 0.9rem;
    margin-top: -1rem;
}
.form-row .fuel-type {
    font-size: 1rem;
    font-weight: normal;
}
/* ===============================
   Forms
   =============================== */
form {
    background-color: #1a1a1a;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    max-width: 500px;
    margin: 2rem auto;
}
form.in-card {
    background-color: unset;
    padding: 0rem;
    border-radius: 0px;
    box-shadow: unset;
    max-width: 500px;
    margin: 2rem auto;
}
form p {
    margin-bottom: 3px;
}
/* ===============================
   Input Fields
   =============================== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #222;
    color: #f0f0f0;
    font-size: 1rem;
    transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #0061AE;
    outline: none;
}
/* -------------------------------------------
   Toggle Switches for Email Preferences
------------------------------------------- */
.toggle-switch {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    cursor: pointer;
    gap: 1rem;
    font-size: 1rem;
    color: #eee;
}

.toggle-switch input[type="checkbox"] {
    display: none;
}

.toggle-switch .slider {
    position: relative;
    width: 42px;
    height: 22px;
    background-color: #555;
    border-radius: 34px;
    transition: background-color 0.3s;
}

.toggle-switch .slider::before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    left: 3px;
    top: 3px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-switch input:checked + .slider {
    background-color: #e4b600;
}

.toggle-switch input:checked + .slider::before {
    transform: translateX(20px);
}

.toggle-switch .label-text {
    flex: 1;
}


/* ===============================
   Form Labels
   =============================== */
label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #cccccc;
}

/* ===============================
   Buttons
   =============================== */
/* ░░ Global Buttons – Yellow Variant ░░ */
button,
input[type="submit"] {
    background-color: #e4b600;
    color: #000;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    margin: 0.5rem auto;
    font-weight: normal;
}
/* ░░ FILE UPLOAD BUTTON ░░ */
.support-form input[type="file"] {
    display: none;
}

.support-form .file-label {
    display: inline-block;
    background-color: #e4b600;
    color: #000;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    font-weight: normal;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.support-form .file-name {
    margin-left: 1rem;
    font-style: italic;
    color: #555;
    display: inline-block;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 600px) {
    button,
    input[type="submit"] {
        padding: 0.5rem 0.75rem;
    }
}

button:hover,
input[type="submit"]:hover {
    background-color: #ffd700;
}
/* ░░ Disabled Button Styling ░░ */
button:disabled,
input[type="submit"]:disabled {
    background-color: #999;   /* Muted tone */
    color: #666;              /* Slightly dull text */
    cursor: not-allowed;
    opacity: 0.7;
}
button.no-hover:hover {
    background-color: inherit !important;
    color: inherit !important;
    cursor: pointer; /* still clickable */
}
.form-row .password-wrapper {
    flex: 1;
    position: relative;
    max-width: 100%;
}

.password-wrapper input {
    width: 100%;
    padding-right: 2.5rem; /* space for eye icon */
    box-sizing: border-box;
}

.password-wrapper i.ph {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2rem;
    color: #888;
}
/* ===============================
   Styled Lists (ul / li)
   =============================== */
ul {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
    list-style-type: disc;
}

ul ul {
    list-style-type: circle;
}

li {
    margin-bottom: 0.4rem;
    line-height: 1.6;
    font-size: 0.95rem;
    color: #ddd;
}

/* Optional: list inside cards */
.full-card ul,
.card ul {
    padding-left: 1.5rem;
}

/* Optional: Custom bullet color */
ul li::marker {
    color: #e4b600;
}
/* ===============================
   Dashboard Cards
   =============================== */
.dashboard-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background-color: #1b1b1b;
    color: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    width: 300px;
    flex: 1 1 300px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.card h3 {
    margin-bottom: 0.5rem;
}

.card p {
    margin-bottom: 1rem;
}
.full-card {
    background-color: #1b1b1b;
    color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    max-width: 700px;
    margin: 2rem auto;
}


/* ===============================
   Notification Bar
   =============================== */
.notification-dropdown {
    display: none; /* hidden by default */
    position: absolute;
    top: 50px;
    right: 1rem;
    background: #222;
    border: 1px solid #444;
    padding: 1rem;
    border-radius: 0.5rem;
    min-width: 250px;
    z-index: 1000;
}

.notification-dropdown.visible {
    display: block; /* shown when .visible is added */
}
.note-item.unread {
    font-weight: bold;
}

.note-item a {
    display: block;
    color: white;
    margin-bottom: 0.5rem;
}

.empty-note {
    color: #888;
    font-style: italic;
}

/* ===============================
   Nav avatar
   =============================== */
.avatar-frame {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.avatar-img-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
}
.avatar-img-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    z-index: 2;
}
.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.username {
    color: #e4b600;
}
.frame-preview-img {
    background: #f9f9f9;
    border-radius: 12px;
}
/* ░░ AVATAR HOVER ICON ░░ */
.avatar-hover-group {
    position: relative;
    cursor: pointer;
}
.avatar-img-wrapper {
    position: relative;
}
.avatar-hover-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 50%;
    display: none;
    z-index: 10;
}
.avatar-hover-icon i {
    color: #fff;
    font-size: 3rem;
}
.avatar-hover-group:hover .avatar-hover-icon {
    display: block;
}

/* ===============================
   Changing frames
   =============================== */
.frame-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
}

.frame-select-item {
    text-align: center;
    cursor: pointer;
    position: relative;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: transform 0.2s ease;
}
.frame-select-item.owned:hover {
    transform: scale(1.05);
}
.frame-select-item.locked {
    opacity: 1;
    cursor: default;
}
.frame-preview-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 auto 0.5rem;
}
.lock-mark {
    position: absolute;
    top: 35px;
    right: 40px;
    color: white;
}
.lock-mark i {
    font-size: 1.5rem;
}
.equipped-label {
    font-size: 1rem;
    color: #e4b600;
}
.frame-name {
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

/* ===============================
   Card Section Layout
   =============================== */
.card-section {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.card-section .card {
    flex: 1 1 calc(33.333% - 1rem); /* 3 cards per row */
    background: #1e1e1e;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    min-width: 250px;
}

/* For small screens, stack cards */
@media (max-width: 768px) {
    .card-section .card {
        flex: 1 1 100%;
    }
}

/* ===============================
   Garage css
   =============================== */
.garage-grid, .auction-grid, .dealership-car-grid, .trophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, max-content));
    gap: 2rem;
    justify-content: center;
}
.garage-size {
    font-size: 1rem;
    color: #e4b600;
    font-weight: bold;
}
/* ░░ CAR CARD – Top Trumps Style ░░ */
/* ░░ CAR CARD WITH BACKGROUND ░░ */
/* WIDE TO DISPLAY UPGRADES */


.car-card {
    position: relative;
    background: #121212;
    border: 4px solid #e4b600;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    width: 350px;
    color: #fff;
    font-family: 'Segoe UI', sans-serif;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 0;
}
/* ░░ BACKGROUND LAYER ░░ */
.car-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../imgs/card-bg.jpg');
    background-size: 100% auto; /* sets height to match card */
    background-position: left bottom;
    background-repeat: no-repeat;
    opacity: 0.5;
    z-index: -1;
    filter: brightness(0.5) contrast(1.2);
    border-radius: 12px;
}
.car-card .stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.car-card .stat-grid li {
    background: #1e1e1e;
    border-left: 4px solid #e4b600;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    list-style: none;
}
/* ░░ CAR IMAGE ░░ */
.car-thumb {
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e4b600;
}
/* Optional: limit max height globally */
@media (max-width: 600px) {
    .car-thumb {
        max-height: 150px;
    }
}
.missing-thumb {
    background: #333;
    border: 2px dashed #888;
    color: #aaa;
    font-size: 0.9rem;
}

/* ░░ CAR TITLE ░░ */
.car-card h3 {
    margin: 0.75rem 0 0.3rem;
    font-size: 1.1rem;
    text-align: center;
    font-weight: 600;
    color: #f0c200;
}

/* ░░ GENERAL TEXT ░░ */
.car-card p {
    margin: 0.2rem 0;
    font-size: 0.85rem;
    text-align: center;
}
.upgrade-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.5rem;
    justify-content: center;
    align-items: center;
}
.upgrade-icon {
    width: 25px;
    height: 25px;
    padding: 0px;
    background: #e4b600;
    border-radius: 6px;
    transition: opacity 0.2s ease;
}
.upgrade-icon.not-installed {
    opacity: 1;
    filter: grayscale(100%);
}
.upgrade-icon.installed {
    opacity: 1;
    filter: none;
}
.upgrade-icon.standard {
    border: 1px solid white;
}
.upgrade-icon.performance {
    border: 1px solid #00ff88;
}
.upgrade-icon.racing {
    border: 1px solid red;
}
.upgrade-icon:hover {
    transform: scale(0.9);
    cursor: pointer;
}
/* ░░ STATS LIST ░░ */
.car-card ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 1rem;
}

.car-card li {
    margin-bottom: 0.3rem;
    font-size: 0.8rem;
    background: #1e1e1e;
    border-left: 4px solid #e4b600;
    padding: 0.4rem 0.6rem;
}

/* ░░ BOOST TAG ░░ */
.boost-tag {
    font-size: 0.8rem;
    margin-top: 0.3rem;
    background: #272727;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    color: #ff6a00;
    font-weight: bold;
}

/* ░░ Fuel Type Styling ░░ */
.fuel-type, .rarity-badge {
    font-weight: bold;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.6rem;
    margin-left: 0.2rem;
    vertical-align: middle;
}
/* ░░ Fuel Type Styling ░░ */
.fuel-Regular { background: #ccc; color: #000; font-weight: bold !important; }
.fuel-Plus { background: #3498db; color: #fff; font-weight: bold !important; }
.fuel-Performance { background: #e67e22; color: #fff; font-weight: bold !important; }
.fuel-Race-Blend { background: #e74c3c; color: #fff; font-weight: bold !important; }
/* ░░ Rarity Styling ░░ */

.rarity-mythic {
    background: #ff006e; color: #fff;
}
.rarity-ultra-legendary {
    background: #ff4500; color: #fff;
}
.rarity-legendary {
    background: #e4b600; color: #000;
}
.rarity-epic {
    background: #a74aff; color: #fff;
}
.rarity-rare {
    background: #3498db; color: #fff;
}
.rarity-uncommon {
    background: #2ecc71; color: #fff;
}
.rarity-common {
    background: #999999; color: #fff;
}


/* ░░ BUTTONS ░░ */
.car-card-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem; /* Add gap between buttons */
    margin-top: 0.75rem;
}

.car-card-buttons button {
    flex: 1;
    padding: 0.6rem;
    font-size: 0.85rem;
    border-radius: 6px;
    text-align: center;
    box-sizing: border-box;
}
.btn-edit-nickname {
    background: none;
    border: none;
    padding: 0;
    margin-left: 0.4rem;
    font-size: 0.9rem;
    color: #e4b600;
    cursor: pointer;
    vertical-align: middle;
}

.btn-edit-nickname i {
    font-size: 1rem;
    line-height: 1;
}
.boost-tag {
    margin-top: 4px;
    color: #e74c3c;
    font-weight: bold;
    font-size: 0.95rem;
}
.boost-tag i {
    margin-right: 4px;
    vertical-align: middle;
}
/* DEALERSHIP */
.dealership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, max-content));
    gap: 2rem;
    justify-content: center;
}
.dealership-grid .car-card {
    width: 200px;
}
.dealership-card {
    position: relative;
    background: #121212;
    border: 4px solid #e4b600;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    width: 200px;
    color: #fff;
    font-family: 'Segoe UI', sans-serif;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 0;
    min-height: 250px;
}
.dealership-card:hover {
    cursor: pointer;
    transform: scale(1.01);
}
/* ░░ CAR IMAGE ░░ */
.dealership-thumb {
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e4b600;
}
/* Optional: limit max height globally */
@media (max-width: 600px) {
    .dealership-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, max-content));
    }
    .dealership-card {
        width: 150px;
    }
    .dealership-thumb {
        max-width: 100%;
    }

}
/* ----- Dealership Header Styles ----- */
.dealership-header {
    background-color: #111;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    color: #fff;
}

.manufacturer-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.manufacturer-badge {
    width: 100px;
    height: auto;
    border-radius: 8px;
    border: 2px solid #e4b600;
    background: #fff;
}

.flag-icon {
    height: 1rem;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.manufacturer-text h1 {
    font-size: 2.5rem;
    margin: 0 0 0.5rem;
}
@media (max-width: 600px) {
    .manufacturer-text h1 {
        font-size: 1rem;
    }
}

.manufacturer-text p {
    margin: 0.25rem 0;
}

.manufacturer-history p {
    margin: 0.5rem 0;
    line-height: 1.6;
}
.read-more-link {
    display: inline-block;
    color: #e4b600;
    text-decoration: underline;
    cursor: pointer;
    margin-top: 0.5rem;
}

.read-more-link:hover {
    text-decoration: none;
}

/* ───────────────────────────────────────────────────────────────
   GLOBAL MODAL STYLING
   ─────────────────────────────────────────────────────────────── */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6); /* Dark background */
    backdrop-filter: blur(2px);
}
.modal-content {
    background-color: #111;
    color: #fff;
    padding: 2rem;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
    position: relative;
    text-align: center;
    width: fit-content;
    max-width: 100%;
    margin: auto;
    margin-top: 10vh; /* Optional: vertical spacing from top */
    min-width: 500px;
}
@media (max-width: 600px) {
    .modal-content {
        min-width: 350px;
    }
}

.modal-content h3 {
    margin-top: 0;
    font-size: 1.5rem;
}

#modalClose {
    position: absolute;
    top: 0.8rem;
    right: 1rem;
    font-size: 1.4rem;
    color: #888;
    cursor: pointer;
}

#modalClose:hover {
    color: #fff;
}
/* ===============================
   Modal <ul> and <li> styling
   =============================== */
.modal-content ul {
    list-style-type: disc;
    padding-left: 1.2rem;
    margin: 0.75rem auto 1rem;
    max-width: 150px;
    color: #f0f0f0;
    text-align: left;
}
.modal-content li {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    line-height: 1.4;
}
/* ===============================
   Winner Highlight
   =============================== */
tr.winner {
    background-color: #1c3c1c;
    font-weight: bold;
    border-left: 4px solid gold;
}
/* ===============================
   Race Winner Card
   =============================== */
.race-winner-card {
    position: relative;
    border: 2px solid gold;
    padding: 2rem;
    border-radius: 2rem;
    text-align: center;
    margin: 2rem 0;
    color: #fff;
    background: #222; /* fallback */
    overflow: hidden;
}

.race-winner-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../imgs/chequered-bg.jpg') center/cover no-repeat;
    opacity: 0.15; /* control transparency here */
    z-index: 0;
    pointer-events: none; /* <-- allows interactions to pass through */
}
.trophy-icon,
.trophy-icon i {
    padding: 0;
    margin: 0;
    line-height: 1;
}
.trophy-icon {
    font-size: 10rem;
    margin-bottom: 0.5rem;
}
.trophy-icon i {
    font-size: inherit;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
    color: gold;
}
.winner-name {
    font-size: 2rem;
    color: gold;
    margin: 0;
}
.race-info {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: #aaa;
}
/* ===============================
   Toast Notifications
   =============================== */
.nav-notification-widget:hover {
    cursor: pointer;
}

.notification-toasts {
    position: fixed;
    top: 60px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 200px;
}

.toast {
    background: #333;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0 10px #000;
    max-width: 300px;
    animation: fadeIn 0.3s ease;
    position: relative;
}

.toast.unread {
    border-left: 4px solid #ffd700;
}

.toast a {
    color: #e4b600;
    text-decoration: underline;
}

.toast .close-toast {
    position: absolute;
    top: 0.3rem;
    right: 0.7rem;
    cursor: pointer;
    font-size: 1.2rem;
    color: #aaa;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
/* ===============================
   Event Card with Flag Background
   =============================== */
.event-card {
    position: relative;
    border: 2px solid #ffd700;
    border-radius: 1rem;
    padding: 0.2rem !important;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,1);
    color: #fff;
    z-index: 0;
    min-height: 250px;
    max-width: 350px;
}
.event-card:hover {
    transform: scale(0.99);
    cursor: pointer;
}
.no-hover {
    transform: unset !important;
    cursor: unset !important;
    margin: auto !important;
}

/* ░░ FLAG BACKGROUND LAYER ░░ */
.event-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--flag);
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
    opacity: 1; /* adjust to control visibility */
    z-index: -1;
    border-radius: 1rem;
    pointer-events: none;
}
.event-card h2, .event-card h3  {
    visibility: hidden;
}
.event-card p.entry-fee {
    text-align: center;
    font-size: 0.75rem;
    margin: unset;
    font-weight: bold;
}
.event-card p.distance {
    text-align: center;
    font-size: 0.75rem;
    margin: unset;
    font-weight: bold;
}
.event-card .prize-wrapper {
    margin-top: 10rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: rgba(0, 0, 0, 0.4);
    box-shadow: inset 10px 10px 10px rgba(0, 0, 0, 0.5);
    padding: 0.5rem;
    gap: 1rem;
}

.prize-text {
    flex-grow: 1;
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
}

.trophy-status {
    width: 80px;
    text-align: center;
}

.trophy-status img {
    width: 25px;
    height: auto;
    margin-bottom: 0.3rem;
    filter: drop-shadow(0 0 6px gold);
    border-radius: 4px;
}
.progress-container {
    position: relative;
    width: 100%;
    height: 14px;
    background-color: #444;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: green;
    border-radius: 10px;
    transition: width 0.3s ease-in-out;
    z-index: 1;
}

.progress-label {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    font-weight: bold;
    color: #FFFFFF;
    z-index: 2;
    pointer-events: none;
    white-space: nowrap;
    text-align: center;
}
/* ===============================
   Flag Badge for Event Cards
   =============================== */
.flag-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ffd700;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
}

.flag-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ensure card has relative positioning */
.event-card {
    position: relative;
    padding-top: 3rem; /* make space for badge if needed */
}
/* ─────── Event Setup Box ─────── */
.event-setup-box {
    background: #f8f8f8;
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    max-width: 700px;
}

.event-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.event-flag {
    width: 48px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.event-title h2 {
    margin: 0;
    font-size: 1.6rem;
}

.event-location {
    margin: 3px 0 0;
    color: #555;
    font-size: 0.95rem;
}

.event-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 1rem;
    margin: 10px 0;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ddd;
}


/* ===============================
   Race animation
   =============================== */
#race-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
}

#race-container {
    position: relative;
    width: 200px;
    height: 1000px;
    background: #333;
    background-image: url('../imgs/race/tarmac.png');
    border: 3px solid #fff;
    overflow: hidden;
    margin-left: 100px;
    margin-right: 100px;
}
.lane {
    position: absolute;
    width: 2px;
    height: 100%;
    top: 0;
    opacity: 0.4;
}

/* Center divider between two lanes */
/*
.lane-left {
    left: 95px;
    width: 8px;
    background-image: repeating-linear-gradient(
            to bottom,
            red,
            red 10px,
            white 10px,
            white 20px
    );
}
*/
/* Optional second lane divider */
.lane-right {
    left: 150px;
}
.car {
    position: absolute;
    width: 50px;
    top: 0;
    z-index: 10;
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.5));
}

/* car image */
.car-img {
    width: 100%;
    display: block;
}

/* now relative to the car */
.smoke-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    pointer-events: none;
    z-index: 5;
}
.smoke {
    position: absolute;
    width: 80px;
    height: 40px;
    background: radial-gradient(rgba(255, 255, 255, 0.3), transparent 70%);
    border-radius: 50%;
    opacity: 0.6;
    pointer-events: none;
    filter: blur(2px);
    transform: scale(1) translateY(0);
    animation: smokeRise 4s ease-out forwards;
}

@keyframes smokeRise {
    0% {
        opacity: 0.6;
        transform: scale(1) translateY(0) translateX(0);
    }
    100% {
        opacity: 0;
        transform: scale(1.5) translateY(-60px) translateX(10px);
    }
}

.smoke-variant1 {
    background: radial-gradient(rgba(255, 255, 255, 0.4), transparent 70%);
    filter: blur(10px);
}

.smoke-variant2 {
    background: radial-gradient(rgba(255, 255, 255, 0.2), transparent 80%);
    filter: blur(10px);
}
#car1 {
    left: 25px;   /* 50px center - 25px half car width */
}
#car2 {
    left: 100px;  /* 125px center - 25px half car width */
}
.lane-label {
    position: absolute;
    top: 10px;
    font-size: 10px;
    color: #fff;
    opacity: 0.5;
}

.lane-label.left { left: 25px; }
.lane-label.right { left: 100px; }
/* Mini-map track */
#mini-map {
    width: 50px;
    height: 300px;
    border: 2px solid #fff;
    background: #222;
    position: fixed; /* ⬅️ Make it fixed to stay visible */
    top: 80px;        /* adjust depending on your header height */
    right: 20px;      /* position on the right side */
    border-radius: 0.5rem;
    z-index: 1000;
}

.mini-car {
    width: 15px;
    height: 15px;
    background: yellow;
    border-radius: 50%;
    position: absolute;
}

#mini-car1 { left: 5px; background: red; }
#mini-car2 { left: 35px; background: blue; }
/* Container for holding puffs */

#drag-light {
    position: absolute;
    top: 60px; /* aligns vertically with start line */
    left: 50%;
    transform: translateX(-50%); /* centers horizontally */
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 5;
}

.light {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #222;
    border: 2px solid #555;
    transition: background 0.3s;
}

.light.red.on { background: red; }
.light.yellow.on { background: yellow; }
.light.green.on { background: limegreen; }

.start-line, .finish-line {
    position: absolute;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 2;
}
.start-line {
    position: absolute;
    top: 60px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 2;
}
.checkered-grid {
    width: 124px;
    display: grid;
    grid-template-columns: repeat(12, 10px);
    grid-template-rows: repeat(2, 10px);
    gap: 0;
    border: 2px solid white;
}

.cell {
    width: 10px;
    height: 10px;
}

.cell.white { background: white; }
.cell.black { background: black; }

.start-label {
    font-family: monospace;
    color: white;
    font-weight: bold;
    font-size: 12px;
    letter-spacing: 2px;
}
.finish-line {
    position: absolute;
    bottom: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 2;
}
/* ===============================
   Leaderboard Tabs
   =============================== */
.leaderboard-tabs {
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
}

.leaderboard-tabs a {
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: #333;
    color: #fff;
    border-radius: 5px;
    transition: background 0.3s;
}

.leaderboard-tabs a.active {
    background: #e4b600;
    color: #000;
    font-weight: bold;
}

/* ===============================
   Leaderboard Table
   =============================== */
.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    background: #1c1c1c;
    color: #fff;
}
.leaderboard-table th {
    text-transform: uppercase;
}
.leaderboard-table th,
.leaderboard-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #444;
    text-align: left;
}
.leaderboard-table tr:hover td {
    background-color: #333;
}
@media (max-width: 600px) {
    .leaderboard-table {
        border: 0;
        width: 100%;
        background: none;
    }

    .leaderboard-table thead {
        display: none;
    }

    .leaderboard-table tr {
        display: block;
        margin-bottom: 1.5rem;
        background: #1c1c1c;
        border: 1px solid #444;
        border-radius: 8px;
        padding: 0.5rem;
        line-height: 0.5rem;
    }

    .leaderboard-table td {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 0.75rem 1rem;
        border-bottom: none;
        position: relative;
        line-height: 0.5rem;
    }

    .leaderboard-table td::before {
        content: attr(data-label);
        flex: 0 0 45%;
        font-weight: bold;
        color: #e4b600;
        padding-right: 1rem;
        text-align: left;
    }

    .leaderboard-table td:last-child {
        border-bottom: none;
    }

    .leaderboard-table tr:hover td {
        background-color: inherit;
    }
    /* Center message row on mobile */
    .leaderboard-table tr.no-results {
        text-align: center;
        background: none;
        border: none;
        padding: 1rem;
    }

    .leaderboard-table tr.no-results td {
        display: block;
        text-align: center;
        padding: 1rem;
    }

    .leaderboard-table tr.no-results td::before {
        content: none;
    }

}



/* ===============================
   Friend Card
   =============================== */
.friend-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: #1e1e1e;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    width: calc(50% - 0.75rem); /* Two per row with 1.5rem gap */
    min-width: 260px;
    box-sizing: border-box;
}
.friend-card:hover {
    transform: scale(0.99);
    cursor: pointer;
}
.unique-code {
    display: block;
    font-size: 2.5rem;
    text-align: center;
}
/* Friend Code Copy Styling */
.copy-code-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* Stack layout for narrow screens */
@media (max-width: 600px) {
    .friend-card {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }
    .unique-code {
        font-size: 2rem;
    }
}

/* ===============================
   Star Icon Next to Level
   =============================== */
.star-icon {
    color: gold;
    font-size: 1.2rem;
    vertical-align: middle;
    margin-right: 0.25rem;
}
.avatar-small-wrapper, .avatar-small-wrapper * {
    position: relative;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
/* used in friends */
.avatar-text-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.avatar-frame-small {
    width: 32px;
    height: 32px;
    border-radius: 2px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.avatar-small-img {
    width: 24px;
    height: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
/* ===============================
   Car Thumbnail Selector
   =============================== */
.car-select-inline {
    display: flex;
    align-items: center;
    gap: 1rem; /* adds space between preview and button */
    flex: 1; /* allows it to fill the row */
}

.car-preview-inline {
    background: #2a2a2a;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    color: #fff;
    min-width: 180px;
    text-align: center;
}
@media (max-width: 600px) {
    .car-preview-inline {
        max-width: 160px !important;
        min-width: 160px !important; /* override min-width too */
        flex: 0 0 auto; /* prevent it from growing/shrinking */
    }
}
.car-selection-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem 0;
    justify-content: center; /* Center tiles horizontally */
}

.car-tile {
    width: 140px;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    background: #1e1e1e;
    color: #fff;
    padding: 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: border 0.2s;
}
.hidden {
    display: none !important;
}
.car-tile.selected {
    border-color: #ffd700;
}
.car-tile:hover {
    border-color: #ffd700;
}

.car-tile img {
    width: 100%;
    border-radius: 0.4rem;
    margin-bottom: 0.5rem;
}
.car-tile.locked {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
    position: relative;
}

.car-tile.locked::after {
    content: "Locked in Wager";
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -40%);
    font-size: 0.9em;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    pointer-events: none;
    text-align: center;
    z-index: 2;
}
.car-preview-tile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.5rem 0;
}

.car-preview-tile img {
    width: 60px;
    border-radius: 0.4rem;
}
.preview-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.preview-content img {
    width: 50px;
    border-radius: 0.4rem;
}

.remove-selection {
    color: #aaa;
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: auto;
    transition: color 0.2s;
}

.remove-selection:hover {
    color: #e74c3c;
}
/* ░░ Pagination Styling ░░ */
.pagination-controls {
    margin: 2rem auto 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.pagination-controls a,
.pagination-controls span {
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: #333;
    color: #fff;
    border-radius: 5px;
    transition: background 0.3s;
}

.pagination-controls a:hover:not(.disabled) {
    background: #555;
}

.pagination-controls a.disabled {
    background: #222;
    color: #777;
    pointer-events: none;
    cursor: default;
}

.pagination-controls .active-page {
    background: #e4b600;
    color: #000;
    font-weight: bold;
}
/* ░░ UPGRADE CARD – Styled like CAR CARD ░░ */

.tier-heading {
    width: 100%;
    font-size: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.tier-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}
.upgrade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}
.upgrade-tile {
    position: relative;
    background: transparent; /* ⚠️ REMOVE base background color so image shows */
    border: 2px solid #e4b600;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 0;
    background-color: #1e1e1e; /* fallback if image fails */
}

.upgrade-tile::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../imgs/upgrade-tile-bg.jpg');
    background-size: cover; /* sets height to match card */
    background-position: left bottom;
    background-repeat: no-repeat;
    opacity: 0.2;
    z-index: -1;
    filter: brightness(0.5) contrast(1.2);
    border-radius: 12px;
}

.upgrade-tile .modifiers {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
    font-size: 0.85rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.3rem;
}

.upgrade-tile .modifiers li {
    background: #1e1e1e;
    border-left: 4px solid #e4b600;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

/* ░░ PRICE ░░ */
.upgrade-tile .price {
    font-weight: bold;
    margin: 0.5rem 0;
}

.upgrade-thumb {
    width: 100%;
    height: auto;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    border: 2px solid #e4b600;
}

.upgrade-group {
    grid-column: 1 / -1;
    font-size: 1.2rem;
    color: #e4b600;
    margin-top: 1rem;
}

.upgrade-desc {
    font-size: 0.85rem;
    color: #ccc;
    display: block;
    margin: 0.5rem 0;
}
.upgrade-tile .btn-confirm-install {
    margin-top: auto;
    background-color: #e4b600;
    font-size: 0.85rem;
    border: none;
    padding: 0.6rem;
    color: #000;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.upgrade-tile .btn-confirm-install:hover:not([disabled]) {
    background-color: #ffcc00;
}
.rarity-mythic {
    background: #ff006e; color: #fff;
}
.rarity-ultra-legendary {
    background: #ff4500; color: #fff;
}
.rarity-legendary {
    background: #e4b600; color: #000;
}
.rarity-epic {
    background: #a74aff; color: #fff;
}
.rarity-rare {
    background: #3498db; color: #fff;
}
.rarity-uncommon {
    background: #2ecc71; color: #fff;
}
.rarity-common {
    background: #999999; color: #fff;
}

/* ░░ TROPHY SECTION ░░ */
.trophy-section {
    margin-top: 2rem;
    padding: 1rem;
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 16px;
}

.trophy-section h2 {
    font-size: 1.5rem;
    color: #e4b600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Trophy grid layout */
.trophy-grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, max-content));

}

/* Individual trophy card */
.trophy-card {
    position: relative;
}


/* Trophy image */
.trophy-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: #121212;
    border: 2px solid #e4b600;
    border-radius: 8px;
}

/* Trophy image for modal */
img.modal-trophy {
    width: 200px;
    height: 200px;
    object-fit: contain;
    background: #121212;
    border: 2px solid #e4b600;
    border-radius: 8px;
}

.trophy-card:hover {
    transform: scale(0.99);
    cursor: pointer;
}
/* Trophy name */
.trophy-card p {
    font-size: 0.9rem;
    color: #fff;
    margin: 0;
}

/* Locked trophies */
.trophy-card img.dimmed {
    opacity: 0.3;
    filter: grayscale(100%);
    pointer-events: none;
}
/* ===============================
   XP Progress Bar – Shared Styles
   =============================== */
.progress-bar-container, .xp-bar-wrapper {
    background: #1e1e1e;
    padding: 1rem;
    border: 1px solid #444;
    border-radius: 8px;
    margin-bottom: 1rem;
    max-width: 500px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    color: #fff;
    font-size: 0.9rem;
}

/* Static on dashboard */
.progress-bar-container {
    position: relative;
}

/* Sliding bar wrapper */
/* ===============================
   XP Slide-in Bar (Temporary)
   =============================== */
/* XP Slide-in Bar */
.xp-bar-wrapper {
    position: fixed;
    top: 60px; /* exactly below your .site-header */
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    transition: transform 0.4s ease;
    z-index: 1;
    background: #1e1e1e;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* When triggered */
.xp-bar-wrapper.visible {
    transform: translateX(-50%) translateY(0);
}





/* Bar layout */
.xp-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.xp-label {
    width: 3rem;
    text-align: center;
    font-weight: bold;
    color: #fff;
}
.xp-progress {
    position: relative;
    flex-grow: 1;
    background: #333;
    border-radius: 5px;
    overflow: hidden;
    height: 20px;
}

/* Center the text absolutely */
.xp-points {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    font-size: 0.85rem;
    color: #fff;
    pointer-events: none;
    white-space: nowrap;
}

/* Bar fill stays behind */
.progress-bar-fill {
    background: #0099FF;
    height: 100%;
    width: 0%;
    transition: width 1s ease-out;
    z-index: 1;
}

/* ----------------------------------------------
   LEGAL PAGES
---------------------------------------------- */
.legal-page {
    max-width: 800px;
    margin: 60px auto;
    padding: 30px;
    background: #fff;
    color: #333;
    font-size: 16px;
    line-height: 1.6;
}

.legal-page h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #444;
}
.legal-page ul li  {
    color: #444;
}
.legal-page ul li::marker {
    color: #444; /* Change to your desired bullet color */
}
.legal-page a {
    color: #444;
    text-decoration: underline;
    font-size: 0.95rem;
}

.legal-page h2 {
    font-size: 22px;
    margin-top: 30px;
    color: #444;
}

.footer-links {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-links a {
    color: #999;
    margin: 0 0;
    text-decoration: none;
}
/* ----------------------------------------------
   COOKIE BANNER
---------------------------------------------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1c1c1c;
    color: #fff;
    padding: 15px;
    text-align: center;
    font-size: 14px;
    z-index: 9999;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.3);
}

.cookie-banner a {
    color: #e4b600;
    text-decoration: underline;
}

.cookie-banner button {
    margin-left: 10px;
    padding: 6px 14px;
    background: #e4b600;
    border: none;
    color: #000;
    cursor: pointer;
    font-weight: bold;
    border-radius: 3px;
}
.challenge-info-box {
    background: #1f1f1f;
    border: 1px solid #444;
    padding: 1rem;
    margin: 1rem 0 2rem;
    border-radius: 8px;
}

.challenge-info-box ul {
    list-style: none;
    padding-left: 0;
}

.challenge-info-box li {
    padding: 0.25rem 0;
}
/* ------------------------------
   VS INTRO ZOOM SLAM EFFECT
-------------------------------- */
.vs-intro {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%) scale(20); /* start big */
    font-size: 4rem;
    font-weight: 900;
    color: #e4b600;
    /*background: rgba(0, 0, 0, 0.85);*/
    padding: 1.2rem 2.5rem;
    border-radius: 0.5rem;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.6s ease, opacity 0.4s ease;
}

.vs-intro.show {
    transform: translate(-50%, -50%) scale(5); /* shrink to normal */
    opacity: 1;
}

.vs-intro.hidden {
    display: none;
}
/* Group of preset wager buttons */
.wager-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
/* Align wager select and preview */
.wager-inline {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.wager-type-select {
    width: 140px;
}

.wager-preview {
    font-weight: bold;
    min-width: 120px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wager-preview img {
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
}
.wager-amount {
    font-size: 1.75rem;
    color: #e4b600;
}
/* ------------------------------
   SUPPORT
-------------------------------- */
.support-topics a {
    font-size: 0.95rem;
}