/* 
   METABOLIC PRO - ROYAL PREMIUM EDITION
   Design System & Theme Variables
*/

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap');

:root {
    /* Royal Dark Theme (Default) */
    --bg-body: #0f172a;
    /* Deep Navy / Slate 900 */
    --bg-sidebar: #1e293b;
    /* Slate 800 */
    --bg-card: rgba(30, 41, 59, 0.7);
    /* Glassy Slate */

    --text-main: #f8fafc;
    /* Slate 50 */
    --text-muted: #94a3b8;
    /* Slate 400 */

    --accent-gold: #d4af37;
    /* Classic Gold */
    --accent-gold-hover: #b5922f;
    --accent-gold-glass: rgba(212, 175, 55, 0.15);

    --divider: rgba(148, 163, 184, 0.1);
    --input-bg: #0f172a;
    --input-border: #334155;

    /* Functional Colors */
    --color-protein: #3b82f6;
    /* Blue */
    --color-carbs: #10b981;
    /* Emerald */
    --color-fats: #f59e0b;
    /* Amber */

    --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);

    --font-heading: 'Playfair Display', serif;
    --font-ui: 'Manrope', sans-serif;
}

/* Light Theme Variables - Activated via class */
body.light-theme {
    --bg-body: #f8fafc;
    --bg-sidebar: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.8);

    --text-main: #1e293b;
    --text-muted: #64748b;

    --accent-gold: #b08d26;
    /* Darker Gold for contrast on light */
    --accent-gold-hover: #8f721e;
    --accent-gold-glass: rgba(176, 141, 38, 0.1);

    --divider: rgba(0, 0, 0, 0.05);
    --input-bg: #f1f5f9;
    --input-border: #cbd5e1;

    --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --glass-border: 1px solid rgba(0, 0, 0, 0.02);
}

/* RESET & BASE */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-ui);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
    position: relative;
}

/* Aurora Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background:
        linear-gradient(125deg,
            rgba(212, 175, 55, 0.08) 0%,
            rgba(59, 130, 246, 0.05) 25%,
            rgba(16, 185, 129, 0.05) 50%,
            rgba(139, 92, 246, 0.06) 75%,
            rgba(212, 175, 55, 0.08) 100%);
    background-size: 400% 400%;
    animation: auroraRotate 20s ease infinite;
    pointer-events: none;
}

@keyframes auroraRotate {
    0% {
        background-position: 0% 50%;
    }

    25% {
        background-position: 50% 75%;
    }

    50% {
        background-position: 100% 50%;
    }

    75% {
        background-position: 50% 25%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* APP LAYOUT - Desktop First Grid */
.app-container {
    display: grid;
    grid-template-columns: 380px 1fr;
    /* Sidebar width fixed */
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* --- SIDEBAR STYLES --- */
.sidebar {
    background-color: var(--bg-sidebar);
    padding: 2rem;
    border-right: 1px solid var(--divider);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    z-index: 10;
    box-shadow: 20px 0 40px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    height: 100vh;
    scrollbar-width: thin;
    scrollbar-color: var(--input-border) var(--bg-sidebar);
}

/* Header */
.sidebar-header {
    text-align: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--accent-gold);
}

.sidebar-header h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.tagline {
    color: var(--accent-gold);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
}

/* Theme Toggle */
.theme-toggle-wrapper {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.theme-toggle {
    display: none;
}

.theme-toggle-label {
    background-color: var(--input-bg);
    width: 60px;
    height: 30px;
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    border: 1px solid var(--input-border);
    transition: all 0.3s ease;
}

.theme-toggle-label .icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    transition: opacity 0.3s;
}

.sun-icon {
    left: 8px;
    color: #fbbf24;
    opacity: 1;
}

.moon-icon {
    right: 8px;
    color: #3b82f6;
    opacity: 1;
}

.theme-toggle-label::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background-color: var(--accent-gold);
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.theme-toggle:checked+.theme-toggle-label::after {
    transform: translateX(30px);
}

/* Form Sections */
.form-section {
    margin-bottom: 0.5rem;
}

.form-section h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.input-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.badge-opt {
    font-size: 0.65rem;
    background: var(--divider);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    color: var(--text-muted);
}

.tooltip-icon {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-left: 4px;
    cursor: help;
}

/* Inputs & Selects */
input,
select {
    width: 100%;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-main);
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px var(--accent-gold-glass);
}

/* Custom Select Arrow */
.select-wrapper {
    position: relative;
}

.select-wrapper select {
    appearance: none;
    cursor: pointer;
}

.arrow-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--accent-gold);
    font-size: 0.8rem;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn {
    border: none;
    cursor: pointer;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: var(--font-ui);
}

.btn-primary {
    flex: 1;
    background: linear-gradient(135deg, var(--accent-gold), #b38f22);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 20px -5px rgba(212, 175, 55, 0.4);
    letter-spacing: 0.02em;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(212, 175, 55, 0.5);
}

.btn-secondary {
    width: 50px;
    background-color: var(--input-bg);
    color: var(--text-muted);
    border: 1px solid var(--input-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background-color: var(--divider);
    color: var(--text-main);
}

/* --- DASHBOARD STYLES --- */
.dashboard {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    height: 100vh;
    overflow-y: auto;
    background-image:
        radial-gradient(circle at 90% 10%, var(--accent-gold-glass) 0%, transparent 20%),
        radial-gradient(circle at 10% 90%, rgba(59, 130, 246, 0.05) 0%, transparent 20%);
}

.dashboard-header-mobile {
    display: none;
}

/* KPI Grid (Top Row) */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow-premium);
    transition: transform 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-3px);
}

.kpi-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.kpi-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--accent-gold-glass);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.main-kpi .kpi-icon {
    background: linear-gradient(135deg, var(--accent-gold), #b38f22);
    color: #fff;
    box-shadow: 0 8px 16px -4px rgba(212, 175, 55, 0.4);
}

.kpi-content h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.kpi-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-main);
}

.kpi-value.highlight {
    color: var(--accent-gold);
    font-size: 2.5rem;
}

.kpi-value small {
    font-size: 0.9rem;
    font-weight: 400;
    font-family: var(--font-ui);
    color: var(--text-muted);
    margin-left: 4px;
}

.kpi-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 6px;
    background: var(--divider);
}

/* Target Section */
.target-section {
    padding: 2.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--divider);
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.target-calories {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--accent-gold);
    font-weight: 700;
}

/* Macros Grid */
.macros-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding: 0 1rem;
}

.macro-item {
    text-align: center;
    position: relative;
}

.macro-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.macro-item.protein .dot {
    background-color: var(--color-protein);
}

.macro-item.carbs .dot {
    background-color: var(--color-carbs);
}

.macro-item.fats .dot {
    background-color: var(--color-fats);
}

.macro-val {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.macro-bar {
    height: 6px;
    background-color: var(--divider);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.macro-item.protein .fill {
    background-color: var(--color-protein);
}

.macro-item.carbs .fill {
    background-color: var(--color-carbs);
}

.macro-item.fats .fill {
    background-color: var(--color-fats);
}

.macro-cal {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Projection Section */
.projection-section {
    padding: 2rem;
    margin-bottom: 2rem;
    /* Add space before extras */
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--accent-gold-glass);
    background: linear-gradient(to right, rgba(30, 41, 59, 0.7), rgba(20, 30, 45, 0.9));
}

.projection-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.projection-icon {
    font-size: 2.5rem;
    color: var(--accent-gold);
    width: 70px;
    height: 70px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.projection-details h3 {
    font-size: 1rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.projection-text {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.highlight-text {
    font-weight: 700;
    color: var(--text-main);
}

.highlight-gold {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 1.3rem;
}

.projection-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

.projection-alert {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    color: #fca5a5;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

/* Extras Grid */
.extras-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
}

.extra-card h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.water-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.water-glass {
    font-size: 2.5rem;
    color: #0ea5e9;
    /* Sky Blue */
    background: rgba(14, 165, 233, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.water-text {
    display: flex;
    flex-direction: column;
}

.water-val {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.water-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.advice-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.advice-card p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* TOOLTIP STYLES */
.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip-trigger {
    cursor: help;
    color: var(--accent-gold);
    font-size: 1rem;
    margin-left: 0.5rem;
    transition: all 0.2s ease;
}

.tooltip-trigger:hover {
    transform: scale(1.1);
    color: var(--accent-gold-hover);
}

.tooltip-content {
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-sidebar);
    backdrop-filter: blur(12px);
    border: 1px solid var(--accent-gold-glass);
    border-radius: 12px;
    padding: 1rem;
    width: 240px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    pointer-events: none;
}

@media (max-width: 600px) {
    .tooltip-content {
        width: 220px;
        max-width: 85vw;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) translateY(10px) !important;
        padding: 1rem;
    }
}

.tooltip-content h5 {
    color: var(--accent-gold);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: none !important;
}

.tooltip-content p {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 0;
    text-transform: none !important;
}

/* Tooltip Arrow */
.tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: var(--bg-sidebar);
}

.tooltip-container:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
    bottom: 130%;
}

/* Skeleton Loader Styles */
.skeleton {
    background: linear-gradient(90deg,
            var(--input-bg) 0%,
            rgba(148, 163, 184, 0.1) 50%,
            var(--input-bg) 100%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s ease-in-out infinite;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

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

    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 1.2rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
}

.skeleton-text.large {
    height: 2.5rem;
    width: 60%;
}

.skeleton-text.medium {
    height: 1.5rem;
    width: 40%;
}

.skeleton-text.small {
    height: 1rem;
    width: 80%;
}

.skeleton-circle {
    width: 60px;
    height: 60px;
    border-radius: 16px;
}

.skeleton-bar {
    height: 6px;
    margin: 1rem 0;
    border-radius: 10px;
}

/* Hidden class for skeleton state management */
.hidden {
    display: none !important;
}

/* ANIMATIONS */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard section {
    animation: fadeIn 0.6s ease-out forwards;
}

.target-section {
    animation-delay: 0.1s;
}

.extras-grid {
    animation-delay: 0.2s;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .app-container {
        grid-template-columns: 320px 1fr;
    }

    .kpi-card {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .kpi-icon {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 900px) {
    .app-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        height: auto;
        border-right: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .dashboard {
        padding: 1.5rem;
        height: auto;
        overflow-y: visible;
    }

    .dashboard-header-mobile {
        display: block;
        margin-bottom: 2rem;
        text-align: center;
    }

    .dashboard-header-mobile h2 {
        font-family: var(--font-heading);
        font-size: 1.8rem;
        color: var(--accent-gold);
    }

    .kpi-grid,
    .macros-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .extras-grid {
        grid-template-columns: 1fr;
    }
}

/* === 3D BODY COMPOSITION SECTION === */
.body3d-section {
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.body3d-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
}

.body3d-controls {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    /* Prevent icons from shrinking */
}

@media (max-width: 480px) {
    .body3d-section .section-header h2 {
        font-size: 1.2rem;
        width: 100%;
        /* Take full width to push controls to new line */
    }

    .body3d-section .section-header {
        justify-content: flex-start;
    }
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--accent-gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: var(--accent-gold-glass);
    transform: translateY(-2px);
}

.btn-icon.active {
    background: var(--accent-gold);
    color: #fff;
}

.body3d-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.body3d-canvas-wrapper {
    position: relative;
    background: var(--input-bg);
    border-radius: 16px;
    border: 1px solid var(--input-border);
    overflow: hidden;
    min-height: 500px;
}

#body3d-canvas {
    width: 100%;
    height: 500px;
    display: block;
}

.body3d-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--accent-gold);
    z-index: 10;
}

.body3d-loader i {
    font-size: 3rem;
}

.body3d-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.composition-legend h4 {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--input-bg);
    border-radius: 10px;
    margin-bottom: 0.75rem;
}

.legend-color {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    flex-shrink: 0;
}

.legend-color.muscle {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.legend-color.fat {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.legend-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.legend-text strong {
    font-size: 0.9rem;
    color: var(--text-main);
}

.legend-text span {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.body3d-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--input-bg);
    border-radius: 10px;
    border: 1px solid var(--input-border);
}

.stat-item i {
    font-size: 1.5rem;
    color: var(--accent-gold);
    width: 40px;
    text-align: center;
}

.stat-item div {
    display: flex;
    flex-direction: column;
}

.stat-item small {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.stat-item strong {
    font-size: 1.3rem;
    color: var(--text-main);
    font-weight: 700;
}

.body3d-tip {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--accent-gold-glass);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    align-items: flex-start;
}

.body3d-tip i {
    color: var(--accent-gold);
    font-size: 1.2rem;
    margin-top: 0.25rem;
}

.body3d-tip p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Responsive for 3D Section */
@media (max-width: 1024px) {
    .body3d-container {
        grid-template-columns: 1fr;
    }

    #body3d-canvas {
        height: 400px;
    }
}