:root {
    --primary-color: #FF0000;
    /* Neon F1 Red */
    --secondary-color: #0E0E12;
    /* Deep Black */
    --accent-color: #00D2FF;
    /* Tech Blue */
    --bg-color: #050507;
    --text-color: #E0E0E0;
    --card-bg: rgba(18, 18, 22, 0.9);
    --card-border: 1px solid rgba(255, 0, 0, 0.3);
    --success-color: #00FF88;
    --glow-red: 0 0 15px rgba(255, 0, 0, 0.4);
    --glow-red-strong: 0 0 25px rgba(255, 0, 0, 0.6);
    --metallic-bg: linear-gradient(180deg, #2A2A30 0%, #15151A 100%);
    --honeycomb-pattern: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyOCIgaGVpZ2h0PSI0OSIgdmlld0JveD0iMCAwIDI4IDQ5Ij48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHN0cm9rZT0icmdiYSgyNTUsMjU1LDI1NSwwLjAyNSkiIHN0cm9rZS13aWR0aD0iMSI+PHBhdGggZD0iTTE0IDkuNUwwIDIuNXYtNUwxNCAuNUwyOCAtNSB2NUwxNCA5LjV6TTE0IDMzLjVMMCAyNi41di01TDE0IDI0LjVMMjggMTkuNXY1TDE0IDMzLjV6TTE0IDU3LjVMMCA1MC41di01TDE0IDQ4LjVMMjggNDMuNXY1TDE0IDU3LjV6Ii8+PC9nPjwvc3ZnPg==');
}

body {
    background-color: var(--bg-color);
    background-image: var(--honeycomb-pattern);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* HEADER */
header {
    background: var(--metallic-bg);
    border-bottom: 3px solid var(--primary-color);
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.2);
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.countdown-container {
    display: flex;
    align-items: center;
    gap: 30px;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 25px;
    border-radius: 4px;
    border: 1px solid rgba(255, 0, 0, 0.2);
    position: relative;
}

.countdown-next-race {
    font-family: 'Titillium Web', sans-serif;
    font-size: 1.4rem;
    text-transform: uppercase;
    color: #fff;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 1px;
    margin: 0;
}

.countdown-clock {
    font-family: 'Titillium Web', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
    display: flex;
    gap: 15px;
}

.clock-unit {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
}

.clock-val {
    line-height: 1;
}

.clock-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 4px;
    font-weight: 800;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.f1-logo-text {
    font-family: 'Titillium Web', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    color: white;
    font-style: italic;
    letter-spacing: -1px;
    text-transform: uppercase;
    display: flex;
    align-items: baseline;
    gap: 0.1em;
}

.juan-logo {
    display: inline-flex;
    align-items: baseline;
    color: white;
}

.large-j {
    color: var(--primary-color);
    font-size: 1.4em;
    line-height: 0.7;
    margin-right: -0.05em;
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
    position: relative;
    top: 0.05em;
}

.year-pill {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.league-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.add-user-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Titillium Web', sans-serif;
    text-transform: uppercase;
}

.pulsing-text {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
    animation: pulse-ongoing 1.5s infinite;
    font-weight: 900;
}

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

    50% {
        opacity: 0.6;
        transform: scale(0.98);
    }

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

/* CUSTOM SCROLLBARS */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* DASHBOARD LAYOUT */
.dashboard-top-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 0 30px;
    max-width: 1400px;
    margin: 20px auto 0;
}

.stat-card.large {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.dashboard-main-grid {
    display: grid;
    grid-template-columns: 1fr 320px 380px;
    gap: 40px;
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

.section-title {
    font-family: 'Titillium Web', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    font-style: italic;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 0, 0, 0.3);
    padding-bottom: 10px;
}

.managers-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* PREDICTIONS CARD */
.predictions-card {
    background: var(--card-bg);
    border: var(--card-border);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.predictions-podium-row {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.podium-slot-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 80px;
}

.podium-slot-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #888;
    font-style: italic;
}

.podium-driver-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid transparent;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.8) 70%);
    position: relative;
    outline: 2px solid rgba(255, 0, 0, 0.3);
    outline-offset: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
    box-shadow: inset 0 0 15px rgba(255, 0, 0, 0.3);
}

/* Driver avatars inside prediction circles fill 95% of the circle */
.podium-driver-circle .driver-avatar {
    box-sizing: border-box;
    width: 95%;
    height: 95%;
    margin: 0;
}

.podium-slot-item:hover .podium-driver-circle {
    outline-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4), inset 0 0 20px rgba(255, 0, 0, 0.4);
    transform: scale(1.05);
}

.podium-driver-name {
    font-size: 0.8rem;
    font-weight: 700;
    white-space: wrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
    text-align: center;
}

.predictions-btn-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.predict-btn {
    padding: 10px 15px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Titillium Web', sans-serif;
    text-transform: uppercase;
    transition: all 0.2s;
}

.predict-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* PREDICTIONS PAGE STYLES */
.predictions-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.selection-sidebar {
    background: var(--card-bg);
    border: var(--card-border);
    border-radius: 12px;
    padding: 25px;
    position: sticky;
    top: 30px;
    height: fit-content;
}

.slot-group {
    margin-bottom: 15px;
}

.slot-title-outside {
    font-size: 0.8rem;
    font-style: italic;
    color: #fff;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 8px;
    padding-left: 2px;
}

.slot-selection-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    /* margin-bottom: 12px; Removed in favor of slot-group spacing */
    cursor: pointer;
    transition: all 0.2s;
}

.selection-sidebar .driver-avatar.small {
    margin: 0;
    width: 32px;
    height: 32px;
    border-width: 2px;
}

.slot-selection-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.slot-selection-item.selected {
    border-color: var(--primary-color);
    background: rgba(225, 6, 0, 0.05);
}

.radio-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #555;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.selected .radio-dot {
    border-color: var(--primary-color);
}

.selected .radio-dot::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
}

.slot-info {
    flex: 1;
}

/* Deprecated internal title styles
.slot-info .title {
    font-size: 0.7rem;
    font-style: italic;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 1px;
    opacity: 0.7;
} 
*/

.slot-info .driver-chosen {
    font-size: 1.1rem;
    font-weight: 800;
    font-family: 'Titillium Web', sans-serif;
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.selection-sidebar {
    background: var(--metallic-bg);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    padding: 30px;
}

.action-btn,
.nav-btn,
.cta-btn,
.save-n-exit-btn,
.save-team-btn,
.how-to-btn,
.add-user-btn,
.predict-btn,
.edit-team-btn,
.cat-btn,
.modal-close-styled {
    padding: 12px 60px 12px 25px;
    /* Increased right padding to clear the dash */
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 900;
    text-align: left;
    text-decoration: none;
    border: none;
    background: var(--metallic-bg);
    color: #fff;
    cursor: pointer;
    font-family: 'Titillium Web', sans-serif;
    text-transform: uppercase;
    font-style: italic;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    width: fit-content;
    /* Sized to text */
    border-radius: 2px;
}

.action-btn::after,
.nav-btn::after,
.cta-btn::after,
.save-n-exit-btn::after,
.save-team-btn::after,
.how-to-btn::after,
.add-user-btn::after,
.predict-btn::after,
.edit-team-btn::after,
.cat-btn::after,
.modal-close-styled::after {
    content: '';
    position: absolute;
    right: 15px;
    width: 20px;
    height: 2px;
    background: var(--primary-color);
}

.action-btn:hover,
.nav-btn:hover,
.cta-btn:hover,
.save-n-exit-btn:hover,
.save-team-btn:hover,
.how-to-btn:hover,
.add-user-btn:hover,
.predict-btn:hover,
.edit-team-btn:hover,
.cat-btn:hover,
.modal-close-styled:hover {
    background: linear-gradient(90deg, #1A1A20 0%, #25252D 100%);
    box-shadow: var(--glow-red);
    padding-right: 45px;
}

.manager-card-item {
    background: var(--card-bg);
    background-image: linear-gradient(45deg, rgba(255, 0, 0, 0.05) 0%, transparent 100%);
    border: var(--card-border);
    border-radius: 0;
    /* Square sleek look */
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
}

.manager-card-item::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 20px;
    height: 20px;
    border-top: 2px solid var(--primary-color);
    border-left: 2px solid var(--primary-color);
}

.action-buttons-stack {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 60px;
    /* Align with top of manager card below title */
    align-items: center;
}

.action-buttons-stack .action-btn {
    width: fit-content;
    min-width: 200px;
    padding: 15px 50px 15px 25px;
    font-size: 1rem;
    font-weight: 800;
    text-align: left;
    text-decoration: none;
    border: none;
    border-left: 4px solid #333;
    background: var(--metallic-bg);
    color: #fff;
    cursor: pointer;
    font-family: 'Titillium Web', sans-serif;
    text-transform: uppercase;
    font-style: italic;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.action-buttons-stack .action-btn::after {
    content: '';
    position: absolute;
    right: 15px;
    width: 20px;
    height: 2px;
    background: var(--primary-color);
}

.action-btn:hover {
    border-left-color: var(--primary-color);
    background: linear-gradient(90deg, #1A1A20 0%, #25252D 100%);
    box-shadow: var(--glow-red);
    padding-left: 25px;
}

.practice-btn {
    background: linear-gradient(135deg, #4da3ff, #2b82e4);
    color: white;
}

.gp-btn {
    background: linear-gradient(135deg, #00D26A, #008f49);
    color: white;
}

.sprint-btn {
    background: linear-gradient(135deg, #f39c12, #d35400);
    color: white;
}

.sim-next-btn {
    background: #f0f0f0;
    color: #111;
}

.sim-full-btn {
    background: linear-gradient(135deg, #ff4d4d, #e10600);
    color: white;
}

.action-buttons-stack .action-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    filter: brightness(1.2);
}

/* LAYOUT */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.manager-card-item h3 {
    margin: 0 0 15px 0;
    font-family: 'Titillium Web', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    font-style: italic;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.manager-card-item h3::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.manager-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 15px;
}

/* DRAFT POOL & CARDS */
.pool-section {
    width: 100%;
}

.pool-title {
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    font-family: 'Titillium Web', sans-serif;
    font-style: italic;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
    letter-spacing: 1px;
}


.pool-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.card {
    background: var(--card-bg);
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        repeating-linear-gradient(45deg, transparent, transparent 1px, rgba(255, 255, 255, 0.02) 1px, rgba(255, 255, 255, 0.02) 2px);
    border: var(--card-border);
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    min-height: 105px;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--glow-red);
}

.card.selected {
    border-color: var(--success-color);
    background: rgba(0, 255, 136, 0.05);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.card-color-stripe {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2px;
    margin-left: 10px;
    position: relative;
    z-index: 2;
}

.card-name {
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.2;
    margin-left: 10px;
    position: absolute;
    bottom: 0px;
    left: 4px;
    right: 0;
    z-index: 2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.card-price {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.card-team {
    writing-mode: sideways-lr;
    margin-left: 0;
    font-size: 0.9rem;
    color: #ffffff;
    position: absolute;
    bottom: 10px;
    left: 0;
    padding-left: 5px;
    right: 0;
    text-align: center;
    z-index: 2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.card-rating {
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #666;
    letter-spacing: 1px;
    z-index: 2;
}

/* Make driver avatars large and sit behind text in the selection pools */
.pool-card .driver-avatar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130px !important;
    height: 130px !important;
    margin: 0 !important;
    opacity: 0.9;
    border: none;
    box-shadow: none;
    background-color: transparent;
    z-index: 0;
    pointer-events: none;
}

/* TEAM LOGOS - SPRITE SHEET */
.team-logo {
    width: 222px;
    height: 126px;
    background-image: url('team_logos_v2.png');
    background-repeat: no-repeat;
    background-size: 400% 300%;
    /* 4 cols x 3 rows - each cell is square in the sprite */
    background-color: transparent;
    border-radius: 4px;
    background-position: center;
}

/* Row 0 - Top row */
.logo-alpine {
    background-position: 0% 0%;
}

.logo-aston-martin {
    background-position: 33.333% 0%;
}

.logo-audi {
    background-position: 66.666% 0%;
}

.logo-cadillac {
    background-position: 100% 0%;
}

/* Row 1 - Middle row */
.logo-ferrari {
    background-position: 0% 50%;
}

.logo-haas {
    background-position: 33.333% 50%;
}

.logo-mclaren {
    background-position: 66.666% 50%;
}

.logo-mercedes {
    background-position: 100% 50%;
}

/* Row 2 - Bottom row */
.logo-rb {
    background-position: 0% 100%;
}

.logo-redbull {
    background-position: 33.333% 100%;
}

.logo-williams {
    background-position: 66.666% 100%;
}

/* Reuse Audi or assign another slot? Let's reuse Audi for now or fallback */

/* DRIVER AVATARS - SPRITE SHEET (5x5 Grid) */
.driver-avatar {
    width: 50px;
    height: 50px;
    margin: 5px auto;
    background-image: url('drivers_avatars.gif');
    background-repeat: no-repeat;
    background-size: 500% 500%;
    /* 5 cols, 5 rows */
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* Small variation for roster */
.driver-avatar.small {
    width: 32px;
    height: 32px;
}

/* Sprite Positions for 22 Drivers (Column %, Row %) */
/* Row 0 */
.avatar-pierre-gasly {
    background-position: 0% 0%;
}

.avatar-franco-colapinto {
    background-position: 25% 0%;
}

.avatar-fernando-alonso {
    background-position: 50% 0%;
}

.avatar-lance-stroll {
    background-position: 75% 0%;
}

.avatar-nico-hulkenberg {
    background-position: 100% 0%;
}

/* Row 1 */
.avatar-gabriel-bortoleto {
    background-position: 0% 25%;
}

.avatar-sergio-perez {
    background-position: 25% 25%;
}

.avatar-valtteri-bottas {
    background-position: 50% 25%;
}

.avatar-charles-leclerc {
    background-position: 75% 25%;
}

.avatar-lewis-hamilton {
    background-position: 100% 25%;
}

/* Row 2 */
.avatar-esteban-ocon {
    background-position: 0% 50%;
}

.avatar-oliver-bearman {
    background-position: 25% 50%;
}

.avatar-lando-norris {
    background-position: 50% 50%;
}

.avatar-oscar-piastri {
    background-position: 75% 50%;
}

.avatar-george-russell {
    background-position: 100% 50%;
}

/* Row 3 */
.avatar-kimi-antonelli {
    background-position: 0% 75%;
}

.avatar-liam-lawson {
    background-position: 25% 75%;
}

.avatar-arvid-lindblad {
    background-position: 50% 75%;
}

.avatar-max-verstappen {
    background-position: 75% 75%;
}

.avatar-isack-hadjar {
    background-position: 100% 75%;
}

/* Row 4 */
.avatar-alexander-albon {
    background-position: 0% 100%;
}

.avatar-carlos-sainz-jr {
    background-position: 25% 100%;
}

/* SIDEBAR & STATS */
.stat-card {
    background: var(--card-bg);
    border: var(--card-border);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: #888;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

/* LEADERBOARD & MY TEAM */
.sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.my-team-panel,
.leaderboard-panel {
    background: var(--card-bg);
    border: var(--card-border);
    border-radius: 8px;
    padding: 20px;
}

.budget-display {
    text-align: right;
    margin-bottom: 20px;
}

.budget-val {
    font-size: 2rem;
    font-weight: 700;
    color: var(--success-color);
}

.roster-slot {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    height: 40px;
}

.roster-slot.filled {
    background: rgba(255, 255, 255, 0.05);
}



.slot-group-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #666;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: 700;
}

/* RESULTS MODAL */
#results-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-content {
    background: #1A1A20;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--primary-color);
    max-width: 500px;
    width: 90%;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 15px;
    color: #fff !important;
    background: #FF0000 !important;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    cursor: pointer;
    border-radius: 4px;
    z-index: 10000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(255, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.close-modal:hover {
    background: #D10000 !important;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 15px rgba(255, 0, 0, 0.6);
}

.table-wrapper {
    max-height: 480px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Scrollbar styling for table-wrapper */
.table-wrapper::-webkit-scrollbar {
    width: 6px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(225, 6, 0, 0.4);
    border-radius: 3px;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table th {
    text-align: left;
    color: #888;
    font-size: 0.8rem;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
    position: sticky;
    top: 0;
    background: var(--card-bg);
    z-index: 10;
}

.leaderboard-table td {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ANIMATIONS */
.animate {
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

/* COMPONENT: ERROR MODAL */
#error-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

#error-modal.show {
    display: flex;
}

#error-modal .error-box {
    background: #1A1A20;
    border: 2px solid var(--primary-color);
    padding: 30px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 30px rgba(225, 6, 0, 0.2);
    position: relative;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

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

#error-modal .error-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    font-family: 'Titillium Web', sans-serif;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#error-modal .error-message {
    color: #e0e0e0;
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

#error-modal .error-close-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 30px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
    font-family: 'Titillium Web', sans-serif;
    transition: all 0.2s;
}

#error-modal .error-close-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* MANAGER CARD ROSTER STYLES */
.manager-roster-preview {
    margin-top: 15px;
    display: flex;
    flex-direction: row;
    /* Side-by-side Layout */
    gap: 10px;
}

.preview-section {
    flex: 1;
    /* Equal Width Columns */
    min-width: 0;
    /* Allow text truncate */
}

.preview-label {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 4px;
}

.preview-icons {
    display: flex;
    flex-direction: column;
    /* Vertical Layout */
    gap: 8px;
    /* Remove if you want them tight, but gap is good */
    width: 100%;
}

/* Row item for vertical list */
.roster-row-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px 6px;
    border-radius: 4px;
    width: 100%;
    position: relative;
    /* For tooltip */
    transition: background 0.2s;
    min-width: 0;
    /* Important for flex children */
}

.roster-row-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.mini-driver-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-width: 2px;
    border-style: solid;
    overflow: hidden;
    position: relative;
    background: #222;
    flex-shrink: 0;
}

/* Override existing driver-avatar class when nested */
.mini-driver-avatar .driver-avatar {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Tiny Team Logos - BIGGER NOW */
.mini-team-logo {
    width: 70px;
    /* Increased from 44px */
    height: 40px;
    /* Increased from 25px */
    background-image: url('team_logos_v2.png');
    background-repeat: no-repeat;
    background-size: 400% 300%;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.item-name {
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.empty-text {
    font-size: 0.75rem;
    color: #444;
    font-style: italic;
    padding: 5px 0;
}

/* STYLIZED TOOLTIP */
.roster-row-item::after,
.remove-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background: #1A1A20;
    border: 1px solid var(--primary-color);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.roster-row-item:hover::after,
.remove-btn:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

.remove-btn {
    position: relative;
    cursor: pointer;
    font-size: 1.2rem;
    filter: grayscale(1);
    opacity: 0.6;
    transition: all 0.2s;
}

.remove-btn:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.2);
}

.car-sprite {
    width: 200px;
    height: 80px;
    background-image: url('cars_marquee.gif');
    background-size: 300% 400%;
    /* Based on the 3x4 generated grid */
    background-repeat: no-repeat;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

/* Tiny History Button on Team Panel */
.history-btn-small {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #AAA;
    padding: 10px;
    border-radius: 4px;
    margin-top: 15px;
    margin-bottom: 25px;
    /* Separation from slots */
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Titillium Web', sans-serif;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.history-btn-small:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.history-btn-small::before {
    content: '📋';
    /* or specific icon */
    font-size: 1.1em;
    filter: grayscale(1);
    opacity: 0.7;
}

.history-btn-small:hover::before {
    filter: grayscale(0);
    opacity: 1;
}

.random-picks-btn {
    background: linear-gradient(135deg, #2a0a6e, #5b1ad4);
    border: 1px solid rgba(150, 100, 255, 0.5);
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    font-family: 'Titillium Web', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 14px rgba(120, 60, 220, 0.35);
}

.random-picks-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: rgba(255, 255, 255, 0.15);
    transform: skewX(-20deg);
    animation: shimmer 2.4s infinite;
}

@keyframes shimmer {
    0% {
        left: -75%;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        left: 125%;
        opacity: 0;
    }
}

.random-picks-btn:hover {
    background: linear-gradient(135deg, #3d13a0, #7730f0);
    box-shadow: 0 0 22px rgba(140, 80, 255, 0.6);
    transform: translateY(-1px);
}

.random-picks-btn:active {
    transform: translateY(1px);
    box-shadow: none;
}

/* Modal Close Button Styled */
.modal-close-styled {
    width: 100%;
    margin-top: 20px;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px;
    border-radius: 4px;
    font-family: 'Titillium Web', sans-serif;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close-styled:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 15px rgba(225, 6, 0, 0.4);
}

/* LANDING PAGE */
.landing-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('relaxing.gif') no-repeat center center;
    background-size: cover;
    position: relative;
}

.landing-content {
    z-index: 10;
    text-align: center;
    padding: 60px;
    background: rgba(16, 16, 20, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.landing-title {
    font-family: 'Titillium Web', sans-serif;
    font-size: 6rem;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: -3px;
    margin: 0;
    line-height: 0.9;
    color: white;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.15em;
}

.landing-title .large-j {
    font-size: 1.4em;
    top: 0.08em;
}

.landing-subtitle {
    font-size: 1.4rem;
    color: #fff;
    font-weight: 300;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 4px;
    opacity: 0.8;
}

.cta-container {
    margin-top: 50px;
    display: flex;
    gap: 30px;
    justify-content: center;
}

.cta-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 18px 50px;
    border-radius: 10px;
    font-size: 1.3rem;
    font-weight: 900;
    text-transform: uppercase;
    font-family: 'Titillium Web', sans-serif;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 10px 20px rgba(225, 6, 0, 0.3);
}

.cta-btn:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 40px rgba(225, 6, 0, 0.5);
    background: #ff0700;
}

.cta-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.1);
}

/* MARQUEES */
.marquee-row {
    position: absolute;
    width: 200%;
    height: 160px;
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 1;
}

.marquee-row-1 {
    top: 15%;
    transform: rotate(-3deg);
}

.marquee-row-2 {
    top: 50%;
    opacity: 0.8 !important;
    /* Brighter as requested */
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 0;
}

.marquee-row-3 {
    bottom: 15%;
    transform: rotate(3deg);
}

.marquee-track {
    display: flex;
    gap: 100px;
    animation: marquee-scroll 40s linear infinite;
    padding-left: 100px;
}

.marquee-row-2 .marquee-track {
    animation-direction: reverse;
    animation-duration: 80s;
}

.marquee-row-3 .marquee-track {
    animation-duration: 35s;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-track .driver-avatar {
    width: 80px;
    height: 80px;
}

.marquee-img {
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

.marquee-item-car {
    width: 200px;
    height: 80px;
}

/* AUTH PAGES */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #1C1C22 0%, #0a0a0c 100%);
    padding: 20px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 40px;
}

.form-container {
    background: rgba(30, 30, 35, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 50px;
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 20px rgba(225, 6, 0, 0.1);
    backdrop-filter: blur(10px);
}

.form-header h2 {
    font-size: 2.2rem;
    letter-spacing: -1px;
}

/* DASHBOARD: RACE RESULTS SECTION */
.results-breakdown-panel {
    background: var(--card-bg);
    border: var(--card-border);
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
}

.breakdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.race-selector {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    font-family: 'Titillium Web', sans-serif;
    font-weight: 700;
    cursor: pointer;
    outline: none;
}

.race-selector option {
    background: #15151E;
}

.breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: background 0.2s;
}

.breakdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.breakdown-rank {
    font-weight: 900;
    color: var(--primary-color);
    width: 30px;
    font-style: italic;
}

.breakdown-name {
    flex: 1;
    font-weight: 700;
    font-size: 1.1rem;
}

.breakdown-pts {
    font-weight: 800;
    color: var(--success-color);
    font-size: 1.2rem;
}

/* MY TEAM BUTTON & NAV LINKS */
.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Titillium Web', sans-serif;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-btn:hover {
    background: white;
    color: black !important;
    transform: translateY(-2px);
}

.nav-btn.primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.nav-btn.primary:hover {
    background: #ff0700;
    color: white !important;
    box-shadow: 0 0 15px rgba(225, 6, 0, 0.4);
}

/* FORM STYLES */
.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #888;
    font-weight: 700;
    letter-spacing: 1px;
}

.form-group input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
    outline: none;
    box-sizing: border-box;
    /* Ensures alignment */
}

.form-group input:focus {
    border-color: var(--primary-color);
    background: rgba(225, 6, 0, 0.05);
    box-shadow: 0 0 15px rgba(225, 6, 0, 0.1);
}

.form-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #a00000 100%);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    font-family: 'Titillium Web', sans-serif;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 10px;
    letter-spacing: 2px;
    box-shadow: 0 10px 20px rgba(225, 6, 0, 0.3);
}

.form-submit-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(225, 6, 0, 0.5);
    filter: brightness(1.1);
}

/* CHART TOOLTIP */
#chart-tooltip {
    position: fixed;
    background: rgba(20, 20, 25, 0.95);
    border: 1px solid var(--primary-color);
    padding: 12px 15px;
    border-radius: 8px;
    pointer-events: none;
    z-index: 1000;
    font-family: 'Titillium Web', sans-serif;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: none;
    min-width: 150px;
    backdrop-filter: blur(5px);
}

.tooltip-player {
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 5px;
}

.tooltip-race {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 3px;
}

.tooltip-pts {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
}

.tooltip-pts .val {
    color: var(--success-color);
}

/* CHART MODAL */
.chart-fullscreen-modal {
    max-width: 900px !important;
    width: 95% !important;
}

#historyChart {
    cursor: crosshair;
}

.form-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.form-footer a:hover {
    color: #ff5555;
    text-decoration: underline;
}

/* INFO ICONS & ACCORDIONS */
.title-wrap,
.countdown-container {
    position: relative;
}

.title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.title-wrap .section-title {
    margin-bottom: 0;
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 210, 255, 0.05);
    /* Blue tinge */
    color: var(--accent-color);
    /* Blue tinge */
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 210, 255, 0.3);
    /* Blue tinge */
    user-select: none;
}

.info-icon:hover,
.info-icon.active {
    background: var(--accent-color);
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--accent-color);
}

.info-accordion {
    position: absolute;
    top: 100%;
    left: 0;
    width: 320px;
    z-index: 2000;
    background: #15151A;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    padding: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    text-transform: none;
    font-style: normal;
}

.info-icon:hover+.info-accordion,
.info-accordion.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.info-accordion p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #aaa;
    margin: 0;
}

.info-accordion strong {
    color: white;
}

/* HOW TO BUTTON */
/* Removed as it now uses standard nav-btn style */

/* PASSWORD VISIBILITY TOGGLE */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    width: 100%;
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.2s;
    outline: none;
    z-index: 2;
}

.password-toggle:hover {
    color: #ccc;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}