/* ===== Google Fonts Applied ===== */
:root {
    --background: #0f172a;
    --card: #1e293b;
    --primary: #ef4444;
    --secondary: #f97316;
    --accent: #facc15;
    --text: #ffffff;
    --muted: #94a3b8;
}

/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== Body Layout ===== */
body {
    background: var(--background);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}

/* ===== Global Container ===== */
.container {
    width: 95%;
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
}

/* ── NAV BAR ── */
.main-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 56px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-brand {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-brand a {
    text-decoration: none;
    color: #ef4444;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-brand span {
    color: #f1f5f9;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 32px;
}

.nav-link {
    color: #94a3b8;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

/* Dropdown User Menu */
.nav-user-menu {
    position: relative;
    display: inline-block;
}

.nav-avatar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 20px;
    transition: 0.2s;
    font-family: inherit;
}

.nav-avatar-btn:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

.nav-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #f97316;
    flex-shrink: 0;
}

.nav-avatar-initial {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.nav-user-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #f1f5f9;
}

.nav-chevron {
    font-size: 0.7rem;
    color: #64748b;
    margin-left: 2px;
}

.nav-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    width: 220px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    padding: 6px 0;
}

.nav-dropdown.open {
    display: flex;
}

.nav-dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.nd-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    display: block;
}

.nd-email {
    font-size: 0.75rem;
    color: #94a3b8;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nd-strava {
    font-size: 0.72rem;
    font-weight: 700;
    color: #fc4c02;
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nd-item {
    padding: 10px 16px;
    font-size: 0.85rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: 0.2s;
    text-align: left;
}

.nd-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.nd-item--logout {
    color: #f87171;
}

.nd-item--logout:hover {
    background-color: rgba(239, 68, 68, 0.08);
    color: #fca5a5;
}

.nd-item--strava {
    color: #fc4c02;
    font-weight: 600;
}

.nd-item--strava:hover {
    background-color: rgba(252, 76, 2, 0.08);
}

.nd-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 6px 0;
}

/* Buttons */
.nav-btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: 0.2s;
}

.nav-btn--ghost {
    background: transparent;
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.nav-btn--ghost:hover {
    background: rgba(249, 115, 22, 0.1);
}

.nav-btn--outline {
    background: transparent;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: inherit;
}

.nav-btn--outline:hover {
    color: #f1f5f9;
    border-color: rgba(255, 255, 255, 0.2);
}

.nav-btn--fire {
    background: linear-gradient(to right, #ef4444, #f97316);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.nav-btn--fire:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
    color: #ffffff;
}

/* Mobile hamburger */
.nav-hamburger {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

/* Mobile Drawer */
.nav-drawer {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    z-index: 99;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.nav-drawer.hidden {
    display: none;
}

.nav-drawer .nd-item {
    padding: 12px 24px;
}

/* ── DISCLAIMER POPUP ── */
.disclaimer-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.disclaimer-overlay.hidden {
    display: none;
}

.disclaimer-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 3px solid #ef4444;
    border-radius: 20px;
    padding: 40px 36px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    animation: slideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.disclaimer-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
}

.disclaimer-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ef4444;
    margin-bottom: 20px;
}

.disclaimer-text {
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.disclaimer-text strong {
    color: #f97316;
}

.disclaimer-btn {
    display: block;
    width: 100%;
    margin-top: 24px;
    padding: 14px;
    background: linear-gradient(to right, #ef4444, #f97316);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.disclaimer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.35);
}

.disclaimer-skip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.78rem;
    color: #475569;
    cursor: pointer;
}

.disclaimer-skip input {
    accent-color: #ef4444;
}

/* ── LEADERBOARD HEADER ── */
.lb-header {
    text-align: center;
    margin-bottom: 50px;
}

.lb-title {
    font-family: 'Oswald', sans-serif;
    color: var(--primary);
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.lb-subtitle {
    font-family: 'Oswald', sans-serif;
    color: var(--secondary);
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.lb-tagline {
    color: var(--muted);
    font-size: 1.1rem;
    margin-top: 5px;
}

/* ── STATS GRID ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.stat-card {
    background: var(--card);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    margin-bottom: 8px;
}

.stat-card p {
    font-family: 'Oswald', sans-serif;
    font-size: 2.2rem;
    color: #ffffff;
    font-weight: 700;
}

/* ── PODIUM SECTION ── */
.podium-section {
    margin-top: 60px;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    text-align: center;
    margin-bottom: 35px;
    font-size: 2rem;
    letter-spacing: 1px;
    color: var(--accent);
    text-transform: uppercase;
}

.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 40px;
}

.runner {
    text-align: center;
    transition: transform 0.3s ease;
}

.runner:hover {
    transform: translateY(-8px);
}

.runner h3 {
    font-family: 'Oswald', sans-serif;
    margin-top: 12px;
    font-size: 1.4rem;
}

.runner p {
    font-family: 'Oswald', sans-serif;
    color: var(--secondary);
    font-weight: 600;
    margin-top: 4px;
}

.runner-city {
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 2px;
}

.medal {
    font-size: 2.5rem;
    line-height: 1;
}

.podium-block {
    width: 160px;
    border-radius: 12px 12px 0 0;
    margin-top: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.gold {
    height: 220px;
    background: linear-gradient(to top, #eab308, #fde047);
}

.silver {
    height: 160px;
    background: linear-gradient(to top, #64748b, #cbd5e1);
}

.bronze {
    height: 120px;
    background: linear-gradient(to top, #9a3412, #f97316);
}

/* ── MY POSITION SUMMARY CARD ── */
.my-position-section {
    margin-top: 60px;
}

.my-position-card {
    background: var(--card);
    border-radius: 18px;
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    border: 2px solid rgba(250, 204, 21, 0.25);
    box-shadow: 0 8px 32px rgba(250, 204, 21, 0.05);
}

.position-item {
    text-align: center;
}

.position-item .label {
    display: block;
    color: var(--muted);
    margin-bottom: 6px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.position-item .value {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: bold;
}

.up {
    color: #22c55e;
}

.down {
    color: #ef4444;
}

/* ── TOP MOVERS ── */
.top-movers-section {
    margin-top: 60px;
}

.movers-card {
    background: var(--card);
    border-radius: 18px;
    padding: 20px 30px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.mover {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mover:last-child {
    border-bottom: none;
}

.mover-rank {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.15);
    color: var(--secondary);
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
}

.mover-info {
    flex: 1;
    margin-left: 20px;
}

.mover-info h3 {
    font-size: 1.05rem;
    font-weight: 600;
}

.mover-info p {
    color: var(--muted);
    font-size: 0.85rem;
}

.mover-change {
    color: #22c55e;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
}

/* ── SEARCH & TABLE ── */
.leaderboard-section {
    margin-top: 60px;
}

.search-container {
    margin-bottom: 20px;
}

.search-container input {
    width: 100%;
    padding: 16px 24px;
    background: var(--card);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    font-size: 1rem;
    outline: none;
    transition: 0.2s;
}

.search-container input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.search-container input::placeholder {
    color: var(--muted);
}

.no-results {
    text-align: center;
    padding: 24px;
    background: var(--card);
    border-radius: 14px;
    color: var(--accent);
    font-weight: 600;
}

.leaderboard-container {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.leaderboard {
    width: 100%;
    border-collapse: collapse;
    background: var(--card);
}

.leaderboard th {
    font-family: 'Oswald', sans-serif;
    background: rgba(30, 41, 59, 0.8);
    color: var(--muted);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 18px;
    text-align: left;
}

.leaderboard td {
    padding: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

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

.leaderboard tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.runner-name {
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: color 0.2s;
}

.runner-name:hover {
    color: var(--accent);
    text-decoration: underline;
}

.my-rank {
    background: rgba(250, 204, 21, 0.06);
}

.my-rank td {
    border-left: 4px solid var(--accent);
}

/* ── PROGRESS BAR IN TABLE ── */
.progress-bar {
    width: 160px;
    height: 8px;
    background: #334155;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--secondary), var(--accent));
}

/* ── JOURNEY TRACK MAP ── */
.journey-section {
    margin-top: 60px;
}

.journey-track {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--card);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.milestone {
    text-align: center;
    position: relative;
    z-index: 2;
}

.icon {
    font-size: 2rem;
    margin-bottom: 8px;
    filter: grayscale(100%);
    opacity: 0.4;
    transition: 0.3s;
}

.milestone span {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted);
}

.milestone small {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 2px;
}

.line {
    flex: 1;
    height: 4px;
    background: #334155;
    margin: 0 -15px;
    position: relative;
    top: -16px;
    z-index: 1;
}

/* Journey States */
.milestone.completed .icon {
    filter: grayscale(0%) drop-shadow(0 0 10px rgba(250, 204, 21, 0.4));
    opacity: 1;
}

.milestone.completed span {
    color: var(--accent);
}

.milestone.active .icon {
    filter: grayscale(0%);
    opacity: 1;
    animation: pulse 1.5s infinite;
}

.milestone.active span {
    color: var(--secondary);
}

.line.completed {
    background: linear-gradient(to right, var(--secondary), var(--accent));
}

.line.active {
    background: var(--secondary);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }

    100% {
        transform: scale(1);
    }
}

/* ── PROFILE POPUP MODAL ── */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--card);
    padding: 35px;
    border-radius: 20px;
    width: 90%;
    max-width: 440px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-content h2 {
    font-family: 'Oswald', sans-serif;
    margin-bottom: 20px;
    color: var(--accent);
    text-transform: uppercase;
}

.profile-details p {
    margin-bottom: 12px;
    font-size: 1rem;
    color: #cbd5e1;
}

.profile-details strong {
    color: var(--muted);
    margin-right: 8px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--muted);
    cursor: pointer;
    transition: 0.2s;
}

.close-btn:hover {
    color: #fff;
}

.modal-actions {
    margin-top: 25px;
}

.share-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border: none;
    color: white;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: transform 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
}

/* ── TOAST MESSAGES ── */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
    z-index: 9998;
    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── OFF SCREEN SHARE CARD (html2canvas engine template layout) ── */
#shareCard {
    width: 360px;
    height: 640px;
    box-sizing: border-box;
    position: absolute;
    top: -9999px;
    left: -9999px;
    overflow: hidden;
    border-radius: 24px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    padding: 24px 22px 20px 22px;
    background: linear-gradient(160deg, #1a0505 0%, #0d0d0f 45%, #050505 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sc-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}

.sc-brand {
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ff3300;
    text-transform: uppercase;
}

.sc-year-badge {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: #ff6633;
    background: rgba(255, 50, 0, 0.15);
    border: 1px solid rgba(255, 80, 0, 0.30);
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.sc-profile {
    text-align: center;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.sc-avatar-ring {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: linear-gradient(140deg, #ff4400, #ffaa00, #ff2200);
    padding: 3px;
    margin: 0 auto 10px auto;
    box-sizing: border-box;
}

.sc-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #1a0808;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
}

.sc-avatar-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.sc-runner-name {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    margin: 0 0 7px 0;
}

.sc-pill {
    display: inline-block;
    background: rgba(255, 30, 30, 0.14);
    border: 1px solid rgba(255, 60, 0, 0.28);
    color: #ff6644;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 4px 13px;
    border-radius: 20px;
    text-transform: uppercase;
}

.sc-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    margin: 0 0 14px 0;
    position: relative;
    z-index: 2;
}

.sc-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin-bottom: 14px;
    position: relative;
    z-index: 2;
}

.sc-stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 8px 4px;
}

.sc-stat-label {
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #606070;
    text-transform: uppercase;
    margin-bottom: 4px;
    display: block;
}

.sc-stat-value {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    display: block;
}

.sc-stat-unit {
    font-size: 7px;
    font-weight: 600;
    color: #525262;
    display: block;
    margin-top: 3px;
}

.sc-progress-section {
    margin-bottom: 14px;
    position: relative;
    z-index: 2;
}

.sc-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 7px;
}

.sc-progress-label {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #606070;
    text-transform: uppercase;
}

.sc-progress-pct {
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #ff6622;
}

.sc-progress-track {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: visible;
    position: relative;
}

.sc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #cc1100 0%, #ff4400 60%, #ff9900 100%);
    border-radius: 10px;
    position: relative;
    max-width: 100%;
}

.sc-progress-fill::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ff8800;
    box-shadow: 0 0 10px 4px rgba(255, 140, 0, 0.55);
}

.sc-progress-sub {
    margin-top: 6px;
    font-size: 9px;
    font-weight: 600;
    color: #484858;
}

.sc-footer {
    text-align: center;
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.sc-hashtag {
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #cc2200;
    letter-spacing: 0.5px;
}

.sc-url {
    font-size: 8px;
    color: #383848;
    margin-top: 3px;
    letter-spacing: 0.5px;
}

/* ── GLOBAL LAYOUT ANIMATIONS ── */
@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes fadeOut {
    from {
        opacity: 1
    }

    to {
        opacity: 0
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(24px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* ===== ── MAIN FOOTER ── ===== */
.main-footer {
    background: rgba(15, 23, 42, 0.95);
    /* Deep slate backdrop */
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 32px 0;
    margin-top: 80px;
    width: 100%;
}

.footer-inner {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
    /* Subtle flame glow */
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-links a {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-links a:hover {
    color: var(--secondary);
    /* Vibrant flame transition orange */
}

.footer-copy {
    color: #475569;
    /* Muted gray for unofficial status texts */
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* ===== ── FOOTER RESPONSIVE MEDIA BREAKPOINTS ── ===== */
@media (max-width: 768px) {
    .main-footer {
        padding: 40px 0;
        margin-top: 60px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .footer-links {
        flex-direction: row;
        justify-content: center;
        gap: 32px;
        width: 100%;
    }

    .footer-copy {
        max-width: 280px;
        line-height: 1.5;
        margin: 0 auto;
    }
}

/* ── MOBILE RESPONSIVE MEDIA BREAKPOINTS ── */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .my-position-card {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .podium {
        gap: 10px;
        flex-wrap: wrap;
        align-items: center;
    }

    .podium-block {
        width: 110px;
    }

    .gold {
        height: 160px;
    }

    .silver {
        height: 120px;
    }

    .bronze {
        height: 95px;
    }

    .my-position-card {
        grid-template-columns: repeat(2, 1fr);
    }

    .journey-track {
        flex-direction: column;
        gap: 25px;
        align-items: flex-start;
        padding-left: 40px;
    }

    .line {
        display: none;
    }

    .lb-title {
        font-size: 2.2rem;
    }

    .nav-links {
        display: none;
    }

    .nav-right {
        display: none;
    }

    .nav-hamburger {
        display: block;
    }
}