/* ═══════════════════════════════════════════════════════════════
   FIREWATCH PROFILE - Night Scene Theme
   Beautiful CSS-generated night forest with stars, moon, aurora
   ═══════════════════════════════════════════════════════════════ */

/* ─── Profile-specific CSS Variables ─── */
.profile-firewatch {
    --pf-deep-purple: #30122d;
    --pf-wine: #870734;
    --pf-accent: #ff9f43;
    --pf-accent-gold: #ffd700;
    --pf-ember: #ff6b35;
    --pf-text-primary: #ffffff;
    --pf-text-secondary: #ffd6bf;
    --pf-text-muted: rgba(255, 214, 191, 0.7);
    --pf-card-solid: rgba(48, 18, 45, 0.92);
    --pf-card-elevated: rgba(60, 25, 55, 0.95);
    --pf-border-subtle: rgba(255, 214, 191, 0.15);
    --pf-border-accent: rgba(255, 159, 67, 0.4);

    /* Rarity Colors */
    --pf-rarity-legendary: #ff9f43;
    --pf-rarity-epic: #a855f7;
    --pf-rarity-rare: #3b82f6;
    --pf-rarity-common: #6b7280;
}

/* ═══════════════════════════════════════
   NIGHT SCENE BACKGROUND
   ═══════════════════════════════════════ */
.pf-night-scene {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Night Sky Gradient */
.pf-night-sky {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        #0a0612 0%,
        #12081f 15%,
        #1a0d2e 30%,
        #251342 50%,
        #30122d 70%,
        #3d1a3a 85%,
        #4a2040 100%
    );
}

/* Aurora Borealis Effect */
.pf-aurora {
    position: absolute;
    top: 5%;
    left: -50%;
    width: 200%;
    height: 40%;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(99, 255, 171, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 40%, rgba(147, 112, 219, 0.1) 0%, transparent 45%),
        radial-gradient(ellipse at 80% 60%, rgba(255, 159, 67, 0.06) 0%, transparent 40%);
    animation: pfAuroraFlow 15s ease-in-out infinite;
    filter: blur(30px);
}

@keyframes pfAuroraFlow {
    0%, 100% { transform: translateX(0) scaleY(1); opacity: 0.7; }
    25% { transform: translateX(5%) scaleY(1.1); opacity: 0.9; }
    50% { transform: translateX(-3%) scaleY(0.9); opacity: 0.6; }
    75% { transform: translateX(8%) scaleY(1.05); opacity: 0.8; }
}

/* Stars Container */
.pf-stars {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.pf-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    animation: pfTwinkle var(--duration, 3s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

.pf-star.bright {
    width: 3px;
    height: 3px;
    box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.5);
}

.pf-star.large {
    width: 4px;
    height: 4px;
    box-shadow: 0 0 10px 2px rgba(255, 200, 150, 0.6);
}

@keyframes pfTwinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Moon */
.pf-moon {
    position: absolute;
    top: 8%;
    right: 15%;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff9e6 0%, #ffe4b5 50%, #ffd89b 100%);
    box-shadow:
        0 0 40px 15px rgba(255, 240, 200, 0.3),
        0 0 80px 30px rgba(255, 220, 150, 0.15),
        inset -8px -5px 15px rgba(200, 180, 140, 0.3);
    animation: pfMoonGlow 8s ease-in-out infinite;
}

.pf-moon::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 20%;
    width: 12px;
    height: 12px;
    background: rgba(180, 160, 120, 0.2);
    border-radius: 50%;
}

.pf-moon::after {
    content: '';
    position: absolute;
    top: 45%;
    left: 55%;
    width: 8px;
    height: 8px;
    background: rgba(180, 160, 120, 0.15);
    border-radius: 50%;
}

@keyframes pfMoonGlow {
    0%, 100% { box-shadow: 0 0 40px 15px rgba(255, 240, 200, 0.3), 0 0 80px 30px rgba(255, 220, 150, 0.15), inset -8px -5px 15px rgba(200, 180, 140, 0.3); }
    50% { box-shadow: 0 0 50px 20px rgba(255, 240, 200, 0.35), 0 0 100px 40px rgba(255, 220, 150, 0.2), inset -8px -5px 15px rgba(200, 180, 140, 0.3); }
}

/* Mountain Layers - Firewatch Style */
.pf-mountains {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
}

.pf-mountain-layer {
    position: absolute;
    bottom: 0;
    left: -5%;
    right: -5%;
    width: 110%;
}

/* Far mountains */
.pf-mountain-layer.far {
    height: 55%;
    background: linear-gradient(180deg, transparent 0%, #1a0d20 30%);
    clip-path: polygon(
        0% 100%, 0% 65%, 5% 55%, 12% 60%, 18% 45%, 25% 50%, 32% 35%,
        40% 42%, 48% 30%, 55% 38%, 62% 28%, 70% 35%, 78% 25%,
        85% 32%, 92% 40%, 100% 35%, 100% 100%
    );
    opacity: 0.9;
}

/* Mid mountains */
.pf-mountain-layer.mid {
    height: 45%;
    background: linear-gradient(180deg, #251535 0%, #1f1028 100%);
    clip-path: polygon(
        0% 100%, 0% 55%, 8% 50%, 15% 58%, 22% 40%, 30% 48%, 38% 35%,
        45% 45%, 52% 38%, 60% 50%, 68% 42%, 75% 55%, 82% 45%,
        90% 52%, 100% 48%, 100% 100%
    );
    opacity: 0.95;
}

/* Near forest - tree silhouettes */
.pf-mountain-layer.near {
    height: 35%;
    background: linear-gradient(180deg, #1a0f1f 0%, #120a15 100%);
    clip-path: polygon(
        0% 100%, 0% 45%, 2% 42%, 4% 48%, 6% 35%, 8% 40%, 10% 30%,
        12% 38%, 14% 28%, 16% 35%, 18% 42%, 20% 32%, 22% 40%,
        24% 25%, 26% 35%, 28% 45%, 30% 38%, 32% 30%, 34% 42%,
        36% 35%, 38% 28%, 40% 38%, 42% 45%, 44% 35%, 46% 42%,
        48% 30%, 50% 40%, 52% 35%, 54% 45%, 56% 32%, 58% 42%,
        60% 38%, 62% 28%, 64% 38%, 66% 45%, 68% 35%, 70% 42%,
        72% 30%, 74% 40%, 76% 35%, 78% 45%, 80% 38%, 82% 30%,
        84% 42%, 86% 35%, 88% 45%, 90% 38%, 92% 48%, 94% 40%,
        96% 50%, 98% 45%, 100% 52%, 100% 100%
    );
}

/* Firewatch Tower */
.pf-tower {
    position: absolute;
    bottom: 28%;
    left: 20%;
    width: 30px;
    height: 80px;
    z-index: 5;
}

.pf-tower::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 60px;
    background: #120a15;
}

.pf-tower::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 20px;
    background: #120a15;
    clip-path: polygon(10% 100%, 0% 30%, 50% 0%, 100% 30%, 90% 100%);
}

/* Tower Window Light */
.pf-tower-light {
    position: absolute;
    bottom: 28%;
    left: calc(20% + 11px);
    width: 8px;
    height: 6px;
    background: rgba(255, 180, 100, 0.9);
    border-radius: 1px;
    box-shadow: 0 0 15px 5px rgba(255, 150, 50, 0.4);
    animation: pfTowerFlicker 4s ease-in-out infinite;
    z-index: 6;
}

@keyframes pfTowerFlicker {
    0%, 100% { opacity: 0.9; }
    30% { opacity: 1; }
    50% { opacity: 0.7; }
    70% { opacity: 0.95; }
}

/* Ground fog */
.pf-fog {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 15%;
    background: linear-gradient(180deg, transparent 0%, rgba(30, 20, 35, 0.3) 50%, rgba(20, 12, 25, 0.5) 100%);
    pointer-events: none;
}

/* Shooting Star */
.pf-shooting-star {
    position: absolute;
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.8), transparent);
    animation: pfShootingStar 8s ease-in-out infinite;
    opacity: 0;
}

@keyframes pfShootingStar {
    0%, 95%, 100% { opacity: 0; transform: translateX(0) translateY(0); }
    96% { opacity: 1; }
    98% { opacity: 0; transform: translateX(150px) translateY(80px); }
}

/* ═══════════════════════════════════════
   PROFILE CONTAINER
   ═══════════════════════════════════════ */
.profile-firewatch {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    padding: 16px 16px 120px;
    max-width: 480px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════
   HEADER
   ═══════════════════════════════════════ */
.pf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    animation: pfSlideDown 0.5s ease-out;
}

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

.pf-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--pf-card-solid);
    backdrop-filter: blur(15px);
    border: 1px solid var(--pf-border-subtle);
    border-radius: 16px;
    color: var(--pf-text-secondary);
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pf-btn-back:hover {
    border-color: var(--pf-border-accent);
    box-shadow: 0 0 25px rgba(255, 159, 67, 0.15);
    transform: translateX(-4px);
}

.pf-btn-back svg {
    width: 18px;
    height: 18px;
    stroke: var(--pf-accent);
}

.pf-settings-btn {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--pf-card-solid);
    backdrop-filter: blur(15px);
    border: 1px solid var(--pf-border-subtle);
    color: var(--pf-accent);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pf-settings-btn:hover {
    border-color: var(--pf-border-accent);
    transform: rotate(90deg);
    box-shadow: 0 0 25px rgba(255, 159, 67, 0.2);
}

/* ═══════════════════════════════════════
   HOLOGRAPHIC HERO CARD
   ═══════════════════════════════════════ */
.pf-holo-card {
    position: relative;
    background: var(--pf-card-solid);
    backdrop-filter: blur(20px);
    border: 2px solid var(--pf-border-accent);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 20px;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
    cursor: pointer;
    animation: pfCardAppear 0.6s ease-out 0.2s both;
}

@keyframes pfCardAppear {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Holographic Shine */
.pf-holo-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        125deg,
        transparent 0%,
        rgba(255, 159, 67, 0.12) 25%,
        rgba(255, 215, 0, 0.18) 35%,
        rgba(255, 107, 53, 0.12) 45%,
        transparent 50%,
        rgba(192, 132, 252, 0.1) 55%,
        rgba(56, 189, 248, 0.1) 65%,
        rgba(255, 159, 67, 0.18) 75%,
        transparent 100%
    );
    background-size: 200% 200%;
    animation: pfHoloShine 6s ease-in-out infinite;
    opacity: 0.8;
    pointer-events: none;
    mix-blend-mode: overlay;
}

@keyframes pfHoloShine {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
}

/* Rainbow Foil */
.pf-holo-foil {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        var(--holo-angle, 45deg),
        rgba(255, 159, 67, 0.04) 0%,
        rgba(255, 215, 0, 0.04) 20%,
        rgba(255, 107, 53, 0.04) 40%,
        rgba(192, 132, 252, 0.04) 60%,
        rgba(56, 189, 248, 0.04) 80%,
        rgba(255, 159, 67, 0.04) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    mix-blend-mode: color-dodge;
}

.pf-holo-card:hover .pf-holo-foil {
    opacity: 1;
}

/* Sparkle overlay */
.pf-holo-sparkle {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 255, 255, 0.2) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.pf-holo-card:hover .pf-holo-sparkle {
    opacity: 1;
}

.pf-holo-content {
    position: relative;
    z-index: 2;
}

/* Corner accents */
.pf-holo-card::before,
.pf-holo-card::after {
    content: '';
    position: absolute;
    z-index: 3;
}

.pf-holo-card::before {
    top: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
    border-left: 2px solid var(--pf-accent);
    border-top: 2px solid var(--pf-accent);
}

.pf-holo-card::after {
    bottom: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--pf-accent);
    border-bottom: 2px solid var(--pf-accent);
}

/* Avatar Section */
.pf-hero-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.pf-avatar-container {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.pf-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pf-accent), var(--pf-ember), var(--pf-accent-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 3;
    box-shadow: 0 0 25px rgba(255, 159, 67, 0.5), 0 0 50px rgba(255, 107, 53, 0.3);
    animation: pfAvatarGlow 3s ease-in-out infinite;
}

@keyframes pfAvatarGlow {
    0%, 100% { box-shadow: 0 0 25px rgba(255, 159, 67, 0.5), 0 0 50px rgba(255, 107, 53, 0.3); }
    50% { box-shadow: 0 0 35px rgba(255, 159, 67, 0.7), 0 0 70px rgba(255, 107, 53, 0.4); }
}

.pf-avatar-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--pf-accent);
    animation: pfRingPulse 3s ease-in-out infinite;
}

.pf-avatar-ring.inner {
    inset: 4px;
    border-width: 1px;
    border-style: dashed;
    animation: pfRingRotate 20s linear infinite;
}

@keyframes pfRingPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.5; }
}

@keyframes pfRingRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.pf-level-badge {
    position: absolute;
    bottom: 2px;
    right: -4px;
    background: linear-gradient(135deg, var(--pf-accent-gold), var(--pf-accent));
    color: var(--pf-deep-purple);
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
    z-index: 4;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pf-hero-info {
    flex: 1;
    min-width: 0;
}

.pf-hero-name {
    font-family: 'Cinzel Decorative', 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pf-text-primary);
    margin-bottom: 4px;
    text-shadow: 0 2px 15px rgba(255, 159, 67, 0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pf-hero-title {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    color: var(--pf-accent);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* XP Bar */
.pf-xp-section {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--pf-border-subtle);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 18px;
}

.pf-xp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.pf-xp-label {
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    color: var(--pf-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.pf-xp-value {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--pf-accent);
}

.pf-xp-bar {
    height: 12px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 159, 67, 0.2);
    position: relative;
}

.pf-xp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--pf-ember), var(--pf-accent), var(--pf-accent-gold));
    background-size: 200% 100%;
    animation: pfXpShimmer 2s linear infinite;
    border-radius: 6px;
    position: relative;
    box-shadow: 0 0 15px rgba(255, 159, 67, 0.5);
}

.pf-xp-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.35), transparent);
    border-radius: 6px 6px 0 0;
}

.pf-xp-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: pfXpShimmerWave 2s ease-in-out infinite;
}

@keyframes pfXpShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes pfXpShimmerWave {
    0% { left: -100%; }
    100% { left: 100%; }
}

.pf-xp-next {
    text-align: right;
    margin-top: 8px;
    font-size: 0.65rem;
    color: var(--pf-text-muted);
}

/* Stats Grid */
.pf-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.pf-hero-stat {
    text-align: center;
    padding: 14px 8px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 159, 67, 0.1);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.pf-hero-stat:hover {
    border-color: var(--pf-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 159, 67, 0.15);
}

.pf-hero-stat-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.pf-hero-stat-value {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--pf-text-primary);
    text-shadow: 0 0 12px rgba(255, 159, 67, 0.3);
}

.pf-hero-stat-label {
    font-size: 0.55rem;
    color: var(--pf-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 3px;
}

/* ═══════════════════════════════════════
   TAB NAVIGATION
   ═══════════════════════════════════════ */
.pf-tabs-container {
    background: var(--pf-card-solid);
    backdrop-filter: blur(15px);
    border: 1px solid var(--pf-border-subtle);
    border-radius: 18px;
    padding: 6px;
    margin-bottom: 20px;
    display: flex;
    gap: 4px;
    animation: pfFadeUp 0.5s ease-out 0.4s both;
}

@keyframes pfFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.pf-tab-btn {
    flex: 1;
    padding: 12px 8px;
    background: transparent;
    border: none;
    border-radius: 14px;
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--pf-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.pf-tab-btn:hover {
    color: var(--pf-text-secondary);
    background: rgba(255, 159, 67, 0.08);
}

.pf-tab-btn.active {
    background: linear-gradient(135deg, rgba(255, 159, 67, 0.2), rgba(255, 107, 53, 0.15));
    color: var(--pf-accent);
    box-shadow: 0 0 20px rgba(255, 159, 67, 0.15);
}

.pf-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--pf-accent);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--pf-accent);
}

/* ═══════════════════════════════════════
   CARDS BASE STYLE
   ═══════════════════════════════════════ */
.pf-card {
    background: var(--pf-card-solid);
    backdrop-filter: blur(20px);
    border: 1px solid var(--pf-border-subtle);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.pf-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--pf-accent), transparent);
}

/* ─── POLISHED CARD HEADER ─── */
.pf-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: none;
    position: relative;
}

/* Decorative bottom line with ember glow */
.pf-card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 159, 67, 0.1) 10%,
        rgba(255, 159, 67, 0.4) 30%,
        rgba(255, 107, 53, 0.6) 50%,
        rgba(255, 159, 67, 0.4) 70%,
        rgba(255, 159, 67, 0.1) 90%,
        transparent 100%
    );
}

/* Icon Container - Glowing Ember Style */
.pf-card-icon {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: linear-gradient(145deg,
        rgba(255, 159, 67, 0.15) 0%,
        rgba(255, 107, 53, 0.08) 50%,
        rgba(48, 18, 45, 0.9) 100%
    );
    border-radius: 12px;
    border: 1px solid rgba(255, 159, 67, 0.25);
    box-shadow:
        0 0 20px rgba(255, 159, 67, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* Inner glow effect */
.pf-card-icon::before {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 9px;
    background: radial-gradient(circle at 30% 30%,
        rgba(255, 200, 150, 0.12) 0%,
        transparent 60%
    );
    pointer-events: none;
}

/* Subtle corner accent */
.pf-card-icon::after {
    content: '';
    position: absolute;
    top: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, transparent 50%, rgba(255, 159, 67, 0.5) 50%);
    border-radius: 0 12px 0 6px;
}

.pf-card:hover .pf-card-icon {
    border-color: rgba(255, 159, 67, 0.4);
    box-shadow:
        0 0 25px rgba(255, 159, 67, 0.25),
        0 0 40px rgba(255, 107, 53, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

/* Title & Subtitle Container */
.pf-card-info {
    flex: 1;
    min-width: 0;
}

.pf-card-title {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--pf-text-primary);
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 3px;
    position: relative;
    display: inline-block;
}

/* Subtle underline accent on title */
.pf-card-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--pf-accent), transparent);
    border-radius: 2px;
    opacity: 0.6;
}

.pf-card-subtitle {
    font-size: 0.68rem;
    color: var(--pf-text-muted);
    letter-spacing: 0.3px;
    font-style: italic;
    opacity: 0.85;
}

/* ═══════════════════════════════════════
   QUICK STATISTICS GRID
   ═══════════════════════════════════════ */
.pf-quick-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.pf-quick-stat {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 159, 67, 0.1);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.pf-quick-stat:hover {
    border-color: var(--pf-border-accent);
    transform: translateY(-2px);
}

.pf-quick-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 159, 67, 0.2), rgba(255, 107, 53, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.pf-quick-stat-info {
    flex: 1;
}

.pf-quick-stat-value {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pf-text-primary);
}

.pf-quick-stat-label {
    font-size: 0.65rem;
    color: var(--pf-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════
   ACTIVITY HEATMAP
   ═══════════════════════════════════════ */
.pf-heatmap-container {
    overflow-x: auto;
    padding: 8px 0;
}

.pf-heatmap-grid {
    display: flex;
    gap: 3px;
}

.pf-heatmap-week {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.pf-heatmap-day {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
}

.pf-heatmap-day:hover {
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(255, 159, 67, 0.5);
}

.pf-heatmap-day.level-1 { background: rgba(255, 159, 67, 0.2); }
.pf-heatmap-day.level-2 { background: rgba(255, 159, 67, 0.4); }
.pf-heatmap-day.level-3 { background: rgba(255, 159, 67, 0.6); }
.pf-heatmap-day.level-4 { background: rgba(255, 159, 67, 0.85); box-shadow: 0 0 6px rgba(255, 159, 67, 0.4); }

.pf-heatmap-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 12px;
    font-size: 0.6rem;
    color: var(--pf-text-muted);
}

.pf-heatmap-legend-item {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

/* ═══════════════════════════════════════
   OVERRIDE STYLES FOR EXISTING HELPER FUNCTIONS
   (renderActivityHeatmap, renderRecentVisitsTimeline, etc.)
   ═══════════════════════════════════════ */

/* Tailwind utility classes needed for heatmap */
.profile-firewatch .w-3 { width: 0.75rem; }
.profile-firewatch .h-3 { height: 0.75rem; }
.profile-firewatch .rounded-sm { border-radius: 0.125rem; }
.profile-firewatch .border { border-width: 1px; border-style: solid; border-color: rgba(255, 159, 67, 0.2); }
.profile-firewatch .cursor-help { cursor: help; }
.profile-firewatch .text-xs { font-size: 0.75rem; }
.profile-firewatch .mb-1 { margin-bottom: 0.25rem; }
.profile-firewatch .mt-2 { margin-top: 0.5rem; }
.profile-firewatch .gap-1 { gap: 0.25rem; }
.profile-firewatch .gap-2 { gap: 0.5rem; }

.profile-firewatch .flex { display: flex; }
.profile-firewatch .inline-flex { display: inline-flex; }
.profile-firewatch .flex-col { flex-direction: column; }
.profile-firewatch .items-center { align-items: center; }
.profile-firewatch .justify-center { justify-content: center; }

.profile-firewatch .overflow-x-auto {
    overflow-x: auto;
    padding: 8px 0;
}

/* Heatmap specific improvements */
.profile-firewatch .w-3.h-3.rounded-sm.border {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px;
    min-height: 14px;
    border-radius: 3px !important;
    border: 1px solid rgba(255, 159, 67, 0.2) !important;
    transition: all 0.2s ease;
    display: inline-block;
}

.profile-firewatch .w-3.h-3.rounded-sm.border:hover {
    transform: scale(1.4);
    box-shadow: 0 0 10px rgba(255, 159, 67, 0.6);
    z-index: 10;
    position: relative;
}

/* Day labels in heatmap */
.profile-firewatch .w-3.h-3.text-xs {
    width: 14px !important;
    height: 14px !important;
    font-size: 0.6rem !important;
    color: var(--pf-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Heatmap legend text */
.profile-firewatch .themed-text-muted {
    color: var(--pf-text-muted);
}

/* ═══════════════════════════════════════
   TAILWIND COLOR OVERRIDES FOR STATS-UI HEATMAP
   ═══════════════════════════════════════ */

/* Stone colors - override to Firewatch dark purple */
.profile-firewatch .bg-stone-100 { background-color: rgba(0, 0, 0, 0.3) !important; }
.profile-firewatch .bg-stone-200 { background-color: rgba(48, 18, 45, 0.85) !important; }
.profile-firewatch .border-stone-200 { border-color: rgba(255, 159, 67, 0.15) !important; }
.profile-firewatch .border-stone-400 { border-color: rgba(255, 159, 67, 0.25) !important; }
.profile-firewatch .text-stone-500 { color: var(--pf-text-muted) !important; }
.profile-firewatch .text-stone-600 { color: var(--pf-text-muted) !important; }
.profile-firewatch .text-stone-700 { color: var(--pf-text-secondary) !important; }

/* Green heatmap colors - override to Firewatch orange gradient */
.profile-firewatch .bg-green-200 { background-color: rgba(255, 159, 67, 0.25) !important; }
.profile-firewatch .bg-green-400 { background-color: rgba(255, 159, 67, 0.5) !important; }
.profile-firewatch .bg-green-600 { background-color: rgba(255, 159, 67, 0.75) !important; }
.profile-firewatch .bg-green-800 { background-color: rgba(255, 159, 67, 1) !important; box-shadow: 0 0 8px rgba(255, 159, 67, 0.5); }
.profile-firewatch .border-green-300 { border-color: rgba(255, 159, 67, 0.3) !important; }
.profile-firewatch .border-green-500 { border-color: rgba(255, 159, 67, 0.5) !important; }
.profile-firewatch .border-green-700 { border-color: rgba(255, 159, 67, 0.7) !important; }
.profile-firewatch .border-green-900 { border-color: rgba(255, 159, 67, 0.9) !important; }

/* Today highlight */
.profile-firewatch .ring-amber-500 {
    box-shadow: 0 0 0 2px var(--pf-accent-gold) !important;
}
.profile-firewatch .ring-2 {
    --tw-ring-offset-width: 0px;
}

/* ═══════════════════════════════════════
   COMPREHENSIVE TAILWIND OVERRIDES
   For stats-ui.js Details Tab
   Firewatch Night Theme
   ═══════════════════════════════════════ */

/* ─── AMBER COLORS → Firewatch Gold/Orange ─── */
.profile-firewatch .bg-amber-500 { background-color: #ff9f43 !important; }
.profile-firewatch .bg-amber-600 { background-color: #e8913d !important; }
.profile-firewatch .bg-amber-700 { background-color: #d18537 !important; }
.profile-firewatch .border-amber-700 { border-color: rgba(255, 159, 67, 0.6) !important; }
.profile-firewatch .text-amber-100 { color: #ffecd2 !important; }
.profile-firewatch .hover\:bg-amber-700:hover { background-color: #d18537 !important; }

/* ─── BLUE COLORS → Firewatch Cool Purple ─── */
.profile-firewatch .bg-blue-500 { background-color: #6366f1 !important; }
.profile-firewatch .bg-blue-600 { background-color: #5558e3 !important; }
.profile-firewatch .border-blue-700 { border-color: rgba(99, 102, 241, 0.5) !important; }
.profile-firewatch .text-blue-100 { color: #e0e7ff !important; }
.profile-firewatch .from-blue-500 { --tw-gradient-from: #6366f1 !important; }
.profile-firewatch .to-blue-600 { --tw-gradient-to: #5558e3 !important; }

/* ─── GREEN COLORS → Firewatch Teal/Cyan ─── */
.profile-firewatch .bg-green-500 { background-color: #10b981 !important; }
.profile-firewatch .bg-green-600 { background-color: #059669 !important; }
.profile-firewatch .border-green-700 { border-color: rgba(16, 185, 129, 0.5) !important; }
.profile-firewatch .text-green-100 { color: #d1fae5 !important; }
.profile-firewatch .from-green-500 { --tw-gradient-from: #10b981 !important; }
.profile-firewatch .to-green-600 { --tw-gradient-to: #059669 !important; }

/* ─── PURPLE COLORS → Firewatch Deep Magenta ─── */
.profile-firewatch .bg-purple-500 { background-color: #a855f7 !important; }
.profile-firewatch .bg-purple-600 { background-color: #9333ea !important; }
.profile-firewatch .border-purple-700 { border-color: rgba(168, 85, 247, 0.5) !important; }
.profile-firewatch .text-purple-100 { color: #f3e8ff !important; }
.profile-firewatch .from-purple-500 { --tw-gradient-from: #a855f7 !important; }
.profile-firewatch .to-purple-600 { --tw-gradient-to: #9333ea !important; }

/* ─── STONE COLORS → Firewatch Dark Purple ─── */
.profile-firewatch .bg-stone-300 { background-color: rgba(60, 25, 55, 0.9) !important; }
.profile-firewatch .bg-stone-400 { color: var(--pf-text-muted) !important; }
.profile-firewatch .text-stone-400 { color: var(--pf-text-muted) !important; }
.profile-firewatch .text-stone-800 { color: var(--pf-text-primary) !important; }
.profile-firewatch .hover\:bg-stone-300:hover { background-color: rgba(70, 30, 65, 0.95) !important; }

/* ─── GRADIENT BACKGROUNDS ─── */
.profile-firewatch .bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-from), var(--tw-gradient-to)) !important;
}
.profile-firewatch .from-amber-500 { --tw-gradient-from: #ff9f43; }
.profile-firewatch .to-amber-600 { --tw-gradient-to: #e8913d; }

/* Stats cards with Firewatch glow effect */
.profile-firewatch .bg-gradient-to-br.from-amber-500 {
    background: linear-gradient(135deg, #ff9f43, #ff6b35) !important;
    box-shadow: 0 4px 20px rgba(255, 159, 67, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.profile-firewatch .bg-gradient-to-br.from-blue-500 {
    background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.profile-firewatch .bg-gradient-to-br.from-green-500 {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.profile-firewatch .bg-gradient-to-br.from-purple-500 {
    background: linear-gradient(135deg, #a855f7, #7c3aed) !important;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ─── WHITE TEXT ─── */
.profile-firewatch .text-white { color: #ffffff !important; }

/* ─── SHADOWS ─── */
.profile-firewatch .shadow-lg {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3) !important;
}

/* ─── LAYOUT UTILITIES ─── */
.profile-firewatch .grid { display: grid; }
.profile-firewatch .grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-firewatch .grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.profile-firewatch .grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.profile-firewatch .gap-2 { gap: 0.5rem; }
.profile-firewatch .gap-3 { gap: 0.75rem; }
.profile-firewatch .gap-4 { gap: 1rem; }
.profile-firewatch .space-y-3 > * + * { margin-top: 0.75rem; }
.profile-firewatch .space-y-4 > * + * { margin-top: 1rem; }
.profile-firewatch .flex-1 { flex: 1 1 0%; }
.profile-firewatch .flex-wrap { flex-wrap: wrap; }
.profile-firewatch .justify-between { justify-content: space-between; }

/* ─── SIZING UTILITIES ─── */
.profile-firewatch .w-10 { width: 2.5rem; }
.profile-firewatch .w-12 { width: 3rem; }
.profile-firewatch .h-10 { height: 2.5rem; }
.profile-firewatch .h-12 { height: 3rem; }
.profile-firewatch .h-2\.5 { height: 0.625rem; }
.profile-firewatch .w-2\.5 { width: 0.625rem; }
.profile-firewatch .h-4 { height: 1rem; }
.profile-firewatch .w-4 { width: 1rem; }

/* ─── SPACING UTILITIES ─── */
.profile-firewatch .p-3 { padding: 0.75rem; }
.profile-firewatch .p-4 { padding: 1rem; }
.profile-firewatch .p-5 { padding: 1.25rem; }
.profile-firewatch .px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.profile-firewatch .px-4 { padding-left: 1rem; padding-right: 1rem; }
.profile-firewatch .py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.profile-firewatch .py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.profile-firewatch .py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.profile-firewatch .py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.profile-firewatch .pb-2 { padding-bottom: 0.5rem; }
.profile-firewatch .pr-1 { padding-right: 0.25rem; }
.profile-firewatch .mb-1 { margin-bottom: 0.25rem; }
.profile-firewatch .mb-2 { margin-bottom: 0.5rem; }
.profile-firewatch .mb-3 { margin-bottom: 0.75rem; }
.profile-firewatch .mb-4 { margin-bottom: 1rem; }
.profile-firewatch .mb-5 { margin-bottom: 1.25rem; }
.profile-firewatch .mt-3 { margin-top: 0.75rem; }

/* ─── TYPOGRAPHY ─── */
.profile-firewatch .text-xs { font-size: 0.75rem; line-height: 1rem; }
.profile-firewatch .text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.profile-firewatch .text-base { font-size: 1rem; line-height: 1.5rem; }
.profile-firewatch .text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.profile-firewatch .text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.profile-firewatch .text-2xl { font-size: 1.5rem; line-height: 2rem; }
.profile-firewatch .text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.profile-firewatch .text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.profile-firewatch .text-5xl { font-size: 3rem; line-height: 1; }
.profile-firewatch .font-bold { font-weight: 700; }
.profile-firewatch .font-medium { font-weight: 500; }
.profile-firewatch .text-center { text-align: center; }
.profile-firewatch .text-right { text-align: right; }

/* ─── BORDER & RADIUS ─── */
.profile-firewatch .rounded-lg { border-radius: 0.5rem; }
.profile-firewatch .rounded-xl { border-radius: 0.75rem; }
.profile-firewatch .rounded-full { border-radius: 9999px; }
.profile-firewatch .border { border-width: 1px; }
.profile-firewatch .border-2 { border-width: 2px; }

/* ─── FLEXBOX ─── */
.profile-firewatch .flex { display: flex; }
.profile-firewatch .inline-flex { display: inline-flex; }
.profile-firewatch .flex-col { flex-direction: column; }
.profile-firewatch .items-center { align-items: center; }
.profile-firewatch .justify-center { justify-content: center; }
.profile-firewatch .justify-end { justify-content: flex-end; }
.profile-firewatch .flex-shrink-0 { flex-shrink: 0; }

/* ─── TRANSITIONS & ANIMATIONS ─── */
.profile-firewatch .transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.profile-firewatch .transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.profile-firewatch .animate-fade-in {
    animation: pfFadeIn 0.4s ease-out;
}
@keyframes pfFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── OPACITY & CURSOR ─── */
.profile-firewatch .opacity-30 { opacity: 0.3; }
.profile-firewatch .cursor-not-allowed { cursor: not-allowed; }
.profile-firewatch .cursor-help { cursor: help; }

/* ─── OVERFLOW ─── */
.profile-firewatch .overflow-hidden { overflow: hidden; }
.profile-firewatch .overflow-x-auto { overflow-x: auto; }

/* ─── TOUCH OPTIMIZATION ─── */
.profile-firewatch .touch-action-manipulation { touch-action: manipulation; }

/* ─── RESPONSIVE OVERRIDES (md:) ─── */
@media (min-width: 768px) {
    .profile-firewatch .md\:p-4 { padding: 1rem; }
    .profile-firewatch .md\:p-5 { padding: 1.25rem; }
    .profile-firewatch .md\:py-4 { padding-top: 1rem; padding-bottom: 1rem; }
    .profile-firewatch .md\:py-12 { padding-top: 3rem; padding-bottom: 3rem; }
    .profile-firewatch .md\:mb-5 { margin-bottom: 1.25rem; }
    .profile-firewatch .md\:gap-3 { gap: 0.75rem; }
    .profile-firewatch .md\:text-sm { font-size: 0.875rem; }
    .profile-firewatch .md\:text-base { font-size: 1rem; }
    .profile-firewatch .md\:text-lg { font-size: 1.125rem; }
    .profile-firewatch .md\:text-xl { font-size: 1.25rem; }
    .profile-firewatch .md\:text-2xl { font-size: 1.5rem; }
    .profile-firewatch .md\:text-3xl { font-size: 1.875rem; }
    .profile-firewatch .md\:text-5xl { font-size: 3rem; }
    .profile-firewatch .md\:w-12 { width: 3rem; }
    .profile-firewatch .md\:h-12 { height: 3rem; }
    .profile-firewatch .md\:h-4 { height: 1rem; }
    .profile-firewatch .md\:w-4 { width: 1rem; }
    .profile-firewatch .md\:rounded-xl { border-radius: 0.75rem; }
    .profile-firewatch .md\:space-y-4 > * + * { margin-top: 1rem; }
    .profile-firewatch .md\:mt-3 { margin-top: 0.75rem; }
    .profile-firewatch .md\:justify-end { justify-content: flex-end; }
}

/* ═══════════════════════════════════════
   TIMELINE
   ═══════════════════════════════════════ */
.pf-timeline {
    position: relative;
    padding-left: 30px;
}

.pf-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(to bottom, var(--pf-accent), var(--pf-ember), transparent);
}

.pf-timeline-item {
    position: relative;
    padding: 14px;
    margin-bottom: 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 159, 67, 0.1);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.pf-timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 18px;
    width: 10px;
    height: 10px;
    background: var(--pf-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--pf-accent);
}

.pf-timeline-item:hover {
    background: rgba(255, 159, 67, 0.05);
    border-color: var(--pf-border-accent);
    transform: translateX(5px);
}

.pf-timeline-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.pf-timeline-date {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    color: var(--pf-accent);
    font-weight: 600;
}

.pf-timeline-weather {
    font-size: 0.75rem;
    color: var(--pf-text-muted);
}

.pf-timeline-time {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--pf-text-primary);
}

.pf-timeline-duration {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--pf-text-secondary);
    background: rgba(255, 159, 67, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
}

/* ═══════════════════════════════════════
   BADGES GALLERY
   ═══════════════════════════════════════ */
.pf-badges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.pf-badge-item {
    position: relative;
    aspect-ratio: 1;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pf-badge-item:hover {
    transform: scale(1.1) rotate(5deg);
}

.pf-badge-item.legendary {
    border-color: var(--pf-rarity-legendary);
    box-shadow: 0 0 20px rgba(255, 159, 67, 0.4), inset 0 0 15px rgba(255, 159, 67, 0.1);
    animation: pfLegendaryPulse 2s ease-in-out infinite;
}

@keyframes pfLegendaryPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 159, 67, 0.4), inset 0 0 15px rgba(255, 159, 67, 0.1); }
    50% { box-shadow: 0 0 30px rgba(255, 159, 67, 0.6), inset 0 0 20px rgba(255, 159, 67, 0.15); }
}

.pf-badge-item.epic {
    border-color: var(--pf-rarity-epic);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4), inset 0 0 12px rgba(168, 85, 247, 0.1);
}

.pf-badge-item.rare {
    border-color: var(--pf-rarity-rare);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4), inset 0 0 10px rgba(59, 130, 246, 0.1);
}

.pf-badge-item.locked {
    opacity: 0.4;
    filter: grayscale(1);
}

/* ═══════════════════════════════════════
   LEADERBOARD
   ═══════════════════════════════════════ */
.pf-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 20px;
    padding: 0 10px;
}

.pf-podium-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--pf-border-subtle);
    transition: all 0.3s ease;
}

.pf-podium-place:hover {
    transform: translateY(-5px);
}

.pf-podium-place.first {
    order: 2;
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.15), rgba(255, 159, 67, 0.1));
    border-color: rgba(255, 215, 0, 0.4);
    padding-bottom: 40px;
}

.pf-podium-place.second {
    order: 1;
    padding-bottom: 25px;
}

.pf-podium-place.third {
    order: 3;
    padding-bottom: 15px;
}

.pf-podium-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pf-accent), var(--pf-ember));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 8px;
    position: relative;
}

.pf-podium-place.first .pf-podium-avatar {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.5);
}

.pf-podium-crown {
    position: absolute;
    top: -15px;
    font-size: 1.2rem;
}

.pf-podium-rank {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.pf-podium-place.first .pf-podium-rank { color: #ffd700; }
.pf-podium-place.second .pf-podium-rank { color: #c0c0c0; }
.pf-podium-place.third .pf-podium-rank { color: #cd7f32; }

.pf-podium-name {
    font-size: 0.7rem;
    color: var(--pf-text-secondary);
    max-width: 70px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pf-podium-score {
    font-size: 0.65rem;
    color: var(--pf-text-muted);
    margin-top: 4px;
}

/* Leaderboard list */
.pf-leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pf-leaderboard-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.pf-leaderboard-item:hover {
    background: rgba(255, 159, 67, 0.05);
    border-color: var(--pf-border-accent);
}

.pf-leaderboard-item.me {
    background: rgba(255, 159, 67, 0.1);
    border-color: var(--pf-border-accent);
}

.pf-leaderboard-rank {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--pf-text-muted);
}

.pf-leaderboard-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pf-accent), var(--pf-ember));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.pf-leaderboard-info {
    flex: 1;
    min-width: 0;
}

.pf-leaderboard-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pf-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pf-leaderboard-title {
    font-size: 0.65rem;
    color: var(--pf-text-muted);
}

.pf-leaderboard-score {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--pf-accent);
}

/* ═══════════════════════════════════════
   ADMIN BUTTON
   ═══════════════════════════════════════ */
.pf-admin-btn {
    background: var(--pf-card-solid);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.pf-admin-btn:hover {
    border-color: rgba(220, 38, 38, 0.6);
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.2);
    transform: translateY(-2px);
}

.pf-admin-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.pf-admin-title {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 4px;
}

.pf-admin-subtitle {
    font-size: 0.7rem;
    color: var(--pf-text-muted);
}

/* ═══════════════════════════════════════
   DETAILS TAB - Native Firewatch Styled Components
   ═══════════════════════════════════════ */

/* ─── SUB-TAB NAVIGATION ─── */
.pf-details-tabs {
    display: flex;
    gap: 6px;
    background: var(--pf-card-solid);
    backdrop-filter: blur(15px);
    border: 1px solid var(--pf-border-subtle);
    border-radius: 16px;
    padding: 6px;
    margin-bottom: 16px;
}

.pf-details-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--pf-text-muted);
}

.pf-details-tab:hover {
    background: rgba(255, 159, 67, 0.08);
    color: var(--pf-text-secondary);
}

.pf-details-tab.active {
    background: linear-gradient(135deg, rgba(255, 159, 67, 0.2), rgba(255, 107, 53, 0.15));
    color: var(--pf-accent);
    box-shadow: 0 0 15px rgba(255, 159, 67, 0.15);
}

.pf-details-tab-icon {
    font-size: 1.3rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.pf-details-tab-label {
    font-family: 'Cinzel', serif;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ─── MONTH SELECTOR ─── */
.pf-month-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 0;
    margin-bottom: 16px;
}

.pf-month-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--pf-card-solid);
    border: 1px solid var(--pf-border-subtle);
    color: var(--pf-accent);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pf-month-btn:hover:not(.disabled) {
    background: rgba(255, 159, 67, 0.15);
    border-color: var(--pf-border-accent);
    transform: scale(1.05);
}

.pf-month-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pf-month-display {
    font-family: 'Cinzel Decorative', 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pf-text-primary);
    min-width: 160px;
    text-align: center;
    text-shadow: 0 2px 8px rgba(255, 159, 67, 0.2);
}

/* ─── STATS GRID ─── */
.pf-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.pf-stat-card {
    background: var(--pf-card-solid);
    border: 1px solid var(--pf-border-subtle);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pf-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 16px 16px 0 0;
}

.pf-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Color variants */
.pf-stat-card.orange::before {
    background: linear-gradient(90deg, #ff9f43, #ff6b35);
}
.pf-stat-card.orange {
    border-color: rgba(255, 159, 67, 0.3);
}
.pf-stat-card.orange:hover {
    box-shadow: 0 8px 25px rgba(255, 159, 67, 0.25);
}

.pf-stat-card.purple::before {
    background: linear-gradient(90deg, #a855f7, #7c3aed);
}
.pf-stat-card.purple {
    border-color: rgba(168, 85, 247, 0.3);
}
.pf-stat-card.purple:hover {
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.25);
}

.pf-stat-card.teal::before {
    background: linear-gradient(90deg, #10b981, #059669);
}
.pf-stat-card.teal {
    border-color: rgba(16, 185, 129, 0.3);
}
.pf-stat-card.teal:hover {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.25);
}

.pf-stat-card.gold::before {
    background: linear-gradient(90deg, #ffd700, #ff9f43);
}
.pf-stat-card.gold {
    border-color: rgba(255, 215, 0, 0.3);
}
.pf-stat-card.gold:hover {
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.25);
}

.pf-stat-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
}

.pf-stat-value {
    font-family: 'Cinzel Decorative', 'Cinzel', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--pf-text-primary);
    text-shadow: 0 2px 10px rgba(255, 159, 67, 0.2);
    margin-bottom: 4px;
}

.pf-stat-label {
    font-size: 0.65rem;
    color: var(--pf-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ─── RECORD BANNER ─── */
.pf-record-banner {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 159, 67, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 16px;
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pf-accent-gold);
    animation: pfRecordPulse 2s ease-in-out infinite;
}

@keyframes pfRecordPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 0 20px 5px rgba(255, 215, 0, 0.15); }
}

/* ─── TOTAL TIME ─── */
.pf-total-time {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    padding: 16px 0;
}

.pf-total-value {
    font-family: 'Cinzel Decorative', 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--pf-accent);
    text-shadow: 0 4px 20px rgba(255, 159, 67, 0.4);
}

.pf-total-unit {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--pf-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ─── EMPTY STATE ─── */
.pf-empty-state {
    text-align: center;
    padding: 40px 20px;
}

.pf-empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.5;
    filter: grayscale(0.5);
}

.pf-empty-text {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    color: var(--pf-text-secondary);
    margin-bottom: 8px;
}

.pf-empty-subtext {
    font-size: 0.75rem;
    color: var(--pf-text-muted);
}

/* ─── BADGES VIEW ENHANCEMENTS ─── */
.pf-badge-icon {
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.pf-badge-name {
    font-size: 0.55rem;
    color: var(--pf-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    padding: 0 4px;
}

/* ─── LEADERBOARD VIEW ─── */
.pf-leaderboard {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pf-leaderboard-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid transparent;
    border-radius: 14px;
    transition: all 0.3s ease;
}

.pf-leaderboard-item:hover {
    background: rgba(255, 159, 67, 0.05);
    border-color: var(--pf-border-accent);
    transform: translateX(4px);
}

.pf-leaderboard-item.me {
    background: linear-gradient(135deg, rgba(255, 159, 67, 0.12), rgba(255, 107, 53, 0.08));
    border-color: var(--pf-border-accent);
}

.pf-leaderboard-item.top3 .pf-leaderboard-rank {
    font-size: 1.1rem;
    background: transparent;
}

.pf-leaderboard-rank {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--pf-text-muted);
    flex-shrink: 0;
}

.pf-leaderboard-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pf-accent), var(--pf-ember));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 159, 67, 0.3);
}

.pf-leaderboard-info {
    flex: 1;
    min-width: 0;
}

.pf-leaderboard-name {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--pf-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pf-leaderboard-stats {
    font-size: 0.65rem;
    color: var(--pf-text-muted);
    margin-top: 2px;
}

.pf-leaderboard-time {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--pf-accent);
    flex-shrink: 0;
}

/* ─── RECORDS VIEW ─── */
.pf-records-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pf-record-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--pf-border-subtle);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.pf-record-item:hover {
    background: rgba(255, 159, 67, 0.05);
    border-color: var(--pf-border-accent);
    transform: translateX(4px);
}

.pf-record-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 159, 67, 0.2), rgba(255, 107, 53, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.pf-record-info {
    flex: 1;
}

.pf-record-label {
    font-size: 0.7rem;
    color: var(--pf-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.pf-record-value {
    font-family: 'Cinzel Decorative', 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--pf-text-primary);
}

.pf-record-value span {
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--pf-text-muted);
}

/* ─── HEATMAP WRAP ─── */
.pf-heatmap-wrap {
    padding: 8px 0;
}

/* ═══════════════════════════════════════
   TRAIL RECORD MODAL - Enchanted Forest Chronicle
   Compact, magical night forest design
   ═══════════════════════════════════════ */

/* Modal Overlay - Mystical forest darkness */
.pf-trail-modal-overlay {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(147, 112, 219, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(255, 159, 67, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(15, 8, 20, 0.96) 0%, rgba(8, 4, 12, 0.99) 100%);
    backdrop-filter: blur(16px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    animation: pfOverlayFadeIn 0.25s ease-out;
    overflow: hidden;
}

/* Floating fireflies effect */
.pf-trail-modal-overlay::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 200, 100, 0.8);
    border-radius: 50%;
    top: 20%;
    left: 15%;
    box-shadow:
        60vw 10vh 0 0 rgba(255, 180, 80, 0.5),
        20vw 70vh 0 1px rgba(255, 220, 150, 0.4),
        80vw 30vh 0 0 rgba(255, 200, 100, 0.6),
        40vw 80vh 0 1px rgba(255, 180, 80, 0.3),
        70vw 60vh 0 0 rgba(255, 220, 150, 0.5);
    animation: pfFireflies 8s ease-in-out infinite;
}

@keyframes pfFireflies {
    0%, 100% { opacity: 0.4; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-20px); }
}

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

/* Modal Card - Enchanted scroll */
.pf-trail-modal {
    position: relative;
    width: 100%;
    max-width: 340px;
    max-height: calc(100vh - 100px);
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
    overflow-x: hidden;
    background:
        linear-gradient(175deg,
            rgba(50, 22, 45, 0.98) 0%,
            rgba(38, 16, 38, 0.99) 40%,
            rgba(28, 10, 28, 1) 100%);
    border: 1px solid rgba(255, 159, 67, 0.25);
    border-radius: 20px;
    padding: 20px 18px 16px;
    box-shadow:
        0 0 60px rgba(255, 159, 67, 0.12),
        0 20px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        inset 0 0 60px rgba(255, 159, 67, 0.02);
    animation: pfModalSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.pf-trail-modal::-webkit-scrollbar {
    display: none;
}

@keyframes pfModalSlideIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Top ember glow line */
.pf-trail-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 159, 67, 0.6) 20%,
        rgba(255, 200, 100, 0.9) 50%,
        rgba(255, 159, 67, 0.6) 80%,
        transparent);
    border-radius: 0 0 2px 2px;
    filter: blur(0.5px);
    animation: pfEmberPulse 3s ease-in-out infinite;
}

@keyframes pfEmberPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Close Button - Floating ember */
.pf-trail-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 159, 67, 0.2);
    color: var(--pf-accent);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
}

.pf-trail-close:hover {
    background: rgba(255, 159, 67, 0.25);
    border-color: var(--pf-accent);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 159, 67, 0.4);
}

/* Title - Enchanted banner */
.pf-trail-title {
    text-align: center;
    margin-bottom: 12px;
    padding: 10px 16px;
    background: linear-gradient(135deg,
        rgba(255, 159, 67, 0.15) 0%,
        rgba(255, 107, 53, 0.08) 100%);
    border: 1px solid rgba(255, 159, 67, 0.28);
    border-radius: 12px;
    font-family: 'Cinzel Decorative', 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--pf-accent);
    letter-spacing: 1.5px;
    text-shadow: 0 2px 12px rgba(255, 159, 67, 0.5);
    position: relative;
    overflow: hidden;
}

/* Shimmer effect on title */
.pf-trail-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent);
    animation: pfTitleShimmer 4s ease-in-out infinite;
}

@keyframes pfTitleShimmer {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

.pf-trail-title span {
    margin-right: 6px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Date - Mystical chronicle date */
.pf-trail-date {
    text-align: center;
    font-family: 'Cinzel Decorative', 'Cinzel', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--pf-text-primary);
    text-shadow: 0 2px 15px rgba(255, 159, 67, 0.3);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

/* Mood - Compact */
.pf-trail-mood {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 6px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

/* Message */
.pf-trail-message {
    text-align: center;
    font-size: 0.8rem;
    color: var(--pf-text-secondary);
    font-style: italic;
    margin-bottom: 6px;
    opacity: 0.9;
}

/* Divider - Aurora streak */
.pf-trail-divider {
    height: 1px;
    margin: 12px 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(147, 112, 219, 0.3) 20%,
        rgba(255, 159, 67, 0.5) 50%,
        rgba(147, 112, 219, 0.3) 80%,
        transparent 100%);
    position: relative;
}

.pf-trail-divider::before {
    content: '✦';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.6rem;
    color: var(--pf-accent);
    text-shadow: 0 0 8px var(--pf-accent);
}

/* Detail Cards - Compact gemstone style */
.pf-trail-card {
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 8px;
    transition: all 0.25s ease;
    position: relative;
}

.pf-trail-card:last-child {
    margin-bottom: 0;
}

.pf-trail-card:active {
    transform: scale(0.98);
}

/* Time Card - Warm amber */
.pf-trail-card.time {
    background: linear-gradient(135deg,
        rgba(255, 159, 67, 0.1) 0%,
        rgba(255, 107, 53, 0.05) 100%);
    border: 1px solid rgba(255, 159, 67, 0.15);
}

/* Duration Card - Golden treasure */
.pf-trail-card.duration {
    background: linear-gradient(135deg,
        rgba(255, 215, 0, 0.12) 0%,
        rgba(255, 180, 50, 0.06) 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    overflow: hidden;
}

/* Magical glow animation */
.pf-trail-card.duration::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: conic-gradient(
        from 0deg at 50% 50%,
        transparent 0deg,
        rgba(255, 215, 0, 0.08) 60deg,
        transparent 120deg,
        rgba(255, 180, 100, 0.06) 180deg,
        transparent 240deg,
        rgba(255, 215, 0, 0.08) 300deg,
        transparent 360deg
    );
    animation: pfMagicRotate 8s linear infinite;
    pointer-events: none;
}

@keyframes pfMagicRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Weather Card - Cool twilight */
.pf-trail-card.weather {
    background: linear-gradient(135deg,
        rgba(100, 160, 255, 0.08) 0%,
        rgba(147, 112, 219, 0.05) 100%);
    border: 1px solid rgba(100, 160, 255, 0.15);
}

/* Row layout - Compact */
.pf-trail-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pf-trail-row + .pf-trail-row {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 159, 67, 0.08);
}

/* Emoji */
.pf-trail-emoji {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    flex-shrink: 0;
    width: 36px;
    text-align: center;
}

.pf-trail-emoji.big {
    font-size: 1.8rem;
}

/* Info container */
.pf-trail-info {
    flex: 1;
    min-width: 0;
}

/* Label - Mystical runes style */
.pf-trail-label {
    font-family: 'Cinzel', serif;
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--pf-text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 2px;
    opacity: 0.85;
}

/* Value */
.pf-trail-value {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pf-text-primary);
    line-height: 1.2;
}

/* Golden duration value */
.pf-trail-value.gold {
    font-family: 'Cinzel Decorative', 'Cinzel', serif;
    font-size: 1.6rem;
    color: var(--pf-accent-gold);
    text-shadow:
        0 0 20px rgba(255, 215, 0, 0.5),
        0 0 40px rgba(255, 180, 50, 0.2);
    position: relative;
    z-index: 1;
    letter-spacing: 1px;
}

/* Blue weather value */
.pf-trail-value.blue {
    color: rgba(170, 210, 255, 1);
    text-shadow: 0 0 12px rgba(100, 160, 255, 0.3);
}

/* Temperature */
.pf-trail-temp {
    font-size: 0.75rem;
    color: var(--pf-text-muted);
    margin-top: 2px;
    opacity: 0.9;
}

/* Footer - Enchanted inscription */
.pf-trail-footer {
    text-align: center;
    font-size: 0.65rem;
    color: var(--pf-text-muted);
    font-style: italic;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 159, 67, 0.08);
    letter-spacing: 0.5px;
    opacity: 0.8;
}

/* Responsive - Extra small screens */
@media (max-height: 600px) {
    .pf-trail-modal {
        padding: 16px 14px 12px;
        max-height: calc(100vh - 80px);
        max-height: calc(100dvh - 80px);
    }
    .pf-trail-title {
        padding: 8px 14px;
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    .pf-trail-date { font-size: 1.2rem; margin-bottom: 6px; }
    .pf-trail-mood { font-size: 1.6rem; margin-bottom: 4px; }
    .pf-trail-divider { margin: 10px 0; }
    .pf-trail-card { padding: 10px 12px; margin-bottom: 6px; }
    .pf-trail-emoji { font-size: 1.3rem; width: 32px; }
    .pf-trail-emoji.big { font-size: 1.5rem; }
    .pf-trail-value { font-size: 1rem; }
    .pf-trail-value.gold { font-size: 1.4rem; }
    .pf-trail-row + .pf-trail-row { margin-top: 8px; padding-top: 8px; }
    .pf-trail-footer { margin-top: 10px; padding-top: 8px; }
}

.pf-heatmap-legend-item.level-0 { background: rgba(0, 0, 0, 0.4); }
.pf-heatmap-legend-item.level-1 { background: rgba(255, 159, 67, 0.2); }
.pf-heatmap-legend-item.level-2 { background: rgba(255, 159, 67, 0.4); }
.pf-heatmap-legend-item.level-3 { background: rgba(255, 159, 67, 0.6); }
.pf-heatmap-legend-item.level-4 { background: rgba(255, 159, 67, 0.85); }

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 380px) {
    .pf-hero-name { font-size: 1.3rem; }
    .pf-avatar { width: 76px; height: 76px; font-size: 2.5rem; }
    .pf-avatar-container { width: 88px; height: 88px; }
    .pf-badges-grid { grid-template-columns: repeat(3, 1fr); }
    .pf-tab-btn { font-size: 0.6rem; padding: 10px 4px; }

    /* Details tab responsive */
    .pf-details-tab { padding: 10px 6px; }
    .pf-details-tab-icon { font-size: 1.1rem; }
    .pf-details-tab-label { font-size: 0.5rem; }
    .pf-month-display { font-size: 0.95rem; min-width: 140px; }
    .pf-stat-card { padding: 12px; }
    .pf-stat-icon { font-size: 1.5rem; }
    .pf-stat-value { font-size: 1.2rem; }
    .pf-total-value { font-size: 2.5rem; }
}

/* ═══════════════════════════════════════════════════════════════
   FIREWATCH BOTTOM NAVIGATION - The Wanderer's Compass
   Enchanted forest navigation with ember glows and aurora effects
   ═══════════════════════════════════════════════════════════════ */

/* Main bottom nav container */
.fw-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 10px 4px;
    z-index: 1000;
    box-sizing: border-box;
}

/* Mystical aura glow behind nav */
.fw-nav-aura {
    position: absolute;
    bottom: 0;
    left: 5%;
    right: 5%;
    height: 100px;
    background: radial-gradient(
        ellipse at 50% 100%,
        rgba(255, 159, 67, 0.15) 0%,
        rgba(147, 112, 219, 0.08) 40%,
        transparent 70%
    );
    filter: blur(20px);
    pointer-events: none;
}

/* Nav container - glass morphism */
.fw-nav-container {
    position: relative;
    background: linear-gradient(
        180deg,
        rgba(74, 25, 66, 0.88) 0%,
        rgba(48, 18, 45, 0.95) 100%
    );
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 24px;
    border: 1px solid rgba(255, 159, 67, 0.2);
    padding: 6px 4px 8px;
    box-shadow:
        0 -4px 30px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(255, 159, 67, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    overflow: hidden;
    max-width: 480px;
    margin: 0 auto;
}

/* Top ember glow line */
.fw-nav-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 159, 67, 0.3) 20%,
        rgba(255, 159, 67, 0.8) 50%,
        rgba(255, 159, 67, 0.3) 80%,
        transparent 100%
    );
    animation: fwEmberPulse 3s ease-in-out infinite;
}

@keyframes fwEmberPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Corner rune accents */
.fw-nav-container::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 12px;
    height: 12px;
    border-left: 2px solid rgba(255, 159, 67, 0.4);
    border-top: 2px solid rgba(255, 159, 67, 0.4);
    pointer-events: none;
}

.fw-corner-accent {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 12px;
    height: 12px;
    border-right: 2px solid rgba(255, 159, 67, 0.4);
    border-top: 2px solid rgba(255, 159, 67, 0.4);
    pointer-events: none;
    z-index: 3;
}

/* Aurora ribbon effect */
.fw-aurora-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    overflow: hidden;
    border-radius: 24px;
    pointer-events: none;
    opacity: 0.4;
}

.fw-aurora-ribbon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg at 50% 50%,
        transparent 0deg,
        rgba(99, 255, 171, 0.03) 60deg,
        transparent 120deg,
        rgba(147, 112, 219, 0.03) 180deg,
        transparent 240deg,
        rgba(255, 159, 67, 0.03) 300deg,
        transparent 360deg
    );
    animation: fwAuroraRotate 20s linear infinite;
}

@keyframes fwAuroraRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Navigation items container */
.fw-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Individual nav item */
.fw-nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 8px 8px;
    min-width: 52px;
    background: transparent;
    border: none;
    color: rgba(255, 214, 191, 0.6);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    -webkit-tap-highlight-color: transparent;
}

/* Hover glow background */
.fw-nav-item::before {
    content: '';
    position: absolute;
    inset: 4px;
    background: radial-gradient(
        ellipse at 50% 30%,
        rgba(255, 159, 67, 0.12) 0%,
        transparent 70%
    );
    border-radius: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fw-nav-item:hover::before {
    opacity: 1;
}

/* Bottom indicator line */
.fw-nav-item::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--pf-accent, #ff9f43);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 8px var(--pf-accent, #ff9f43);
}

.fw-nav-item:hover::after {
    width: 24px;
}

.fw-nav-item:hover {
    color: #ffd6bf;
    transform: translateY(-2px);
}

/* Icon container - Phosphor Duotone */
.fw-nav-icon {
    position: relative;
    font-size: 1.5rem;
    line-height: 1;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
}

.fw-nav-icon i {
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.fw-nav-item:hover .fw-nav-icon {
    transform: scale(1.15) translateY(-2px);
}

.fw-nav-item:hover .fw-nav-icon i {
    filter: drop-shadow(0 4px 8px rgba(255, 159, 67, 0.4));
}

/* Nav label */
.fw-nav-label {
    font-family: 'Cinzel', serif;
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.fw-nav-item:hover .fw-nav-label {
    color: #ffd4a3;
}

/* ═══════════════════════════════════════
   ACTIVE STATE - The Chosen Path
   ═══════════════════════════════════════ */

.fw-nav-item.active {
    color: var(--pf-accent, #ff9f43);
    transform: translateY(-4px);
}

/* Floating platform effect */
.fw-nav-item.active::before {
    opacity: 1;
    background:
        radial-gradient(
            ellipse at 50% 100%,
            rgba(255, 159, 67, 0.25) 0%,
            rgba(255, 107, 53, 0.15) 40%,
            transparent 70%
        ),
        linear-gradient(
            180deg,
            rgba(255, 159, 67, 0.08) 0%,
            transparent 100%
        );
    inset: 0;
    border-radius: 16px;
    animation: fwActivePulse 2s ease-in-out infinite;
}

@keyframes fwActivePulse {
    0%, 100% { opacity: 0.9; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

/* Active bottom bar - wider and glowing */
.fw-nav-item.active::after {
    width: 32px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b35, #ff9f43, #ffb366);
    box-shadow:
        0 0 12px var(--pf-accent, #ff9f43),
        0 0 24px rgba(255, 159, 67, 0.4);
    animation: fwGlowPulse 2s ease-in-out infinite;
}

@keyframes fwGlowPulse {
    0%, 100% {
        box-shadow: 0 0 12px var(--pf-accent, #ff9f43), 0 0 24px rgba(255, 159, 67, 0.4);
    }
    50% {
        box-shadow: 0 0 16px var(--pf-accent, #ff9f43), 0 0 32px rgba(255, 159, 67, 0.6);
    }
}

.fw-nav-item.active .fw-nav-icon {
    transform: scale(1.2);
    animation: fwIconFloat 3s ease-in-out infinite;
}

@keyframes fwIconFloat {
    0%, 100% { transform: scale(1.2) translateY(0); }
    50% { transform: scale(1.2) translateY(-3px); }
}

.fw-nav-item.active .fw-nav-icon i {
    filter: drop-shadow(0 0 14px rgba(255, 159, 67, 0.7));
}

.fw-nav-item.active .fw-nav-label {
    color: var(--pf-accent, #ff9f43);
    text-shadow: 0 0 12px rgba(255, 159, 67, 0.5);
}

/* ═══════════════════════════════════════
   EMBER PARTICLES - Firefly Magic
   ═══════════════════════════════════════ */

.fw-ember-container {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 60px;
    pointer-events: none;
    overflow: visible;
}

.fw-ember {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--pf-accent, #ff9f43);
    border-radius: 50%;
    bottom: 0;
    left: 50%;
    opacity: 0;
    filter: blur(0.5px);
    box-shadow: 0 0 6px var(--pf-accent, #ff9f43);
}

/* Only show embers on active item */
.fw-nav-item.active .fw-ember {
    animation: fwEmberRise 2s ease-out infinite;
}

.fw-nav-item.active .fw-ember:nth-child(1) { animation-delay: 0s; left: 30%; --fw-drift: -15px; }
.fw-nav-item.active .fw-ember:nth-child(2) { animation-delay: 0.5s; left: 70%; --fw-drift: 20px; }
.fw-nav-item.active .fw-ember:nth-child(3) { animation-delay: 1s; left: 50%; --fw-drift: -8px; }
.fw-nav-item.active .fw-ember:nth-child(4) { animation-delay: 1.5s; left: 40%; --fw-drift: 12px; }

@keyframes fwEmberRise {
    0% { opacity: 0; transform: translateY(0) scale(1); }
    20% { opacity: 0.8; }
    100% { opacity: 0; transform: translateY(-50px) translateX(var(--fw-drift, 10px)) scale(0.3); }
}

/* Unread badge */
.fw-nav-badge {
    position: absolute;
    top: 2px;
    right: 6px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    font-size: 10px;
    font-weight: 800;
    font-family: 'Nunito', sans-serif;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.8);
    animation: fwBadgePulse 2s ease-in-out infinite;
    z-index: 10;
}

@keyframes fwBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Ripple effect on tap */
.fw-ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 159, 67, 0.4) 0%,
        rgba(255, 159, 67, 0.1) 50%,
        transparent 70%
    );
    transform: scale(0);
    animation: fwRippleExpand 0.6s ease-out forwards;
    pointer-events: none;
}

@keyframes fwRippleExpand {
    to { transform: scale(4); opacity: 0; }
}

/* Responsive */
@media (max-width: 380px) {
    .fw-nav-item {
        min-width: 46px;
        padding: 8px 6px 6px;
    }
    .fw-nav-icon {
        font-size: 1.3rem;
    }
    .fw-nav-label {
        font-size: 0.5rem;
    }
}
