:root {
    /* Primary Brand Colors */
    --ten-two: #497BF5;        /* Primary Blue - main actions, headers */
    --eleven-three: #F25F5C;   /* Red - danger, warnings */
    --nine-one: #F5C349;       /* Yellow - accents, highlights */
    --crazy-eight: #181717;    /* Almost Black - primary text */
    --cue-white: #FFF9F9;      /* Off White - backgrounds, text on dark */

    /* Secondary Brand Colors */
    --felt: #2E6417;           /* Green - success states */
    --ping: #FF751F;           /* Orange - secondary accents */
    --chalk: #E8E8E8;          /* Light Gray - borders, subtle backgrounds */

    /* Border Radius Standards */
    --radius-sm: 8px;          /* Small: buttons, inputs, badges */
    --radius-md: 16px;         /* Medium: cards, panels */
    --radius-lg: 20px;         /* Large: modals, major containers */
    --radius-round: 50%;       /* Circles: avatars, icon buttons */

    /* Legacy mappings for compatibility */
    --jet-orange: #497BF5;
    --mozzarella: #FFF9F9;
    --mozzarella-tint: #F5F5F5;
    --tomato: #F25F5C;
    --berry: #F25F5C;
    --aubergine: #497BF5;
    --turmeric: #F5C349;
    --charcoal: #181717;
    --cupcake: #E8E8E8;
    --white: #FFF9F9;
    --success: #2E6417;
    --danger: #F25F5C;
}

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

body {
    font-family: 'articulat-cf', sans-serif;
    font-weight: 500;
    background-color: var(--mozzarella-tint);
    color: var(--charcoal);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: var(--jet-orange);
    color: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
}

.nav-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'articulat-cf', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--white);
    color: var(--jet-orange);
}

.btn-primary:hover {
    background-color: var(--mozzarella);
}

.btn-record-game {
    background-color: var(--cue-white);
    color: var(--ten-two);
}

.btn-record-game:hover {
    background-color: var(--ten-two);
    color: var(--cue-white);
}

.btn-nav-yellow {
    background-color: var(--nine-one);
    color: var(--crazy-eight);
}

.btn-nav-yellow:hover {
    background-color: var(--ping);
    color: var(--cue-white);
}

.btn-secondary {
    background-color: var(--nine-one);
    color: var(--crazy-eight);
}

.btn-secondary:hover {
    background-color: var(--turmeric);
}

.btn-logout {
    background-color: var(--charcoal);
    color: var(--white);
}

.btn-logout:hover {
    background-color: var(--aubergine);
}

main {
    padding: 40px 0;
}

.page {
    display: none;
    padding-bottom: 60px;
}

.page.active {
    display: block;
}

#gamePage {
    padding-bottom: 0;
}

.auth-container {
    text-align: center;
    padding: 60px 20px;
    margin-top: 30px;
}

.auth-box {
    background-color: var(--white);
    padding: 60px 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 0 auto;
}

.auth-box h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--charcoal);
}

.auth-box p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: var(--charcoal);
}

.game-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 30px 0 40px 0;
}

.game-form h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--charcoal);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--charcoal);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--mozzarella);
    border-radius: var(--radius-md);
    font-family: 'articulat-cf', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    background-color: var(--mozzarella-tint);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--jet-orange);
}

.game-type-selector {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.game-type-option {
    flex: 1;
    padding: 20px;
    border: 2px solid var(--mozzarella);
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--mozzarella-tint);
}

.game-type-option.selected {
    border-color: var(--jet-orange);
    background-color: var(--white);
}

.game-type-option h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.players-section {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.team {
    flex: 1;
    padding: 20px;
    border: 2px solid var(--mozzarella);
    border-radius: var(--radius-md);
    background-color: var(--mozzarella-tint);
}

.team.winners {
    border-color: var(--turmeric);
}

.team.losers {
    border-color: var(--tomato);
}

.team h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
}

.team.winners h3 {
    color: var(--turmeric);
}

.team.losers h3 {
    color: var(--tomato);
}

.player-input {
    margin-bottom: 15px;
}

.player-input:last-child {
    margin-bottom: 0;
}

.leaderboard {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-top: 30px;
}

.leaderboard h2 {
    background-color: var(--jet-orange);
    color: var(--white);
    padding: 30px 40px;
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid var(--mozzarella);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.leaderboard-item:hover {
    background-color: var(--mozzarella-tint);
}

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

.rank {
    font-size: 1.8rem;
    font-weight: 800;
    width: 60px;
    color: var(--jet-orange);
}

.rank.champion {
    color: var(--turmeric);
}

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

.player-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--charcoal);
}

.player-country {
    font-size: 1rem;
    color: var(--aubergine);
    margin-top: 2px;
}

.player-stats {
    display: flex;
    gap: 12px;
    margin-top: 6px;
    font-size: 0.9rem;
    color: var(--aubergine);
    font-weight: 600;
}

.player-stats span {
    background-color: var(--mozzarella-tint);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.mmr {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--jet-orange);
}

.profile {
    position: relative;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.profile-header {
    background-color: var(--jet-orange);
    color: var(--white);
    padding: 40px;
    text-align: center;
}

.profile-title-section {
    text-align: center;
    margin-bottom: 10px;
}

.profile-back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 16px;
    background-color: var(--white);
    color: var(--charcoal);
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'articulat-cf', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 10;
}

.profile-back-btn:hover {
    background-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.profile-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
}

.profile-header .stat-label {
    color: var(--white) !important;
}

.profile-header .stat-value {
    color: var(--white) !important;
}

.profile-game-tabs {
    display: flex;
    gap: 10px;
    padding: 20px 40px;
    background-color: var(--mozzarella-tint);
    border-top: 2px solid var(--mozzarella);
}

.profile-tab {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: var(--radius-sm);
    background-color: var(--chalk);
    color: var(--crazy-eight);
    font-family: 'articulat-cf', sans-serif;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-tab:hover {
    background-color: var(--white);
    transform: translateY(-2px);
}

.profile-tab.active {
    background-color: var(--nine-one);
    color: var(--crazy-eight);
    box-shadow: 0 4px 12px rgba(245, 195, 73, 0.3);
}

.profile-game-content {
    display: none;
    padding: 30px 40px;
    background-color: var(--white);
}

.profile-game-content.active {
    display: block;
}

.profile-quick-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 30px;
    background-color: var(--mozzarella-tint);
    border-radius: var(--radius-md);
    margin-bottom: 30px;
}

.quick-stat {
    text-align: center;
}

.quick-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--ten-two);
    margin-bottom: 8px;
}

.quick-stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--aubergine);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.match-history {
    padding: 40px;
}

.match-history h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--charcoal);
}

.match-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--mozzarella-tint);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
}

.match-type {
    font-weight: 700;
    font-size: 0.9rem;
    width: 50px;
    color: var(--aubergine);
}

.match-result {
    font-weight: 800;
    font-size: 1.1rem;
    width: 80px;
    margin-left: 15px;
}

.match-result.win {
    color: var(--turmeric);
}

.match-result.loss {
    color: var(--tomato);
}

.match-details {
    flex: 1;
    margin-left: 20px;
    font-weight: 600;
}

.match-mmr {
    font-weight: 800;
    color: var(--jet-orange);
}

/* Season Stats Styles */
.stats-container {
    padding: 0 40px 40px 40px;
}

/* Stats Tab Navigation */
.stats-tabs {
    display: flex;
    background-color: var(--mozzarella-tint);
    border-radius: var(--radius-md);
    padding: 8px;
    margin: 30px 40px 0 40px;
    gap: 8px;
}

.stats-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 20px;
    border: none;
    border-radius: var(--radius-sm);
    background-color: transparent;
    color: var(--aubergine);
    font-family: 'articulat-cf', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stats-tab:hover {
    background-color: var(--cupcake);
    color: var(--charcoal);
}

.stats-tab.active {
    background-color: var(--jet-orange);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tab-icon {
    font-size: 1.2rem;
}

.tab-label {
    font-weight: 700;
}

/* Tab Content */
.stats-tab-content {
    display: none;
    padding: 30px 40px 40px 40px;
}

.stats-tab-content.active {
    display: block;
}

/* Stats Cards */
.stats-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stats-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.stats-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background-color: var(--mozzarella-tint);
    cursor: pointer;
    transition: all 0.3s ease;
}

.stats-card-header:hover {
    background-color: var(--mozzarella);
}

.stats-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--charcoal);
}

.stats-card-icon {
    font-size: 1.3rem;
}

.stats-card-preview {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--jet-orange);
    flex: 1;
    text-align: center;
    margin: 0 20px;
}

.stats-card-arrow {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--aubergine);
    transition: transform 0.3s ease;
}

.stats-card-content {
    display: none;
    padding: 25px;
}

.stats-card-content.expanded {
    display: block;
}

.stats-card.expanded .stats-card-arrow {
    transform: rotate(180deg);
}

.stats-description {
    font-size: 1rem;
    font-weight: 500;
    color: var(--aubergine);
    margin-bottom: 25px;
    opacity: 0.8;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stats-item {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    background-color: var(--mozzarella-tint);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.stats-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    background-color: var(--mozzarella);
}

.stats-rank {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--jet-orange);
    min-width: 50px;
}

.stats-player {
    flex: 1;
    margin-left: 20px;
}

.stats-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--charcoal);
    margin-bottom: 2px;
}

.stats-detail {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--aubergine);
    opacity: 0.8;
}

.stats-value {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--charcoal);
    min-width: 80px;
    text-align: right;
}

.stats-value.positive {
    color: var(--turmeric);
}

.stats-value.negative {
    color: var(--tomato);
}

/* Player Lookup Styles */
.player-lookup-container {
    padding: 40px;
}

.lookup-search-section {
    max-width: 600px;
    margin: 0 auto;
}

.lookup-search-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 20px;
    text-align: center;
}

.lookup-search-bar {
    position: relative;
}

.lookup-search-bar input {
    width: 100%;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 500;
    border: 3px solid var(--mozzarella);
    border-radius: var(--radius-md);
    background-color: var(--white);
    color: var(--charcoal);
    transition: all 0.3s ease;
    font-family: 'articulat-cf', sans-serif;
}

.lookup-search-bar input:focus {
    outline: none;
    border-color: var(--jet-orange);
    box-shadow: 0 0 0 3px rgba(255, 128, 0, 0.1);
}

.lookup-search-bar {
    position: relative;
}

.lookup-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    margin-top: 10px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
}

/* Ensure parent containers don't clip the dropdown */
.player-lookup-container {
    overflow: visible;
}

.lookup-search-section {
    overflow: visible;
}

/* Override leaderboard overflow for player lookup page */
#playerLookupPage .leaderboard {
    overflow: visible;
}

.lookup-results.show {
    display: block;
}

.lookup-result {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 1px solid var(--mozzarella-tint);
    transition: all 0.3s ease;
}

.lookup-result:hover {
    background-color: var(--mozzarella-tint);
    transform: translateX(4px);
}

.lookup-result:last-child {
    border-bottom: none;
}

.lookup-result.no-results {
    cursor: default;
    opacity: 0.7;
    font-style: italic;
}

.lookup-result.no-results:hover {
    background-color: transparent;
    transform: none;
}

.lookup-result-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-round);
    background-color: var(--jet-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--white);
    font-size: 1.2rem;
    margin-right: 15px;
}

.lookup-player-info {
    flex: 1;
}

.lookup-player-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--charcoal);
    margin-bottom: 2px;
}

.lookup-player-details {
    font-size: 0.9rem;
    color: var(--aubergine);
    opacity: 0.8;
}

.lookup-result-mmr {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--jet-orange);
}

/* Profile Navigation */
.profile-nav {
    padding: 20px 40px 0 40px;
}

.profile-nav .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Enhanced Profile Stats */
.profile-detailed-stats {
    padding: 40px;
    border-top: 2px solid var(--mozzarella-tint);
}

.stats-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.stats-header h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
    color: var(--charcoal);
}

.stats-help-btn {
    background-color: var(--jet-orange);
    color: var(--white);
    border: none;
    border-radius: var(--radius-round);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 128, 0, 0.3);
}

.stats-help-btn:hover {
    background-color: var(--aubergine);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 128, 0, 0.4);
}

.detailed-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.detailed-stat-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.detailed-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.detailed-stat-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    background-color: var(--mozzarella-tint);
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
}

.detailed-stat-content {
    flex: 1;
}

.detailed-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--charcoal);
    margin-bottom: 5px;
}

.detailed-stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--aubergine);
    opacity: 0.8;
}

/* Searchable Dropdown Styles */
.searchable-dropdown {
    position: relative;
    width: 100%;
}

.searchable-dropdown input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--mozzarella);
    border-radius: var(--radius-sm);
    font-family: 'articulat-cf', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    background-color: var(--white);
    transition: border-color 0.3s ease;
    margin-bottom: 5px;
}

.searchable-dropdown input[type="text"]:focus {
    outline: none;
    border-color: var(--jet-orange);
}

.searchable-dropdown select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--mozzarella);
    border-radius: var(--radius-sm);
    font-family: 'articulat-cf', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    background-color: var(--white);
    transition: border-color 0.3s ease;
}

.searchable-dropdown select:focus {
    outline: none;
    border-color: var(--jet-orange);
}

.searchable-dropdown select[size] {
    background-color: var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: var(--radius-sm);
    max-height: 180px;
    overflow-y: auto;
    width: 100%;
    margin-top: 5px;
    display: block;
}

/* Player Input Container Styles */
.player-input {
    margin-bottom: 30px;
    position: relative;
}

.player-input.hidden {
    display: none;
}

/* Submit Section Styles */
.submit-section {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--mozzarella);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 800;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.error {
    background-color: var(--tomato);
    color: var(--white);
    padding: 15px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-weight: 700;
}

.success {
    background-color: var(--turmeric);
    color: var(--charcoal);
    padding: 15px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-weight: 700;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-buttons {
        justify-content: center;
    }
    
    .game-form, .auth-box {
        padding: 30px 20px;
    }
    
    .leaderboard-item {
        padding: 15px 20px;
    }
    
    .profile-stats {
        gap: 20px;
    }

    .players-section {
        flex-direction: column;
    }

    .game-type-selector {
        flex-direction: column;
    }

    .stats-container {
        padding: 0 20px 40px 20px;
    }

    .stats-section h3 {
        font-size: 1.5rem;
    }

    .stats-item {
        padding: 15px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .stats-rank {
        min-width: auto;
    }

    .stats-player {
        margin-left: 0;
        width: 100%;
    }

    .stats-value {
        min-width: auto;
        text-align: left;
        font-size: 1.1rem;
    }

    .btn-large {
        padding: 15px 30px;
        font-size: 1.1rem;
        min-width: 160px;
    }

    .searchable-dropdown input[type="text"],
    .searchable-dropdown select {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .submit-section {
        margin-top: 30px;
        padding-top: 20px;
    }

    /* Mobile Stats Tab Navigation */
    .stats-tabs {
        flex-direction: column;
        margin: 20px;
        gap: 5px;
    }

    .stats-tab {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .tab-label {
        display: none;
    }

    .tab-icon {
        font-size: 1.1rem;
    }

    /* Mobile Stats Tab Content */
    .stats-tab-content {
        padding: 20px;
    }

    /* Mobile Stats Cards */
    .stats-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 15px 20px;
    }

    .stats-card-title {
        gap: 8px;
        font-size: 1rem;
    }

    .stats-card-icon {
        font-size: 1.2rem;
    }

    .stats-card-preview {
        margin: 0;
        text-align: left;
        font-size: 0.8rem;
    }

    .stats-card-arrow {
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 1.1rem;
    }

    .stats-card-content {
        padding: 20px;
    }

    .stats-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
}

/* Statistics Help Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.modal-header {
    background-color: var(--jet-orange);
    color: var(--white);
    padding: 25px 30px;
    border-radius: var(--radius-lg) 20px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-round);
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-body {
    padding: 30px;
}

.stat-explanation {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    margin-bottom: 15px;
    background-color: var(--mozzarella-tint);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--jet-orange);
    transition: all 0.3s ease;
}

.stat-explanation:hover {
    background-color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateX(4px);
}

.stat-explanation .stat-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    margin-top: 5px;
}

.stat-info h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--charcoal);
    margin: 0 0 10px 0;
}

.stat-info p {
    margin: 8px 0;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--aubergine);
}

.stat-info p strong {
    color: var(--charcoal);
    font-weight: 600;
}

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

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

/* Mobile responsiveness for modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .stat-explanation {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .stat-explanation .stat-icon {
        font-size: 2rem;
        margin-top: 0;
        text-align: center;
    }
    
    .stat-info h4 {
        font-size: 1.2rem;
    }
    
    .stat-info p {
        font-size: 0.95rem;
    }
}

/* Achievement Button Styles */
.profile-achievements-button {
    padding: 40px;
    border-top: 2px solid var(--mozzarella-tint);
    text-align: center;
}

.achievements-modal-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 20px 30px;
    font-size: 1.2rem;
    font-weight: 700;
    min-width: 280px;
    margin: 0 auto;
}

.achievement-progress-inline {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
}

/* Achievements Modal Styles */
.achievements-modal-content {
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
}

.achievement-progress-modal {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
}

.achievement-filters-modal {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.achievements-modal-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Modal Achievement Categories */
.achievement-category-modal {
    background-color: var(--white);
    border-radius: var(--radius-md);
    border: 2px solid var(--mozzarella-tint);
    overflow: hidden;
    transition: all 0.3s ease;
}

.achievement-category-modal:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--jet-orange);
}

.category-header-modal {
    background-color: var(--mozzarella-tint);
    color: var(--charcoal);
    font-size: 1.2rem;
    font-weight: 700;
    padding: 15px 25px;
    margin: 0;
    border-bottom: 2px solid var(--mozzarella);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.category-header-modal:hover {
    background-color: var(--mozzarella);
}

.category-arrow {
    font-size: 1rem;
    transition: transform 0.3s ease;
    color: var(--jet-orange);
    font-weight: bold;
}

.achievement-category-modal.collapsed .category-arrow {
    transform: rotate(-90deg);
}

.category-achievements-modal {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background-color: var(--mozzarella-tint);
}

/* Modal Achievement Cards */
.achievement-card-modal {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background-color: var(--white);
    transition: all 0.3s ease;
    position: relative;
}

.achievement-card-modal:hover {
    background-color: var(--mozzarella-tint);
    transform: translateX(4px);
}

.achievement-card-modal.unlocked {
    border-left: 4px solid var(--jet-orange);
}

.achievement-card-modal.locked {
    border-left: 4px solid var(--mozzarella);
    opacity: 0.7;
}

.achievement-card-modal.locked .achievement-icon-modal {
    filter: grayscale(100%);
    opacity: 0.6;
}

.achievement-card-modal.locked .achievement-name-modal,
.achievement-card-modal.locked .achievement-description-modal {
    color: var(--aubergine);
    opacity: 0.8;
}

.achievement-icon-modal {
    font-size: 2rem;
    flex-shrink: 0;
    width: 45px;
    text-align: center;
}

.achievement-details-modal {
    flex: 1;
}

.achievement-name-modal {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 4px;
}

.achievement-description-modal {
    font-size: 0.9rem;
    color: var(--aubergine);
    opacity: 0.8;
    line-height: 1.4;
}

.achievement-checkmark-modal {
    font-size: 1.3rem;
    color: var(--jet-orange);
    font-weight: 800;
}

.achievement-lock-modal {
    font-size: 1.1rem;
    opacity: 0.5;
}

/* Mobile responsiveness for achievements modal */
@media (max-width: 768px) {
    .profile-achievements-button {
        padding: 20px;
    }
    
    .achievements-modal-btn {
        flex-direction: column;
        gap: 10px;
        padding: 15px 20px;
        font-size: 1.1rem;
        min-width: auto;
        width: 100%;
    }
    
    .achievement-progress-inline {
        padding: 4px 10px;
        font-size: 0.9rem;
    }
    
    .achievements-modal-content {
        width: 98%;
        max-height: 85vh;
    }
    
    .achievement-filters-modal {
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .filter-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .category-header-modal {
        padding: 12px 15px;
        font-size: 1.1rem;
    }
    
    .achievement-card-modal {
        padding: 12px 15px;
        gap: 12px;
    }
    
    .achievement-icon-modal {
        font-size: 1.8rem;
        width: 35px;
    }
    
    .achievement-name-modal {
        font-size: 1rem;
    }
    
    .achievement-description-modal {
        font-size: 0.85rem;
    }
}

.filter-btn {
    background-color: var(--mozzarella);
    color: var(--charcoal);
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-family: 'articulat-cf', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: var(--aubergine);
    color: var(--white);
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: var(--jet-orange);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(255, 128, 0, 0.3);
}

/* Old achievement styles removed - now using modal */

/* Achievement Notification Popup */
.achievement-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.achievement-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.achievement-notification::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    z-index: -1;
    pointer-events: none;
}

.achievement-popup {
    background-color: var(--nine-one);
    color: var(--crazy-eight);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 350px;
    position: relative;
    z-index: 1;
}

.achievement-popup .achievement-icon {
    font-size: 3rem;
    animation: bounce 1s ease infinite alternate;
}

.achievement-info .achievement-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.achievement-info .achievement-name {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.achievement-info .achievement-desc {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

@keyframes bounce {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

/* Confetti Animation */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    z-index: 9999;
    pointer-events: none;
}

.confetti-red {
    background-color: var(--eleven-three);
}

.confetti-blue {
    background-color: var(--ten-two);
}

.confetti-yellow {
    background-color: var(--nine-one);
}

@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotateZ(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(600px) rotateZ(720deg);
        opacity: 0;
    }
}

/* Mobile responsiveness for achievements */
@media (max-width: 768px) {
    .profile-achievements {
        padding: 20px;
    }
    
    .achievement-filter {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .filter-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .category-achievements {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .achievement-card {
        padding: 12px;
        gap: 12px;
    }
    
    .achievement-icon {
        font-size: 2rem;
        width: 40px;
    }
    
    .achievement-name {
        font-size: 1rem;
    }
    
    .achievement-description {
        font-size: 0.85rem;
    }
    
    .achievement-notification {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .achievement-popup {
        padding: 15px;
        max-width: none;
    }
    
    .achievement-popup .achievement-icon {
        font-size: 2.5rem;
    }
}

/* MMR Chart Styles */
.profile-chart-section {
    padding: 40px;
    border-top: 2px solid var(--mozzarella-tint);
}

.chart-controls {
    display: flex;
    gap: 8px;
}

.chart-btn {
    background-color: var(--mozzarella);
    color: var(--charcoal);
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-lg);
    font-family: 'articulat-cf', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chart-btn:hover {
    background-color: var(--aubergine);
    color: var(--white);
    transform: translateY(-1px);
}

.chart-btn.active {
    background-color: var(--jet-orange);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(255, 128, 0, 0.3);
}

.chart-container {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--mozzarella-tint);
    height: 400px;
}

.chart-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    background-color: var(--mozzarella-tint);
    border-radius: var(--radius-md);
    padding: 25px;
}

.chart-stat {
    text-align: center;
}

.chart-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--charcoal);
    margin-bottom: 5px;
}

.chart-stat-value.positive {
    color: var(--success);
}

.chart-stat-value.negative {
    color: var(--danger);
}

.chart-stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--aubergine);
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile responsiveness for charts */
@media (max-width: 768px) {
    .profile-chart-section {
        padding: 20px;
    }
    
    .chart-controls {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
    
    .chart-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .chart-container {
        padding: 15px;
        height: 300px;
        margin: 20px 0;
    }
    
    .chart-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 20px;
    }
    
    .chart-stat-value {
        font-size: 1.5rem;
    }
    
    .chart-stat-label {
        font-size: 0.8rem;
    }
}

/* Player Comparison Tool Styles */
.comparison-setup {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--mozzarella-tint);
}

.player-selector {
    margin-bottom: 30px;
}

.selector-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: end;
}

.player-select-container {
    display: flex;
    flex-direction: column;
}

.player-select-container label {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 10px;
    text-align: center;
}

.vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--jet-orange);
    background-color: var(--mozzarella-tint);
    border-radius: var(--radius-round);
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(255, 128, 0, 0.2);
    border: 3px solid var(--white);
}

.compare-btn {
    background-color: var(--jet-orange);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    border-radius: var(--radius-lg);
    font-family: 'articulat-cf', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 128, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
    margin-top: 30px;
}

.compare-btn:hover {
    background-color: var(--aubergine);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 128, 0, 0.4);
}

.compare-btn:disabled {
    background-color: var(--mozzarella);
    color: var(--aubergine);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.comparison-results {
    display: none;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--mozzarella-tint);
}

.comparison-results.show {
    display: block;
}

.comparison-header {
    text-align: center;
    margin-bottom: 40px;
}

.comparison-header h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--charcoal);
    margin-bottom: 10px;
}

.head-to-head-record {
    background-color: var(--mozzarella-tint);
    border-radius: var(--radius-md);
    padding: 20px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--jet-orange);
    border: 2px solid var(--mozzarella);
}

.players-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 40px;
}

.player-card {
    background-color: var(--mozzarella-tint);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    border: 2px solid var(--mozzarella);
    transition: all 0.3s ease;
}

.player-card.winner {
    border-color: var(--turmeric);
    background-color: rgba(246, 194, 67, 0.1);
    box-shadow: 0 4px 12px rgba(246, 194, 67, 0.2);
}

.player-card.winner .player-name {
    color: var(--turmeric);
}

.player-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-round);
    background-color: var(--jet-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--white);
    font-size: 2rem;
    margin: 0 auto 15px auto;
    box-shadow: 0 4px 12px rgba(255, 128, 0, 0.3);
}

.player-card.winner .player-avatar {
    background-color: var(--turmeric);
    box-shadow: 0 4px 12px rgba(246, 194, 67, 0.4);
}

.player-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--charcoal);
    margin-bottom: 10px;
}

.player-mmr {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--jet-orange);
    margin-bottom: 15px;
}

.player-record {
    font-size: 1rem;
    color: var(--aubergine);
    opacity: 0.8;
}

.comparison-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.comparison-vs {
    font-size: 2rem;
    font-weight: 800;
    color: var(--jet-orange);
    background-color: var(--white);
    border-radius: var(--radius-round);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 128, 0, 0.2);
    border: 3px solid var(--mozzarella-tint);
}

.comparison-stats {
    margin-top: 20px;
}

.stats-comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.stat-comparison {
    background-color: var(--mozzarella-tint);
    border-radius: var(--radius-md);
    padding: 25px;
    border: 2px solid var(--mozzarella);
    transition: all 0.3s ease;
}

.stat-comparison:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--charcoal);
    text-align: center;
    margin-bottom: 15px;
}

.stat-values {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--charcoal);
    flex: 1;
    text-align: center;
}

.stat-value.winner {
    color: var(--turmeric);
    background-color: rgba(246, 194, 67, 0.15);
    padding: 10px;
    border-radius: var(--radius-md);
    border: 2px solid rgba(246, 194, 67, 0.3);
    box-shadow: 0 2px 8px rgba(246, 194, 67, 0.2);
}

.stat-vs {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--aubergine);
    opacity: 0.6;
}

/* Mobile responsiveness for Player Comparison */
@media (max-width: 768px) {
    .comparison-setup,
    .comparison-results {
        padding: 20px;
    }
    
    .selector-row {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .vs-divider {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        margin: 0 auto;
    }
    
    .compare-btn {
        padding: 12px 30px;
        font-size: 1rem;
        margin-top: 20px;
    }
    
    .comparison-header h3 {
        font-size: 1.8rem;
    }
    
    .head-to-head-record {
        padding: 15px;
        font-size: 1.1rem;
    }
    
    .players-row {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .player-card {
        padding: 20px;
    }
    
    .player-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .player-name {
        font-size: 1.3rem;
    }
    
    .player-mmr {
        font-size: 1.1rem;
    }
    
    .comparison-divider {
        display: none;
    }
    
    .stats-comparison-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-comparison {
        padding: 20px;
    }
    
    .stat-label {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .stat-values {
        flex-direction: column;
        gap: 10px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-vs {
        font-size: 1rem;
        order: -1;
    }
}

/* Home Page Styles */
.home-container {
    padding: 40px;
}

.welcome-section {
    background: linear-gradient(135deg, var(--jet-orange), #ff6b35);
    color: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 8px 24px rgba(255, 128, 0, 0.3);
}

.welcome-section h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.welcome-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Quick Stats Section */
.quick-stats-section {
    margin-bottom: 50px;
}

.quick-stats-section h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--charcoal);
    margin-bottom: 25px;
    text-align: center;
}

.quick-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.quick-stat-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    border: 2px solid var(--mozzarella-tint);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.quick-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--jet-orange);
}

.quick-stat-icon {
    font-size: 3rem;
    background-color: var(--mozzarella-tint);
    border-radius: var(--radius-round);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--mozzarella);
}

.quick-stat-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quick-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--jet-orange);
    margin-bottom: 5px;
}

.quick-stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--aubergine);
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Activity Section */
.activity-section {
    margin-bottom: 50px;
}

.activity-section h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--charcoal);
    margin-bottom: 25px;
    text-align: center;
}

.activity-feed {
    background-color: var(--white);
    border-radius: var(--radius-md);
    border: 2px solid var(--mozzarella-tint);
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid var(--mozzarella-tint);
    transition: all 0.3s ease;
}

.activity-item:hover {
    background-color: var(--mozzarella-tint);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item.user-game.win {
    border-left: 4px solid var(--turmeric);
    background-color: rgba(246, 194, 67, 0.05);
}

.activity-item.user-game.loss {
    border-left: 4px solid var(--tomato);
    background-color: rgba(247, 94, 40, 0.05);
}

.activity-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 4px;
}

.activity-time {
    font-size: 0.9rem;
    color: var(--aubergine);
    opacity: 0.7;
}

.no-activity {
    padding: 40px;
    text-align: center;
    color: var(--aubergine);
    opacity: 0.7;
    font-style: italic;
}

/* Recent Achievements Section */
.recent-achievements-section {
    margin-bottom: 50px;
}

.recent-achievements-section h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--charcoal);
    margin-bottom: 25px;
    text-align: center;
}

.recent-achievements-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.recent-achievement-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 2px solid var(--jet-orange);
    box-shadow: 0 4px 12px rgba(255, 128, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.recent-achievement-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 128, 0, 0.25);
}

.recent-achievement-card .achievement-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.recent-achievement-card .achievement-info {
    flex: 1;
}

.recent-achievement-card .achievement-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 4px;
}

.recent-achievement-card .achievement-description {
    font-size: 0.95rem;
    color: var(--aubergine);
    opacity: 0.8;
}

.achievement-time {
    font-size: 0.9rem;
    color: var(--jet-orange);
    font-weight: 600;
    text-align: right;
}

.no-achievements {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 40px;
    text-align: center;
    color: var(--aubergine);
    opacity: 0.7;
    font-style: italic;
    border: 2px solid var(--mozzarella-tint);
}

.view-all-achievements {
    text-align: center;
}

/* Leaderboard Preview Section */
.leaderboard-preview-section {
    margin-bottom: 30px;
}

.leaderboard-preview-section h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--charcoal);
    margin-bottom: 25px;
    text-align: center;
}

.leaderboard-preview {
    background-color: var(--white);
    border-radius: var(--radius-md);
    border: 2px solid var(--mozzarella-tint);
    overflow: hidden;
    margin-bottom: 25px;
}

.preview-leaderboard-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--mozzarella-tint);
    cursor: pointer;
    transition: all 0.3s ease;
}

.preview-leaderboard-item:hover {
    background-color: var(--mozzarella-tint);
    transform: translateX(4px);
}

.preview-leaderboard-item:last-child {
    border-bottom: none;
}

.preview-leaderboard-item.current-user {
    background-color: rgba(255, 128, 0, 0.05);
    border-left: 4px solid var(--jet-orange);
    font-weight: 700;
}

.preview-rank {
    font-size: 1.5rem;
    font-weight: 800;
    width: 50px;
    color: var(--jet-orange);
}

.preview-player-info {
    flex: 1;
    margin-left: 15px;
}

.preview-player-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 2px;
}

.preview-player-record {
    font-size: 0.9rem;
    color: var(--aubergine);
    opacity: 0.8;
}

.preview-mmr {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--jet-orange);
}

.view-full-leaderboard {
    text-align: center;
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--aubergine);
    opacity: 0.7;
    font-style: italic;
}

/* Mobile responsiveness for Home Page */
@media (max-width: 768px) {
    .home-container {
        padding: 20px;
    }
    
    .welcome-section {
        padding: 30px 20px;
        margin-bottom: 30px;
    }
    
    .welcome-section h3 {
        font-size: 2rem;
    }
    
    .welcome-section p {
        font-size: 1.1rem;
    }
    
    .quick-stats-section,
    .activity-section,
    .recent-achievements-section,
    .leaderboard-preview-section {
        margin-bottom: 40px;
    }
    
    .quick-stats-section h3,
    .activity-section h3,
    .recent-achievements-section h3,
    .leaderboard-preview-section h3 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .quick-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .quick-stat-card {
        padding: 20px;
        gap: 10px;
    }
    
    .quick-stat-icon {
        font-size: 2.5rem;
        width: 60px;
        height: 60px;
    }
    
    .quick-stat-value {
        font-size: 2rem;
    }
    
    .quick-stat-label {
        font-size: 0.9rem;
    }
    
    .activity-item {
        padding: 15px;
        gap: 15px;
    }
    
    .activity-icon {
        font-size: 1.8rem;
    }
    
    .activity-text {
        font-size: 0.95rem;
    }
    
    .recent-achievement-card {
        padding: 15px;
        gap: 15px;
    }
    
    .recent-achievement-card .achievement-icon {
        font-size: 2rem;
    }
    
    .recent-achievement-card .achievement-name {
        font-size: 1.1rem;
    }
    
    .recent-achievement-card .achievement-description {
        font-size: 0.9rem;
    }
    
    .preview-leaderboard-item {
        padding: 12px 15px;
    }
    
    .preview-rank {
        font-size: 1.3rem;
        width: 40px;
    }
    
    .preview-player-name {
        font-size: 1rem;
    }
    
    .preview-player-record {
        font-size: 0.85rem;
    }
    
    .preview-mmr {
        font-size: 1.1rem;
    }
}

/* Admin Tools Styles */
.admin-tools-section {
    padding: 40px;
    border-top: 2px solid var(--mozzarella-tint);
    background-color: rgba(255, 128, 0, 0.05);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.admin-tools-header {
    text-align: center;
    margin-bottom: 25px;
}

.admin-tools-header h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--jet-orange);
    margin: 0;
}

.admin-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.admin-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    min-height: 120px;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.admin-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.admin-btn:hover:before {
    left: 100%;
}

.admin-btn span {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.admin-btn small {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.3;
}

.admin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.admin-btn:disabled:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Admin Status and Reports */
.retroactive-status {
    min-height: 50px;
    border-radius: var(--radius-md);
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.loading-status {
    background: linear-gradient(135deg, var(--cupcake), #a8dadc);
    color: var(--charcoal);
    padding: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--mozzarella);
}

.error-status {
    background: linear-gradient(135deg, var(--tomato), #e85a4f);
    color: var(--white);
    padding: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--tomato);
}

.report-preview {
    background-color: var(--white);
    border: 2px solid var(--jet-orange);
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: 0 6px 16px rgba(255, 128, 0, 0.15);
}

.report-preview h4 {
    color: var(--jet-orange);
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 20px 0;
    text-align: center;
}

.report-summary {
    background-color: var(--mozzarella-tint);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}

.report-summary p {
    margin: 8px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--charcoal);
}

.report-details h5 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--charcoal);
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--mozzarella);
}

.player-report {
    margin-bottom: 15px;
    padding: 15px;
    background-color: var(--mozzarella-tint);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--jet-orange);
}

.player-report strong {
    color: var(--charcoal);
    font-size: 1.1rem;
}

.achievement-list {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.achievement-preview {
    background-color: var(--white);
    padding: 4px 8px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--charcoal);
    border: 1px solid var(--mozzarella);
}

.report-success {
    background: linear-gradient(135deg, var(--turmeric), #f1c40f);
    color: var(--charcoal);
    border-radius: var(--radius-md);
    padding: 25px;
    text-align: center;
    border: 2px solid var(--turmeric);
    box-shadow: 0 6px 16px rgba(246, 194, 67, 0.2);
}

.report-success h4 {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 15px 0;
}

.success-summary {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    padding: 15px;
    margin-bottom: 15px;
}

.success-summary p {
    margin: 5px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.success-message {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 15px 0 0 0;
}

.success-errors {
    background-color: rgba(231, 76, 60, 0.1);
    border: 2px solid var(--tomato);
    border-radius: var(--radius-md);
    padding: 15px;
    margin-top: 15px;
}

.success-errors h5 {
    color: var(--tomato);
    font-weight: 700;
    margin: 0 0 10px 0;
}

.success-errors ul {
    margin: 0;
    padding-left: 20px;
}

.success-errors li {
    color: var(--charcoal);
    font-weight: 600;
    margin: 5px 0;
}

/* Mobile responsiveness for admin tools */
@media (max-width: 768px) {
    .admin-tools-section {
        padding: 20px;
    }
    
    .admin-tools-header h3 {
        font-size: 1.5rem;
    }
    
    .admin-tools-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .admin-btn {
        padding: 15px;
        min-height: 100px;
        gap: 6px;
    }
    
    .admin-btn span {
        font-size: 1rem;
    }
    
    .admin-btn small {
        font-size: 0.85rem;
    }
    
    .report-preview {
        padding: 20px;
    }
    
    .report-preview h4 {
        font-size: 1.3rem;
    }
    
    .achievement-list {
        flex-direction: column;
        gap: 5px;
    }
    
    .achievement-preview {
        text-align: center;
        padding: 6px 10px;
        font-size: 0.9rem;
    }
    
    .player-report {
        padding: 12px;
    }
    
    .report-success {
        padding: 20px;
    }
    
    .report-success h4 {
        font-size: 1.4rem;
    }
}

/* Archived Seasons Styles */
.seasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.season-card {
    background: white;
    border: 2px solid var(--cupcake);
    border-radius: var(--radius-md);
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.season-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--tomato);
}

.season-header h3 {
    margin: 0 0 8px 0;
    color: var(--charcoal);
    font-size: 1.4rem;
}

.season-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.season-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}

.season-stats .stat-item {
    flex: 1;
    text-align: center;
    padding: 12px;
    background: var(--cupcake);
    border-radius: var(--radius-sm);
}

.season-stats .stat-item span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.season-stats .stat-item strong {
    display: block;
    color: var(--charcoal);
    font-size: 1.5rem;
    font-weight: 700;
}

.view-season-btn {
    width: 100%;
    padding: 12px;
    background: var(--tomato);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.view-season-btn:hover {
    background: var(--cherry);
}

.season-detail-header {
    text-align: center;
    margin-bottom: 30px;
}

.back-btn {
    padding: 10px 20px;
    background: var(--cupcake);
    border: 2px solid var(--charcoal);
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--charcoal);
    margin-bottom: 20px;
}

.back-btn:hover {
    background: var(--charcoal);
    color: white;
}

.season-detail-header h2 {
    margin: 10px 0;
    color: var(--charcoal);
}

.season-detail-date {
    color: var(--text-secondary);
    font-size: 1rem;
}

.season-leaderboard {
    background: white;
    border: 2px solid var(--cupcake);
    border-radius: var(--radius-md);
    padding: 24px;
}

.season-leaderboard h3 {
    margin: 0 0 20px 0;
    color: var(--charcoal);
}

.leaderboard-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.leaderboard-row {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--cupcake);
    border-radius: var(--radius-sm);
    gap: 16px;
}

.leaderboard-row .rank {
    font-size: 1.5rem;
    font-weight: 700;
    min-width: 50px;
    text-align: center;
}

.leaderboard-row .player-info {
    flex: 1;
}

.leaderboard-row .player-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--charcoal);
}

.leaderboard-row .player-country {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.leaderboard-row .player-stats {
    display: flex;
    gap: 24px;
}

.leaderboard-row .stat {
    text-align: center;
}

.leaderboard-row .stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.leaderboard-row .stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--charcoal);
}

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

    .leaderboard-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .leaderboard-row .rank {
        min-width: auto;
    }

    .leaderboard-row .player-stats {
        width: 100%;
        justify-content: space-between;
    }
}