/* ================================================
   GREEENY - UNIFIED STYLESHEET
   Version 1.0
   
   Sections:
   1. CSS Variables & Reset
   2. Typography & Base
   3. Common Components
   4. MVP App Styles (body.app-body)
   5. Landing Page Styles (body.landing-body)
   6. Dashboard Styles (body.dashboard-body)
   7. Responsive
   ================================================ */

/* ================================================
   1. CSS VARIABLES & RESET
   ================================================ */

:root {
    /* Primary - Forest Fresh */
    --primary: #7CB342;
    --primary-light: #9ACD32;
    --primary-dark: #3A6B1C;
    
    /* Accent */
    --accent: #F59E0B;
    --accent-light: #FCD34D;
    --accent-dark: #D97706;
    
    /* Backgrounds */
    --bg-main: #F0FDF4;
    --bg-soft: #DCFCE7;
    --bg-card: #FFFFFF;
    
    /* Text */
    --text-dark: #064E3B;
    --text-primary: #065F46;
    --text-muted: #6B7280;
    
    /* Borders */
    --border: #D1FAE5;
    --border-medium: #A7F3D0;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(124, 179, 66, 0.08);
    --shadow-md: 0 4px 20px rgba(124, 179, 66, 0.12);
    --shadow-lg: 0 8px 40px rgba(124, 179, 66, 0.16);
    
    /* Dashboard Pro Theme */
    --pro-primary: #6366F1;
    --pro-primary-light: #818CF8;
    --pro-primary-dark: #4338CA;
    --pro-bg-dark: #1E1B4B;
    --pro-bg-soft: #312E81;
    --pro-text-light: #F8F7FF;
    --pro-text-muted: #A5B4FC;
    --pro-border: rgba(167, 139, 250, 0.2);
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

/* ================================================
   2. TYPOGRAPHY & BASE
   ================================================ */

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-main);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ================================================
   3. COMMON COMPONENTS
   ================================================ */

/* --- Language Switcher --- */
.lang-switcher {
    display: flex;
    gap: 4px;
    background: var(--bg-soft);
    padding: 4px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border);
}

.lang-btn {
    padding: 10px 18px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
}

.lang-btn:hover {
    color: var(--text-dark);
    background: rgba(124, 179, 66, 0.1);
}

.lang-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(124, 179, 66, 0.3);
}

/* --- Status Badge --- */
.status-badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Premium Tag --- */
.premium-tag {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: var(--space-sm);
}

/* --- Success Message --- */
.success-message {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 16px 32px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 1000;
    max-width: 90%;
    text-align: center;
}

.success-message.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.success-message.error {
    background: linear-gradient(135deg, #EF4444, #DC2626);
}


/* ================================================
   4. MVP APP STYLES (body.app-body)
   ================================================ */

body.app-body {
    background: var(--bg-main);
    min-height: 100vh;
    min-height: 100dvh;
}

/* --- App Header --- */
body.app-body .app-header {
    background: var(--bg-card);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    border-bottom: 2px solid var(--border);
}

body.app-body .header-logo-link {
    display: inline-block;
}

body.app-body .app-logo-img {
    height: 60px;
    width: auto;
    margin: 0 auto;
}

/* --- App Main --- */
body.app-body .app-main {
    padding: 0;
}

body.app-body .section {
    padding: var(--space-lg) var(--space-md);
}

/* --- App Language Switcher --- */
body.app-body .lang-switcher {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-lg);
    background: transparent;
    border: none;
    gap: var(--space-sm);
}

body.app-body .lang-btn {
    padding: 12px 24px;
    border: 2px solid #A7F3D0;
    border-radius: var(--radius-md);
    background-color: #FFFFFF;
    min-width: 60px;
    color: #064E3B;
    font-size: 1rem;
    font-weight: 700;
    -webkit-appearance: none;
    appearance: none;
}

body.app-body .lang-btn.active {
    border-color: #7CB342;
    background-color: #7CB342;
    color: #FFFFFF;
}

/* --- Scan Button --- */
.scan-button {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: var(--radius-lg);
    color: white;
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.scan-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.scan-button:active {
    transform: translateY(0);
}

.scan-button.stop {
    background: linear-gradient(135deg, #EF4444, #DC2626);
}

.btn-icon,
.btn-icon-small {
    flex-shrink: 0;
}

/* --- QR Scanner --- */
#qr-reader {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: var(--space-lg) 0;
    display: none;
    border: 3px solid var(--primary);
}

.qr-result {
    background: rgba(124, 179, 66, 0.1);
    border: 2px solid var(--border-medium);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin: var(--space-lg) 0;
    display: none;
    word-break: break-all;
}

.qr-result strong {
    color: var(--primary-dark);
    display: block;
    margin-bottom: var(--space-sm);
}

/* --- Loading Overlay --- */
#loading,
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

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

.spinner {
    border: 4px solid rgba(124, 179, 66, 0.2);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--space-lg);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-content p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* --- ESG Card Section --- */
#esg-card-section {
    display: none;
}

.reset-button {
    margin-bottom: var(--space-lg);
    padding: 12px 20px;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.reset-button:hover {
    background: var(--primary-dark);
}

.company-header {
    text-align: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 2px solid var(--border);
}

.company-name {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: var(--space-sm);
}

.company-legal {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
}

.company-year-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 700;
}

/* --- Category Titles --- */
.category-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: var(--space-lg) 0 var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.category-icon {
    color: var(--primary);
    flex-shrink: 0;
}

/* --- Indicator Cards --- */
.indicator-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.indicator-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.indicator-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.indicator-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--primary);
}

.indicator-value {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.data-value {
    color: var(--text-dark);
    font-size: 1.3rem;
    font-weight: 700;
}

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

.trend-badge {
    background: rgba(124, 179, 66, 0.15);
    color: var(--primary-dark);
    padding: 4px 12px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 700;
}

.trend-badge.negative {
    background: rgba(239, 68, 68, 0.15);
    color: #DC2626;
}

.no-data {
    color: var(--text-muted);
    text-align: center;
    padding: var(--space-lg);
    font-style: italic;
}

/* --- Submit Button --- */
.submit-button {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: var(--radius-lg);
    color: white;
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.feedback-btn {
    margin-top: var(--space-xl);
}

/* --- Survey Section --- */
#survey-section {
    display: none;
}

.survey-section {
    padding: var(--space-lg) var(--space-md) var(--space-2xl);
}

.survey-title {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-lg);
}

.question-block {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
}

.question-text {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: var(--space-md);
    line-height: 1.5;
    font-size: 1rem;
}

.question-hint {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.radio-group-inline {
    flex-direction: row;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.radio-option {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 14px 16px;
    background: rgba(124, 179, 66, 0.05);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-option:hover {
    background: rgba(124, 179, 66, 0.1);
    border-color: var(--primary);
}

.radio-option input[type="radio"] {
    width: 22px;
    height: 22px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.radio-label {
    color: var(--text-dark);
    cursor: pointer;
    font-size: 1rem;
}

.radio-group-inline .radio-option {
    flex: 1;
    justify-content: center;
}

textarea {
    width: 100%;
    min-height: 100px;
    padding: var(--space-md);
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-dark);
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s;
}

textarea:focus {
    outline: none;
    border-color: var(--primary);
}

textarea:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

input[type="text"] {
    width: 100%;
    padding: var(--space-md);
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-dark);
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
}


/* ================================================
   5. LANDING PAGE STYLES (body.landing-body)
   ================================================ */

body.landing-body {
    background: var(--bg-main);
}

/* --- Landing Header --- */
body.landing-body .header {
    background: var(--bg-card);
    border-bottom: 2px solid var(--border);
    padding: var(--space-md) 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

body.landing-body .header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.landing-body .header-logo img {
    height: 50px;
    width: auto;
}

body.landing-body .header-nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

/* --- Hero Section --- */
body.landing-body .hero {
    padding: 80px 0 60px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-main) 100%);
}

body.landing-body .hero-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

body.landing-body .hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: var(--space-lg);
    line-height: 1.2;
}

body.landing-body .hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.7;
}

/* --- Hero CTAs --- */
body.landing-body .hero-ctas {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
}

body.landing-body .cta-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 20px 32px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 280px;
}

body.landing-body .cta-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-md);
}

body.landing-body .cta-primary:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

body.landing-body .cta-secondary {
    background: var(--bg-card);
    color: var(--text-dark);
    border: 2px solid var(--border-medium);
}

body.landing-body .cta-secondary:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

body.landing-body .cta-secondary .cta-icon {
    color: var(--primary);
}

body.landing-body .cta-icon {
    flex-shrink: 0;
}

body.landing-body .cta-text {
    text-align: left;
}

body.landing-body .cta-label {
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
}

body.landing-body .cta-desc {
    display: block;
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 2px;
}

/* --- Sections Base --- */
body.landing-body .section {
    padding: 80px 0;
}

body.landing-body .section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

body.landing-body .section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

body.landing-body .section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: var(--space-sm);
}

body.landing-body .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* --- Steps Section --- */
body.landing-body .steps-section {
    background: var(--bg-card);
    padding: 60px 0;
}

body.landing-body .steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    max-width: 1000px;
    margin: 0 auto;
}

body.landing-body .step-card {
    text-align: center;
    padding: var(--space-xl);
}

body.landing-body .step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto var(--space-lg);
    box-shadow: var(--shadow-md);
}

body.landing-body .step-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

body.landing-body .step-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Benefits Section --- */
body.landing-body .benefits-section {
    background: var(--bg-main);
}

body.landing-body .benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

body.landing-body .benefit-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all 0.3s ease;
    position: relative;
}

body.landing-body .benefit-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

body.landing-body .benefit-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-soft);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: var(--space-lg);
}

body.landing-body .benefit-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

body.landing-body .benefit-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- CTA Section --- */
body.landing-body .cta-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    text-align: center;
}

body.landing-body .cta-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
}

body.landing-body .cta-text {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    line-height: 1.7;
}

body.landing-body .launch-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* --- Landing Footer --- */
body.landing-body .footer {
    background: var(--text-dark);
    color: white;
    padding: var(--space-2xl) 0 var(--space-xl);
    text-align: center;
}

body.landing-body .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

body.landing-body .footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

body.landing-body .footer-logo {
    height: 80px;
    width: auto;
}

body.landing-body .footer-message {
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
}

body.landing-body .footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    margin-bottom: var(--space-lg);
}

body.landing-body .footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
}

body.landing-body .footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

body.landing-body .footer-links a:hover {
    color: white;
}

body.landing-body .footer-copy {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}


/* ================================================
   6. DASHBOARD STYLES (body.dashboard-body)
   Greeeny Insight - Blue Theme
   ================================================ */

/* Dashboard Color Variables */
body.dashboard-body {
    --dash-primary: #0EA5E9;
    --dash-primary-light: #38BDF8;
    --dash-primary-dark: #0369A1;
    --dash-accent: #06B6D4;
    --dash-bg-dark: #0F172A;
    --dash-bg-card: #1E293B;
    --dash-text-light: #F1F5F9;
    --dash-text-muted: #94A3B8;
    --dash-border: rgba(14, 165, 233, 0.2);
    
    background: var(--dash-bg-dark);
    color: var(--dash-text-light);
    min-height: 100vh;
    padding: var(--space-lg);
}

/* --- Dashboard Container --- */
body.dashboard-body .dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Dashboard Header --- */
body.dashboard-body .dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--dash-border);
    flex-wrap: wrap;
    gap: var(--space-md);
}

body.dashboard-body .dashboard-brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

body.dashboard-body .dashboard-logo {
    height: 60px;
    width: auto;
}

body.dashboard-body .dashboard-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dash-text-light);
}

body.dashboard-body .dashboard-subtitle {
    font-size: 0.85rem;
    color: var(--dash-text-muted);
}

body.dashboard-body .dashboard-meta {
    text-align: right;
}

body.dashboard-body .dashboard-update {
    font-size: 0.8rem;
    color: #64748B;
}

/* --- KPI Cards --- */
body.dashboard-body .kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

body.dashboard-body .kpi-card {
    background: linear-gradient(135deg, var(--dash-bg-card) 0%, #334155 100%);
    border: 1px solid var(--dash-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

body.dashboard-body .kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--dash-primary) 0%, var(--dash-primary-dark) 100%);
}

body.dashboard-body .kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.2);
    border-color: var(--dash-primary);
}

body.dashboard-body .kpi-icon {
    width: 48px;
    height: 48px;
    background: rgba(14, 165, 233, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    color: var(--dash-primary);
}

body.dashboard-body .kpi-value {
    font-family: 'Syne', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dash-text-light);
    margin-bottom: var(--space-xs);
    line-height: 1;
}

body.dashboard-body .kpi-label {
    font-size: 0.9rem;
    color: var(--dash-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

body.dashboard-body .kpi-trend {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

body.dashboard-body .kpi-trend.positive {
    background: rgba(34, 197, 94, 0.15);
    color: #22C55E;
}

body.dashboard-body .kpi-trend.negative {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
}

/* --- Chart Grid --- */
body.dashboard-body .chart-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

body.dashboard-body .chart-card {
    background: var(--dash-bg-card);
    border: 1px solid var(--dash-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all 0.3s ease;
}

body.dashboard-body .chart-card:hover {
    border-color: var(--dash-primary);
}

body.dashboard-body .chart-card.full-width {
    grid-column: 1 / -1;
}

body.dashboard-body .chart-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dash-text-light);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

body.dashboard-body .chart-title-icon {
    width: 32px;
    height: 32px;
    background: rgba(14, 165, 233, 0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dash-primary);
}

body.dashboard-body .chart-container {
    position: relative;
    height: 280px;
}

body.dashboard-body .chart-container.large {
    height: 350px;
}

body.dashboard-body .chart-container.small {
    height: 220px;
}

/* --- Map --- */
body.dashboard-body #map {
    height: 450px;
    border-radius: var(--radius-md);
    border: 1px solid var(--dash-border);
}

body.dashboard-body .leaflet-popup-content-wrapper {
    background: var(--dash-bg-card);
    color: var(--dash-text-light);
    border: 1px solid var(--dash-primary);
    border-radius: var(--radius-md);
}

body.dashboard-body .leaflet-popup-tip {
    background: var(--dash-bg-card);
}

/* --- City List --- */
body.dashboard-body .city-list {
    list-style: none;
    max-height: 400px;
    overflow-y: auto;
}

body.dashboard-body .city-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--dash-primary);
    transition: all 0.2s ease;
}

body.dashboard-body .city-item:hover {
    background: rgba(14, 165, 233, 0.1);
    transform: translateX(4px);
}

body.dashboard-body .city-name {
    font-weight: 600;
    color: var(--dash-text-light);
}

body.dashboard-body .city-region {
    font-size: 0.8rem;
    color: #64748B;
}

body.dashboard-body .city-count {
    font-family: 'Syne', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dash-primary);
}

/* --- Suggestion List --- */
body.dashboard-body .suggestion-list {
    max-height: 400px;
    overflow-y: auto;
}

body.dashboard-body .suggestion-item {
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--dash-accent);
    transition: all 0.2s ease;
}

body.dashboard-body .suggestion-item:hover {
    background: rgba(6, 182, 212, 0.08);
}

body.dashboard-body .suggestion-text {
    color: #E2E8F0;
    line-height: 1.6;
    margin-bottom: var(--space-sm);
    font-style: italic;
}

body.dashboard-body .suggestion-meta {
    font-size: 0.8rem;
    color: #64748B;
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

body.dashboard-body .suggestion-meta svg {
    width: 14px;
    height: 14px;
    margin-right: 4px;
    vertical-align: middle;
}

/* --- No Data --- */
body.dashboard-body .no-data {
    text-align: center;
    padding: var(--space-2xl);
    color: #64748B;
    font-style: italic;
}

/* --- Scrollbar --- */
body.dashboard-body .city-list::-webkit-scrollbar,
body.dashboard-body .suggestion-list::-webkit-scrollbar {
    width: 6px;
}

body.dashboard-body .city-list::-webkit-scrollbar-track,
body.dashboard-body .suggestion-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

body.dashboard-body .city-list::-webkit-scrollbar-thumb,
body.dashboard-body .suggestion-list::-webkit-scrollbar-thumb {
    background: var(--dash-primary);
    border-radius: 10px;
}

/* --- Dashboard Responsive --- */
@media (max-width: 1024px) {
    body.dashboard-body .chart-grid {
        grid-template-columns: 1fr;
    }
    
    body.dashboard-body .chart-card.full-width {
        grid-column: 1;
    }
}

@media (max-width: 768px) {
    body.dashboard-body {
        padding: var(--space-md);
    }
    
    body.dashboard-body .dashboard-header {
        flex-direction: column;
        text-align: center;
    }
    
    body.dashboard-body .dashboard-meta {
        text-align: center;
    }
    
    body.dashboard-body .kpi-grid {
        grid-template-columns: 1fr;
    }
    
    body.dashboard-body .kpi-value {
        font-size: 2rem;
    }
    
    body.dashboard-body #map {
        height: 350px;
    }
    
    body.dashboard-body .chart-container {
        height: 250px;
    }
}


/* ================================================
   7. RESPONSIVE
   ================================================ */

/* --- Desktop (min-width: 640px) - MVP --- */
@media (min-width: 640px) {
    body.app-body .app-header {
        padding: var(--space-lg);
    }
    
    body.app-body .app-logo-img {
        height: 70px;
    }
    
    body.app-body .app-main {
        max-width: 600px;
        margin: 0 auto;
    }
    
    body.app-body .section {
        padding: var(--space-lg);
    }
    
    body.app-body .lang-btn {
        padding: 14px 28px;
        font-size: 1.1rem;
    }
    
    .scan-button {
        font-size: 1.2rem;
        padding: 20px 28px;
    }
    
    .company-name {
        font-size: 1.8rem;
    }
    
    .question-block {
        padding: var(--space-lg);
    }
}

/* --- Large Desktop (min-width: 1024px) - MVP --- */
@media (min-width: 1024px) {
    body.app-body .app-logo-img {
        height: 80px;
    }
}

/* --- Tablet (max-width: 1024px) - Landing --- */
@media (max-width: 1024px) {
    body.landing-body .hero-title {
        font-size: 2.5rem;
    }
    
    body.landing-body .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Mobile (max-width: 768px) - Landing --- */
@media (max-width: 768px) {
    body.landing-body .header-container {
        padding: 0 var(--space-md);
    }
    
    body.landing-body .header-logo img {
        height: 40px;
    }
    
    body.landing-body .status-badge {
        display: none;
    }
    
    body.landing-body .hero {
        padding: var(--space-2xl) 0 var(--space-xl);
    }
    
    body.landing-body .hero-container {
        padding: 0 var(--space-md);
    }
    
    body.landing-body .hero-title {
        font-size: 1.8rem;
    }
    
    body.landing-body .hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--space-xl);
    }
    
    body.landing-body .hero-ctas {
        flex-direction: column;
        align-items: center;
    }
    
    body.landing-body .cta-card {
        width: 100%;
        max-width: 320px;
        min-width: auto;
    }
    
    body.landing-body .section {
        padding: var(--space-2xl) 0;
    }
    
    body.landing-body .section-container {
        padding: 0 var(--space-md);
    }
    
    body.landing-body .section-title {
        font-size: 1.6rem;
    }
    
    body.landing-body .steps-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    body.landing-body .step-card {
        padding: var(--space-lg);
    }
    
    body.landing-body .benefits-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    body.landing-body .benefit-card {
        padding: var(--space-lg);
    }
    
    body.landing-body .cta-title {
        font-size: 1.5rem;
    }
    
    body.landing-body .cta-text {
        font-size: 1rem;
    }
    
    body.landing-body .footer {
        padding: var(--space-xl) 0 var(--space-lg);
    }
    
    body.landing-body .footer-links {
        flex-direction: column;
        gap: var(--space-sm);
    }
}
