:root {
    --bg-color: #05070a;
    --card-bg: linear-gradient(135deg, #161b22 0%, #0d1117 100%);
    --card-hover: linear-gradient(135deg, #1c2128 0%, #161b22 100%);
    --border-color: #30363d;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --accent-teal: #2ea043;
    --accent-blue: #58a6ff;
    --accent-orange: #d29922;
    --highlight: #3fb950;
    --glow-blue: rgba(88, 166, 255, 0.15);
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 20% 20%, rgba(88, 166, 255, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 80% 80%, rgba(46, 160, 67, 0.05) 0%, transparent 25%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    margin: 0;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
header {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    background: #0b1a2e;
    /* Matches Solidus Logo */
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-primary);
}

/* VOLT is white, MINER is green */

.partner-logo {
    height: 85px;
    /* Significantly larger */
    width: auto;
    filter: brightness(0.9);
    transition: transform 0.3s ease;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-text {
    display: flex;
    align-items: center;
    gap: 0;
    color: var(--text-primary) !important;
    /* VOLT is white */
}

.brand-text > span {
    color: var(--accent-teal) !important;
    /* MINER is green */
}

/* Hero Section */
.hero {
    padding: 8rem 0 5rem;
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero .impact-stat {
    font-family: var(--font-mono);
    color: var(--accent-orange);
    font-size: 1.2rem;
    display: block;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero .subtitle {
    font-size: 1.4rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

.highlight {
    background: linear-gradient(90deg, var(--accent-blue), var(--highlight));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Sections */
section {
    padding: 6rem 0;
    border-top: 1px solid var(--border-color);
}

h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
}

/* Cards & Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-blue);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--glow-blue);
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-blue);
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover::after {
    opacity: 1;
}

.card h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.metric-value {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
}

.unit {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Explainer Grid */
.explainer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.explainer-card {
    background: #0d1117;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem;
}

.explainer-card h3 {
    color: var(--accent-blue);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Calculator Styles */
.calculator-container {
    background: #0d1117;
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-container input {
    width: 100%;
    background: #161b22;
    border: 1px solid var(--border-color);
    padding: 0.8rem 1rem;
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.input-container input:focus {
    border-color: var(--accent-blue);
}

/* Hide number input spinners */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.input-container .unit-tag {
    position: absolute;
    right: 1rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    pointer-events: none;
    user-select: none;
    z-index: 1;
}

.calc-results {
    background: rgba(88, 166, 255, 0.05);
    border: 1px solid rgba(88, 166, 255, 0.1);
    border-radius: 1rem;
    padding: 2.5rem;
}

.result-item {
    margin-bottom: 2rem;
}

.result-item:last-child {
    margin-bottom: 0;
}

.result-item label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}

.result-item .val {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--highlight);
}

/* Timeline Visual */
.timeline-visual {
    padding: 1.5rem;
    background: #0d1117;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin: 2rem auto;
    max-width: 100%;
    overflow-x: auto;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .timeline-visual {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .timeline-arrow {
        display: none;
    }

    .timeline-step {
        text-align: left;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .timeline-step:last-child {
        border-bottom: none;
    }
}

.timeline-step {
    text-align: center;
    flex: 1;
}

.timeline-step .label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.timeline-step .value {
    font-weight: 700;
    color: var(--accent-blue);
}

.timeline-arrow {
    color: var(--border-color);
    font-size: 1.5rem;
}

/* Infrastructure Diagram */
.visual-core {
    background: #010409;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    margin: 2rem 0;
}

.diagram-svg {
    max-width: 100%;
    height: auto;
}

/* Lang Switcher */
.lang-switcher {
    display: flex;
    gap: 1rem;
}

.lang-link {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    border: 1px solid transparent;
}

.lang-link:hover {
    color: var(--text-primary);
}

.lang-link.active {
    color: var(--accent-blue);
    border-color: rgba(88, 166, 255, 0.3);
    background: rgba(88, 166, 255, 0.05);
}

/* Responsive */
@media (max-width: 900px) {
    .calculator-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .timeline-visual {
        padding: 1rem;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .timeline-step {
        min-width: 80px;
        flex: 0 0 auto;
    }

    .timeline-arrow {
        flex: 0 0 auto;
        font-size: 0.9rem;
    }
}

/* ========================================
   LOADING STATES & SPINNERS
   ======================================== */

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(88, 166, 255, 0.2);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.error {
    color: #f85149;
    font-size: 0.9rem;
}

/* ========================================
   ROI INDICATORS
   ======================================== */

.roi-excellent {
    color: #3fb950 !important;
    border-left: 4px solid #3fb950;
    padding-left: 1rem;
}

.roi-good {
    color: #d29922 !important;
    border-left: 4px solid #d29922;
    padding-left: 1rem;
}

.roi-caution {
    color: #f85149 !important;
    border-left: 4px solid #f85149;
    padding-left: 1rem;
}

.roi-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
    opacity: 0.8;
}

.positive {
    color: #3fb950;
}

.negative {
    color: #f85149;
}

/* ========================================
   PROBLEM CARDS (Big Numbers)
   ======================================== */

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.problem-card {
    background: linear-gradient(135deg, #161b22 0%, #0d1117 100%);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-teal));
    opacity: 0;
    transition: opacity 0.3s;
}

.problem-card:hover::before {
    opacity: 1;
}

.problem-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-blue);
    box-shadow: 0 20px 50px rgba(88, 166, 255, 0.2);
}

.big-number {
    font-size: 4.5rem;
    font-weight: 800;
    font-family: var(--font-mono);
    background: linear-gradient(135deg, #58a6ff, #3fb950);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    line-height: 1;
}

.problem-card h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.problem-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ========================================
   REAL-WORLD CASE STUDIES
   ======================================== */

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.case-card {
    background: linear-gradient(135deg, #0d1117 0%, #010409 100%);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.case-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-teal), var(--accent-blue));
    opacity: 0;
    transition: opacity 0.3s;
}

.case-card:hover::after {
    opacity: 1;
}

.case-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-teal);
    box-shadow: 0 15px 40px rgba(46, 160, 67, 0.25);
}

.case-card h3 {
    font-size: 1.5rem;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.case-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem 1rem;
    background: rgba(88, 166, 255, 0.05);
    border-radius: 0.5rem;
    border: 1px solid rgba(88, 166, 255, 0.1);
}

.case-stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.3rem;
    /* Smaller to fit strings */
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--accent-teal);
    margin-bottom: 0.25rem;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.case-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.case-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: rgba(46, 160, 67, 0.1);
    border: 1px solid rgba(46, 160, 67, 0.3);
    border-radius: 0.5rem;
    font-size: 0.8rem;
    color: var(--accent-teal);
    font-weight: 600;
}

/* ========================================
   TECHNOLOGY COMPARISON
   ======================================== */

.comparison-container {
    margin: 3rem 0;
}

.comparison-item {
    margin-bottom: 2.5rem;
}

.comparison-item:last-child {
    margin-bottom: 0;
}

.comparison-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.comparison-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.comparison-percentage {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-blue);
}

.comparison-bar {
    height: 40px;
    background: rgba(88, 166, 255, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.comparison-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-teal));
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.comparison-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(88, 166, 255, 0.03);
    border-radius: 0.5rem;
}

.comparison-detail {
    font-size: 0.85rem;
}

.comparison-detail strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.25rem;
}

.comparison-detail span {
    color: var(--text-secondary);
}

/* ========================================
   TOOLTIPS
   ======================================== */

.info-tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
    margin-left: 0.5rem;
    color: var(--accent-blue);
    font-size: 0.9rem;
}

.tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #161b22;
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    white-space: nowrap;
    z-index: 1000;
    transition: opacity 0.3s, visibility 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.info-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.tooltip-popup {
    position: fixed;
    background: #161b22;
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    z-index: 10000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 300px;
    pointer-events: none;
}

/* ========================================
   MICRO-ANIMATIONS
   ======================================== */

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.metric-value {
    animation: countUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card,
.problem-card,
.case-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Stagger animation for grids */
.dashboard-grid .card:nth-child(1) {
    animation-delay: 0.1s;
}

.dashboard-grid .card:nth-child(2) {
    animation-delay: 0.2s;
}

.dashboard-grid .card:nth-child(3) {
    animation-delay: 0.3s;
}

.dashboard-grid .card:nth-child(4) {
    animation-delay: 0.4s;
}

.problem-grid .problem-card:nth-child(1) {
    animation-delay: 0.1s;
}

.problem-grid .problem-card:nth-child(2) {
    animation-delay: 0.2s;
}

.problem-grid .problem-card:nth-child(3) {
    animation-delay: 0.3s;
}

.case-grid .case-card:nth-child(1) {
    animation-delay: 0.1s;
}

.case-grid .case-card:nth-child(2) {
    animation-delay: 0.2s;
}

.case-grid .case-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* ========================================
   ENHANCED MOBILE RESPONSIVENESS
   ======================================== */

@media (max-width: 768px) {

    .problem-grid,
    .case-grid {
        grid-template-columns: 1fr;
    }

    .big-number {
        font-size: 3rem;
    }

    .case-stats {
        grid-template-columns: 1fr;
    }

    .comparison-details {
        grid-template-columns: 1fr;
    }

    .calculator-container {
        padding: 2rem;
    }
}

/* ========================================
   CURRENCY CONVERTER
   ======================================== */

.currency-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(88, 166, 255, 0.05);
    border: 1px solid rgba(88, 166, 255, 0.1);
    border-radius: 0.75rem;
}

.currency-selector label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.currency-selector select {
    flex: 1;
    background: #161b22;
    border: 1px solid var(--border-color);
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
}

.currency-selector select:focus {
    border-color: var(--accent-blue);
}

.currency-selector select:hover {
    border-color: var(--accent-blue);
}

.exchange-rate-info {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-family: var(--font-mono);
}

/* ========================================
   CTA SECTION (Calendly Button)
   ======================================== */

.cta-section {
    background: linear-gradient(135deg, #161b22 0%, #0d1117 100%);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 4rem 3rem;
    text-align: center;
    margin: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-teal), var(--accent-orange));
    opacity: 0.8;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--highlight));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-section p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
    color: white;
    text-decoration: none;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(88, 166, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(88, 166, 255, 0.4);
}

.cta-button:active {
    transform: translateY(-2px) scale(1.02);
}

.cta-icon {
    font-size: 1.3rem;
}

@media (max-width: 768px) {
    /* Case stats already vertical */

    .cta-section h2 {
        font-size: 2rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .currency-selector {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ========================================
   INTERACTIVE MAP
   ======================================== */

#interactive-map {
    border-top: 1px solid var(--border-color);
    padding: 6rem 0;
}

.map-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 3rem auto;
    aspect-ratio: 16 / 9;
    background-color: #030712;
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
    /* World Map Background */
    background-image: url('assets/world_map_tech_dark.png');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.map-marker {
    position: absolute;
    width: 18px;
    height: 18px;
    background-color: var(--accent-orange);
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(210, 153, 34, 0.5);
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: markerPulse 2s infinite;
}

@keyframes markerPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(210, 153, 34, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(210, 153, 34, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(210, 153, 34, 0);
    }
}

.map-marker:hover,
.map-marker.active {
    background-color: var(--highlight);
    transform: translate(-50%, -50%) scale(1.4);
    box-shadow: 0 0 30px var(--highlight);
    z-index: 20;
}

.map-tooltip-card {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    width: 280px;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    z-index: 100;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    /* Always none to avoid hover flicker */
}

.map-tooltip-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.map-tooltip-card h4 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
}

.map-tooltip-card .badge {
    font-size: 0.7rem;
    background: rgba(88, 166, 255, 0.1);
    color: var(--accent-blue);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    border: 1px solid rgba(88, 166, 255, 0.2);
}

.map-stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.map-stat-label {
    color: var(--text-secondary);
}

.map-stat-val {
    color: var(--text-primary);
    font-weight: 600;
    font-family: var(--font-mono);
}

.savings-highlight {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(63, 185, 80, 0.1);
    border-left: 3px solid var(--highlight);
    border-radius: 0 0.5rem 0.5rem 0;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-style: italic;
}

@media (max-width: 768px) {
    .map-tooltip-card {
        width: auto;
        max-width: 280px;
        bottom: 1rem;
        left: 1rem;
        right: auto;
        padding: 1rem;
        font-size: 0.85rem;
    }

    .map-tooltip-card h4 {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
        padding-right: 2rem;
    }

    .map-stat-row {
        font-size: 0.8rem;
        margin-bottom: 0.35rem;
    }

    .savings-highlight {
        margin-top: 0.75rem;
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}

/* Close button for mobile map tooltip */
.map-tooltip-close {
    display: none;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 101;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-tooltip-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .map-tooltip-close {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .map-tooltip-card.visible {
        pointer-events: auto;
    }

    /* Make tooltip more compact on very small screens */
    @media (max-width: 480px) {
        .map-tooltip-card {
            max-width: calc(100vw - 1rem);
            left: 0.5rem;
            right: 0.5rem;
            bottom: 0.5rem;
            padding: 0.75rem;
        }

        .map-tooltip-card h4 {
            font-size: 0.9rem;
        }
    }
}