/* Reset & Variable Foundations */
:root {
    --bg-main: #0a0512;
    --bg-card: rgba(22, 14, 33, 0.45);
    --bg-card-hover: rgba(33, 21, 48, 0.6);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-primary: #f3eff7;
    --text-secondary: #c2b6cf;
    --accent-gold: #f5a623;
    --accent-rose: #ff477e;
    --accent-purple: #9c27b0;
    --bhondu-color: #ff5e7e;
    --batman-color: #4da6ff;
    --glow-sunset: linear-gradient(135deg, #f5a623, #ff477e, #b92b27);
    --font-outfit: 'Outfit', sans-serif;
    --font-inter: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-inter);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    line-height: 1.6;
}

/* Ambient Glow Blurs */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.35;
}
.bg-glow-1 {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent-rose) 0%, transparent 70%);
    top: -10vw;
    left: -10vw;
    animation: glow-move-1 25s infinite alternate ease-in-out;
}
.bg-glow-2 {
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, var(--accent-gold) 0%, transparent 70%);
    bottom: -10vw;
    right: -10vw;
    animation: glow-move-2 20s infinite alternate ease-in-out;
}

@keyframes glow-move-1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(15vw, 10vw) scale(1.2); }
}
@keyframes glow-move-2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-10vw, -15vw) scale(1.1); }
}

/* Floating Lily Petals styling */
.petals-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
}
.petal {
    position: absolute;
    width: 16px;
    height: 16px;
    background: radial-gradient(circle, #ffecf2 0%, #ffc2d4 70%, transparent 100%);
    border-radius: 15% 85% 15% 85%;
    opacity: 0.7;
    filter: drop-shadow(0 2px 5px rgba(255, 71, 126, 0.2));
    animation: fall linear infinite;
    transform-origin: center;
}

@keyframes fall {
    0% {
        transform: translate3d(0, -50px, 0) rotate(0deg) scale(0.6);
        opacity: 0;
    }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% {
        transform: translate3d(150px, 105vh, 0) rotate(360deg) scale(1);
        opacity: 0;
    }
}

/* Glassmorphism Styles */
.glass {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.35);
    border-radius: 18px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.glass:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

/* Typography & Headers */
h1, h2, h3, h4 {
    font-family: var(--font-outfit);
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(12, 7, 20, 0.5);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 71, 126, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 71, 126, 0.5);
}

/* Common Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 12px;
    font-family: var(--font-outfit);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}
.btn-primary {
    background: var(--glow-sunset);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 71, 126, 0.4);
}
.btn-primary:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(255, 71, 126, 0.6);
}
.btn-glow {
    position: relative;
    overflow: hidden;
}
.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: rotate(30deg);
    animation: btn-shine 4s infinite linear;
}
@keyframes btn-shine {
    0% { transform: translate(-100%, -100%) rotate(30deg); }
    100% { transform: translate(100%, 100%) rotate(30deg); }
}

/* Floating Music Player Widget */
.music-player-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100;
    display: flex;
    align-items: center;
    background: rgba(26, 17, 36, 0.85);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    border-radius: 50px;
    padding: 8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 320px;
    overflow: hidden;
}
.music-player-widget.collapsed {
    max-width: 60px;
    border-radius: 50%;
    padding: 8px;
}
.player-toggle-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--glow-sunset);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.player-toggle-btn:hover {
    transform: scale(1.05);
}
.icon-music {
    width: 22px;
    height: 22px;
    fill: currentColor;
}
.player-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 12px;
    padding-right: 16px;
    opacity: 1;
    transition: opacity 0.3s ease;
    width: 250px;
}
.music-player-widget.collapsed .player-content {
    opacity: 0;
    width: 0;
    pointer-events: none;
    padding: 0;
}
.player-album-art {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.album-art-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.player-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-grow: 1;
}
.song-title {
    font-family: var(--font-outfit);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.artist-name {
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.player-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
.control-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.control-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}
.player-volume-container {
    display: flex;
    align-items: center;
    gap: 4px;
}
.volume-slider {
    width: 0;
    transition: width 0.3s ease;
    height: 4px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
}
.player-volume-container:hover .volume-slider {
    width: 50px;
}
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-rose);
    cursor: pointer;
}

/* Music Visualizer Bars */
.music-visualizer {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2px;
    align-items: flex-end;
    height: 14px;
}
.music-visualizer .bar {
    width: 2px;
    height: 3px;
    background-color: var(--accent-gold);
    animation: bounce 0.6s infinite ease-in-out alternate;
    transform-origin: bottom;
    opacity: 0;
}
.music-visualizer.playing .bar {
    opacity: 1;
}
.music-visualizer.playing .bar:nth-child(1) { animation-delay: 0.1s; }
.music-visualizer.playing .bar:nth-child(2) { animation-delay: 0.3s; }
.music-visualizer.playing .bar:nth-child(3) { animation-delay: 0.2s; }
.music-visualizer.playing .bar:nth-child(4) { animation-delay: 0.4s; }

@keyframes bounce {
    0% { transform: scaleY(1); }
    100% { transform: scaleY(4); }
}

.hidden { display: none !important; }

/* HERO SECTION */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    transition: all 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}
.hero-section.hidden {
    opacity: 0;
    transform: scale(0.95);
    display: none !important;
}
.hero-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    max-width: 1100px;
    background: rgba(22, 14, 33, 0.45);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
    animation: fade-in-up 1s ease-out;
}
.hero-collage-preview {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 500px;
}
.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.15) contrast(1.05);
    transition: transform 12s ease-out;
}
.hero-card:hover .hero-bg-img {
    transform: scale(1.08);
}
.hero-text-content {
    padding: 60px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-subtitle {
    font-family: var(--font-outfit);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-rose);
    margin-bottom: 12px;
}
.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    background: var(--glow-sunset);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 36px;
    font-weight: 300;
}

@keyframes fade-in-up {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* MAIN CONTENT VIEW SCREEN */
.main-content-section {
    padding-top: 100px;
    min-height: 100vh;
    animation: fade-in 0.8s ease-out;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Nav Styles */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: rgba(10, 5, 18, 0.7);
    border-bottom: 1px solid var(--border-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 90;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-emoji {
    font-size: 1.8rem;
    animation: wobble 2.5s infinite alternate ease-in-out;
}
@keyframes wobble {
    0% { transform: rotate(-8deg); }
    100% { transform: rotate(8deg); }
}
.logo-text {
    font-family: var(--font-outfit);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.nav-links {
    display: flex;
    gap: 8px;
}
.nav-link {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 10px 20px;
    font-family: var(--font-outfit);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}
.nav-link.active {
    color: #fff;
    background: rgba(255, 71, 126, 0.15);
    border: 1px solid rgba(255, 71, 126, 0.25);
}

/* Tabs and Panes */
.tabs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}
.tab-pane {
    display: none;
}
.tab-pane.active {
    display: block;
    animation: fade-in-up 0.5s ease-out;
}

/* Section Header */
.section-header {
    margin-bottom: 40px;
    text-align: center;
}
.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 300;
}
.section-header p strong {
    color: var(--accent-gold);
    font-weight: 500;
}

/* 1. DASHBOARD */
.parser-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    margin-bottom: 24px;
}
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 71, 126, 0.15);
    border-top: 4px solid var(--accent-rose);
    border-radius: 50%;
    animation: spin 1s infinite linear;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.stat-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.stat-icon {
    font-size: 2.2rem;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stat-info {
    display: flex;
    flex-direction: column;
}
.stat-value {
    font-family: var(--font-outfit);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(to right, #fff, #ebdfff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.charts-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
}
.chart-card {
    padding: 24px;
}
.chart-card h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Chat Balance Ratio Bar */
.ratio-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 10px 0;
}
.ratio-labels {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 0.95rem;
}
.ratio-bar-wrapper {
    display: flex;
    height: 36px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.ratio-fill {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #fff;
    font-weight: 700;
    font-family: var(--font-outfit);
    transition: width 1s ease-out;
}
.bhondu-fill {
    background: linear-gradient(90deg, #ff3366, #ff5e7e);
}
.batman-fill {
    background: linear-gradient(90deg, #0088cc, #33b5e5);
}
.ratio-breakdown {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Hourly Chart Bars */
.hourly-chart {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    height: 160px;
    gap: 4px;
    align-items: flex-end;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 8px;
}
.hourly-bar-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}
.hourly-bar {
    width: 100%;
    background: linear-gradient(0deg, var(--accent-rose), var(--accent-gold));
    border-radius: 4px 4px 0 0;
    transition: height 0.8s ease-out;
    opacity: 0.85;
}
.hourly-bar-wrapper:hover .hourly-bar {
    opacity: 1;
    filter: brightness(1.2);
}
.hourly-tooltip {
    position: absolute;
    bottom: calc(100% + 5px);
    background: #000;
    color: #fff;
    font-size: 0.7rem;
    padding: 3px 6px;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    white-space: nowrap;
    z-index: 5;
}
.hourly-bar-wrapper:hover .hourly-tooltip {
    opacity: 1;
}
.hourly-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 8px;
    padding: 0 4px;
}

.details-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
}
.detail-card {
    padding: 24px;
}
.detail-card h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 8px;
}
.habits-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.habit-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.habit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.habit-title {
    font-family: var(--font-outfit);
    font-weight: 600;
    color: var(--text-primary);
}
.habit-val {
    font-family: var(--font-outfit);
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-gold);
    background: rgba(245, 166, 35, 0.1);
    padding: 3px 8px;
    border-radius: 6px;
}
.habit-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.top-expressions {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 16px;
}
.expression-block h4 {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}
.expression-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.expression-list li {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.02);
}
.expr-name {
    font-weight: 500;
}
.expr-count {
    color: var(--accent-rose);
    font-weight: 600;
}

.fun-fact-box {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-left: 4px solid var(--accent-gold);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    user-select: none;
}
.fun-fact-box:hover {
    background: rgba(245, 166, 35, 0.08);
    border-color: var(--accent-rose);
    transform: translateY(-1px);
}
.fun-fact-box:active {
    transform: scale(0.98);
}
.fact-emoji {
    font-size: 1.8rem;
}
.fact-content h4 {
    font-size: 1.05rem;
    margin-bottom: 2px;
    color: var(--accent-gold);
}
.fact-content p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    transition: opacity 0.2s ease;
}

/* 2. TIMELINE */
.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 40px auto;
    padding: 0 10px;
}
.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-rose), var(--accent-gold), rgba(255, 71, 126, 0));
    transform: translateX(-50%);
}
.timeline-item {
    position: relative;
    width: 50%;
    margin-bottom: 60px;
    padding: 0 40px;
    opacity: 0.95;
}
.timeline-item.left {
    left: 0;
    text-align: right;
}
.timeline-item.right {
    left: 50%;
    text-align: left;
}
.timeline-badge {
    position: absolute;
    top: 10px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1f142e;
    border: 2px solid var(--accent-rose);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    z-index: 10;
    box-shadow: 0 0 15px rgba(255, 71, 126, 0.4);
}
.timeline-item.left .timeline-badge {
    right: -22px;
}
.timeline-item.right .timeline-badge {
    left: -22px;
}
.timeline-card-content {
    padding: 24px;
}
.timeline-card-content .date {
    display: inline-block;
    font-family: var(--font-outfit);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--accent-rose);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.timeline-card-content h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}
.timeline-card-content .quote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.05rem;
    color: #ebdfff;
    margin-bottom: 16px;
    padding: 10px 16px;
    border-left: 3px solid var(--accent-gold);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0 8px 8px 0;
}
.timeline-item.left .timeline-card-content .quote {
    border-left: none;
    border-right: 3px solid var(--accent-gold);
    border-radius: 8px 0 0 8px;
    text-align: right;
}
.timeline-media {
    margin-top: 14px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}
.timeline-media img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.zoom-img:hover {
    transform: scale(1.05);
}
.timeline-video-wrapper {
    margin-top: 14px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.timeline-video {
    width: 100%;
    display: block;
    max-height: 280px;
    background: #000;
}
.timeline-card-content .caption {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 12px;
}

/* 3. CUTE ANALYSIS TAB */
.cute-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.cute-card {
    padding: 24px;
}
.cute-card h3 {
    margin-bottom: 14px;
    font-size: 1.3rem;
    color: var(--accent-rose);
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 8px;
}
.nickname-meters {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}
.nickname-meter-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.nickname-meter-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 500;
}
.nickname-meter-bg {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.nickname-meter-fill {
    height: 100%;
    background: var(--glow-sunset);
    border-radius: 6px;
    width: 0%;
    transition: width 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.caring-stats-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 12px;
}
.caring-stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.caring-stat-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.caring-emoji {
    font-size: 1.8rem;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.caring-title {
    font-weight: 600;
    font-size: 0.95rem;
}
.caring-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.caring-val {
    font-family: var(--font-outfit);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.cheer-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}
.cheer-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    padding: 14px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.cheer-badge {
    font-family: var(--font-outfit);
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
}
.badge-taekwondo {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}
.badge-modeling {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
}
.cheer-count {
    font-family: var(--font-outfit);
    font-weight: 700;
    color: #fff;
}

.cute-banter-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}
.banter-quote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #ebdfff;
    padding: 12px;
    background: rgba(255, 71, 126, 0.05);
    border-left: 3px solid var(--accent-rose);
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
    margin-bottom: 8px;
}
.banter-metric {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 8px 12px;
    border-radius: 8px;
}
.banter-metric strong {
    color: var(--accent-gold);
}

/* Footers */
.glass-footer {
    max-width: 1200px;
    margin: 60px auto 40px auto;
    padding: 24px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-glass);
}

/* ==========================================================================
   MOBILE RESPONSIVE & MOBILE-FIRST OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 768px) {
    /* Hero Landing page optimization */
    .hero-section {
        padding: 16px;
    }
    .hero-card {
        grid-template-columns: 1fr;
        border-radius: 24px;
    }
    .hero-collage-preview {
        min-height: 240px;
    }
    .hero-text-content {
        padding: 32px 20px;
        text-align: center;
    }
    .hero-title {
        font-size: 2.4rem;
        margin-bottom: 16px;
    }
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    /* Fixed Glass Nav layout on mobile */
    .glass-nav {
        padding: 0 16px;
        height: auto;
        flex-direction: column;
        gap: 8px;
        padding-bottom: 10px;
        padding-top: 12px;
        position: sticky;
        top: 0;
    }
    .main-content-section {
        padding-top: 12px;
    }
    .nav-logo {
        width: 100%;
        justify-content: center;
    }
    .logo-emoji {
        font-size: 1.4rem;
    }
    .logo-text {
        font-size: 1.1rem;
    }

    /* Horizontal scrollable tab bars on mobile */
    .nav-links {
        width: 100%;
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        gap: 4px;
        padding-bottom: 4px;
        scrollbar-width: none; /* Hide scrollbar for Firefox */
    }
    .nav-links::-webkit-scrollbar {
        display: none; /* Hide scrollbar for Chrome/Safari */
    }
    .nav-link {
        padding: 8px 12px;
        font-size: 0.85rem;
        flex-shrink: 0;
    }

    /* Tabs padding adjustment */
    .tabs-container {
        padding: 12px;
    }
    .section-header {
        margin-bottom: 24px;
    }
    .section-header h2 {
        font-size: 1.8rem;
    }
    .section-header p {
        font-size: 0.9rem;
    }

    /* Stats Grid stack */
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .stat-card {
        padding: 16px;
        gap: 12px;
    }
    .stat-icon {
        font-size: 1.6rem;
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }
    .stat-value {
        font-size: 1.4rem;
    }
    .stat-label {
        font-size: 0.75rem;
    }

    /* Dashboard Layout stack */
    .charts-row, .details-row, .cute-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .chart-card, .detail-card, .cute-card {
        padding: 16px;
    }

    /* Hourly Chart bars resizing */
    .hourly-chart {
        height: 120px;
        gap: 2px;
    }
    .hourly-labels {
        font-size: 0.65rem;
    }

    /* Expressions lists */
    .top-expressions {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Custom Mobile Timeline (Very Critical for neatness) */
    .timeline-container {
        padding: 0 8px;
    }
    .timeline-line {
        left: 20px; /* Align to the left side */
        transform: none;
    }
    .timeline-item {
        width: 100%;
        padding-left: 44px; /* Space from line */
        padding-right: 0;
        margin-bottom: 40px;
    }
    .timeline-item.left, .timeline-item.right {
        left: 0;
        text-align: left;
    }
    .timeline-item.left .timeline-badge, .timeline-item.right .timeline-badge {
        left: -2px; /* Center badge on the left line */
        right: auto;
    }
    .timeline-card-content {
        padding: 16px;
    }
    .timeline-card-content h3 {
        font-size: 1.15rem;
    }
    .timeline-card-content .quote {
        font-size: 0.95rem;
        border-left: 3px solid var(--accent-gold);
        border-right: none;
        border-radius: 0 8px 8px 0;
        text-align: left;
        padding: 8px 12px;
    }
    .timeline-media img {
        max-height: 200px;
    }
    .timeline-video {
        max-height: 200px;
    }

    /* Floating music player scaling on mobile */
    .music-player-widget {
        bottom: 16px;
        right: 16px;
        max-width: 280px;
    }
    .player-content {
        width: 210px;
        gap: 8px;
        padding-right: 8px;
    }
    .song-title {
        font-size: 0.85rem;
    }
    .artist-name {
        font-size: 0.7rem;
    }
    .player-volume-container {
        display: none; /* Hide volume controls on mobile to conserve space */
    }
}
