html, body {
    font-family: "Times New Roman", Georgia, serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}


h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}


/* Radzen Chart Styling */
.rz-category-axis .rz-tick-text {
    display: none;
}

.profit-chart-centered {
    text-align: center;
    margin-top: 0.5rem;
}

.top-three {
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid #00ffff99;
    border-radius: 8px;
    padding: 0px;
    margin-top: 0rem;
    box-shadow: 0 0 6px #00ffff55;
    text-align: center;
}

/* ==============================
   Alex
============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Times New Roman", Georgia, serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0a0a0a;
    color: white;
    padding: 20px;
}

/* layout principal */
.page {
    position: relative;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.content {
    margin: 0;
}

/* ==============================
   Header i navegació
============================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    background-color: #0a0a0a;
    border-bottom: 1px solid #222;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 150px;
    height: 3px;
    background: linear-gradient(to right, transparent, #ffd700);
}

/* logo i contenidors */
.logo-container {
    display: flex;
    align-items: center;
}

.logos {
    display: flex;
    align-items: center;
}

.logo-divider {
    width: 1px;
    height: 40px;
    background-color: #666;
    margin: 0 15px;
}

.logo {
    height: 80px;
    margin-right: 0;
}

/* navegació principal */
.nav-menu {
    display: flex;
    gap: 3rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s ease;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: #ffd700;
}

/* icones socials */
.social-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-icons a {
    display: block;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: opacity 0.2s ease;
}

.social-icons a:hover {
    opacity: 0.6;
}

.facebook {
    background-image: url('../images/facebook.png');
}

.instagram {
    background-image: url('../images/instagram.png');
}

/* menú mòbil */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 101;
}

/* ==============================
   Banner i capçalera
============================== */
.header-banner {
    background-image: url(/images/WEB_BANNERJUNE.jpg);
    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;
    width: 100%;
    aspect-ratio: 16 / 9;
}

/* Per a pantalles més petites */
@media (max-width: 768px) {
    .header-banner {
        background-position: bottom 110% right 10%;
        background-size: 110%; 
    }
}

@media (max-width: 480px) {
    .header-banner {
        background-position: bottom 100% right 10%;
        background-size: 125%; 
    }
}

/* ==============================
   Banner i capçalera Annual Results
============================== */
.header-banneryear {
    background-image: url(/images/WEB_BANNERYEAR.png);
    background-size: 100% auto; 
    background-position: top center;
    background-repeat: no-repeat;
    width: 100%; 
    aspect-ratio: 16 / 9;
}

/* Per a pantalles més petites */
@media (max-width: 768px) {
    .header-banneryear {
        background-position: bottom 110% right 10%;
        background-size: 110%; 
    }
}

@media (max-width: 480px) {
    .header-banneryear {
        background-position: bottom 100% right 10%;
        background-size: 125%; 
    }
}

/* ==============================
   Banner i capçalera Month Results
============================== */
.header-bannerapril {
    background-image: url(/images/WEB_BANNERAPRIL.png);
    background-size: 100% auto; 
    background-position: top center;
    background-repeat: no-repeat;
    width: 100%; 
    aspect-ratio: 16 / 9;
}

/* Per a pantalles més petites */
@media (max-width: 768px) {
    .header-bannerapril {
        background-position: bottom 110% right 10%;
        background-size: 110%; 
    }
}

@media (max-width: 480px) {
    .header-bannerapril {
        background-position: bottom 100% right 10%;
        background-size: 125%; 
    }
}


.header-bannermay {
    background-image: url(/images/WEB_BANNER_CURR.png);
    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;
    width: 100%;
    aspect-ratio: 16 / 9;
}

/* Per a pantalles més petites */
@media (max-width: 768px) {
    .header-bannermay {
        background-position: bottom 110% right 10%;
        background-size: 110%;
    }
}

@media (max-width: 480px) {
    .header-bannermay {
        background-position: bottom 100% right 10%;
        background-size: 125%;
    }
}

/* ==============================
   HIGHLIGHTS Section
============================== */
#highlights{
    scroll-margin-top: 100px;
}
.competition-container {
    margin-bottom: 50px;
    margin-top: 50px;
}

.competition-header {
    margin-bottom: 30px;
    padding: 20px 0;
}

.title-main {
    font-family: "Times New Roman", Georgia, serif;
    color: #feb21e; /* Gold */
    text-align: center;
    font-size: clamp(24px,3vw,42px);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 .6rem;
    letter-spacing: .5px;
}

.competition-subtitle {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 80px;
}

.competition-subtitleC {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 1.5rem;
    color: #27c6ff;
    margin-bottom: 80px;
}

.competition-subtitleC b {
        color: #27c6ff;
        font-weight: 600;
}

/* data i temps */
.date-section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.date-column {
    text-align: left;
}

.date-label {
    font-size: 1rem;
    color: #aaa;
    margin-bottom: 5px;
}

.end-date {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ff6b6b;
}

/* Comptadors de temps */
.timers-row {
    display: flex;
    gap: 20%;
    max-width: 1000px;
    margin: 0 auto;
    margin-bottom: 20px;
    justify-content: space-between;
}

.timer-container {
    border: none;
    border-left: none;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    padding: 10px;
    flex: 1;
    min-width: 100px;
    text-align: left;
    float: left;
}

.timer-container-end {
    border: none;
    border-right: none;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
    padding: 10px;
    flex: 1;
    min-width: 100px;
    text-align: right;
    float: right;
}

.timer-title {
    font-size: 1.2rem;
    color: #feb21e;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 600;
    text-align: center;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.countdown-item {
    border: 2px solid black;
    background-color: #5F5F5F;
    padding: 10px;
    border-radius: 5px;
    min-width: 30px;
}

.countdown-value {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 5px;
}

.countdown-label {
    font-size: 0.8rem;
    color: #aaa;
    text-transform: uppercase;
}

/* ==============================
   Targetes d'estadístiques
============================== */
.stats-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 1000px;
    margin: 0 auto 10px auto;
    padding-top: 10px;
}
.pastborder {
    border: 2px solid white;
    border-radius: 10px;
    padding: 0; /* Eliminat el padding d'aquí */
    margin: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    flex: 1; /* Per a que tinguin la mateixa amplada */
    min-width: 200px; /* Amplada mínima */
    display: block; /* Convertir a bloc */
    text-decoration: none; /* Eliminar subratllat */
    text-align: center; /* Centrar el text */
}

.pastborder:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.pastborder .card-title2 {
    display: block;
    padding: 15px 20px; /* Movem el padding aquí */
    font-weight: bold;
    text-decoration: none; /* Eliminar subratllat */
}

.stat-card-row {
    flex: 1;
    min-width: 250px;
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    background-color: rgba(194, 217, 131, 0.1);
    clip-path: polygon(20px 0%, calc(100% - 20px) 0%, 100% 20px, 100% calc(100% - 20px), calc(100% - 20px) 100.00%, 20px 100%, 0% calc(100% - 20px), 0% 20px);
    border: 2px solid #d2a51d;
    border-left: none;
    border-right: none;
}
.stat-card {
    flex: 1;
    min-width: 250px;
    background-color: #5F5F5F;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    
}

.stat-title {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 1.5rem;
    color: #088050;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.sub-value {
    color: #aaa;
    font-size: 1.1rem;
}

.card-title {
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 15px;
}
.card-title2 {
    font-size: 1.4rem;
    color: #feb21e;
    margin-bottom: 15px;
    align-items: center;
}

.card-text {
    font-size: 1rem;
    margin-bottom: 5px;
}

/* Estils pel pop-up */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); 
    z-index: 1000;
    z-index: 1000;
    justify-content: center;
    align-items: flex-start;
    padding-top: 200px;
}

.popup-content {
    background-color: rgba(3, 56, 23, 0.85); /* original green overlay */
    padding: 15px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    position: relative;
    text-align: center;
    min-height: 150px;
}

.popup-content-alt {
    background-color: rgba(25, 50, 80, 0.85); /* brighter bluish overlay */
    padding: 15px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    position: relative;
    text-align: center;
    min-height: 150px;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.close-popup:hover {
    color: #000;
}

.competition-link {
    display: block;
    background-color: transparent;
    padding-top: 15px;
    color: #ff6b6b;
    font-weight: bold;
    font-size: 1rem;
    text-decoration: none;
}

.competition-link:hover {
    transform: scale(1.02);
}

/* colors per als textos */
.text-info {
    color: #17a2b8;
}

.text-success {
    color: #28a745;
}

.text-warning {
    color: #ffc107;
}

.fw-bold {
    font-weight: 700;
    font-size: 1.2rem;
}

/* ==============================
   Butons d'acció
============================== */
.action-buttons {
    margin-top: 10px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    flex-direction: row-reverse;
}

.btn {
    padding: 15px 25px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #ff3a3a;
    color: white;
}

.btn-secondary {
    background-color: #ff3a3a;
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* ==============================
   LEADERBOARD Section
============================== */

.leaderboard {
    margin-top: 3rem;
    padding-top: 0px;
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.leaderboard-row {
    display: flex;
    align-items: stretch; /* this is the key line */
    gap: 1rem;
    background-color: rgba(0, 255, 128, 0.1);
    clip-path: polygon( 10px 0%, calc(100% - 10px) 0%, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0% calc(100% - 10px), 0% 10px );
    border: 2px solid #45fcd6;
    border-left: none;
    border-right: none;
    font-size: 4vw;
}

.rank-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 10%;
    font-weight: bold;
    text-align: center;
    font-weight: bold;
    font-size: 1.6rem;
    clip-path: polygon(8px 0%, calc(100% - 8px) 0%, 100% 10px, 100% calc(100% - 10px), calc(100% - 8px) 100%, 8px 100%, 0% calc(100% - 10px), 0% 10px);
}
.profit-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, #d0e9ff, #a0c4ff);
    width: 25%;
    color: #000;
    font-weight: bold;
    font-size: 1.6rem;
    clip-path: polygon(10px 0%, 100% 0.00%, 100% 10px, 100% 100%, calc(100% - 10px) 100%, 10px 100%, 0% calc(100% - 10px), 0% 10px);
}

  .rank-badge.up {
    background-color: rgba(0, 255, 0, 0.2);
    color: #00ff00;
  }
  
  .rank-badge.down {
    background-color: rgba(255, 0, 0, 0.2);
    color: #ff4444;
  }
  
  .username {
    flex-grow: 1;
    font-size: 1.2rem;
    letter-spacing: 1px;
    font-weight: bold;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);

  }

  .stats-row {
    flex: 1;
    min-width: 250px;
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    background-color: rgba(194, 217, 131, 0.1);
    clip-path: polygon(20px 0%, calc(100% - 20px) 0%, 100% 20px, 100% calc(100% - 20px), calc(100% - 20px) 100.00%, 20px 100%, 0% 120px, 0% 20px);
    border: 2px solid #d2a51d;
    border-left: none;
    border-right: none;
  }

  /* Leaderboard refactor [chart layout]*/

.user-info-block {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: visible; /* ✅ prevent cutting off children */
}

.profit-chart-inline {
    margin: 0.5rem auto; /* ✅ centers horizontally */
    height: 120px;
    width: 100%;
    max-width: 180px;
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    border: 1px solid #00ffff22;
    box-shadow: 0 0 3px #00ffff33;
    overflow: hidden;
    display: flex;
    align-items: center; /* ✅ vertical center if chart inside is smaller */
    justify-content: center; /* ✅ horizontal center */
}
    .profit-chart-inline canvas,
    .profit-chart-inline svg {
        width: 100% !important;
        height: 100% !important;
    }
/***********************************************************/
.symbols{
    max-width: 1000px;
    margin: 0 auto;
}


.contenidor-principal {
            display: flex;
            justify-content: space-between;
            max-width: 1000px;
            margin-left: auto;
            margin-right: auto;
            margin-bottom: 20px;
        }
        
        .columna {
            width: 32%; 
        }
        
        .columna img {
            width: 100%;
            height: auto;
            object-fit: cover;
            display: block; 
        }
        
        .requadre {
            padding: 20px 0px;
            border: #000;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }

        .requadre-amb-fons {
            background-image: url('images/Placa1.png');
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center top;
            min-height: 180px;
            color: #143422; 
            text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
            height: 180px; /* force height match */
        }
        .requadre-amb-fons2 {
            background-image: url('images/Placa2.png');
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center top;
            min-height: 180px;
            color: #143422; 
            text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
            height: 180px; /* force height match */
        }
  
/*************************************************************/
#home {
    scroll-margin-top: 100px;
}

#results {
    scroll-margin-top: 100px;
}

.image-container {
    max-width: 1920px;
    margin: 0 auto;
    margin-bottom: 0px;
}

/* taula de classificació */
.leaderboard-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.table-header {
    opacity: 0.7;
    font-weight: 500;
    text-align: left;
    padding: 10px 20px;
    font-size: 0.9rem;
}

.table-header-profit {
    opacity: 0.7;
    font-weight: 500;
    text-align: right;
    padding: 10px 20px;
    font-size: 0.9rem;
}

.table-row {
    background-color: #1e1e1e;
    transition: all 0.2s ease;
}

.table-row:hover {
    background-color: #2a2a2a;
    transform: translateY(-2px);
}

.table-cell {
    padding: 20px;
    position: relative;
}

.rank-cell {
    width: 120px;
    border-radius: 10px 0 0 10px;
}

.profit-cell {
    text-align: right;
    border-radius: 0 10px 10px 0;
    font-weight: 700;
    font-size: 1.2rem;
}

/* insígnies de rang */

.first {
    background-color: rgba(255, 215, 0, 0.2);
    color: #FFD700;
}

.second {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.third {
    background-color: rgba(205, 127, 50, 0.2);
    color: #CD7F32;
}

.other {
    background-color: rgba(192, 192, 192, 0.2);
    color: #C0C0C0;
}

/* informació d'usuari */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.user-name {
    font-weight: 600;
    font-size: 1.1rem;
}

/* colors de profit */
.profit-positive {
    color: #4CAF50;
}

.profit-negative {
    color: #F44336;
}

/* actualització i informació addicional */
.update {
    text-align: left;
    font-size: smaller;
    color: #aaa;
    padding: 60px 0px;
    margin-top: 10px;
    margin-bottom: 40px;
}

/* ==============================
   Icones i elements visuals
============================== */
.icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.icon-chart {
    color: #ff6b6b;
    margin-left: 5px;
}

/* ==============================
   Tipografia especialitzada
============================== */
.montserrat-underline {
    font-family: "Times New Roman", Georgia, serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: italic;
}

/* ==============================
   Blazor UI d'error
============================== */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: black;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ==============================
   Media Queries
============================== */


/* Per a tablets */
@media (max-width: 1024px) {
    .header {
        padding: 1rem 2rem;
    }
    
    .nav-menu {
        gap: 2rem;
    }
}

/* Per a mòbils */
@media (max-width: 768px) {
    
    body{
        padding: 0px;
    }

    /* ajustos de header */
    .header {
        padding: 1rem;
    }
    
    .logo-divider {
        margin: 0 10px;
        height: 30px;
    }
    
    .logo {
        height: 50px;
    }
    
    /* menú mòbil */
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 69px; /* Header height */
        left: 0;
        width: 100%;
        background-color: #0a0a0a;
        flex-direction: column;
        gap: 0;
        height: 0;
        overflow: hidden;
        transition: height 0.3s ease;
        border-bottom: 1px solid #222;
    }

    .title-main {
        font-size: 2rem;
    }
    
    .nav-menu.active {
        height: auto;
        padding: 10px 0;
    }
    
    .nav-link {
        padding: 1rem;
        width: 100%;
        display: block;
        text-align: center;
        border-bottom: 1px solid #1a1a1a;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .social-icons {
        gap: 1rem;
    }
    
    .contenidor-principal{
        margin-bottom: 1rem;
    }

    .timers-row {
        flex-direction: column;
    }
    
    /* ajustos de leaderboard */

    .requadre {
        padding: 10px 0px;
        font-size: 4vw;
    }

    .requadre h1, h2, h3{
        font-size: 4vw;
    }

    .leaderboard-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .leaderboard-table {
        table-layout: fixed;
    }
    
    .rank-cell {
        width: 20%;
    }
    
    .table-cell:nth-child(2) {
        width: 40%;
    }
    
    .profit-cell {
        width: 40%;
    }
    
    .user-info {
        gap: 8px;
    }
    
    .user-avatar {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .user-name {
        font-size: 4.5vw;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .rank-badge {
        width: 100%;
        max-width: 90px;
        font-size: 4vw;
    }

    .profit-box {
        font-size: 4vw;
    }
    
    .table-cell {
        padding: 15px 10px;
    }
    
    .profit-cell {
        font-size: 1rem;
    }
    
    /* ajustos de targetes d'estadístiques */
    .stats-container {
        flex-direction: column;
        padding-top: 40px;
    }
    .stats-container2 {
        flex-direction: column;
    }
    
    .stat-card {
        min-width: auto;
        width: calc(100% - 20px);
        margin: 0 10px;
    }

}

/* Per a mòbils molt petits */
@media (max-width: 480px) {
    .leaderboard-title {
        font-size: 1.8rem;
    }

    .contenidor-principal{
        margin-bottom: -120px;
    }

    .table-cell {
        padding: 12px 8px;
    }
    .profit-cell {
        font-size: 0.9rem;
    }
}


/*Extra*/

@import url("https://fonts.googleapis.com/css?family=Raleway:400");

* {
	box-sizing: border-box;
}

@property --angle {
  syntax: '<angle>';
  initial-value: 90deg;
  inherits: true;
}

@property --gradX {
  syntax: '<percentage>';
  initial-value: 50%;
  inherits: true;
}

@property --gradY {
  syntax: '<percentage>';
  initial-value: 0%;
  inherits: true;
}

p {
	margin: 0;
}

:root {
	--d: 2500ms;
	--angle: 90deg;
	--gradX: 100%;
	--gradY: 50%;
	--c1: rgba(168, 239, 255, 1);
	--c2: rgba(168, 239, 255, 0.1);
}


.box {
    font-size: 3vw;
    border: 0.35rem solid;
    border-radius: 10px;
    border-image: conic-gradient(from var(--angle), var(--c2), var(--c1) 0.1turn, var(--c1) 0.15turn, var(--c2) 0.25turn) 30;
    animation: borderRotate var(--d) linear infinite forwards;
    flex: 1;
    min-width: 250px;
    background-color: #1e1e1e;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.box:nth-child(2) {
    border-image: radial-gradient(ellipse at var(--gradX) var(--gradY), var(--c1), var(--c1) 10%, var(--c2) 40%) 30;
    animation: borderRadial var(--d) linear infinite forwards;
}

.box:nth-child(3) {
    border-image: conic-gradient(from var(--angle), var(--c2), var(--c1) 0.1turn, var(--c1) 0.15turn, var(--c2) 0.25turn) 30;
    animation: borderRotate var(--d) linear infinite forwards;
    animation-delay: calc(var(--d) * -0.25);
    animation-duration: calc(var(--d) * 1.5);
}

.box:nth-child(4) {
    border-image: radial-gradient(ellipse at var(--gradX) var(--gradY), var(--c1), var(--c1) 10%, var(--c2) 40%) 30;
    animation: borderRadial var(--d) linear infinite forwards;
    animation-delay: calc(var(--d) * -0.5);
}

@keyframes borderRotate {
	100% {
		--angle: 420deg;
	}
}

@keyframes borderRadial {
    0% {
		--gradX: 50%;
		--gradY: 0%;
	}
	20% {
		--gradX: 100%;
		--gradY: 50%;
	}
	40% {
		--gradX: 100%;
		--gradY: 100%;
	}
	60% {
		--gradX: 50%;
		--gradY: 100%;
	}
	80% {
		--gradX: 0%;
		--gradY: 50%;
	}
	100% {
		--gradX: 50%;
		--gradY: 0%;
	}
}



.banners3 {
    margin-top: 3rem;
    margin-bottom: 3rem;
    padding-top: 0px;
    display: flex;
    flex-direction: column;
    gap: 0px;
}

@keyframes spinRing {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.image-container-rotate {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 1.2rem 2rem;
    place-content: center; 
    max-width: 680px; 
    margin: 0 auto; 
}


    .image-container-rotate .ring-box {
        position: relative;
        width: 100%;
        aspect-ratio: 488 / 485;
    }

    .image-container-rotate .rotate-ring {
        width: 100%;
        height: auto;
        display: block;
        animation: spinRing 12s linear infinite;
        transform-origin: center;
    }

    .image-container-rotate .ring-caption {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        font-family: "Times New Roman", Georgia, serif !important;
        font-weight: 600;
        color: #fff;
        font-size: clamp(14px, 2.6vmin, 28px);
    }

    .image-container-rotate .ring-value {
        margin-top: 5%;
        font-family: "Times New Roman", Georgia, serif;
        font-size: clamp(18px, 3.2vmin, 34px);
        font-weight: 700;
    }


.most-used-bar {
    width: 80%;
    max-width: 1071px;
    height: clamp(24px,8vw,86px);
    aspect-ratio: 1071/86;
    margin: 0.4rem auto;
    position: relative;
    overflow: hidden;
    background: url("/images/MostUsedEmpty.png") left center / 100% 100% no-repeat;
    font-family: "Times New Roman", Georgia, serif;
    font-weight: 600;
    color: #fff;
    font-size: clamp(10px,1.8vw,22px);
}

@keyframes dimPulse {
    0%,100% {
        filter: brightness(1) blur(4px);
    }

    50% {
        filter: brightness(0.6) blur(4px);
    }
}

@keyframes dimPulse2 {
    0%,100% {
        filter: brightness(1.1) blur(0px);
    }

    50% {
        filter: brightness(1) blur(0px);
    }
}

.most-used-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: url("/images/MostUsedFull.png") left center / auto 100% no-repeat;
    pointer-events: none;
    animation: dimPulse 2.5s ease-in-out infinite;
    will-change: filter;
}

.most-used-fill-2 {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: url("/images/MostUsedFullNO.png") left center / auto 100% no-repeat;
    pointer-events: none;
    animation: dimPulse2 2.5s ease-in-out infinite;
    will-change: filter;
}

.most-used-label {
    position: absolute;
    left: 10%;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
}

.most-used-value {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
}

.most-used-title {
    color: #fff;
    font-family: "Times New Roman", Georgia, serif;
    font-weight: 700;
    font-size: clamp(15px,3.5vw,40px);
    text-shadow: 0 0 6px rgba(0,0,0,1), 
    -2px 2px 10px rgba(0,0,0,0.95), 
    2px 2px 12px rgba(0,0,0,0.9),
    0 4px 16px rgba(0,0,0,0.85);
}


.fire-up {
    width: 100%;
    aspect-ratio: 1129/190;
    max-width: 950px;
    position: relative;
    margin: 0 auto;
    overflow: hidden;
}

.flame {
    position: absolute;
    inset: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    animation: fadeFlicker 1.5s ease-in-out infinite;
}

.f1 {
    background-image: url("/images/FireUP.png");
    animation-delay: 0s;
}

.f2 {
    background-image: url("/images/FireUP2.png");
    animation-delay: .375s;
}

.f3 {
    background-image: url("/images/FireUP3.png");
    animation-delay: .75s;
}

.f4 {
    background-image: url("/images/FireUP4.png");
    animation-delay: 1.125s;
}

@keyframes fadeFlicker {
    0%,100% {
        opacity: 1;
    }
    50% {
        opacity: 0.1;
    }
}


/* ─── Container ─────────────────────────────────────────────── */
.fire-dn {
    width: 100%;
    aspect-ratio: 1144/268;
    max-width: 950px;
    position: relative;
    margin: 0 auto; /* no top margin, centered horizontally */
    overflow: hidden;
}

/* ─── Shared rules for each flame layer ─────────────────────── */
.flame-dn {
    position: absolute;
    inset: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    animation: fadeFlicker 1.5s ease-in-out infinite;
}

/* Individual images & phase offsets */
.d1 {
    background-image: url("/images/FireDN.png");
    animation-delay: 0s;
}

.d2 {
    background-image: url("/images/FireDN2.png");
    animation-delay: .375s;
}

.d3 {
    background-image: url("/images/FireDN3.png");
    animation-delay: .75s;
}

.d4 {
    background-image: url("/images/FireDN4.png");
    animation-delay: 1.125s;
}

/* ─── Keyframes (same as the top banner) ────────────────────── */
@keyframes fadeFlicker {
    0%,100% {
        opacity: 1;
    }
    /* fully visible */
    50% {
        opacity: 0.1;
    }
    /* nearly invisible mid-cycle */
}


/* ---- Leader-board rows ---- */
.lb-row {
    width: 100%;
    aspect-ratio: 1088 / 85;
    max-width: 960px;
    position: relative;
    background: url("/images/LB_Row.png") center/contain no-repeat;
    font: 600 clamp(10px,1.8vw,22px)/1 Arial,Helvetica,sans-serif;
    color: #fff;
    margin: 0.4rem auto; /* default spacing between rows */
}

    /* remove TOP margin on the first row (touches FireUP) */
    .lb-row.first {
        margin-top: 0;
    }

    /* remove BOTTOM margin on the last row (touches FireDN) */
    .lb-row.last {
        margin-bottom: 0;
    }

/* --- positioned spans --- */
.rank-progress {
    position: absolute;
    left: 15%;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
}

.nickname {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    white-space: nowrap;
    font-size: clamp(10px,2.2vw,24px);
}

.profit {
    position: absolute;
    right: 13%;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    font-size: clamp(10px,2vw,24px);
}




/* --------------  Base style -------------- */
.neon-yellow {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 5rem; /* tweak as needed */
    color: #feb21e;/* base colour :contentReference[oaicite:0]{index=0}*/
    text-align: center;
    display: inline-block;
    text-decoration: none;
    transition: all .5s;
}
    .neon-yellow.always-glow {
        animation: neonYellow 1.5s ease-in-out infinite alternate;
    }
     .neon-yellow.always-glow:hover {
            animation-duration: 1s; /* slightly faster pulse */
            filter: brightness(1.2);
      }



/* --------------  Keyframes (yellow glow) -------------- */
@keyframes neonYellow { /* :contentReference[oaicite:1]{index=1} */
    from {
        text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #fff, 0 0 40px #FFDD1B, 0 0 70px #FFDD1B, 0 0 80px #FFDD1B, 0 0 100px #FFDD1B, 0 0 150px #FFDD1B;
    }

    to {
        text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #fff, 0 0 20px #FFDD1B, 0 0 35px #FFDD1B, 0 0 40px #FFDD1B, 0 0 50px #FFDD1B, 0 0 75px #FFDD1B;
    }
}

/* Optional – dark backdrop so the glow pops */
body {
    background: #222;
}


.banners {
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.banner {
    position: relative;
    flex: 1 1 clamp(96px, 30vw, 250px); 
    max-width: clamp(96px, 30vw, 250px); ç
    aspect-ratio: 307 / 673; 
}

    .banner + .banner {
        margin-left: -1px;
    }

    .banner > img {
        width: 100%;
        height: auto;
        display: block;
    }

    .banner span {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 88%;
        text-align: center;
        color: #fff;
        font-family: "Times New Roman",serif;
    }

.banner-title {
    top: 23%;
    font-size: clamp(12px,3.0vw,32px);
    font-weight: 600;
    line-height: 1.05;
}

.banner-name {
    top: 41%;
    font-size: clamp(14px,3.5vw,36px);
    font-weight: 700;
}

.banner-rank {
    top: 55%;
    font-size: clamp(12px,2.6vw,28px);
    font-weight: 600;
}

.banner-value {
    top: 70%;
    font-size: clamp(14px,3.4vw,36px);
    font-weight: 700;
}


.neon-orange {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 5rem; /* tweak as needed */
    color: #ff9500; /* base colour :contentReference[oaicite:0]{index=0}*/
    text-align: center;
    display: inline-block;
    text-decoration: none;
    transition: all .5s;
}

    .neon-orange.always-glow {
        animation: neonOrange 1.5s ease-in-out infinite alternate;
    }

@keyframes neonOrange {
    from {
        text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #fff, 0 0 40px #FFA500, 0 0 70px #FFA500, 0 0 80px #FFA500, 0 0 100px #FFA500, 0 0 150px #FFA500;
    }

    to {
        text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #fff, 0 0 20px #FFA500, 0 0 35px #FFA500, 0 0 40px #FFA500, 0 0 50px #FFA500, 0 0 75px #FFA500;
    }
}
