/* Trophy Case Page Styles
 * Transforms the player profile into a Personal Hall of Fame
 * Two-zone aesthetic: Trophy Room (Awards) + Badge Collection (Achievements)
 *
 * Visual Refresh v2: Cinematic presentation with staggered animations
 */

/* ============================================
   CUSTOM PROPERTIES
   ============================================ */
:root {
    /* Trophy styling (Awards) */
    --trophy-gold: #d4af37;
    --trophy-silver: #c0c0c0;
    --trophy-bronze: #cd7f32;
    --trophy-glow: rgba(212, 175, 55, 0.3);
    --trophy-gold-rgb: 212, 175, 55;

    /* Rarity colors (Achievements) */
    --rarity-legendary: #fbbf24;
    --rarity-legendary-glow: rgba(251, 191, 36, 0.4);
    --rarity-epic: #a855f7;
    --rarity-epic-glow: rgba(168, 85, 247, 0.35);
    --rarity-rare: #3b82f6;
    --rarity-rare-glow: rgba(59, 130, 246, 0.3);
    --rarity-common: #10b981;
    --rarity-common-glow: rgba(16, 185, 129, 0.25);

    /* Animation timing */
    --profile-animation-duration: 0.6s;
    --profile-stagger-delay: 0.1s;
}

/* Dark mode adjustments */
[data-bs-theme="dark"] {
    --trophy-glow: rgba(212, 175, 55, 0.4);
    --rarity-legendary-glow: rgba(251, 191, 36, 0.5);
    --rarity-epic-glow: rgba(168, 85, 247, 0.45);
    --rarity-rare-glow: rgba(59, 130, 246, 0.4);
    --rarity-common-glow: rgba(16, 185, 129, 0.35);
}

/* ============================================
   PAGE LOAD ANIMATIONS
   ============================================ */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes subtlePulse {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes avatarRingPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(var(--trophy-gold-rgb), 0.4),
                    0 4px 12px var(--trophy-glow);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(var(--trophy-gold-rgb), 0),
                    0 4px 16px var(--trophy-glow);
    }
}

@keyframes tileShine {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

/* ============================================
   TROPHY COMPOSITE HERO SECTION
   ============================================ */
.trophy-composite {
    position: relative;
    background: linear-gradient(135deg, var(--theme-surface-1), var(--theme-surface-2));
    border: 1px solid var(--theme-border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--theme-shadow-lg);
    overflow: hidden;
    animation: fadeSlideUp var(--profile-animation-duration) ease-out;
}

/* Subtle ambient glow behind hero section */
.trophy-composite::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 100%;
    background: radial-gradient(ellipse at center,
        rgba(var(--trophy-gold-rgb), 0.06) 0%,
        transparent 60%);
    pointer-events: none;
    animation: subtlePulse 6s ease-in-out infinite;
}

.trophy-composite-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin-bottom: 1.75rem;
}

.profile-avatar-container {
    flex-shrink: 0;
    position: relative;
}

/* Enlarged avatar with animated ring */
.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--trophy-gold);
    box-shadow: 0 4px 12px var(--trophy-glow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
    animation: avatarRingPulse 1.5s ease-in-out;
}

.profile-info {
    flex-grow: 1;
    position: relative;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Larger, more dramatic name */
.profile-name {
    font-size: 2rem;
    font-weight: 800;
    color: var(--theme-text-primary);
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.profile-meta {
    color: var(--theme-text-secondary);
    font-size: 0.95rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

/* Rating badge with gradient background */
.profile-rating {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--trophy-gold);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg,
        rgba(var(--trophy-gold-rgb), 0.15),
        rgba(var(--trophy-gold-rgb), 0.08));
    border: 1px solid rgba(var(--trophy-gold-rgb), 0.3);
    border-radius: 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-rating:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--trophy-gold-rgb), 0.25);
}

.profile-rating i {
    font-size: 0.9rem;
}

/* Key Info Tiles */
.key-info-tiles {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 991.98px) {
    .key-info-tiles {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .key-info-tiles {
        grid-template-columns: 1fr;
    }

    .trophy-composite-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
    }

    .profile-name {
        font-size: 1.5rem;
    }
}

.key-info-tile {
    position: relative;
    background: var(--theme-surface-2);
    border: 1px solid var(--theme-border-color);
    border-radius: 10px;
    padding: 1.25rem 1rem;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
    /* Staggered animation */
    opacity: 0;
    animation: fadeSlideUp 0.5s ease-out forwards;
}

/* Staggered delays for tiles */
.key-info-tile:nth-child(1) { animation-delay: 0.15s; }
.key-info-tile:nth-child(2) { animation-delay: 0.25s; }
.key-info-tile:nth-child(3) { animation-delay: 0.35s; }
.key-info-tile:nth-child(4) { animation-delay: 0.45s; }

/* Shine effect on hover */
.key-info-tile::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.08),
        transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.key-info-tile:hover::after {
    left: 150%;
}

.key-info-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.key-info-tile-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--theme-text-muted);
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.key-info-tile-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--theme-text-primary);
    line-height: 1;
}

.key-info-tile-context {
    font-size: 0.8rem;
    color: var(--theme-text-secondary);
    margin-top: 0.35rem;
}

/* Tile variants with enhanced styling */
.key-info-tile--gold {
    border-color: rgba(var(--trophy-gold-rgb), 0.3);
}

.key-info-tile--gold .key-info-tile-value {
    color: var(--trophy-gold);
    text-shadow: 0 0 20px rgba(var(--trophy-gold-rgb), 0.3);
}

.key-info-tile--gold:hover {
    border-color: rgba(var(--trophy-gold-rgb), 0.5);
    box-shadow: 0 8px 24px rgba(var(--trophy-gold-rgb), 0.15);
}

.key-info-tile--success .key-info-tile-value {
    color: var(--theme-success);
}

.key-info-tile--success:hover {
    border-color: var(--theme-success);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.trophy-section {
    margin-bottom: 2.5rem;
    /* Staggered section animations */
    opacity: 0;
    animation: fadeSlideUp 0.5s ease-out forwards;
}

/* Staggered delays for sections */
.trophy-section:nth-of-type(1) { animation-delay: 0.3s; }
.trophy-section:nth-of-type(2) { animation-delay: 0.4s; }
.trophy-section:nth-of-type(3) { animation-delay: 0.5s; }
.trophy-section:nth-of-type(4) { animation-delay: 0.6s; }
.trophy-section:nth-of-type(5) { animation-delay: 0.7s; }

.trophy-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--theme-border-color);
    margin-bottom: 1.5rem;
    position: relative;
}

.trophy-section-title {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--theme-text-primary);
    margin: 0;
    padding-left: 1rem;
}

/* Gold accent bar on section titles */
.trophy-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    min-height: 20px;
    background: linear-gradient(180deg, var(--trophy-gold), var(--trophy-bronze));
    border-radius: 2px;
}

.trophy-section-title i {
    color: var(--trophy-gold);
    transition: transform 0.3s ease;
}

.trophy-section-header:hover .trophy-section-title i {
    transform: scale(1.15);
}

.trophy-section-count {
    font-size: 0.85rem;
    color: var(--theme-text-muted);
    background: var(--theme-surface-2);
    padding: 0.35rem 0.85rem;
    border-radius: 2rem;
    font-weight: 600;
}

/* ============================================
   TROPHY ROOM (AWARDS)
   ============================================ */
.trophy-room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.trophy-card {
    position: relative;
    background: linear-gradient(135deg, var(--theme-surface-1), var(--theme-surface-2));
    border: 2px solid var(--trophy-gold);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.trophy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--trophy-gold), var(--trophy-bronze), var(--trophy-gold));
}

.trophy-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--trophy-glow);
}

.trophy-icon-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.2));
    border-radius: 50%;
    border: 2px solid var(--trophy-gold);
}

.trophy-icon {
    font-size: 2.5rem;
    color: var(--trophy-gold);
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
}

.trophy-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.trophy-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--theme-text-primary);
    margin-bottom: 0.25rem;
}

.trophy-league {
    font-size: 0.85rem;
    color: var(--trophy-gold);
    margin-bottom: 0.5rem;
}

.trophy-league a {
    color: inherit;
    text-decoration: none;
}

.trophy-league a:hover {
    text-decoration: underline;
}

.trophy-description {
    font-size: 0.85rem;
    color: var(--theme-text-secondary);
    font-style: italic;
}

.trophy-score {
    font-size: 0.8rem;
    color: var(--theme-text-muted);
    margin-top: 0.5rem;
}

/* Trophy card categories */
.trophy-card--performance::before {
    background: linear-gradient(90deg, var(--theme-success), var(--trophy-gold), var(--theme-success));
}

.trophy-card--consistency::before {
    background: linear-gradient(90deg, var(--theme-info), var(--trophy-gold), var(--theme-info));
}

.trophy-card--achievement::before {
    background: linear-gradient(90deg, var(--rarity-epic), var(--trophy-gold), var(--rarity-epic));
}

.trophy-card--community::before {
    background: linear-gradient(90deg, var(--theme-warning), var(--trophy-gold), var(--theme-warning));
}

/* ============================================
   BADGE COLLECTION (ACHIEVEMENTS)
   ============================================ */
.badge-collection-progress {
    margin-bottom: 1.5rem;
}

.badge-progress-bar {
    height: 8px;
    background: var(--theme-surface-3);
    border-radius: 4px;
    overflow: hidden;
}

.badge-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--rarity-common), var(--rarity-rare), var(--rarity-epic), var(--rarity-legendary));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.badge-progress-text {
    font-size: 0.875rem;
    color: var(--theme-text-secondary);
    margin-top: 0.5rem;
    text-align: right;
}

/* Achievement tier sections */
.achievement-tier {
    margin-bottom: 2rem;
}

.achievement-tier:last-child {
    margin-bottom: 0;
}

.achievement-tier-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--theme-border-color);
}

.achievement-tier-icon {
    font-size: 1rem;
}

.achievement-tier-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--theme-text-primary);
}

.achievement-tier-count {
    font-size: 0.8rem;
    color: var(--theme-text-muted);
    margin-left: auto;
}

/* Tier-specific header colors */
.achievement-tier--legendary .achievement-tier-header {
    border-bottom-color: var(--rarity-legendary);
}

.achievement-tier--legendary .achievement-tier-icon,
.achievement-tier--legendary .achievement-tier-name {
    color: var(--rarity-legendary);
}

.achievement-tier--epic .achievement-tier-header {
    border-bottom-color: var(--rarity-epic);
}

.achievement-tier--epic .achievement-tier-icon,
.achievement-tier--epic .achievement-tier-name {
    color: var(--rarity-epic);
}

.achievement-tier--rare .achievement-tier-header {
    border-bottom-color: var(--rarity-rare);
}

.achievement-tier--rare .achievement-tier-icon,
.achievement-tier--rare .achievement-tier-name {
    color: var(--rarity-rare);
}

.achievement-tier--common .achievement-tier-header {
    border-bottom-color: var(--rarity-common);
}

.achievement-tier--common .achievement-tier-icon,
.achievement-tier--common .achievement-tier-name {
    color: var(--rarity-common);
}

/* Achievement badge grid */
.badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

/* Badge card base */
.badge-card {
    position: relative;
    background: var(--theme-surface-1);
    border: 2px solid var(--theme-border-color);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    cursor: pointer;
}

.badge-card:hover {
    transform: translateY(-4px);
}

.badge-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Badge icon */
.badge-icon-container {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--theme-surface-2);
    transition: transform 0.2s ease;
}

.badge-card:hover .badge-icon-container {
    transform: scale(1.05);
}

.badge-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.badge-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--theme-text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.badge-date {
    font-size: 0.75rem;
    color: var(--theme-text-muted);
}

/* Rarity-based badge styling */
.badge-card--legendary {
    border-color: var(--rarity-legendary);
    box-shadow: 0 0 16px var(--rarity-legendary-glow);
}

.badge-card--legendary:hover {
    box-shadow: 0 4px 24px var(--rarity-legendary-glow);
}

.badge-card--legendary .badge-icon-container {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.25));
    border: 1px solid var(--rarity-legendary);
}

.badge-card--epic {
    border-color: var(--rarity-epic);
    box-shadow: 0 0 12px var(--rarity-epic-glow);
}

.badge-card--epic:hover {
    box-shadow: 0 4px 20px var(--rarity-epic-glow);
}

.badge-card--epic .badge-icon-container {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(168, 85, 247, 0.2));
    border: 1px solid var(--rarity-epic);
}

.badge-card--rare {
    border-color: var(--rarity-rare);
    box-shadow: 0 0 8px var(--rarity-rare-glow);
}

.badge-card--rare:hover {
    box-shadow: 0 4px 16px var(--rarity-rare-glow);
}

.badge-card--rare .badge-icon-container {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.15));
    border: 1px solid var(--rarity-rare);
}

.badge-card--common {
    border-color: var(--rarity-common);
    box-shadow: 0 0 4px var(--rarity-common-glow);
}

.badge-card--common:hover {
    box-shadow: 0 4px 12px var(--rarity-common-glow);
}

.badge-card--common .badge-icon-container {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.15));
    border: 1px solid var(--rarity-common);
}

/* Shimmer animation for Legendary badges */
.badge-card--legendary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
            45deg,
            transparent 30%,
            rgba(255, 215, 0, 0.15) 50%,
            transparent 70%
    );
    animation: shimmer 4s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .badge-card--legendary::before {
        animation: none;
    }

    .trophy-composite,
    .trophy-composite::before,
    .trophy-section,
    .key-info-tile,
    .badge-card,
    .trophy-card,
    .profile-avatar {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .key-info-tile::after {
        display: none;
    }

    .badge-card,
    .trophy-card,
    .key-info-tile,
    .profile-rating,
    .profile-avatar {
        transition: none;
    }
}

/* ============================================
   BAG TAG COLLECTION
   ============================================ */
.bag-tag-section {
    margin-bottom: 2rem;
}

.featured-tag-container {
    margin-bottom: 1.5rem;
}

.featured-tag-card {
    display: flex;
    gap: 1.5rem;
    background: var(--theme-surface-1);
    border: 1px solid var(--theme-border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: box-shadow 0.2s ease;
}

.featured-tag-card:hover {
    box-shadow: var(--theme-shadow-lg);
}

.featured-tag-image {
    flex-shrink: 0;
}

.featured-tag-image img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid var(--theme-border-color);
}

.featured-tag-info {
    flex-grow: 1;
}

.featured-tag-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--trophy-gold);
    line-height: 1;
}

.featured-tag-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--theme-text-primary);
    margin-bottom: 0.5rem;
}

.featured-tag-meta {
    font-size: 0.9rem;
    color: var(--theme-text-secondary);
    margin-bottom: 0.75rem;
}

.featured-tag-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--theme-text-muted);
}

.featured-tag-stat {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.featured-tag-stat i {
    color: var(--trophy-gold);
}

.featured-tag-reason {
    font-size: 0.75rem;
    color: var(--theme-text-muted);
    background: var(--theme-surface-2);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    margin-top: 0.5rem;
}

@media (max-width: 575.98px) {
    .featured-tag-card {
        flex-direction: column;
        text-align: center;
    }

    .featured-tag-stats {
        justify-content: center;
    }
}

/* Bag tag grid (collapsed by default) */
.bag-tag-expand-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--theme-surface-2);
    border: 1px solid var(--theme-border-color);
    border-radius: 8px;
    color: var(--theme-text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.bag-tag-expand-toggle:hover {
    background: var(--theme-surface-3);
    color: var(--theme-text-primary);
}

.bag-tag-expand-toggle i {
    transition: transform 0.3s ease;
}

.bag-tag-expand-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.bag-tag-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.bag-tag-mini-card {
    background: var(--theme-surface-1);
    border: 1px solid var(--theme-border-color);
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bag-tag-mini-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--theme-shadow);
}

.bag-tag-mini-card a {
    text-decoration: none;
    color: inherit;
}

.bag-tag-mini-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin: 0 auto 0.5rem;
    border-radius: 4px;
}

.bag-tag-mini-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--theme-text-primary);
}

.bag-tag-mini-name {
    font-size: 0.7rem;
    color: var(--theme-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Permanently held indicator */
.bag-tag-permanent {
    border-color: var(--trophy-gold);
}

.bag-tag-permanent::after {
    content: '🏆';
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 0.75rem;
}

/* Active tag indicator */
.bag-tag-active {
    border-color: var(--theme-success);
}

.bag-tag-active::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    background: var(--theme-success);
    border-radius: 50%;
}

/* ============================================
   BAG TAG DETAIL MODAL
   ============================================ */
.bag-tag-modal-header {
    background: var(--theme-surface-2);
    border-bottom: 1px solid var(--theme-border-color);
}

.bag-tag-modal-body {
    background: var(--theme-bg-primary);
}

.bag-tag-modal-image-container {
    position: relative;
    display: inline-block;
}

.bag-tag-modal-image {
    max-width: 180px;
    max-height: 180px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: var(--theme-shadow);
}

.bag-tag-modal-number {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--theme-primary);
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.bag-tag-modal-status .badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

.bag-tag-modal-status .badge.bg-success {
    background-color: var(--theme-success) !important;
}

.bag-tag-modal-status .badge.bg-warning {
    background-color: var(--trophy-gold) !important;
    color: #000;
}

.bag-tag-modal-league-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--theme-border-color);
    flex-shrink: 0;
}

.bag-tag-stat-card {
    display: block;
    background: var(--theme-surface-1);
    border: 1px solid var(--theme-border-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: inherit;
}

.bag-tag-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--theme-shadow);
    color: inherit;
}

.bag-tag-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-primary);
}

.bag-tag-stat-label {
    font-size: 0.8rem;
    color: var(--theme-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bag-tag-stat-context {
    font-size: 0.75rem;
    color: var(--theme-text-secondary);
    margin-top: 0.25rem;
}

.bag-tag-highlight {
    text-align: center;
    padding: 0.75rem;
    background: var(--theme-surface-2);
    border-radius: 8px;
}

.bag-tag-highlight-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--theme-text-primary);
}

.bag-tag-highlight-label {
    font-size: 0.7rem;
    color: var(--theme-text-muted);
    text-transform: uppercase;
}

/* Modal footer */
#bagTagDetailModal .modal-footer {
    background: var(--theme-surface-2);
    border-top: 1px solid var(--theme-border-color);
    gap: 0.5rem;
}

/* Clickable bag tag cards */
.bag-tag-clickable {
    cursor: pointer;
}

.bag-tag-clickable:hover {
    transform: translateY(-2px);
    box-shadow: var(--theme-shadow);
}

.bag-tag-clickable:focus {
    outline: 2px solid var(--theme-primary);
    outline-offset: 2px;
}

.featured-tag-card.bag-tag-clickable {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ============================================
   EMPTY STATES
   ============================================ */
.trophy-empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--theme-surface-2);
    border-radius: 12px;
    border: 2px dashed var(--theme-border-color);
}

.trophy-empty-icon {
    font-size: 3rem;
    color: var(--theme-text-muted);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.trophy-empty-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--theme-text-primary);
    margin-bottom: 0.5rem;
}

.trophy-empty-description {
    font-size: 0.9rem;
    color: var(--theme-text-secondary);
    max-width: 400px;
    margin: 0 auto;
}

.trophy-empty-cta {
    margin-top: 1.5rem;
}

/* ============================================
   DARK MODE ENHANCEMENTS
   ============================================ */
[data-bs-theme="dark"] .trophy-card {
    background: linear-gradient(135deg, var(--theme-surface-2), var(--theme-surface-3));
}

[data-bs-theme="dark"] .badge-card {
    background: var(--theme-surface-2);
}

[data-bs-theme="dark"] .trophy-composite {
    background: linear-gradient(135deg, var(--theme-surface-2), var(--theme-surface-3));
}

/* Enhanced ambient glow in dark mode */
[data-bs-theme="dark"] .trophy-composite::before {
    background: radial-gradient(ellipse at center,
        rgba(var(--trophy-gold-rgb), 0.1) 0%,
        transparent 60%);
}

[data-bs-theme="dark"] .badge-card--legendary::before {
    background: linear-gradient(
            45deg,
            transparent 30%,
            rgba(255, 215, 0, 0.25) 50%,
            transparent 70%
    );
}

/* Gold values more vibrant in dark mode */
[data-bs-theme="dark"] .key-info-tile--gold .key-info-tile-value {
    text-shadow: 0 0 24px rgba(var(--trophy-gold-rgb), 0.5);
}

/* Brighter shine effect for dark mode tiles */
[data-bs-theme="dark"] .key-info-tile::after {
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.12),
        transparent);
}

/* Section divider dot more vibrant */
[data-bs-theme="dark"] .section-divider::before {
    box-shadow: 0 0 16px rgba(var(--trophy-gold-rgb), 0.6);
}

/* ============================================
   VIEW ALL LINKS
   ============================================ */
.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--theme-surface-2);
    border: 1px solid var(--theme-border-color);
    border-radius: 8px;
    color: var(--theme-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.view-all-link:hover {
    background: var(--theme-surface-3);
    color: var(--theme-text-primary);
    transform: translateX(4px);
}

.view-all-link i {
    transition: transform 0.2s ease;
}

.view-all-link:hover i {
    transform: translateX(4px);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.trophy-case-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-divider {
    position: relative;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--theme-border-color) 20%,
        var(--theme-border-color) 80%,
        transparent 100%);
    margin: 2.5rem 0;
}

/* Gold accent dot in center */
.section-divider::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--trophy-gold);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(var(--trophy-gold-rgb), 0.4);
}

/* ============================================
   PROFILE HERO SECTION
   Full-width banner with avatar overlay
   Twitch/Twitter style cinematic hero
   ============================================ */
.profile-hero {
    position: relative;
    margin-bottom: 2rem;
    animation: fadeSlideUp var(--profile-animation-duration) ease-out;
}

.profile-banner {
    position: relative;
    height: 350px;
    overflow: hidden;
    border-radius: 16px;
    /* FLiPT brand gradient: teal to blue */
    background: linear-gradient(135deg,
        var(--flipt-primary, var(--theme-primary, #00a69c)) 0%,
        var(--flipt-secondary, var(--theme-secondary, #0068ba)) 100%);
}

.profile-banner__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center; /* Anchor to right edge so logo stays visible on mobile */
}

/* Centered brand logo on default gradient banner */
.profile-banner__logo {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.profile-banner__logo img {
    max-width: 280px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.25;
    filter: brightness(0) invert(1); /* Force white color */
}

.profile-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 40%,
        rgba(0, 0, 0, 0.7) 100%
    );
    pointer-events: none;
}

/* Edit Cover Photo Overlay - appears on hover for current user */
.profile-banner__edit {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
    z-index: 10;
}

.profile-banner__edit i {
    font-size: 1rem;
}

.profile-banner:hover .profile-banner__edit {
    opacity: 1;
    transform: translateY(0);
}

.profile-banner__edit:hover {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    text-decoration: none;
}

/* Profile Identity - Avatar overlaps banner, text beside avatar below banner */
.profile-identity {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 0 2rem;
    margin-top: -70px;
    z-index: 1;
}

/* Avatar row - contains the overlapping avatar */
.profile-identity__avatar-row {
    flex-shrink: 0;
}

.profile-identity__avatar-wrapper {
    flex-shrink: 0;
}

.profile-identity__avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 5px solid var(--theme-bg-primary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-identity__avatar:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Avatar placeholder (no image) - shows initials */
.profile-identity__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--theme-surface-2), var(--theme-surface-1));
}

.profile-identity__avatar-initials {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--theme-text-muted);
    text-transform: uppercase;
}

/* Content row - text beside avatar, positioned below banner */
.profile-identity__content-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    grid-template-areas:
        "info stats"
        "info actions";
    gap: 0.75rem 1.5rem;
    align-items: start;
    flex: 1;
    min-width: 0;
    padding-top: 75px; /* Push text below banner (70px overlap + small gap) */
}

.profile-identity__info {
    grid-area: info;
    min-width: 0;
}

/* Stats tiles area */
.profile-identity__stats {
    grid-area: stats;
    justify-self: end;
}

/* Actions button area */
.profile-identity__actions {
    grid-area: actions;
    justify-self: end;
}

/* Rivalry row - full-width ticker bar below identity */
.profile-rivalry-row {
    margin-top: 1rem;
    padding: 0 2rem;
}

.profile-identity__name {
    font-size: 2rem;
    font-weight: 800;
    color: var(--theme-text-primary);
    margin: 0;
    line-height: 1.2;
}

.profile-identity__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.35rem;
    color: var(--theme-text-secondary);
    font-size: 0.9rem;
}

.profile-identity__rating {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, var(--trophy-gold), #c49b2e);
    color: #1a1a1a;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.85rem;
}

.profile-identity__bio {
    color: var(--theme-text-secondary);
    font-size: 1rem;
    margin-top: 0.75rem;
    max-width: 500px;
    line-height: 1.5;
}

.profile-identity__actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* Friends row under identity */
.profile-friends-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 0 2rem;
}

.profile-friends-row__label {
    font-size: 0.85rem;
    color: var(--theme-text-muted);
}

.profile-friends-row__avatars {
    display: flex;
}

.profile-friends-row__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--theme-bg-primary);
    margin-left: -8px;
    overflow: hidden;
    transition: transform 0.15s ease;
}

.profile-friends-row__avatar:first-child {
    margin-left: 0;
}

.profile-friends-row__avatar:hover {
    transform: translateY(-2px);
    z-index: 1;
}

.profile-friends-row__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-friends-row__more {
    font-size: 0.85rem;
    color: var(--trophy-gold);
    font-weight: 600;
}

/* Friends row avatar placeholder (no image) */
.profile-friends-row__avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--trophy-gold), #c49b2e);
    color: #1a1a1a;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* ============================================
   BENTO GRID LAYOUT
   Apple-style mixed-size tiles
   ============================================ */
.profile-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, minmax(120px, auto));
    gap: 1rem;
    margin-bottom: 2rem;
}

.bento-tile {
    background: var(--theme-surface-1);
    border: 1px solid var(--theme-border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: fadeSlideUp var(--profile-animation-duration) ease-out;
    animation-fill-mode: both;
}

.bento-tile:nth-child(1) { animation-delay: 0.1s; }
.bento-tile:nth-child(2) { animation-delay: 0.15s; }
.bento-tile:nth-child(3) { animation-delay: 0.2s; }
.bento-tile:nth-child(4) { animation-delay: 0.25s; }
.bento-tile:nth-child(5) { animation-delay: 0.3s; }
.bento-tile:nth-child(6) { animation-delay: 0.35s; }

.bento-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--theme-shadow-lg, 0 10px 40px rgba(0, 0, 0, 0.15));
}

/* Featured tile spans left 2 columns, all 3 rows */
.bento-tile--featured {
    grid-column: 1 / 3;
    grid-row: 1 / 4;
    background: linear-gradient(135deg, var(--theme-surface-2), var(--theme-surface-1));
    justify-content: center;
}

/* Small tiles on right */
.bento-tile--small {
    text-align: center;
    justify-content: center;
    align-items: center;
}

.bento-tile--small i {
    font-size: 1.5rem;
    color: var(--trophy-gold);
    margin-bottom: 0.5rem;
}

.bento-tile__value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--theme-text-primary);
    line-height: 1;
}

.bento-tile__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--theme-text-muted);
    margin-top: 0.25rem;
}

.bento-tile--gold {
    border-color: var(--trophy-gold);
    background: linear-gradient(135deg,
        rgba(var(--trophy-gold-rgb), 0.15),
        rgba(var(--trophy-gold-rgb), 0.05));
}

/* Medium tiles span 2 columns */
.bento-tile--medium {
    grid-column: span 2;
}

/* Featured stats layout */
.bento-stats {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    gap: 1.5rem;
}

.bento-stats__rating {
    text-align: center;
}

.bento-stats__value {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--trophy-gold), #c49b2e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.bento-stats__label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--theme-text-muted);
    margin-top: 0.25rem;
}

.bento-stats__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    text-align: center;
}

.bento-stats__item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bento-stats__number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-text-primary);
}

.bento-stats__desc {
    font-size: 0.75rem;
    color: var(--theme-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   ROUNDS CAROUSEL
   Horizontal scrolling compact cards
   ============================================ */
.rounds-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--theme-border-color) transparent;
}

.rounds-carousel::-webkit-scrollbar {
    height: 6px;
}

.rounds-carousel::-webkit-scrollbar-track {
    background: transparent;
}

.rounds-carousel::-webkit-scrollbar-thumb {
    background: var(--theme-border-color);
    border-radius: 3px;
}

.round-card {
    flex-shrink: 0;
    width: 200px;
    scroll-snap-align: start;
    background: var(--theme-surface-1);
    border: 1px solid var(--theme-border-color);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.round-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--theme-shadow-lg, 0 8px 24px rgba(0, 0, 0, 0.1));
    text-decoration: none;
    color: inherit;
}

.round-card__image {
    height: 100px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--theme-surface-2), var(--theme-surface-1));
}

.round-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.round-card__content {
    padding: 1rem;
}

.round-card__score {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--theme-text-primary);
    line-height: 1;
}

.round-card__score--under {
    color: var(--theme-success);
}

.round-card__score--over {
    color: var(--theme-danger);
}

.round-card__course {
    font-size: 0.85rem;
    color: var(--theme-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0.25rem;
}

.round-card__date {
    font-size: 0.75rem;
    color: var(--theme-text-muted);
    margin-top: 0.25rem;
}

.round-card__rating {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.2rem 0.5rem;
    background: linear-gradient(135deg, rgba(var(--trophy-gold-rgb), 0.2), rgba(var(--trophy-gold-rgb), 0.1));
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--trophy-gold);
}

/* ============================================
   PROFILE HERO RESPONSIVE
   ============================================ */
@media (max-width: 991.98px) {
    .profile-banner {
        height: 250px;
    }

    .profile-identity {
        margin-top: -55px;
        gap: 1rem;
    }

    .profile-identity__avatar {
        width: 110px;
        height: 110px;
    }

    .profile-identity__content-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding-top: 60px;
    }

    .profile-identity__name {
        font-size: 1.75rem;
    }

    .profile-bento {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .bento-tile--featured {
        grid-column: 1 / -1;
        grid-row: auto;
    }
}

@media (max-width: 575.98px) {
    .profile-banner {
        height: 180px;
        border-radius: 12px;
    }

    .profile-identity {
        padding: 0 1rem;
        margin-top: -45px;
        gap: 0.75rem;
    }

    .profile-identity__avatar {
        width: 90px;
        height: 90px;
        border-width: 4px;
    }

    .profile-identity__content-row {
        padding-top: 50px;
    }

    .profile-identity__name {
        font-size: 1.35rem;
    }

    .profile-identity__meta {
        gap: 0.5rem;
        font-size: 0.85rem;
    }

    .profile-identity__bio {
        font-size: 0.9rem;
        margin-top: 0.5rem;
    }

    .profile-friends-row {
        padding: 0 1rem;
    }

    .profile-bento {
        grid-template-columns: 1fr;
    }

    .bento-tile--medium {
        grid-column: 1;
    }

    .bento-stats__value {
        font-size: 3rem;
    }

    .bento-stats__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .round-card {
        width: 170px;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .profile-hero,
    .bento-tile,
    .round-card {
        animation: none !important;
    }

    .profile-identity__avatar:hover,
    .bento-tile:hover,
    .round-card:hover {
        transform: none;
    }
}

/* ============================================
   PROFILE HERO DARK MODE REFINEMENTS
   ============================================ */
[data-bs-theme="dark"] .profile-banner__overlay {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 30%,
        rgba(0, 0, 0, 0.85) 100%
    );
}

[data-bs-theme="dark"] .profile-identity__name {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

[data-bs-theme="dark"] .profile-identity__avatar {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
                0 0 0 2px rgba(var(--trophy-gold-rgb), 0.15);
}

[data-bs-theme="dark"] .profile-friends-row__avatar {
    border-color: var(--theme-surface-1);
}

/* ============================================
   TROPHY COMPOSITE TILES-ONLY VARIANT
   Hides header when used below profile hero
   ============================================ */
.trophy-composite--tiles-only .trophy-composite-header {
    display: none;
}

.trophy-composite--tiles-only .trophy-composite {
    background: transparent;
    border: none;
    padding: 0;
}

.trophy-composite--tiles-only .key-info-tiles {
    margin-top: 0;
}

/* ============================================
   COMPACT STATS TILES (Hero Integrated)
   Grid area positioning is in content-row section
   ============================================ */

.profile-stats-compact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    min-width: 320px;
    max-width: 400px;
}

.profile-stat-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--theme-surface-2);
    border: 1px solid var(--theme-border-color);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-stat-tile:hover {
    border-color: rgba(var(--trophy-gold-rgb), 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-stat-tile__label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--theme-text-muted);
    margin-bottom: 0.15rem;
}

.profile-stat-tile__value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--theme-text-primary);
    line-height: 1.1;
}

/* Gold accent for best tag / awards */
.profile-stat-tile--gold {
    border-color: rgba(var(--trophy-gold-rgb), 0.5);
    background: linear-gradient(135deg,
        rgba(var(--trophy-gold-rgb), 0.08),
        var(--theme-surface-2));
}

.profile-stat-tile--gold .profile-stat-tile__value {
    color: var(--trophy-gold);
}

/* Success accent for win rate */
.profile-stat-tile--success {
    border-color: var(--rarity-common);
}

.profile-stat-tile--success .profile-stat-tile__value {
    color: var(--rarity-common);
}

/* Responsive - Stack on smaller screens */
@media (max-width: 767px) {
    .profile-identity__content-row {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "info"
            "stats"
            "actions";
        gap: 1rem;
        justify-items: center;
    }

    .profile-identity__info {
        text-align: center;
        width: 100%;
    }

    .profile-identity__stats {
        justify-self: center;
        width: auto;
    }

    .profile-identity__actions {
        justify-self: center;
    }

    .profile-stats-compact {
        max-width: none;
        min-width: auto;
    }

    .profile-rivalry-row {
        padding: 0 1rem;
        margin-top: 0.75rem;
    }
}

@media (max-width: 480px) {
    /* Keep all 4 stats in single row, but smaller */
    .profile-stats-compact {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.25rem;
    }

    .profile-stat-tile {
        padding: 0.35rem 0.25rem;
        border-radius: 6px;
    }

    .profile-stat-tile__label {
        font-size: 0.55rem;
        margin-bottom: 0.1rem;
    }

    .profile-stat-tile__value {
        font-size: 0.85rem;
    }
}

/* Dark mode refinements */
[data-bs-theme="dark"] .profile-stat-tile {
    background: rgba(255, 255, 255, 0.03);
}
