/* ============================================
   PRALAY - AI Landslide Early Warning System
   Professional Glass Design.
   Part 1: Base + Header + Nav + Stats + Cards
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== ROOT VARIABLES ===== */
:root {
    --bg-primary: #0B0F19;
    --bg-secondary: #131826;
    --bg-tertiary: #1A2033;

    --glass-bg: rgba(19, 24, 38, 0.55);
    --glass-bg-hover: rgba(26, 32, 51, 0.7);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-border-hover: rgba(255, 255, 255, 0.12);

    --text-primary: #E8ECF1;
    --text-secondary: #8B95A5;
    --text-muted: #5A6474;

    --accent-1: #4F8EFF;
    --accent-2: #9B7EFF;
    --accent-3: #34D399;
    --accent-4: #F472B6;
    --accent-5: #FBBF24;

    --risk-high: #EF4444;
    --risk-medium: #F59E0B;
    --risk-low: #10B981;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.35);

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 14px;
}

/* ===== BASE ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== SUBTLE BACKGROUND GRADIENT ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    transition: background 1s ease;
}

body.theme-dashboard::before {
    background:
        radial-gradient(ellipse 80% 60% at 20% 0%, rgba(79, 142, 255, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 90% 100%, rgba(79, 142, 255, 0.05) 0%, transparent 60%);
}

body.theme-twin::before {
    background:
        radial-gradient(ellipse 80% 60% at 20% 0%, rgba(155, 126, 255, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 90% 100%, rgba(79, 142, 255, 0.05) 0%, transparent 60%);
}

body.theme-blockchain::before {
    background:
        radial-gradient(ellipse 80% 60% at 20% 0%, rgba(52, 211, 153, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 90% 100%, rgba(79, 142, 255, 0.05) 0%, transparent 60%);
}

body.theme-crowd::before {
    background:
        radial-gradient(ellipse 80% 60% at 20% 0%, rgba(244, 114, 182, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 90% 100%, rgba(251, 191, 36, 0.05) 0%, transparent 60%);
}

body.theme-radar::before {
    background:
        radial-gradient(ellipse 80% 60% at 20% 0%, rgba(251, 191, 36, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 90% 100%, rgba(239, 68, 68, 0.05) 0%, transparent 60%);
}

/* ===== SUBTLE PARTICLES ===== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    animation: floatUp linear infinite;
    opacity: 0.25;
}

@keyframes floatUp {
    0% { transform: translateY(100vh); opacity: 0; }
    10% { opacity: 0.25; }
    90% { opacity: 0.25; }
    100% { transform: translateY(-10vh); opacity: 0; }
}

/* ===== HEADER ===== */
.header {
    background: rgba(11, 15, 25, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    padding: 14px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    color: white;
    box-shadow: 0 4px 20px rgba(79, 142, 255, 0.25);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.logo-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
    animation: shine 4s ease-in-out infinite;
}

@keyframes shine {
    0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.header-title {
    display: flex;
    flex-direction: column;
}

/* ===== PRALAY ANIMATED TITLE ===== */
.pralay-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 5px;
    background: linear-gradient(
        90deg,
        #4F8EFF 0%,
        #9B7EFF 30%,
        #4F8EFF 60%,
        #9B7EFF 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pralayGradient 6s linear infinite;
    line-height: 1.1;
    position: relative;
}

@keyframes pralayGradient {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.header-title .badge {
    font-size: 10px;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
    margin-top: 1px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.clock {
    font-family: 'Space Grotesk', monospace;
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.03);
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    font-weight: 500;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border: 1px solid;
}

.status-badge.live {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--risk-low);
}

.status-badge.live .dot {
    width: 6px;
    height: 6px;
    background: var(--risk-low);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--risk-low);
    animation: pulse 2s infinite;
}

.status-badge.secure {
    background: rgba(52, 211, 153, 0.08);
    border-color: rgba(52, 211, 153, 0.2);
    color: var(--accent-3);
}

.status-badge.secure .dot {
    width: 6px;
    height: 6px;
    background: var(--accent-3);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-3);
    animation: pulse 2s infinite;
}

.status-badge.phase2 {
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.2);
    color: var(--accent-5);
}

.status-badge.phase2 .dot {
    width: 6px;
    height: 6px;
    background: var(--accent-5);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ===== NAVIGATION ===== */
.navbar {
    background: rgba(19, 24, 38, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0 32px;
    display: flex;
    gap: 2px;
    position: sticky;
    top: 71px;
    z-index: 999;
    overflow-x: auto;
}

.navbar::-webkit-scrollbar {
    display: none;
}

.navbar a {
    padding: 14px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.navbar a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.navbar a.active {
    color: var(--accent-1);
    border-bottom-color: var(--accent-1);
}

/* ===== DASHBOARD LAYOUT ===== */
.dashboard {
    padding: 28px 32px;
    max-width: 1500px;
    margin: 0 auto;
}

/* ===== STATS ROW ===== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    background: var(--card-accent-bg);
    color: var(--card-accent);
}

.stat-info h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.stat-info p {
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.stat-card.red { --card-accent: var(--risk-high); --card-accent-bg: rgba(239, 68, 68, 0.1); }
.stat-card.orange { --card-accent: var(--risk-medium); --card-accent-bg: rgba(245, 158, 11, 0.1); }
.stat-card.cyan { --card-accent: var(--accent-1); --card-accent-bg: rgba(79, 142, 255, 0.1); }
.stat-card.purple { --card-accent: var(--accent-2); --card-accent-bg: rgba(155, 126, 255, 0.1); }
.stat-card.green { --card-accent: var(--risk-low); --card-accent-bg: rgba(16, 185, 129, 0.1); }

/* ===== CARDS (GLASS) ===== */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--glass-border-hover);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--glass-border);
}

.card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title i {
    color: var(--accent-1);
    font-size: 14px;
}

/* ===== MAIN GRID ===== */
.main-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* ===== MAP ===== */
.map-wrapper {
    height: 480px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    position: relative;
}

#map {
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
}

.leaflet-popup-content-wrapper {
    background: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
    border-radius: 10px !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: var(--shadow-lg) !important;
}

.leaflet-popup-tip {
    background: var(--bg-tertiary) !important;
}

.leaflet-popup-content {
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    margin: 12px 14px !important;
}

.leaflet-control-zoom a {
    background: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
    border-color: var(--glass-border) !important;
}

.leaflet-control-zoom a:hover {
    background: var(--bg-secondary) !important;
}

.map-legend {
    display: flex;
    gap: 18px;
    margin-top: 14px;
    flex-wrap: wrap;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot.red { background: var(--risk-high); box-shadow: 0 0 8px rgba(239, 68, 68, 0.6); }
.legend-dot.orange { background: var(--risk-medium); box-shadow: 0 0 8px rgba(245, 158, 11, 0.6); }
.legend-dot.green { background: var(--risk-low); box-shadow: 0 0 8px rgba(16, 185, 129, 0.6); }
.legend-dot.cyan { background: var(--accent-1); box-shadow: 0 0 8px rgba(79, 142, 255, 0.6); }

/* ===== OUR PROJECT INFO CARDS ===== */
.info-card {
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    border-left: 3px solid var(--info-accent, var(--accent-1));
    transition: var(--transition);
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(4px);
}

.info-card-label {
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-card-value {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.5;
}

.info-card.accent-blue { --info-accent: var(--accent-1); }
.info-card.accent-purple { --info-accent: var(--accent-2); }
.info-card.accent-green { --info-accent: var(--accent-3); }
.info-card.accent-pink { --info-accent: var(--accent-4); }
.info-card.accent-amber { --info-accent: var(--accent-5); }
.info-card.accent-red { --info-accent: var(--risk-high); }

/* ===== KEY FEATURES GRID ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.feature-item {
    padding: 18px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    border-top: 2px solid var(--feature-accent, var(--accent-1));
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 18px;
    color: var(--feature-accent, var(--accent-1));
    margin-bottom: 10px;
}

.feature-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.feature-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-item.blue { --feature-accent: var(--accent-1); }
.feature-item.purple { --feature-accent: var(--accent-2); }
.feature-item.green { --feature-accent: var(--accent-3); }
.feature-item.pink { --feature-accent: var(--accent-4); }
.feature-item.amber { --feature-accent: var(--accent-5); }
.feature-item.red { --feature-accent: var(--risk-high); }

/* ===== CHARTS GRID ===== */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.chart-container {
    height: 240px;
    position: relative;
}
/* ============================================
   PRALAY - AI Landslide Early Warning System
   Professional Glass Design
   Part 2: Forms + Results + Precaution + Charts + Blocks + Responsive
   ============================================ */

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 7px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 11px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: rgba(79, 142, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(79, 142, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 75px;
    font-family: 'Inter', sans-serif;
}

.form-group select {
    cursor: pointer;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 11px 22px;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: white;
    box-shadow: 0 4px 20px rgba(79, 142, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(79, 142, 255, 0.4);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ===== RESULT BOX ===== */
.result-box {
    margin-top: 18px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-box.hidden { display: none; }

.result-percent {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 52px;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.result-label {
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.alert-badge {
    display: inline-block;
    padding: 9px 26px;
    border-radius: 22px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 14px 0;
    color: white;
}

.alert-badge.red {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: var(--risk-high);
    animation: alertPulse 1.5s infinite;
}

.alert-badge.orange {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: var(--risk-medium);
}

.alert-badge.green {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: var(--risk-low);
}

@keyframes alertPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.65; }
}

.result-hash {
    font-family: 'Space Grotesk', monospace;
    font-size: 10px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    margin-top: 14px;
    word-break: break-all;
}

/* ===== PRECAUTION BOX ===== */
.precaution-box {
    margin-top: 18px;
    padding: 18px;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    animation: slideUp 0.5s ease-out;
}

.precaution-box.hidden { display: none; }

.precaution-box.safe {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.2);
}

.precaution-box.warning {
    background: rgba(245, 158, 11, 0.05);
    border-color: rgba(245, 158, 11, 0.2);
}

.precaution-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--risk-high);
}

.precaution-box.safe .precaution-title { color: var(--risk-low); }
.precaution-box.warning .precaution-title { color: var(--risk-medium); }

.precaution-list {
    list-style: none;
    padding: 0;
}

.precaution-list li {
    padding: 9px 0 9px 26px;
    position: relative;
    font-size: 12.5px;
    color: var(--text-primary);
    line-height: 1.6;
    border-bottom: 1px solid var(--glass-border);
}

.precaution-list li:last-child {
    border-bottom: none;
}

.precaution-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent-1);
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
}

.precaution-list .hindi {
    display: block;
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 3px;
    font-style: italic;
}

/* ===== PROGRESS BARS ===== */
.metric {
    margin-bottom: 22px;
}

.metric:last-child { margin-bottom: 0; }

.metric-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 9px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.metric-value {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 13px;
}

.progress-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.progress-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 1.5s 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.25), transparent);
    animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-fill.green { background: linear-gradient(90deg, #10B981, #34D399); }
.progress-fill.cyan { background: linear-gradient(90deg, #4F8EFF, #60A5FA); }
.progress-fill.orange { background: linear-gradient(90deg, #F59E0B, #FBBF24); }
.progress-fill.purple { background: linear-gradient(90deg, #9B7EFF, #A78BFA); }
.progress-fill.red { background: linear-gradient(90deg, #EF4444, #F87171); }
.progress-fill.pink { background: linear-gradient(90deg, #F472B6, #F9A8D4); }
.progress-fill.amber { background: linear-gradient(90deg, #FBBF24, #FCD34D); }
.progress-fill.teal { background: linear-gradient(90deg, #34D399, #6EE7B7); }

/* ===== BLOCKCHAIN BLOCKS ===== */
.block-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-left: 3px solid var(--accent-3);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    transition: var(--transition);
}

.block-item:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(4px);
}

.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 11px;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--glass-border);
}

.block-index {
    font-family: 'Space Grotesk', sans-serif;
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.25);
    color: var(--accent-3);
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1px;
}

.block-time {
    font-size: 10px;
    color: var(--text-muted);
    font-family: 'Space Grotesk', monospace;
}

.block-body {
    font-size: 12px;
    line-height: 1.9;
    color: var(--text-secondary);
}

.block-body strong {
    color: var(--text-primary);
    font-weight: 600;
    margin-right: 8px;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.block-body code {
    background: rgba(255, 255, 255, 0.04);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Space Grotesk', monospace;
    font-size: 10.5px;
    color: var(--accent-3);
    border: 1px solid var(--glass-border);
}

/* ===== CHAIN VISUALIZATION ===== */
.chain-visual {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 20px 8px;
    overflow-x: auto;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--glass-border);
}

.chain-visual::-webkit-scrollbar { height: 4px; }
.chain-visual::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.chain-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid var(--node-color, var(--accent-3));
    border-radius: 12px;
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    flex-shrink: 0;
    transition: var(--transition);
    cursor: pointer;
}

.chain-node:hover {
    transform: scale(1.08) translateY(-3px);
    background: rgba(255, 255, 255, 0.06);
}

.chain-node .index {
    font-size: 16px;
    font-weight: 700;
    color: var(--node-color, var(--accent-3));
    margin-bottom: 4px;
}

.chain-node .level {
    font-size: 8px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chain-node .hash-prefix {
    font-size: 8.5px;
    color: var(--accent-1);
    margin-top: 3px;
    font-family: 'Space Grotesk', monospace;
}

.chain-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    color: var(--text-muted);
    font-size: 13px;
    flex-shrink: 0;
    opacity: 0.5;
}

/* ===== CROWDSOURCE REPORTS ===== */
.report-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-left: 3px solid var(--report-color, var(--accent-4));
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 12px;
    transition: var(--transition);
    animation: slideUp 0.4s ease-out;
}

.report-item:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(4px);
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.report-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    background: linear-gradient(135deg, var(--report-color, var(--accent-4)), rgba(255,255,255,0.1));
}

.report-name {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-primary);
}

.report-location {
    font-size: 10.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

.report-location i {
    color: var(--report-color, var(--accent-4));
    margin-right: 4px;
    font-size: 9px;
}

.severity-badge {
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Space Grotesk', sans-serif;
}

.severity-badge.high {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--risk-high);
}

.severity-badge.medium {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--risk-medium);
}

.severity-badge.low {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--risk-low);
}

.report-desc {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    margin: 10px 0;
}

.report-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10.5px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ===== FILTER BUTTONS ===== */
.filter-btn {
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--glass-border-hover);
    color: var(--text-primary);
}

.filter-btn.active {
    background: rgba(79, 142, 255, 0.12);
    border-color: rgba(79, 142, 255, 0.3);
    color: var(--accent-1);
}

/* ===== FUTURE SCOPE CARDS ===== */
.future-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 18px;
}

.future-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.future-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--future-accent, var(--accent-1));
}

.future-card:hover {
    transform: translateY(-4px);
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-lg);
}

.future-card i {
    font-size: 32px;
    margin-bottom: 14px;
    display: block;
    color: var(--future-accent, var(--accent-1));
}

.future-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.future-card .subtitle {
    font-size: 10px;
    color: var(--future-accent, var(--accent-1));
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.future-card ul {
    text-align: left;
    margin: 14px 0;
    padding-left: 18px;
    list-style: none;
}

.future-card li {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 7px;
    position: relative;
    padding-left: 14px;
    line-height: 1.5;
}

.future-card li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--future-accent, var(--accent-1));
    font-size: 10px;
}

.status-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 12px;
    font-family: 'Space Grotesk', sans-serif;
}

.status-tag.dev {
    background: rgba(79, 142, 255, 0.12);
    border: 1px solid rgba(79, 142, 255, 0.3);
    color: var(--accent-1);
}

.status-tag.planned {
    background: rgba(155, 126, 255, 0.12);
    border: 1px solid rgba(155, 126, 255, 0.3);
    color: var(--accent-2);
}

.status-tag.design {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--accent-5);
}

.future-card.blue { --future-accent: var(--accent-1); }
.future-card.purple { --future-accent: var(--accent-2); }
.future-card.amber { --future-accent: var(--accent-5); }

/* ===== ABOUT PAGE ===== */
.about-hero {
    text-align: center;
    padding: 50px 20px 30px;
}

.about-hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 8px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.about-hero .fullform {
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.about-hero .team-badge {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.about-hero .team-badge strong {
    color: var(--accent-1);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

.about-section {
    margin-bottom: 24px;
}

.about-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-section-title i {
    color: var(--accent-1);
}

.about-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.about-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.about-item {
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    border-left: 2px solid var(--about-accent, var(--accent-1));
    transition: var(--transition);
}

.about-item:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(3px);
}

.about-item-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
    margin-bottom: 6px;
}

.about-item-value {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.5;
}

.about-item.blue { --about-accent: var(--accent-1); }
.about-item.purple { --about-accent: var(--accent-2); }
.about-item.green { --about-accent: var(--accent-3); }
.about-item.pink { --about-accent: var(--accent-4); }
.about-item.amber { --about-accent: var(--accent-5); }
.about-item.red { --about-accent: var(--risk-high); }

.about-list {
    list-style: none;
    padding: 0;
}

.about-list li {
    padding: 10px 0 10px 26px;
    position: relative;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    border-bottom: 1px solid var(--glass-border);
}

.about-list li:last-child { border-bottom: none; }

.about-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-3);
    font-weight: 700;
    font-size: 13px;
}

.about-footer {
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid var(--glass-border);
    margin-top: 30px;
    color: var(--text-muted);
    font-size: 11.5px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .main-grid { grid-template-columns: 1fr; }
    .charts-grid { grid-template-columns: 1fr; }
    .future-grid { grid-template-columns: 1fr; }
    .about-grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .about-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .header {
        padding: 12px 18px;
        flex-direction: column;
        gap: 10px;
    }
    .header-left { gap: 12px; }
    .pralay-title { font-size: 20px; letter-spacing: 4px; }
    .header-title .badge { font-size: 9px; letter-spacing: 1px; }
    .navbar {
        padding: 0 18px;
        top: auto;
        position: relative;
    }
    .navbar a {
        padding: 12px 14px;
        font-size: 11px;
    }
    .dashboard { padding: 18px; }
    .stats-row { grid-template-columns: 1fr; }
    .stat-info h3 { font-size: 22px; }
    .result-percent { font-size: 42px; }
    .map-wrapper { height: 320px; }
    .about-hero h1 { font-size: 30px; letter-spacing: 5px; }
    .about-hero .fullform { font-size: 11px; letter-spacing: 1px; }
    .chart-container { height: 200px; }
}

@media (max-width: 480px) {
    .clock { display: none; }
    .status-badge { padding: 6px 10px; font-size: 9px; }
    .pralay-title { font-size: 17px; letter-spacing: 3px; }
    .header-title .badge { font-size: 8px; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ===== UTILITIES ===== */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* ===== LOADER ===== */
.spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== IMAGE RESET ===== */
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* ===== TRANSITIONS FOR PAGE LOAD ===== */
.card, .stat-card, .future-card, .about-item {
    animation: fadeInUp 0.5s ease-out backwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== FOCUS VISIBLE (Accessibility) ===== */
*:focus-visible {
    outline: 2px solid var(--accent-1);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(79, 142, 255, 0.3);
    color: var(--text-primary);
}

/* ============================================
   END OF STYLE.CSS
   ============================================ */