:root {
    --primary-color: #1e293b;         /* Deep blue-gray */
    --primary-light: #334155;         /* Lighter blue-gray */
    --primary-dark: #0f172a;          /* Almost black-blue */
    --secondary-color: #38bdf8;       /* Modern cyan-blue */
    --accent-color: #f472b6;          /* Modern pink accent */
    --danger-color: #f43f5e;          /* Modern red */
    --warning-color: #fbbf24;         /* Modern yellow */
    --success-color: #22d3ee;         /* Modern cyan */

    --bg-primary: #0a0f1a;            /* Very dark blue */
    --bg-secondary: #181f2a;          /* Dark blue-gray */
    --bg-tertiary: #232b3b;           /* Slightly lighter dark */
    --bg-card: rgba(24, 31, 42, 0.92);/* Card background */
    --bg-glass: rgba(10, 15, 26, 0.92);/* Glass effect */

    --text-primary: #f1f5f9;          /* Very light gray */
    --text-secondary: #94a3b8;        /* Muted blue-gray */
    --text-muted: #64748b;            /* Muted gray-blue */

    --border-color: rgba(51, 65, 85, 0.7);
    --border-light: rgba(203, 213, 225, 0.08);

    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.10);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.18), 0 2px 4px -1px rgba(0,0,0,0.12);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.22), 0 4px 6px -2px rgba(0,0,0,0.10);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.25), 0 10px 10px -5px rgba(0,0,0,0.10);

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
}

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

body {
    background: linear-gradient(135deg, var(--bg-primary) 0%, #0c1426 50%, var(--bg-primary) 100%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    
    /* Apple-grade scrolling optimizations */
    -webkit-overflow-scrolling: touch;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
    touch-action: manipulation;
}

/* Global scroll performance optimizations */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow text selection for content areas */
p, span, div, h1, h2, h3, h4, h5, h6, a, li {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Hardware acceleration for smooth animations */
.container, .navbar, .footer, .header {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Navbar Styles */
.navbar {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem;
    border-radius: var(--radius-lg);
}

.nav-logo-container:hover {
    transform: scale(1.05);
    background: rgba(37, 99, 235, 0.1);
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.3);
}

.nav-logo-img {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-actions {
    display: flex;
    align-items: center;
}

.logout-btn {
    background: linear-gradient(135deg, var(--danger-color), #dc2626);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 63, 94, 0.3);
}

.docs-btn {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color)) !important;
    color: white !important;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.docs-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(56, 189, 248, 0.3);
}

/* Mobile responsive adjustments for header buttons */
@media (max-width: 768px) {
    .docs-btn {
        padding: 0.35rem 0.6rem !important;
        font-size: 0.8rem !important;
        font-weight: 500 !important;
    }
    
    .logout-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.8rem;
        font-weight: 500;
    }
    
    .nav-brand {
        font-size: 1.3rem !important;
        font-weight: 700 !important;
    }
}

@media (max-width: 480px) {
    .nav-menu-desktop {
        display: none !important;
    }
    
    .nav-menu-mobile {
        display: block !important;
        position: relative;
    }
    
    .nav-brand {
        font-size: 1.25rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.5px;
    }
    
    .nav-logo-img {
        height: 35px;
    }
}

/* Mobile menu styles */
.nav-menu-mobile {
    display: none;
}

.nav-menu-desktop {
    display: flex;
    align-items: center;
}

.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    position: relative;
    z-index: 1001;
}

.hamburger-line {
    width: 1.5rem;
    height: 2px;
    background: var(--text-primary);
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 0.5rem;
}

.mobile-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu-item {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border: none;
    background: none;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
}

.mobile-menu-item:first-child {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.mobile-menu-item:last-child {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.mobile-menu-item:hover {
    background: rgba(56, 189, 248, 0.1);
    color: var(--secondary-color);
}

.mobile-logout:hover {
    background: rgba(244, 63, 94, 0.1);
    color: var(--danger-color);
}

/* Enhanced touch targets for mobile */
@media (max-width: 480px) {
    .mobile-menu-item {
        padding: 1rem 1.25rem;
        font-size: 1rem;
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    .nav-logo-img {
        height: 35px;
    }
    
    /* Ensure proper header spacing with larger text */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    /* Better visual balance with larger brand text */
    .nav-logo {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    
    /* Apple-grade mobile scrolling optimizations */
    html {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
        height: 100%;
        overflow-x: hidden;
    }
    
    body {
        height: 100%;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
        scroll-snap-type: none;
        will-change: scroll-position;
        scroll-behavior: auto;
    }
    
    /* Faster scrolling momentum */
    .container {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: auto;
        scroll-snap-align: none;
        padding-top: 100px;
        padding-bottom: 0;
        min-height: auto;
    }
    
    /* Fix header overlap */
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: rgba(24, 31, 42, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    /* Ensure footer is fully visible */
    .footer {
        margin-bottom: 0;
        position: relative;
        z-index: 1;
        margin-top: 1rem;
    }
    
    /* Optimize table scrolling */
    .table-wrapper {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
    }
    
    /* Fix Chrome mobile scroll jank */
    .navbar, .footer {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        will-change: transform;
    }
    
    /* Prevent rubber band effect at page edges */
    .fade-in-up, .stats-grid, .table-container {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        will-change: transform, opacity;
    }
    
    /* Mobile-specific spacing fixes */
    .header {
        margin-top: 2rem;
        padding-top: 1rem;
    }
    
    /* Ensure proper footer visibility */
    body {
        padding-bottom: env(safe-area-inset-bottom, 0px);
        min-height: 100vh;
    }
    
    /* Fix logo positioning */
    .logo-container {
        padding-top: 1rem;
    }
    
    /* Ensure content doesn't get cut off */
    .page-title {
        margin-top: 1.5rem;
    }
    
    /* Reduce excessive spacing between content and footer */
    .dashboard-section {
        margin-bottom: 1rem;
    }
    
    .money-achievement-wide {
        margin: 0 auto 0.5rem auto;
    }
    
    /* Ensure footer is always visible */
    .footer {
        padding-bottom: env(safe-area-inset-bottom, 20px);
    }
    
    /* Mobile viewport fix */
    html {
        height: 100%;
        overflow-x: hidden;
    }
    
    body {
        min-height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .container {
        flex: 1;
    }
}

/* Additional mobile Chrome optimizations */
@media (max-width: 768px) {
    /* Reduce layout shifts during scroll */
    img {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    /* Smooth button interactions */
    button, a {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        -webkit-touch-callout: none;
        touch-action: manipulation;
    }
    
    /* Enhanced mobile touch targets for logos */
    .nav-logo-container, .footer-logo-container {
        -webkit-tap-highlight-color: rgba(56, 189, 248, 0.3);
        touch-action: manipulation;
        user-select: none;
        -webkit-user-select: none;
        transition: opacity 0.15s ease;
        min-height: 48px;
        min-width: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--radius-md);
        cursor: pointer;
        position: relative;
        z-index: 100;
    }
    
    .nav-logo-container:active, .footer-logo-container:active {
        opacity: 0.7 !important;
        transform: scale(0.98);
    }
    
    /* Ensure logo images don't interfere with touch events */
    .nav-logo-img, .footer-logo-img {
        pointer-events: none;
        user-select: none;
        -webkit-user-select: none;
    }
    
    /* Optimize font rendering during scroll */
    * {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
    
    /* Adjust container spacing for tablets */
    .container {
        padding-top: 90px;
        padding-bottom: 0;
    }
    
    /* Better header spacing on tablets */
    .header {
        margin-top: 1.5rem;
    }
    
    /* Reduce spacing on tablets too */
    .dashboard-section {
        margin-bottom: 1rem;
    }
    
    .money-achievement-wide {
        margin: 0 auto 0.75rem auto;
    }
}

/* Desktop and larger screens - keep navbar sticky */
@media (min-width: 769px) {
    .navbar {
        position: sticky;
        background: var(--bg-glass);
    }
    
    .container {
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* Container and Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.organization-name {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.8;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.logo-main {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    padding: 1rem;
    border-radius: var(--radius-2xl);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-2xl);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo-main:hover {
    transform: scale(1.05) translateY(-5px);
}

.logo-main:hover::before {
    opacity: 0.1;
}

.logo-img {
    height: 140px;
    width: auto;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

/* Typography */
.page-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    line-height: 1.1;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Card Styles */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-xl);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-color: rgba(37, 99, 235, 0.3);
}

/* Table Styles */
.table-container {
    margin-bottom: 4rem;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
}

.table-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1.5rem 2rem;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    position: relative;
}

.table-wrapper {
    max-height: 600px;
    overflow: auto;
    position: relative;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table th {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 0.75rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table th:first-child {
    position: sticky;
    left: 0;
    z-index: 15;
    background: var(--primary-color);
    color: white;
    min-width: 80px;
    font-weight: 700;
}

.data-table th:nth-child(2) {
    position: sticky;
    left: 80px;
    z-index: 12;
    background: var(--primary-light);
    color: white;
    min-width: 200px;
    text-align: left;
}

.data-table td {
    padding: 0.875rem 0.75rem;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.data-table td:first-child {
    position: sticky;
    left: 0;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
    z-index: 5;
}

.data-table td:nth-child(2) {
    position: sticky;
    left: 80px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-align: left;
    font-weight: 500;
    z-index: 3;
}

.data-table tr:hover td {
    background: rgba(37, 99, 235, 0.05);
}

.data-table tr:hover td:first-child,
.data-table tr:hover td:nth-child(2) {
    background: rgba(37, 99, 235, 0.2);
}

/* Dashboard Section */
.dashboard-section {
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(37, 99, 235, 0.3);
}

.stat-title {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-family: 'Inter', monospace;
    word-break: break-all;
    overflow-wrap: anywhere;
    max-width: 100%;
    /* Add these lines for auto-fit and scaling */
    display: block;
    width: 100%;
    text-align: center;
    font-variant-numeric: tabular-nums;
    letter-spacing: -1px;
    line-height: 1.1;
    /* Responsive font size for long numbers */
    font-size: clamp(1.2rem, 6vw, 2.5rem);
}

/* Target Analysis Grid */
.target-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: start;
}

.target-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.target-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.target-card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    text-align: center;
}

.target-card-content {
    padding: 2rem;
}

/* Chart Styles */
.chart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 2rem;
}

.chart-wrapper {
    position: relative;
    width: 100%;
    max-width: 350px;
    height: 350px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
}

/* Money Achievement */
.achievement-container {
    text-align: center;
    padding: 2rem;
}

.achievement-display {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(37, 99, 235, 0.1));
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
    position: relative;
    overflow: hidden;
}

.achievement-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

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

.progress-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 2rem auto;
    position: relative;
}

.progress-track {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 4px;
    transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.achievement-amount {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-family: 'Inter', monospace;
}

.achievement-label {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.achievement-percentage {
    font-size: 1.25rem;
    color: var(--secondary-color);
    font-weight: 700;
}

/* Loading and Error States */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--text-muted);
    gap: 1rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error {
    text-align: center;
    padding: 3rem;
    color: var(--danger-color);
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Footer */
.footer {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-light);
    margin-top: 6rem;
    padding: 3rem 0 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
    align-items: center;
}

.footer-logo {
    text-align: right;
}

.footer-logo-container {
    display: inline-block;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: var(--radius-lg);
}

.footer-logo-container:hover {
    transform: scale(1.05);
    background: rgba(37, 99, 235, 0.1);
}

.footer-logo-img {
    height: 60px;
    width: auto;
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.license-info {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.target-analysis-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.money-achievement-wide {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-xl);
    padding: 2.5rem 2rem 2rem 2rem;
    margin: 0 auto 1rem auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 2rem 1.5rem;
    }

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

    .stats-grid.target-analysis-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .money-achievement-wide {
        padding: 2rem 1rem 1.5rem 1rem;
    }
}

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

    .nav-container {
        padding: 0 1rem;
    }

    .container {
        padding: 1.5rem 1rem;
    }

    .header {
        margin-bottom: 3rem;
    }

    .logo-img {
        height: 100px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .target-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
    }

    .data-table th:first-child,
    .data-table td:first-child {
        min-width: 60px;
    }

    .data-table th:nth-child(2),
    .data-table td:nth-child(2) {
        min-width: 150px;
        left: 60px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .target-analysis-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .money-achievement-wide {
        padding: 1.5rem 0.5rem 1rem 0.5rem;
    }
    .stat-value {
        font-size: 2rem;
        word-break: break-all;
        max-width: 100%;
        overflow-wrap: anywhere;
        letter-spacing: -1px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.5rem;
    }

    .container {
        padding: 1rem 0.5rem;
    }

    .data-table th:first-child,
    .data-table td:first-child {
        min-width: 50px;
    }

    .data-table th:nth-child(2),
    .data-table td:nth-child(2) {
        min-width: 120px;
        left: 50px;
    }

    .stat-card,
    .target-card-content,
    .achievement-container {
        padding: 1.5rem;
    }
}

/* Add for all screens to prevent overflow on long numbers */
.stat-value {
    word-break: break-all;
    overflow-wrap: anywhere;
    max-width: 100%;
}