:root {
    --primary: #1a1a1a;
    --primary-dark: #000000;
    --secondary: #6b7280;
    --accent: #374151;
    --warning: #6b7280;
    --danger: #4b5563;
    --bg: #ffffff;
    --bg-card: #f9fafb;
    --bg-input: #f3f4f6;
    --text: #111827;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --gold: #1a1a1a;
    --silver: #6b7280;
    --bronze: #9ca3af;
}

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

body {
    font-family: 'Marvel', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.7;
    font-size: 17px;
    letter-spacing: 0.01em;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.navbar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Righteous', cursive;
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--primary);
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.logo:hover {
    text-decoration: none;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: transform 0.2s;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text);
    text-decoration: none;
}

.btn-play {
    background: var(--bg-card);
    color: var(--text) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-family: 'Marvel', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
}

.btn-register {
    background: var(--primary);
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.coins {
    color: var(--gold);
    font-weight: 600;
}

.nav-wallet {
    font-family: 'Marvel', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--bg-input);
    border: 1px solid var(--border);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-align: center;
    letter-spacing: 0.01em;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    text-decoration: none;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-input);
    text-decoration: none;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(34, 197, 94, 0.08));
    border-radius: 16px;
    margin-bottom: 2.5rem;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.countdown-display {
    font-family: 'Marvel', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

.slate-section {
    margin-bottom: 3rem;
    text-align: center;
}

.slate-section h2 {
    font-family: 'Marvel', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}

.slate-games {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    margin-top: 1.5rem;
}

.slate-game {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 200px;
    padding: 1.25rem 1rem;
    border-right: 1px solid var(--border);
}

.slate-game:last-child {
    border-right: none;
}

.slate-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.slate-team .team-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.55;
    transition: filter 0.2s, opacity 0.2s;
}

.slate-game:hover .team-logo {
    filter: grayscale(0%);
    opacity: 1;
}

.slate-team .team-abbr {
    font-family: 'Marvel', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.slate-vs {
    padding: 0 0.75rem;
}

.slate-vs .at-symbol {
    font-family: 'Marvel', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.4;
}

@media (max-width: 768px) {
    .slate-games {
        flex-direction: column;
        align-items: center;
    }
    .slate-game {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 1rem;
        width: 100%;
        max-width: 280px;
    }
    .slate-game:last-child {
        border-bottom: none;
    }
}

.house-lineup-section {
    margin-bottom: 3rem;
}

.house-lineup-section h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.subtitle {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.lineup-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.75rem;
    border: 1px solid var(--border);
}

.house-lineup {
    border: 2px solid var(--primary);
}

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

.lineup-table th,
.lineup-table td {
    padding: 1rem;
    text-align: left;
}

.lineup-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
    letter-spacing: 0.05em;
}

.lineup-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

.lineup-table .pos {
    font-weight: 600;
    color: var(--primary);
}

.lineup-table .name {
    font-weight: 500;
}

.lineup-table .salary {
    color: var(--accent);
}

.lineup-table .totals {
    font-weight: 700;
    border-top: 2px solid var(--border);
}

.positive {
    color: var(--accent);
}

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

.lineup-horizontal {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding: 1.25rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-card);
}

.lineup-horizontal::-webkit-scrollbar {
    height: 8px;
}

.lineup-horizontal::-webkit-scrollbar-track {
    background: var(--bg-card);
    border-radius: 4px;
}

.lineup-horizontal::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.player-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    min-width: 140px;
    max-width: 140px;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}

.player-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.player-image {
    margin-bottom: 0.75rem;
}

.player-image img {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    border: 2px solid var(--primary);
    object-fit: cover;
}

.player-position {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.player-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 0.35rem;
    line-height: 1.3;
    word-wrap: break-word;
}

.player-team {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.player-salary {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.player-fp {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
}

.player-fp.positive {
    color: var(--accent);
}

.player-fp.negative {
    color: var(--danger);
}

.lineup-totals {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border-radius: 8px;
    margin-top: 1.25rem;
    border: 1px solid var(--border);
}

.lineup-totals span {
    font-weight: 600;
}

.house-hint {
    text-align: center;
    color: #888;
    font-style: italic;
    margin-top: 0.75rem;
}

.house-hint-small {
    color: #999;
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 0.5rem;
}

.total-salary {
    color: var(--accent);
}

.total-proj {
    color: var(--primary);
}

.total-actual {
    color: var(--gold);
}

.features {
    margin-top: 3.5rem;
}

.features h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.75rem;
    letter-spacing: -0.01em;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 1.75rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.auth-card h1 {
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.auth-card > p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    padding: 0.875rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.auth-switch {
    text-align: center;
    margin-top: 1.75rem;
    color: var(--text-muted);
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
}

.leaderboard-page h1 {
    margin-bottom: 1.75rem;
    letter-spacing: -0.01em;
}

.period-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.tab {
    padding: 0.625rem 1.25rem;
    background: var(--bg-card);
    border-radius: 8px;
    color: var(--text-muted);
    border: 1px solid var(--border);
    font-weight: 500;
}

.tab:hover {
    text-decoration: none;
    background: var(--bg-input);
}

.tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.leaderboard-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--border);
    overflow-x: auto;
}

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

.leaderboard-table th,
.leaderboard-table td {
    padding: 1.125rem;
    text-align: left;
}

.leaderboard-table th {
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    letter-spacing: 0.02em;
}

.leaderboard-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.04);
}

.medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
}

.medal.gold {
    background: var(--gold);
    color: #fff;
}

.medal.silver {
    background: var(--silver);
    color: #fff;
}

.medal.bronze {
    background: var(--bronze);
    color: #fff;
}

.coach-awards {
    margin-top: 2.5rem;
}

.coach-awards h2 {
    margin-bottom: 1.25rem;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.25rem;
}

.award-card {
    background: var(--bg-card);
    padding: 1.75rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border);
}

.award-card h3 {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.award-name {
    font-size: 1.25rem;
    font-weight: 700;
}

.profile-page {
    max-width: 800px;
    margin: 0 auto;
    overflow-x: hidden;
}

.table-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -1rem;
    padding: 0 1rem;
}

.profile-header {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--primary);
}

.profile-info h1 {
    margin-bottom: 0.35rem;
}

.profile-info .username {
    color: var(--text-muted);
}

.profile-stats-summary {
    display: flex;
    gap: 2.5rem;
    margin-left: auto;
}

.profile-stats-summary .stat {
    text-align: center;
}

.profile-stats-summary .value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.profile-stats-summary .label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.profile-wallet {
    background: var(--bg-card);
    padding: 1.75rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    border: 2px solid var(--gold);
}

.coin-balance {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1.25rem;
}

.achievements-section,
.history-section {
    margin-bottom: 2.5rem;
}

.achievements-section h2,
.history-section h2 {
    margin-bottom: 1.25rem;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.badge-category {
    margin-bottom: 1.5rem;
}

.badge-category-label {
    font-family: 'Marvel', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--border);
}

.achievement-badge {
    background: var(--bg-card);
    padding: 0.75rem 0.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: default;
    position: relative;
}

.achievement-badge.earned {
    border-color: var(--text);
}

.achievement-badge.locked {
    opacity: 0.35;
    filter: grayscale(1);
}

.achievement-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.achievement-badge .icon {
    font-size: 1.75rem;
    display: block;
    margin-bottom: 0.4rem;
}

.achievement-badge .name {
    font-family: 'Marvel', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    display: block;
    line-height: 1.2;
    color: var(--text);
}

.achievement-badge.rarity-uncommon.earned {
    border-color: #0F9D58;
}
.achievement-badge.rarity-rare.earned {
    border-color: #1E3A8A;
}
.achievement-badge.rarity-epic.earned {
    border-color: #6D28D9;
}
.achievement-badge.rarity-legendary.earned {
    border-color: #D4AF37;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}
.achievement-badge.hidden-badge {
    opacity: 0.25;
    border-style: dashed;
}
.achievement-badge.hidden-badge .icon {
    font-size: 1.5rem;
    color: var(--text-muted);
}
.badge-rarity {
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    margin-top: 0.2rem;
}
.badge-rarity.rarity-uncommon {
    color: #0F9D58;
    background: rgba(15, 157, 88, 0.1);
}
.badge-rarity.rarity-rare {
    color: #1E3A8A;
    background: rgba(30, 58, 138, 0.1);
}
.badge-rarity.rarity-epic {
    color: #6D28D9;
    background: rgba(109, 40, 217, 0.1);
}
.badge-rarity.rarity-legendary {
    color: #D4AF37;
    background: rgba(212, 175, 55, 0.15);
}
.achievement-badge .earned-date {
    font-size: 0.6rem;
    color: var(--text-muted);
    display: block;
    margin-top: 0.25rem;
}

.entries-table {
    width: 100%;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.entries-table th,
.entries-table td {
    padding: 1.125rem;
    text-align: left;
}

.entries-table th {
    background: var(--bg-input);
    font-weight: 600;
}

.entries-table .win {
    color: var(--accent);
    font-weight: 600;
}

.entries-table .loss {
    color: var(--text-muted);
}

.play-page {
    max-width: 1400px;
    margin: 0 auto;
}

.play-header {
    margin-bottom: 1.5rem;
}

.play-header h1 {
    letter-spacing: -0.01em;
}

.play-container {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.play-container .lineup-side {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: none;
    padding: 0;
    background: none;
}

.salary-bar {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.25rem;
}

.salary-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.salary-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.salary-amount {
    font-size: 1rem;
    font-weight: 700;
}

.salary-remaining {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

.salary-remaining.over-cap {
    color: var(--danger);
}

.salary-progress-track {
    width: 100%;
    height: 6px;
    background: var(--bg-input);
    border-radius: 3px;
    margin: 0.5rem 0;
    overflow: hidden;
}

.salary-progress-fill {
    height: 100%;
    background: var(--text);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.salary-progress-fill.warning {
    background: #888;
}

.salary-progress-fill.over {
    background: var(--danger);
}

.roster-slots {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.25rem;
}

.roster-slots h3 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.roster-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.roster-slot {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.65rem;
    background: var(--bg-input);
    border-radius: 6px;
    border: 1px solid transparent;
    min-height: 42px;
    transition: all 0.15s ease;
}

.roster-slot .slot-label {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.roster-slot:not(.filled) {
    cursor: pointer;
}

.roster-slot:not(.filled):hover {
    border-color: var(--border);
    background: var(--bg-card);
}

.roster-slot.active-slot {
    border-color: #D72638;
    background: rgba(215, 38, 56, 0.08);
    box-shadow: 0 0 0 2px rgba(215, 38, 56, 0.15);
}

.roster-slot.active-slot .slot-label {
    color: #D72638;
}

.roster-slot.active-slot .slot-empty {
    color: #D72638;
    opacity: 0.8;
}

.roster-slot .slot-empty {
    color: var(--text-muted);
    font-size: 0.82rem;
    opacity: 0.5;
}

.roster-slot.filled {
    border-color: var(--border);
    background: var(--bg-card);
}

.roster-slot.filled .slot-label {
    color: var(--text);
}

.slot-filled {
    flex: 1;
    min-width: 0;
}

.slot-player-name {
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slot-player-info {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.slot-remove {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 22px;
    height: 22px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
}

.slot-remove:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
}

.roster-summary {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.summary-value {
    font-weight: 700;
}

.house-preview {
    background: var(--bg-card);
    padding: 1rem 1.25rem;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.house-preview h3 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.house-score {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.house-list {
    list-style: none;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.house-list li {
    padding: 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.house-pos {
    font-weight: 700;
    font-size: 0.7rem;
    color: var(--text-muted);
    width: 24px;
}

.house-fp {
    margin-left: auto;
    font-weight: 600;
    color: var(--text);
}

.player-pool-side {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.pool-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.pool-header h3 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.pool-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pool-search {
    flex: 1;
    min-width: 160px;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 0.85rem;
}

.pool-select {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 0.85rem;
}

.pool-table-wrapper {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.player-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.player-table th,
.player-table td {
    padding: 0.55rem 0.5rem;
    text-align: left;
}

.player-table th {
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 1;
    cursor: pointer;
    user-select: none;
}

.player-table th[data-sort]:hover {
    color: var(--text);
}

.player-table th.sort-asc::after { content: ' \u25B2'; font-size: 0.65rem; }
.player-table th.sort-desc::after { content: ' \u25BC'; font-size: 0.65rem; }

.player-table tbody tr {
    border-bottom: 1px solid var(--bg-input);
    transition: background 0.1s;
}

.player-table tbody tr:hover {
    background: var(--bg-input);
}

.player-table tbody tr.selected {
    opacity: 0.4;
    background: var(--bg-input);
}

.player-table tbody tr.locked {
    opacity: 0.35;
}

.player-table tbody tr.player-out {
    opacity: 0.45;
}

.pos-badge {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-muted);
}

.injury-tag {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.tag-out { background: #333; color: #fff; }
.tag-doubtful { background: #555; color: #fff; }
.tag-questionable { background: #888; color: #fff; }
.tag-gtd { background: #999; color: #fff; }
.tag-probable { background: #bbb; color: #333; }

.col-action { width: 36px; text-align: center; }
.col-pos { width: 50px; }
.col-status { width: 45px; }
.col-salary { text-align: right; }
.col-proj { text-align: right; font-weight: 600; }
.col-value { text-align: right; color: var(--text-muted); }

.matchup-text {
    font-size: 0.8rem;
}

.matchup-vs {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.game-time-small {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    opacity: 0.7;
}

.lock-icon {
    display: inline-block;
    font-size: 0.85rem;
    opacity: 0.6;
}

.add-btn {
    background: var(--text);
    color: var(--bg);
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    transition: all 0.15s;
}

.add-btn:hover {
    opacity: 0.8;
}

.add-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

.add-btn.remove-mode {
    background: var(--text-muted);
}

.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

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

@media (max-width: 900px) {
    .play-container {
        grid-template-columns: 1fr;
    }
    .play-container .lineup-side {
        position: static;
    }
    .pool-table-wrapper {
        max-height: 500px;
    }
}

.entry-page {
    max-width: 1000px;
    margin: 0 auto;
}

.entry-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.lineup-side {
    background: var(--bg-card);
    padding: 1.75rem;
    border-radius: 12px;
}

.your-side {
    border: 2px solid var(--accent);
}

.house-side {
    border: 2px solid var(--danger);
}

.lineup-side h2 {
    margin-bottom: 0.75rem;
}

.score-summary {
    margin-bottom: 1.25rem;
    display: flex;
    gap: 1.25rem;
}

.vs-divider {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
}

.result-banner {
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2.5rem;
}

.result-banner.win {
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid var(--accent);
    color: var(--accent);
}

.result-banner.loss {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid var(--danger);
    color: var(--danger);
}

.result-banner h2 {
    font-size: 1.75rem;
}

.shop-page h1 {
    margin-bottom: 0.5rem;
}

.shop-header {
    margin-bottom: 1.5rem;
}

.shop-header .balance {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.pillar-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.pillar-tab {
    flex: 1;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.75rem 0.5rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    transition: border-color 0.15s, color 0.15s;
    color: var(--text-muted);
}

.pillar-tab:hover {
    color: var(--text);
}

.pillar-tab.active {
    border-bottom-color: var(--text);
    color: var(--text);
}

.pillar-tab-icon {
    font-size: 1.25rem;
}

.pillar-tab-label {
    font-family: 'Marvel', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pillar-panel {
    display: none;
}

.pillar-panel.active {
    display: block;
}

.pillar-intro {
    margin-bottom: 1.5rem;
}

.pillar-intro p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.identity-section {
    margin-bottom: 2rem;
}

.identity-section > h3 {
    font-family: 'Marvel', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--border);
}

.coming-soon-panel {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.coming-soon-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.coming-soon-panel h3 {
    font-family: 'Marvel', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.coming-soon-panel > p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.roadmap-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: 320px;
    margin: 0 auto;
    text-align: left;
}

.roadmap-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.roadmap-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border);
    flex-shrink: 0;
}

.rarity-tag {
    font-family: 'Marvel', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.35rem;
    display: inline-block;
}

.rarity-common { background: var(--bg); color: var(--text-muted); }
.rarity-rare { background: #e3e8f0; color: #4a6fa5; }
.rarity-epic { background: #ede3f5; color: #7b4fad; }
.rarity-legendary { background: #fef3e0; color: #c78b25; }

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.75rem;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}

.shop-item {
    background: var(--bg-card);
    padding: 1.25rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.shop-item .preview {
    font-size: 3rem;
    margin-bottom: 1.25rem;
}

.shop-item h3 {
    margin-bottom: 0.75rem;
}

.shop-item .price {
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.shop-item .description {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.shop-item .btn-outline {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 0.3rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Marvel', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: border-color 0.15s, color 0.15s;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.shop-item .btn-outline:hover {
    border-color: var(--text);
    color: var(--text);
}

.shop-item .item-preview {
    margin-bottom: 0.75rem;
}

.shop-item .item-preview img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg);
}

.shop-item .theme-preview {
    height: 60px;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.shop-item .badge-preview {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Marvel', sans-serif;
    color: var(--text);
    background: var(--bg);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.shop-preview-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.shop-preview-overlay.active {
    display: flex;
}

.shop-preview-modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    text-align: center;
}

.shop-preview-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}

.shop-preview-close:hover {
    color: var(--text);
}

.shop-preview-content {
    margin-bottom: 1.5rem;
}

.shop-preview-info h2 {
    font-family: 'Marvel', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.shop-preview-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.shop-preview-info .price {
    color: var(--gold);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.preview-profile-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
}

.preview-avatar-wrap img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    background: var(--bg-card);
}

.preview-profile-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.preview-username {
    font-family: 'Righteous', cursive;
    font-size: 1.1rem;
    color: var(--text);
}

.preview-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.preview-theme-demo {
    border-radius: 12px;
    padding: 2rem 1.5rem;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-theme-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.preview-theme-title {
    font-family: 'Righteous', cursive;
    font-size: 1.1rem;
    color: #fff;
}

.preview-theme-sub {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.75);
}

.preview-badge-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.preview-badge-large {
    font-family: 'Marvel', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    background: var(--bg);
    padding: 0.75rem 2rem;
    border-radius: 10px;
    border: 2px solid var(--border);
    letter-spacing: 0.05em;
}

.preview-badge-context {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 1rem;
}

.preview-badge-tag {
    font-family: 'Marvel', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    color: var(--text-muted);
}

.your-entry {
    background: var(--bg-card);
    padding: 1.75rem;
    border-radius: 12px;
    border: 2px solid var(--accent);
    margin-top: 2rem;
    text-align: center;
}

.your-entry h3 {
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.your-entry .result {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1rem 0;
}

.your-entry .result.win {
    color: var(--accent);
}

.your-entry .result.loss {
    color: var(--danger);
}

.no-contest {
    text-align: center;
    padding: 4rem 2rem;
}

.no-data {
    color: var(--text-muted);
    text-align: center;
    padding: 2.5rem;
}

.footer {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}

@media (max-width: 900px) {
    .play-container {
        grid-template-columns: 1fr;
    }
    
    .lineup-builder {
        grid-template-columns: 1fr;
    }
    
    .house-preview,
    .your-lineup {
        position: static;
    }
    
    .entry-comparison {
        grid-template-columns: 1fr auto 1fr;
        gap: 0.5rem;
    }
    
    .lineup-side {
        padding: 0.75rem;
        overflow-x: auto;
    }
    
    .lineup-side h2 {
        font-size: 0.95rem;
    }
    
    .score-summary {
        flex-direction: column;
        gap: 0.25rem;
        font-size: 0.75rem;
    }
    
    .lineup-table th,
    .lineup-table td {
        padding: 0.3rem 0.25rem;
        font-size: 0.65rem;
        white-space: nowrap;
    }
    
    .vs-divider {
        font-size: 0.9rem;
        padding: 0 0.15rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .navbar {
        position: relative;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        margin-left: 0;
        z-index: 200;
    }

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

    .nav-links a,
    .nav-links .user-menu {
        padding: 0.75rem 1.5rem;
        width: 100%;
        box-sizing: border-box;
    }

    .nav-links a:hover {
        background: rgba(0, 0, 0, 0.03);
    }

    .nav-links .btn-play {
        border-radius: 0;
        border: none;
        background: transparent;
        text-align: left;
        font-size: inherit;
        font-weight: 500;
        color: var(--text-muted) !important;
        padding: 0.75rem 1.5rem;
    }

    .user-menu {
        flex-direction: column;
        gap: 0 !important;
        padding: 0 !important;
    }

    .user-menu span,
    .user-menu a {
        padding: 0.75rem 1.5rem;
    }
}

@media (max-width: 600px) {
    .entry-comparison {
        grid-template-columns: 1fr auto 1fr;
        gap: 0.25rem;
    }
    
    .lineup-side {
        padding: 0.5rem;
    }
    
    .lineup-side h2 {
        font-size: 0.8rem;
    }
    
    .score-summary {
        font-size: 0.65rem;
    }
    
    .lineup-table th,
    .lineup-table td {
        padding: 0.2rem 0.15rem;
        font-size: 0.55rem;
    }
    
    .vs-divider {
        font-size: 0.75rem;
        padding: 0 0.1rem;
    }
    
    .entry-page h1 {
        font-size: 1.25rem;
    }
    
    .live-banner {
        padding: 10px;
    }
    
    .live-indicator {
        font-size: 0.65rem;
    }
    
    #live-status-text {
        font-size: 0.7rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-stats-summary {
        margin-left: 0;
    }
}

/* Trends Page */
.trends-page {
    padding: 2rem 0;
}

.trends-page .page-title {
    font-family: 'Righteous', cursive;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.trends-page .page-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.trends-section {
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.trends-section h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
}

.chart-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.chart-container {
    text-align: center;
    overflow-x: auto;
}

.trend-chart {
    max-width: 100%;
    height: auto;
    border: 2px solid #000;
    border-radius: 4px;
}

.trend-chart.dvp-heatmap {
    max-width: 600px;
}

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

.table-controls {
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.table-search {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    width: 250px;
    font-family: 'Marvel', sans-serif;
}

.table-search:focus {
    outline: none;
    border-color: var(--primary);
}

th[data-sortable] {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 1.5rem !important;
}

th[data-sortable]:hover {
    background: #333 !important;
}

th[data-sortable]::after {
    content: '⇅';
    position: absolute;
    right: 0.5rem;
    opacity: 0.5;
    font-size: 12px;
}

th[data-sortable].sort-asc::after {
    content: '↑';
    opacity: 1;
}

th[data-sortable].sort-desc::after {
    content: '↓';
    opacity: 1;
}

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

.value-table th,
.value-table td,
.props-table th,
.props-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.value-table th,
.props-table th {
    background: var(--primary);
    color: white;
    font-weight: bold;
}

.value-table tr:hover,
.props-table tr:hover {
    background: var(--bg-input);
}

.value-cell {
    font-weight: bold;
    color: var(--primary);
}

.positive-value {
    font-weight: bold;
    color: #4caf50;
}

.negative-value {
    font-weight: bold;
    color: #f44336;
}

.dva-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.dva-mode-btn {
    font-family: 'Marvel', sans-serif;
    font-size: 0.9rem;
    padding: 6px 16px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #6b7280;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.dva-mode-btn.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

.dva-table-wrapper {
    margin-bottom: 16px;
}

.dva-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Marvel', sans-serif;
    font-size: 0.82rem;
    table-layout: fixed;
}

.dva-table thead th {
    background: #111;
    color: #fff;
    padding: 8px 4px;
    text-align: center;
    font-weight: 600;
    font-size: 0.78rem;
    position: sticky;
    top: 0;
    z-index: 2;
    white-space: nowrap;
}

.dva-team-col {
    width: 50px;
}

.dva-arch-col {
    min-width: 60px;
}

.dva-team-cell {
    font-weight: 700;
    background: #f3f4f6;
    padding: 6px 8px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.dva-cell {
    padding: 6px 3px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
    font-size: 0.78rem;
    cursor: default;
    transition: opacity 0.15s;
}

.dva-cell:hover {
    opacity: 0.85;
}

.dva-tooltip-wrap {
    position: absolute;
    z-index: 9999;
    pointer-events: none;
}

.dva-tooltip {
    background: #111;
    color: #eee;
    border-radius: 8px;
    padding: 12px 14px;
    font-family: 'Marvel', sans-serif;
    font-size: 0.82rem;
    min-width: 220px;
    max-width: 260px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.dva-tooltip-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #fff;
}

.dva-tooltip-row {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
}

.dva-tooltip-divider {
    border-top: 1px solid #333;
    margin: 6px 0;
}

.dva-tooltip-subtitle {
    font-weight: 700;
    font-size: 0.78rem;
    color: #aaa;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dva-pos { color: #34d399; }
.dva-neg { color: #fb7185; }

.scheme-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.scheme-select {
    font-family: 'Marvel', sans-serif;
    font-size: 1rem;
    padding: 8px 14px;
    border: 2px solid #111827;
    border-radius: 6px;
    background: #fff;
    color: #111827;
    font-weight: 700;
    cursor: pointer;
    min-width: 120px;
}

.scheme-toggle {
    display: flex;
    gap: 0;
}

.scheme-mode-btn {
    font-family: 'Marvel', sans-serif;
    font-size: 0.85rem;
    padding: 6px 14px;
    border: 1.5px solid #d1d5db;
    background: #fff;
    color: #6b7280;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s;
}

.scheme-mode-btn:first-child { border-radius: 6px 0 0 6px; }
.scheme-mode-btn:last-child { border-radius: 0 6px 6px 0; border-left: 0; }

.scheme-mode-btn.active {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

.scheme-chart-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 12px;
}

.scheme-radar-wrap,
.scheme-bar-wrap {
    position: relative;
    height: 360px;
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
}

.def-scheme-chart-wrap {
    position: relative;
    height: 360px;
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
}

.scheme-summary,
.def-scheme-summary {
    margin-top: 8px;
}

.scheme-bar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    justify-content: center;
    padding: 12px 0;
    margin: 4px 0;
}

.sbl-item {
    font-family: 'Marvel', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sbl-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

.sbl-line {
    width: 16px;
    height: 3px;
    border-radius: 2px;
}

.scheme-insight {
    font-family: 'Marvel', sans-serif;
    font-size: 0.95rem;
    color: #374151;
    background: #f9fafb;
    border-left: 3px solid #111827;
    padding: 10px 14px;
    border-radius: 0 6px 6px 0;
    line-height: 1.5;
}

.cluster-chart-wrapper {
    position: relative;
    width: 100%;
    height: 420px;
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
}

.cluster-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 8px 0;
    justify-content: center;
}

.cluster-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Marvel', sans-serif;
    font-size: 0.88rem;
    color: #374151;
    cursor: pointer;
    padding: 3px 8px;
    border-radius: 6px;
    transition: opacity 0.2s;
    user-select: none;
}

.cluster-legend-item:hover {
    background: #f3f4f6;
}

.cluster-legend-dimmed {
    opacity: 0.35;
}

.cluster-legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cluster-legend-count {
    color: #9ca3af;
    font-size: 0.8rem;
}

.def-shot-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    padding: 0 8px;
}

.def-shot-team-label {
    font-family: 'Marvel', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.def-shot-fga-label {
    font-size: 0.9rem;
    color: #888;
    font-weight: 500;
}

.def-shot-canvas-wrap {
    text-align: center;
    margin: 0 auto;
    max-width: 500px;
}

#def-shot-chart-canvas {
    max-width: 100%;
    height: auto;
}

.def-shot-zone-stats {
    margin-top: 16px;
    overflow-x: auto;
}

.def-shot-zone-stats table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.def-shot-zone-stats th,
.def-shot-zone-stats td {
    padding: 8px 10px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.def-shot-zone-stats th {
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.3px;
    border-bottom: 2px solid #ddd;
}

.def-shot-zone-stats .freq-diff-pos { color: #d72638; font-weight: 700; }
.def-shot-zone-stats .freq-diff-neg { color: #1e3a8a; font-weight: 700; }
.def-shot-zone-stats .fg-diff-pos { color: #d72638; }
.def-shot-zone-stats .fg-diff-neg { color: #0f9d58; }

.def-shot-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 14px;
    flex-wrap: wrap;
}

.dsl-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #666;
}

.dsl-dot {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    display: inline-block;
}

.archetype-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.archetype-combo-guard,
.archetype-combo-guard-elite {
    background: #e3f2fd;
    color: #1565c0;
    border-color: #90caf9;
}

.archetype-playmaker,
.archetype-playmaker-elite {
    background: #ede7f6;
    color: #4527a0;
    border-color: #b39ddb;
}

.archetype-scoring-wing {
    background: #fce4ec;
    color: #c62828;
    border-color: #ef9a9a;
}

.archetype-3-and-d-wing,
.archetype-3-and-d-wing-role {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: #a5d6a7;
}

.archetype-point-forward {
    background: #fff3e0;
    color: #e65100;
    border-color: #ffcc80;
}

.archetype-stretch-big {
    background: #e0f7fa;
    color: #00695c;
    border-color: #80cbc4;
}

.archetype-traditional-big {
    background: #efebe9;
    color: #4e342e;
    border-color: #bcaaa4;
}

.archetype-versatile-big {
    background: #f3e5f5;
    color: #6a1b9a;
    border-color: #ce93d8;
}

.archetype-athletic-wing {
    background: #fff8e1;
    color: #f57f17;
    border-color: #ffe082;
}

.archetype-point-center {
    background: #e8eaf6;
    color: #283593;
    border-color: #9fa8da;
}

.edge-cell {
    font-weight: bold;
    color: #000;
}

.fp-positive {
    font-weight: bold;
    color: #166534;
}

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

.ownership-table th,
.ownership-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.ownership-table th {
    background: var(--primary);
    color: white;
    font-weight: bold;
}

.ownership-table tr:hover {
    background: var(--bg-input);
}

.chalk-high {
    font-weight: bold;
    color: #991b1b;
    background: #fef2f2;
}

.chalk-med {
    font-weight: bold;
    color: #92400e;
    background: #fffbeb;
}

.chalk-low {
    color: #166534;
}

.fp-negative {
    font-weight: bold;
    color: #dc2626;
}

.fp-neutral {
    font-weight: bold;
    color: #000;
}

.over-cell {
    font-weight: bold;
    background: #000;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    display: inline-block;
}

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

.targeted-table th,
.targeted-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.targeted-table th {
    background: var(--primary);
    color: white;
    font-weight: bold;
}

.targeted-table tr:hover {
    background: var(--bg-input);
}

.matchup-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

.trends-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.refresh-form {
    margin: 0;
}

.refresh-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

.under-cell {
    color: #666;
    font-weight: bold;
}

.trend-btn-cell {
    padding: 0.25rem 0.5rem !important;
    text-align: center;
    border-bottom: none !important;
    background: transparent !important;
}

.trend-analysis-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.trend-analysis-btn:hover {
    color: #111827;
    background: #f3f4f6;
}

.trend-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trend-modal {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 560px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.trend-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.trend-modal-header h3 {
    font-family: 'Marvel', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.trend-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.trend-modal-close:hover {
    color: #111827;
}

.trend-modal-body {
    padding: 1.25rem 1.5rem;
    height: 280px;
}

.trend-modal-legend {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    padding: 0.6rem 1.5rem 0;
    font-family: 'Marvel', sans-serif;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend-line {
    display: inline-block;
    width: 20px;
    height: 0;
    border-top: 2px dashed;
}

.legend-blue {
    border-color: #2563eb;
}

.legend-grey {
    border-color: #6b7280;
}

.trend-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    font-family: 'Marvel', sans-serif;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.trend-call-over {
    font-weight: bold;
    background: #111827;
    color: #fff;
    padding: 0.2rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.trend-call-under {
    font-weight: bold;
    color: #666;
    padding: 0.2rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    border: 1px solid #d1d5db;
}

.props-table th:last-child {
    width: 50px;
    min-width: 50px;
}

.props-table td:last-child {
    border-bottom: 1px solid var(--border);
}

/* Mobile fixes for trends page */
@media (max-width: 768px) {
    .value-table,
    .props-table,
    .targeted-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .value-table table,
    .props-table table,
    .targeted-table table {
        min-width: 600px;
        font-size: 12px;
    }
    
    .value-table th,
    .value-table td,
    .props-table th,
    .props-table td,
    .targeted-table th,
    .targeted-table td {
        padding: 6px 8px;
        white-space: nowrap;
    }
    
    .chart-container img {
        max-width: 100%;
        height: auto;
    }
    
    .trends-section h2 {
        font-size: 1.3rem;
    }
}

/* History Page */
.history-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.history-page h1 {
    margin-bottom: 1.5rem;
}

.history-stats-bar {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
}

.history-stat {
    flex: 1;
    min-width: 80px;
    text-align: center;
}

.history-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.history-stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.win-text {
    color: var(--accent);
}

.loss-text {
    color: var(--danger);
}

.history-card {
    background: var(--bg-card);
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    overflow: hidden;
}

.history-card.history-win {
    border-left: 4px solid var(--accent);
}

.history-card.history-loss {
    border-left: 4px solid var(--danger);
}

.history-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: background 0.2s;
}

.history-card-header:hover {
    background: rgba(255, 255, 255, 0.03);
}

.history-card-date {
    font-weight: 700;
    min-width: 100px;
}

.history-card-result {
    min-width: 70px;
}

.result-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.result-badge.win {
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.result-badge.loss {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.result-badge.pending {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.history-card-scores {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.history-card-scores .your-score {
    color: var(--accent);
    font-weight: 600;
}

.history-card-scores .score-vs {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.history-card-scores .house-score {
    color: var(--danger);
    font-weight: 600;
}

.history-card-coins {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.85rem;
    min-width: 80px;
    text-align: right;
}

.history-card-toggle {
    color: var(--text-muted);
    transition: transform 0.3s;
}

.history-card.expanded .history-card-toggle {
    transform: rotate(180deg);
}

.history-card-body {
    display: none;
    border-top: 1px solid var(--border);
    padding: 1.25rem;
}

.history-card.expanded .history-card-body {
    display: block;
}

.history-lineups {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.history-lineup h3 {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.your-history h3 {
    color: var(--accent);
}

.house-history h3 {
    color: var(--danger);
}

.history-lineup-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.history-lineup-table th {
    text-align: left;
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.history-lineup-table td {
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.history-lineup-table tfoot td {
    border-top: 1px solid var(--border);
    border-bottom: none;
    padding-top: 0.5rem;
}

.history-card-actions {
    margin-top: 1rem;
    text-align: right;
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
}

@media (max-width: 600px) {
    .history-card-header {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .history-card-date {
        min-width: auto;
        font-size: 0.85rem;
    }
    
    .history-card-scores {
        font-size: 0.8rem;
    }
    
    .history-card-coins {
        font-size: 0.75rem;
        min-width: auto;
    }
    
    .history-lineups {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    
    .history-lineup-table th,
    .history-lineup-table td {
        padding: 0.25rem 0.2rem;
        font-size: 0.6rem;
    }
    
    .history-lineup h3 {
        font-size: 0.8rem;
    }
    
    .history-stats-bar {
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .history-stat-value {
        font-size: 1.1rem;
    }
    
    .history-stat-label {
        font-size: 0.6rem;
    }
}

@media (max-width: 768px) {
    .cluster-chart-wrapper {
        height: 360px;
        padding: 6px;
    }

    .cluster-legend {
        gap: 4px 10px;
    }

    .cluster-legend-item {
        font-size: 0.75rem;
        padding: 2px 5px;
    }

    .cluster-legend-dot {
        width: 8px;
        height: 8px;
    }

    .cluster-legend-count {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .cluster-chart-wrapper {
        height: 300px;
        padding: 4px;
    }

    .cluster-legend {
        gap: 3px 6px;
    }

    .cluster-legend-item {
        font-size: 0.7rem;
        padding: 2px 4px;
    }
}

@media (max-width: 768px) {
    .scheme-chart-row {
        grid-template-columns: 1fr;
    }
    .scheme-radar-wrap,
    .scheme-bar-wrap,
    .def-scheme-chart-wrap {
        height: 300px;
    }
    .scheme-controls {
        gap: 10px;
    }
    .scheme-select {
        font-size: 0.9rem;
        padding: 6px 10px;
        min-width: 90px;
    }
}

/* Avatar Emblem System */
.avatar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.avatar-emblem {
    position: relative;
    width: 128px;
    height: 128px;
}

.avatar-emblem .avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-emblem .rank-frame {
    position: absolute;
    top: -8%;
    left: -8%;
    width: 116%;
    height: 116%;
    pointer-events: none;
    z-index: 2;
}

.rank-label {
    font-family: 'Marvel', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 2px 10px;
    border-radius: 4px;
}

.rank-bronze { color: #CD7F32; }
.rank-silver { color: #A8A9AD; }
.rank-gold { color: #D4AF37; }
.rank-diamond { color: #00BFFF; }
.rank-master { color: #6D28D9; }
.rank-grandmaster { color: #D72638; }
.rank-champion { color: #D4AF37; text-shadow: 0 0 8px rgba(212, 175, 55, 0.3); }

/* Leaderboard Avatar */
.coach-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.leaderboard-avatar {
    position: relative;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.lb-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.lb-rank-frame {
    position: absolute;
    top: -12%;
    left: -12%;
    width: 124%;
    height: 124%;
    pointer-events: none;
}

/* Shop Avatar Items - circular display */
.shop-item[data-category="avatar"] .item-preview img {
    border-radius: 50%;
    background: #fff;
}

/* Rarity tag colors */
.rarity-uncommon { color: #0F9D58; border-color: #0F9D58; }
.rarity-rare { color: #1E3A8A; border-color: #1E3A8A; }
.rarity-epic { color: #6D28D9; border-color: #6D28D9; }
.rarity-legendary { color: #D4AF37; border-color: #D4AF37; }

/* Theme Swatch Preview */
.theme-swatch {
    width: 100%;
    height: 80px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Badge Preview Card */
.badge-preview-card {
    width: 100%;
    height: 80px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-input);
}

/* Equipped State */
.shop-item.equipped {
    border: 2px solid #0F9D58;
    position: relative;
}

.equipped-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #0F9D58;
    color: #fff;
    margin-bottom: 0.25rem;
}

/* Seasonal Tag */
.seasonal-tag {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #6D28D9;
    color: #fff;
    margin-left: 0.25rem;
}

/* Section Hint */
.section-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    margin-top: -0.25rem;
}

/* Cosmetic Badge Row on Profile */
.cosmetic-badge-row {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.35rem;
    margin-bottom: 0.25rem;
}

.cosmetic-tag {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1.5px solid var(--text-muted);
    color: var(--text-muted);
}

.cosmetic-tag.rarity-common { border-color: #6b7280; color: #6b7280; }
.cosmetic-tag.rarity-uncommon { border-color: #0F9D58; color: #0F9D58; }
.cosmetic-tag.rarity-rare { border-color: #1E3A8A; color: #1E3A8A; }
.cosmetic-tag.rarity-epic { border-color: #6D28D9; color: #6D28D9; }
.cosmetic-tag.rarity-legendary { border-color: #D4AF37; color: #D4AF37; background: rgba(212,175,55,0.08); }

/* Pulse glow animation for animated badges */
@keyframes pulse-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
