/* 
   Solar Advisor Premium Stylesheet 
   Design System: Futuristic Dark (Tesla & Apple inspired)
   Accents: Solar Gold (#FFB300) and Eco Emerald (#10B981)
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --bg-dark: #0B0F19;
    --bg-card: rgba(22, 28, 45, 0.65);
    --bg-card-hover: rgba(30, 41, 67, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 179, 0, 0.3);
    
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    
    --solar-gold: #FFB300;
    --solar-gold-glow: rgba(255, 179, 0, 0.15);
    --solar-orange: #FF6D00;
    
    --eco-emerald: #10B981;
    --eco-emerald-glow: rgba(16, 185, 129, 0.15);
    
    --accent-blue: #3B82F6;
    --accent-blue-glow: rgba(59, 130, 246, 0.15);
    
    --danger-red: #EF4444;

    /* Fonts */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Transitions & Shadows */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    --shadow-glow-gold: 0 0 25px rgba(255, 179, 0, 0.25);
    --shadow-glow-emerald: 0 0 25px rgba(16, 185, 129, 0.25);
    --shadow-glow-blue: 0 0 25px rgba(59, 130, 246, 0.25);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--border-hover) var(--bg-dark);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 179, 0, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.03) 0%, transparent 40%);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--solar-gold);
}

/* Glassmorphism Containers */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

/* App Header & Navigation Menu Links */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2.5rem;
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-badge {
    background: transparent;
    padding: 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
}

img[src='js-kemet-logo.jpg'] {
    filter: invert(1) hue-rotate(180deg) contrast(1.25) brightness(1.25);
    mix-blend-mode: screen;
    object-fit: contain;
    max-height: 100%;
    display: block;
}

.logo-img-header {
    height: 50px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--font-heading);
    transition: var(--transition-smooth);
    position: relative;
    padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--solar-gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--solar-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-selector {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: var(--transition-smooth);
}

.lang-selector:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--solar-gold);
}

.lang-selector option {
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

/* Landing Hero Section layout split screen view */
.hero-section {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    padding: 6rem 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
    min-height: calc(100vh - 80px);
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center;
    mask-image: radial-gradient(ellipse at center, black, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 80%);
    pointer-events: none;
    z-index: -1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hero-badge {
    background: rgba(255, 179, 0, 0.08);
    border: 1px solid rgba(255, 179, 0, 0.2);
    color: var(--solar-gold);
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    animation: pulseGlow 3s infinite ease-in-out;
}

.free-banner-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--eco-emerald);
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--eco-emerald);
    box-shadow: 0 0 10px var(--eco-emerald);
    animation: pulseDot 1.5s infinite;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #FFFFFF 40%, #A5B4FC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

/* Interactive Solar Ecosystem Animation */
.solar-animation-container {
    width: 100%;
    height: 100%;
    min-height: 380px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
}

.solar-node {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    z-index: 2;
    background: #111827;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.solar-node svg {
    width: 30px;
    height: 30px;
}

.solar-node span {
    position: absolute;
    bottom: -28px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
}

.node-sun { top: 0%; left: 50%; transform: translateX(-50%); border-color: var(--solar-orange); box-shadow: 0 0 35px rgba(255, 109, 0, 0.35); }
.node-sun svg { color: var(--solar-gold); }

.node-panels { top: 38%; left: 15%; border-color: var(--accent-blue); box-shadow: 0 0 30px rgba(59, 130, 246, 0.25); }
.node-panels svg { color: var(--accent-blue); }

.node-battery { top: 38%; right: 15%; border-color: var(--eco-emerald); box-shadow: 0 0 30px rgba(16, 185, 129, 0.25); }
.node-battery svg { color: var(--eco-emerald); }

.node-home { bottom: 5%; left: 50%; transform: translateX(-50%); border-color: #A78BFA; box-shadow: 0 0 30px rgba(167, 139, 250, 0.25); }
.node-home svg { color: #A78BFA; }

/* Connecting Energy Lines */
.energy-line {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1;
    overflow: hidden;
}

.line-1 { top: 12%; left: 35%; width: 4px; height: 28%; transform: rotate(-35deg); }
.line-2 { top: 46%; left: 28%; width: 44%; height: 4px; }
.line-3 { top: 48%; right: 32%; width: 4px; height: 45%; transform: rotate(-30deg); }

.energy-particle {
    position: absolute;
    border-radius: 2px;
    animation: flowParticles 3s infinite linear;
}

.line-1 .energy-particle { top: -20px; left: 0; width: 100%; height: 20px; background: linear-gradient(180deg, transparent, var(--solar-gold)); }
.line-2 .energy-particle { left: -20px; top: 0; height: 100%; width: 20px; background: linear-gradient(90deg, transparent, var(--accent-blue)); }
.line-3 .energy-particle { top: -20px; left: 0; width: 100%; height: 20px; background: linear-gradient(180deg, transparent, var(--eco-emerald)); }

/* Features Grid */
.features-section {
    padding: 6rem 1.5rem;
    text-align: center;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 3.5rem;
    text-align: center;
    background: linear-gradient(135deg, #FFFFFF 40%, var(--solar-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.feature-card {
    padding: 3rem 2.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--solar-gold);
    box-shadow: var(--shadow-glow-gold);
}

.feature-icon {
    font-size: 2.8rem;
    background: rgba(255, 179, 0, 0.08);
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* About Section */
.about-section {
    padding: 6rem 1.5rem;
}

.about-card {
    padding: 4rem 3rem;
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-text {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.8;
}

/* Help & FAQ accordion styling */
.help-section {
    padding: 6rem 1.5rem;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    padding: 1.75rem 2.25rem;
    transition: var(--transition-smooth);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-toggle {
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--solar-gold);
    transition: var(--transition-smooth);
    user-select: none;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.faq-answer p {
    padding-top: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.7;
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
}

.faq-item.active {
    border-color: var(--solar-gold);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--danger-red);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

/* Contact Grid Split Section */
.contact-section {
    padding: 6rem 1.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.contact-item-row .icon {
    font-size: 1.8rem;
    background: rgba(255, 179, 0, 0.08);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--solar-gold);
    flex-shrink: 0;
}

.contact-item-row h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.contact-item-row p a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.contact-item-row p a:hover {
    color: var(--solar-gold);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* App Footer Layout */
.app-footer {
    background: #07090F;
    border-top: 1px solid var(--border-color);
    padding: 4rem 1.5rem;
    margin-top: 6rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 2.5rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--solar-gold);
}

/* Premium Sizing Buttons */
.btn-premium {
    background: linear-gradient(135deg, var(--solar-gold), var(--solar-orange));
    color: #000000;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1.1rem 2.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 25px rgba(255, 179, 0, 0.35);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 179, 0, 0.5), var(--shadow-glow-gold);
}

.btn-premium:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.85rem 1.75rem;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-secondary);
}

/* Stepper / User Journey Container */
.app-container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.stepper-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.stepper-header::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 5%;
    right: 5%;
    height: 2px;
    background: rgba(255, 255, 255, 0.06);
    z-index: 1;
}

.stepper-bar-fill {
    position: absolute;
    top: 20px;
    left: 5%;
    height: 2px;
    background: linear-gradient(90deg, var(--solar-gold), var(--eco-emerald));
    z-index: 1;
    width: 0%;
    transition: var(--transition-smooth);
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    width: 20%;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #111827;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.step-indicator.active .step-number {
    border-color: var(--solar-gold);
    color: var(--solar-gold);
    box-shadow: 0 0 15px rgba(255, 179, 0, 0.25);
    background: var(--solar-gold-glow);
}

.step-indicator.completed .step-number {
    border-color: var(--eco-emerald);
    color: var(--eco-emerald);
    background: var(--eco-emerald-glow);
}

.step-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 0.5rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.step-indicator.active .step-label {
    color: var(--text-primary);
}

.step-indicator.completed .step-label {
    color: var(--eco-emerald);
}

/* Step Wizard Panels */
.step-panel {
    display: none;
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-panel.active {
    display: block;
}

.panel-title-container {
    text-align: center;
    margin-bottom: 2.5rem;
}

.panel-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.panel-desc {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Location Tabs switcher */
.location-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}
.location-tab {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-smooth);
    font-family: var(--font-heading);
}
.location-tab:hover, .location-tab.active {
    border-color: var(--solar-gold);
    color: var(--solar-gold);
    background: var(--solar-gold-glow);
    box-shadow: 0 0 15px rgba(255, 179, 0, 0.15);
}

/* Radar scanning visual components */
.radar-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 2px solid rgba(59, 130, 246, 0.2);
    position: relative;
    background: radial-gradient(circle, rgba(22, 28, 45, 0.9) 0%, rgba(11, 15, 25, 0.95) 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
    margin: 0 auto;
    transition: var(--transition-smooth);
}
.radar-container.scanning {
    border-color: var(--solar-gold);
    box-shadow: 0 0 30px rgba(255, 179, 0, 0.2);
}
.radar-sweep {
    position: absolute;
    width: 100%;
    height: 100%;
    background: conic-gradient(from 0deg, rgba(255, 179, 0, 0.4) 0deg, transparent 90deg, transparent 360deg);
    border-radius: 50%;
    top: 0;
    left: 0;
    transform-origin: center;
    display: none;
}
.radar-container.scanning .radar-sweep {
    display: block;
    animation: sweepRadar 2s infinite linear;
}
@keyframes sweepRadar {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.radar-grid {
    position: absolute;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.05);
}
.radar-grid::before {
    content: '';
    position: absolute;
    width: 60%;
    height: 60%;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.03);
    top: 20%;
    left: 20%;
}
.radar-blip {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--eco-emerald);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--eco-emerald);
    top: 35%;
    left: 65%;
    animation: pulseBlip 1s infinite alternate;
}
@keyframes pulseBlip {
    0% { opacity: 0.3; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.2); }
}
.radar-center {
    font-size: 2rem;
    z-index: 2;
    transition: var(--transition-smooth);
}
.radar-container.scanning .radar-center {
    animation: pulseIcon 1s infinite alternate;
}
@keyframes pulseIcon {
    from { transform: scale(0.9); }
    to { transform: scale(1.1); }
}

.gps-telemetry {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    border-radius: 12px;
}
.tel-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 0.4rem;
}
.tel-item:last-child {
    border: none;
    padding-bottom: 0;
}
.tel-lbl {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
}
.tel-val {
    font-family: monospace;
    color: var(--solar-gold);
    font-weight: bold;
}

/* STEP 1: Location layout */
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
}

.location-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.custom-select-container {
    position: relative;
    width: 100%;
}

/* Trigger Box Selector */
.custom-picker-trigger {
    display: block;
    width: 100%;
    text-align: left;
    font-size: 1rem;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239CA3AF'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
}

.custom-picker-trigger.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.custom-picker-trigger:hover {
    border-color: var(--solar-gold);
    background: rgba(255, 255, 255, 0.08);
}

/* Internal search element inside dropdown list */
.dropdown-search-input {
    width: calc(100% - 2rem);
    margin: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-smooth);
}

.dropdown-search-input:focus {
    border-color: var(--solar-gold);
    box-shadow: 0 0 0 2px var(--solar-gold-glow);
}

.dropdown-items-container {
    max-height: 180px;
    overflow-y: auto;
    padding-bottom: 0.5rem;
}

.custom-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    max-height: 270px;
    overflow: hidden;
    z-index: 9999;
    background: #161c2d;
    border: 1px solid var(--solar-gold);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
}

.dropdown-item {
    padding: 0.85rem 1.25rem;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}

.dropdown-item:hover {
    background: var(--solar-gold-glow);
    color: var(--solar-gold);
}

.location-info-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.info-stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.info-stat-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}

.stat-val {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--solar-gold);
    margin-bottom: 0.25rem;
}

.stat-lbl {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* STEP 2: Building Type Card Grid */
.building-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.card-selectable {
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.card-selectable .card-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.card-selectable .card-icon svg {
    width: 30px;
    height: 30px;
    color: var(--text-secondary);
}

.card-selectable h3 {
    font-size: 1.15rem;
    font-weight: 600;
}

.card-selectable p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.card-selectable:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    background: var(--bg-card-hover);
}

.card-selectable:hover .card-icon {
    background: var(--solar-gold-glow);
}
.card-selectable:hover .card-icon svg {
    color: var(--solar-gold);
}

.card-selectable.selected {
    border-color: var(--solar-gold);
    background: rgba(255, 179, 0, 0.05);
    box-shadow: var(--shadow-glow-gold);
}

.card-selectable.selected .card-icon {
    background: var(--solar-gold);
}
.card-selectable.selected .card-icon svg {
    color: #000000;
}

/* STEP 3: Appliances Selector Split Screen */
.appliances-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 2.5rem;
    align-items: start;
}

.appliances-catalog-panel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.search-box-container {
    position: relative;
}

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 1rem 1rem 1rem 3rem;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.search-input:focus {
    border-color: var(--solar-gold);
    box-shadow: 0 0 0 3px var(--solar-gold-glow);
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
    width: 18px;
    height: 18px;
}

.category-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.category-tab {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.category-tab:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-primary);
}

.category-tab.active {
    background: var(--solar-gold-glow);
    border-color: var(--solar-gold);
    color: var(--solar-gold);
}

.catalog-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.75rem;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.catalog-item-card {
    padding: 1rem 0.75rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-smooth);
}

.catalog-item-card svg, .catalog-item-card div {
    font-size: 1.6rem;
    transition: var(--transition-smooth);
}

.catalog-item-card span {
    font-size: 0.82rem;
    font-weight: 600;
}

.catalog-item-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}
.catalog-item-card:hover svg, .catalog-item-card:hover div {
    transform: scale(1.1);
}

.catalog-item-card.selected {
    border-color: var(--solar-gold) !important;
    background: rgba(255, 179, 0, 0.06) !important;
    box-shadow: 0 0 12px rgba(255, 179, 0, 0.25) !important;
}
.catalog-item-card.selected div {
    transform: scale(1.05) !important;
}

/* Selected Appliances Panel (Compact style) */
.selected-appliances-panel {
    display: flex;
    flex-direction: column;
}

.appliances-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.appliances-list-header h3 {
    font-size: 1.1rem;
}

.selected-appliances-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 440px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.selected-item-row {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.6rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    animation: fadeIn 0.3s ease;
}

.item-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-title-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-remove-item {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-remove-item:hover {
    color: var(--danger-red);
}

.item-controls-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1fr;
    gap: 0.75rem;
    align-items: center;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.15rem;
    width: fit-content;
}

.btn-qty {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    font-size: 0.8rem;
}

.btn-qty:hover {
    background: var(--solar-gold);
    color: #000000;
}

.qty-val {
    width: 20px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.slider-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.slider-premium {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.slider-premium::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--solar-gold);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 179, 0, 0.5);
    transition: var(--transition-smooth);
}

.slider-val {
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 38px;
}

.day-night-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.15rem;
}

.btn-toggle-option {
    padding: 0.2rem 0.5rem;
    border-radius: 15px;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.15rem;
    transition: var(--transition-smooth);
}

.btn-toggle-option.active {
    background: var(--solar-gold-glow);
    color: var(--solar-gold);
}

.btn-toggle-option.active.night {
    background: var(--accent-blue-glow);
    color: var(--accent-blue);
}

/* Advanced Manual Add Drawer */
.btn-manual-add {
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
    border-style: dashed;
}

.manual-add-drawer {
    display: none;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 1rem;
    animation: slideDown 0.3s ease;
}

.manual-add-drawer.active {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.preset-power-pills {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.power-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.power-pill:hover {
    background: rgba(255, 255, 255, 0.08);
}

.power-pill.active {
    background: var(--solar-gold-glow);
    border-color: var(--solar-gold);
    color: var(--solar-gold);
}

.drawer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* STEP 4: Goals selection card grids */
.goals-selection-group {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.goals-subsection h3 {
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
    border-left: 3px solid var(--solar-gold);
    padding-left: 0.75rem;
}

.goals-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

/* Wizard Navigation Bar */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

/* AI Consultation Balloon */
.ai-consultation-banner {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 16px;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.ai-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-blue), #8B5CF6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow-blue);
    flex-shrink: 0;
}

.ai-avatar svg {
    width: 24px;
    height: 24px;
    color: #FFFFFF;
}

.ai-chat-bubble {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ai-name {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-blue);
}

.ai-text {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* STEP 5: Results Dashboard */
.results-header-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.summary-card {
    padding: 1.5rem;
    text-align: center;
}

.summary-card svg {
    width: 24px;
    height: 24px;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.summary-val {
    font-size: 1.6rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.summary-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Offer Comparison Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1fr;
    gap: 2rem;
    align-items: stretch;
    margin-bottom: 4rem;
}

.offer-card {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.offer-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-eco { background: rgba(16, 185, 129, 0.1); color: var(--eco-emerald); border: 1px solid rgba(16, 185, 129, 0.2); }
.badge-rec { background: rgba(255, 179, 0, 0.1); color: var(--solar-gold); border: 1px solid rgba(255, 179, 0, 0.2); }
.badge-premium { background: rgba(139, 92, 246, 0.1); color: #A78BFA; border: 1px solid rgba(167, 139, 250, 0.2); }

.offer-card.recommended {
    border-color: var(--solar-gold);
    box-shadow: var(--shadow-glow-gold), var(--shadow-premium);
    transform: scale(1.03);
}

.offer-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.offer-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.offer-price {
    font-size: 2.2rem;
    font-family: var(--font-heading);
    font-weight: 800;
    margin-bottom: 2rem;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.offer-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.specs-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.spec-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.spec-item.eco svg { color: var(--eco-emerald); }
.spec-item.rec svg { color: var(--solar-gold); }
.spec-item.premium svg { color: #A78BFA; }

.spec-lbl {
    color: var(--text-secondary);
}

.spec-val {
    font-weight: 600;
    margin-left: auto;
}

.btn-select-offer {
    width: 100%;
    justify-content: center;
}

.offer-card.recommended .btn-select-offer {
    background: linear-gradient(135deg, var(--solar-gold), var(--solar-orange));
    color: #000000;
}

.offer-card.recommended .btn-select-offer:hover {
    box-shadow: 0 8px 20px rgba(255, 179, 0, 0.4);
}

/* Why This Config Banner */
.why-config-banner {
    padding: 2rem;
    margin-bottom: 3rem;
}

.why-config-banner h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.why-config-banner h3 svg {
    color: var(--solar-gold);
    width: 22px;
    height: 22px;
}

.why-config-banner p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Action Footer */
.results-actions-footer {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Modal Layout Backdrop & Content (Fully scrollable to fit screens) */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow-y: auto;
}

.modal-content {
    width: 100%;
    max-width: 480px;
    padding: 2rem;
    position: relative;
    box-shadow: var(--shadow-premium), var(--shadow-glow-gold);
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.btn-close-modal {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-smooth);
}

.btn-close-modal:hover {
    color: var(--danger-red);
}

/* Floating AI Widget Styles */
.ai-floating-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
}

.btn-floating-ai {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), #8B5CF6);
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4), var(--shadow-glow-blue);
    position: relative;
    transition: var(--transition-smooth);
}

.btn-floating-ai svg {
    width: 28px;
    height: 28px;
}

.btn-floating-ai:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.6), var(--shadow-glow-blue);
}

.pulse-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent-blue);
    animation: pulseRing 2s infinite ease-out;
    pointer-events: none;
}

/* Chat Drawer Panel */
.ai-chat-drawer {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 500px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-premium), var(--shadow-glow-blue);
    animation: drawerOpen 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

.ai-chat-drawer.active {
    display: flex;
}

.chat-drawer-header {
    background: rgba(22, 28, 45, 0.95);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-close-drawer {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-close-drawer:hover {
    color: var(--danger-red);
}

.chat-drawer-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(11, 15, 25, 0.65);
}

.chat-bubble {
    max-width: 85%;
    padding: 0.75rem 1.1rem;
    border-radius: 16px;
    font-size: 0.88rem;
    line-height: 1.5;
    animation: fadeIn 0.2s ease-in;
}

.chat-bubble.ai {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-bubble.user {
    background: linear-gradient(135deg, var(--accent-blue), #5850EC);
    color: #ffffff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.chat-drawer-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    background: rgba(22, 28, 45, 0.95);
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.chat-drawer-footer input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.7rem 1.1rem;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition-smooth);
}

.chat-drawer-footer input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px var(--accent-blue-glow);
}

.btn-send-widget {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--accent-blue), #8B5CF6);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.btn-send-widget svg {
    width: 16px;
    height: 16px;
    margin-right: -1px;
}

.btn-send-widget:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.4);
}

/* Keyframes Animations */
@keyframes flowParticles {
    0% { transform: translateY(0); opacity: 0.2; }
    50% { opacity: 1; }
    100% { transform: translateY(180px); opacity: 0.2; }
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.9; box-shadow: 0 0 10px rgba(255, 179, 0, 0.1); }
    50% { opacity: 1; box-shadow: 0 0 20px rgba(255, 179, 0, 0.3); }
}

@keyframes pulseRing {
    0% { transform: scale(0.95); opacity: 0.8; }
    100% { transform: scale(1.45); opacity: 0; }
}

@keyframes drawerOpen {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-content {
        align-items: center;
        text-align: center;
    }

    .solar-animation-container {
        min-height: 250px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .options-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .offer-card.recommended {
        transform: none;
    }
    
    .location-grid {
        grid-template-columns: 1fr;
    }
    
    .appliances-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .stepper-header {
        display: none !important;
    }
    .mobile-stepper-indicator { display: none !important; }
    .btn-floating-ai {
        width: 48px !important;
        height: 48px !important;
    }
    .btn-floating-ai svg {
        width: 22px !important;
        height: 22px !important;
    }
    .ai-floating-widget {
        bottom: 1.25rem !important;
        right: 1.25rem !important;
    }
    /* Mobile categories and catalog grid optimization */
    .mobile-appliances-tabs {
        display: flex !important;
        margin-bottom: 1.25rem !important;
        justify-content: center !important;
        gap: 0.5rem !important;
        width: 100% !important;
    }
    .mobile-appliances-tabs .tab-btn.active {
        background: var(--solar-gold) !important;
        color: #060913 !important;
        border-color: var(--solar-gold) !important;
        box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3) !important;
    }
    .category-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 0.5rem !important;
        padding-bottom: 0.75rem !important;
        width: 100% !important;
        scrollbar-width: none !important;
    }
    .category-tabs::-webkit-scrollbar {
        display: none !important;
    }
    .category-tab {
        flex: 0 0 auto !important;
        padding: 0.45rem 0.95rem !important;
        font-size: 0.82rem !important;
        border-radius: 20px !important;
    }
    .catalog-items-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
        max-height: 480px !important;
        gap: 0.65rem !important;
        padding: 0.25rem !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
    .catalog-item-card, .appliance-catalog-card {
        padding: 0.75rem 0.6rem !important;
        border-radius: 12px !important;
    }
    .catalog-item-card div {
        font-size: 1.25rem !important;
        margin-bottom: 0.15rem !important;
    }
    .catalog-item-card span {
        font-size: 0.68rem !important;
        line-height: 1.15 !important;
        min-height: 2.1rem !important;
    }
    .btn-add-appliance {
        padding: 0.15rem 0.4rem !important;
        font-size: 0.65rem !important;
        border-radius: 12px !important;
        width: 100% !important;
    }
    .card-qty-controls {
        padding: 0.1rem 0.35rem !important;
        border-radius: 12px !important;
        gap: 0.35rem !important;
    }
    .btn-card-qty {
        font-size: 0.75rem !important;
    }
    .card-qty-val {
        font-size: 0.7rem !important;
    }
    .item-controls-grid {
        grid-template-columns: 1fr 1.3fr 1fr !important;
        gap: 0.5rem !important;
    }
    .ai-consultation-banner {
        display: none;
        flex-direction: row !important;
        gap: 0.75rem !important;
        padding: 0.85rem 1rem !important;
        margin-bottom: 1.25rem !important;
        border-radius: 12px !important;
        background: rgba(59, 130, 246, 0.05) !important;
        border: 1px solid rgba(59, 130, 246, 0.15) !important;
    }
    .ai-consultation-banner .ai-avatar {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        display: none;
        align-items: center;
        justify-content: center;
    }
    .ai-consultation-banner .ai-name {
        font-size: 0.75rem !important;
        font-weight: 700 !important;
    }
    .ai-consultation-banner .ai-text {
        font-size: 0.78rem !important;
        line-height: 1.45 !important;
        margin: 0 !important;
    }
    
    /* Prevent any horizontal scroll */
    body, html {
        overflow-x: hidden;
    }

    /* Hero Section */
    .hero-section {
        padding: 3rem 1.25rem !important;
        min-height: auto !important;
        gap: 1.5rem !important;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.9rem;
    }

    .free-banner-pill {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .hero-buttons .btn-premium,
    .hero-buttons .btn-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .hero-media-wrapper {
        display: none;
    }

    /* Navigation */
    .nav-menu {
        display: none;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .feature-card {
        padding: 1.5rem !important;
    }

    /* Sections general padding */
    .about-section,
    .help-section,
    .contact-section {
        padding: 3rem 1rem !important;
    }

    .about-card {
        padding: 2rem 1.5rem !important;
    }

    .about-card h2 {
        font-size: 1.5rem !important;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        padding: 2rem 1.25rem !important;
    }

    /* FAQ */
    .faq-item {
        padding: 1.25rem 1rem !important;
    }

    .faq-question h4 {
        font-size: 0.95rem !important;
    }

    /* App Container / Wizard */
    .app-container {
        padding: 0 1rem !important;
    }

    /* Solar Animation */
    .solar-animation-container {
        height: 140px;
        padding: 0;
    }
    
    .solar-node {
        width: 48px;
        height: 48px;
    }
    
    .solar-node svg {
        width: 20px;
        height: 20px;
    }
    
    .solar-node span {
        bottom: -22px;
        font-size: 0.65rem;
    }

    /* Stepper */
    .stepper-header {
        margin-bottom: 2rem;
    }

    .step-label {
        display: none;
    }

    .step-number {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.8rem !important;
    }

    /* Step Panel */
    .panel-title {
        font-size: 1.4rem !important;
    }

    .panel-desc {
        font-size: 0.9rem !important;
    }

    /* Location */
    .location-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .location-tab {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .location-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Appliances */
    .appliances-container {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .appliance-card {
        padding: 1rem !important;
    }

    .item-controls-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .qty-control, .slider-control, .day-night-toggle {
        width: 100%;
        justify-content: space-between;
    }

    /* Goals */
    .goals-selection-group {
        gap: 2rem !important;
    }

    /* Results Dashboard */
    .results-header-summary {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .summary-card {
        padding: 1rem !important;
    }

    .summary-val {
        font-size: 1.1rem !important;
    }

    .summary-lbl {
        font-size: 0.7rem !important;
    }

    /* Offer Cards */
    .options-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .offer-card {
        padding: 1.5rem 1.25rem !important;
    }

    .offer-card.recommended {
        transform: none !important;
    }

    .offer-price {
        font-size: 1.5rem !important;
    }

    /* Results Actions */
    .results-actions-footer {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    .results-actions-footer button {
        width: 100%;
        justify-content: center;
    }

    /* AI Chat Drawer */
    .ai-chat-drawer {
        position: fixed !important;
        left: 0.5rem !important;
        right: 0.5rem !important;
        width: auto !important;
        bottom: 5.5rem !important;
        max-height: 65vh !important;
        z-index: 10000 !important;
    }

    /* Science Section (Methodology) */
    .science-section .glass-panel {
        padding: 1.5rem 1rem !important;
    }

    .science-section .section-title {
        font-size: 1.3rem !important;
    }

    .science-pipeline-container {
        padding: 1.25rem 1rem !important;
    }

    .science-pipeline-container h3 {
        font-size: 1.05rem !important;
    }

    .science-pipeline-container p {
        font-size: 0.85rem !important;
    }

    .pipeline-flow {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .science-guide-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .science-guide-grid h4 {
        font-size: 0.95rem !important;
    }

    .science-guide-grid p {
        font-size: 0.82rem !important;
    }

    /* MathJax formulas overflow fix */
    .MathJax, mjx-container {
        overflow-x: auto !important;
        max-width: 100% !important;
        font-size: 85% !important;
    }

    /* Why Config Banner */
    .why-config-banner {
        padding: 1.25rem 1rem !important;
    }

    /* Footer */
    .app-footer {
        padding: 2rem 1rem !important;
    }

    /* Simulation Loading Overlay */
    .simulation-loading-overlay h2 {
        font-size: 1.2rem !important;
    }

    .simulation-loading-overlay .analysis-step {
        font-size: 0.85rem !important;
    }
}

/* Premium PDF / Print stylesheet rules */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
    
    header, 
    #hero-section, 
    #features-section, 
    #about-section, 
    #help-section, 
    #contact-section,
    footer,
    #app-wizard,
    .results-actions-footer,
    .ai-floating-widget,
    .why-config-banner {
        display: none !important;
    }
    
    #results-dashboard {
        display: block !important;
        background: #ffffff !important;
        color: #000000 !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        border: none !important;
    }

    .panel-title-container {
        margin-bottom: 1.5rem !important;
    }

    .panel-title {
        color: #000000 !important;
        font-size: 1.6rem !important;
    }

    .panel-desc {
        color: #475569 !important;
    }

    .glass-panel {
        background: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
        color: #000000 !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }

    .summary-card {
        border: 1px solid #cbd5e1 !important;
        padding: 1rem !important;
    }

    .summary-card svg {
        color: #475569 !important;
    }

    .summary-val {
        color: #000000 !important;
    }

    .summary-lbl {
        color: #64748b !important;
    }

    .options-grid {
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 1rem !important;
        margin-bottom: 2rem !important;
    }

    .offer-card {
        border: 1px solid #94a3b8 !important;
        background: #ffffff !important;
        color: #000000 !important;
        padding: 1.5rem 1.25rem !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .offer-card.recommended {
        border: 2px solid #d97706 !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .offer-title {
        color: #000000 !important;
        font-size: 1.25rem !important;
    }

    .offer-desc {
        color: #475569 !important;
        font-size: 0.75rem !important;
        margin-bottom: 1rem !important;
    }

    .offer-price {
        color: #000000 !important;
        font-size: 1.8rem !important;
        margin-bottom: 1rem !important;
    }

    .specs-list {
        margin-bottom: 1rem !important;
        padding-top: 1rem !important;
        gap: 0.75rem !important;
    }

    .spec-item {
        font-size: 0.8rem !important;
    }

    .spec-lbl {
        color: #475569 !important;
    }

    .spec-val {
        color: #000000 !important;
    }

    .btn-select-offer, .solar-product-link {
        display: none !important; /* No need to choose or buy on a printed paper sheet */
    }

    .print-only-header {
        display: none;
        justify-content: space-between;
        align-items: center;
    }

    .print-only-footer {
        display: block !important;
    }
}

/* Futuristic Simulation Loader Overlay */
.simulation-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 7, 18, 0.9);
    backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-content {
    max-width: 480px;
    width: 90%;
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(251, 191, 36, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    background: rgba(15, 23, 42, 0.75);
    animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.loader-glowing-ring {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.solar-pulse-core {
    font-size: 2.2rem;
    animation: corePulse 1.5s infinite alternate;
}

.loader-glowing-ring::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px dashed rgba(251, 191, 36, 0.3);
    border-radius: 50%;
    animation: spinClockwise 12s linear infinite;
}

.loader-glowing-ring::after {
    content: '';
    position: absolute;
    width: 85%;
    height: 85%;
    border: 2px solid transparent;
    border-top-color: var(--solar-gold);
    border-bottom-color: var(--solar-gold);
    border-radius: 50%;
    animation: spinCounterClockwise 1.5s linear infinite;
}

.loader-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 2rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.5px;
}

.loader-checklist {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.checklist-item.active {
    opacity: 1;
    color: #ffffff;
}

.checklist-item.success {
    opacity: 1;
    color: #34d399;
}

.checklist-item.success .check-icon {
    animation: checkPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.check-icon {
    font-size: 1.1rem;
    min-width: 24px;
    display: inline-block;
    text-align: center;
}

.check-text {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Loader Keyframes */
@keyframes corePulse {
    0% { transform: scale(0.9); filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.4)); }
    100% { transform: scale(1.1); filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.8)); }
}

@keyframes spinClockwise {
    100% { transform: rotate(360deg); }
}

@keyframes spinCounterClockwise {
    100% { transform: rotate(-360deg); }
}

@keyframes checkPop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Premium Hero Media Wrapper */
.hero-media-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
}

.hero-glow-orb {
    position: absolute;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.07) 0%, rgba(251, 191, 36, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
    filter: blur(40px);
}

.hero-media-card {
    position: relative;
    border-radius: 30px;
    padding: 0;
    background: none;
    border: none;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-media-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 40px 80px rgba(251, 191, 36, 0.05), 0 30px 60px rgba(0, 0, 0, 0.7);
}

.hero-illustration-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 18px;
    display: block;
    object-fit: cover;
    filter: brightness(0.95);
}

.media-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.badge-pulse-dot {
    width: 8px;
    height: 8px;
    background: #34d399;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.4);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
}

@media print {
    .results-appliances-detail, .results-optimization-guide {
        background: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
        color: #000000 !important;
        box-shadow: none !important;
        margin-top: 1.5rem !important;
        padding: 1.25rem !important;
    }
    
    .results-appliances-detail h3, .results-optimization-guide h3 {
        color: #000000 !important;
    }

    .optimization-guide-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .results-optimization-guide h4 {
        color: #000000 !important;
    }

    .print-appliance-card {
        background: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
        color: #000000 !important;
        box-shadow: none !important;
    }
    
    .print-appliance-card div {
        color: #000000 !important;
    }
    
    #science-section {
        display: none !important;
    }
}

/* Responsive Path Division */
@media (max-width: 768px) {
    .path-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

/* Mobile Navigation Hamburger Menu */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10001;
}

.hamburger-btn span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 900px) {
    .app-header {
        padding: 1rem 1.25rem !important;
    }

    .hamburger-btn {
        display: flex;
    }

    .nav-menu {
        display: none !important;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
    }

    .nav-menu.active {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(5, 8, 22, 0.98) !important;
        backdrop-filter: blur(25px) !important;
        -webkit-backdrop-filter: blur(25px) !important;
        padding: 6rem 2rem 3rem !important;
        gap: 1.5rem !important;
        z-index: 10000 !important;
        align-items: center;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
        border: none !important;
    }

    .nav-menu.active .nav-link {
        font-size: 1.35rem !important;
        width: 100%;
        padding: 0.75rem 0 !important;
        color: #ffffff !important;
        opacity: 1 !important;
        transform: none !important;
        display: block !important;
    }

    .nav-menu.active .nav-link:nth-child(1) { animation-delay: 0.05s; }
    .nav-menu.active .nav-link:nth-child(2) { animation-delay: 0.1s; }
    .nav-menu.active .nav-link:nth-child(3) { animation-delay: 0.15s; }
    .nav-menu.active .nav-link:nth-child(4) { animation-delay: 0.2s; }
    .nav-menu.active .nav-link:nth-child(5) { animation-delay: 0.25s; }
    .nav-menu.active .nav-link:nth-child(6) { animation-delay: 0.3s; }

    .hamburger-btn.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-btn.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

@keyframes slideDownMenu {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ultra-small screens (iPhone SE, Galaxy Fold, etc.) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem !important;
    }

    .hero-subtitle {
        font-size: 0.85rem !important;
    }

    .results-header-summary {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    .section-title {
        font-size: 1.2rem !important;
    }

    .panel-title {
        font-size: 1.2rem !important;
    }

    .contact-grid {
        padding: 1.5rem 1rem !important;
    }

    .about-card {
        padding: 1.5rem 1rem !important;
    }

    .location-tabs {
        justify-content: center;
    }

    .location-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.78rem;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 1.25rem !important;
    }

    .hero-subtitle {
        font-size: 0.78rem !important;
    }

    .offer-title {
        font-size: 1rem !important;
    }

    .offer-price {
        font-size: 1.2rem !important;
    }

    .offer-desc {
        font-size: 0.78rem !important;
    }

    .wizard-step-indicator .step-num {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.7rem !important;
    }

    .wizard-step-indicator .step-label {
        font-size: 0.6rem !important;
    }

    .btn-premium, .btn-secondary {
        font-size: 0.85rem !important;
        padding: 0.7rem 1rem !important;
    }

    .glass-panel {
        padding: 1.25rem 0.75rem !important;
    }
}

/* Custom mobile lock & next-gen animations */
body.menu-open {
    overflow: hidden !important;
    height: 100vh !important;
    position: fixed !important;
    width: 100% !important;
}

@keyframes menuItemFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Improve info-stat-row grid to be 3 columns on desktop and 1 column on mobile */
.info-stat-row {
    grid-template-columns: repeat(3, 1fr) !important;
}

@media (max-width: 768px) {
    .info-stat-row {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.5rem !important;
    }
    
    .info-stat-box {
        padding: 0.75rem 0.25rem !important;
    }
    
    .stat-val {
        font-size: 1.05rem !important;
    }
    
    .stat-lbl {
        font-size: 0.65rem !important;
        line-height: 1.1 !important;
    }
    
    /* Show mobile tab switcher for step 3 */
    .mobile-appliances-tabs {
        display: none;
    }
    
    .mobile-appliances-tabs .tab-btn.active {
        background: var(--solar-gold-glow) !important;
        border-color: var(--solar-gold) !important;
        color: var(--solar-gold) !important;
        box-shadow: 0 0 10px rgba(251, 191, 36, 0.15);
    }
    
    /* Appliance panels stack vertically, hidden/shown dynamically by JS */
    .appliances-catalog-panel, .selected-appliances-panel {
        width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }
    
    /* Prevent badge overlap on mobile by making it static flow */
    .offer-badge {
        position: static !important;
        align-self: flex-start !important;
        margin-bottom: 0.75rem !important;
        font-size: 0.75rem !important;
        padding: 0.25rem 0.6rem !important;
        display: inline-block !important;
    }
}

@media (min-width: 769px) {
    .appliances-catalog-panel, .selected-appliances-panel {
        display: block !important;
    }
}

/* ============================================================
   PREMIUM VECTOR DIAGRAM ANIMATIONS & INTERACTIVE HOVERS
   ============================================================ */

@keyframes sun-pulsate {
    0% { transform: scale(1); opacity: 0.75; }
    50% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); opacity: 0.75; }
}

.sun-glow-ring {
    transform-origin: 70px 70px;
    animation: sun-pulsate 4s ease-in-out infinite;
}

@keyframes dash-flow {
    to {
        stroke-dashoffset: -20;
    }
}

.flow-line-sun {
    animation: dash-flow 2.5s linear infinite;
}

.flow-line-panels {
    animation: dash-flow 1.8s linear infinite;
}

.flow-line-battery {
    animation: dash-flow 1.2s linear infinite;
}

@keyframes led-blink {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 1; }
}

.led-blink-1 {
    animation: led-blink 1.5s infinite;
}

.led-blink-2 {
    animation: led-blink 1.5s infinite 0.75s;
}

@keyframes cell-charge {
    0%, 100% { fill-opacity: 0.35; }
    50% { fill-opacity: 1; }
}

.batt-cell {
    animation: cell-charge 3s infinite ease-in-out;
}

/* Interactive hover effects */
.diagram-panel-group:hover .solar-cells {
    fill: #60a5fa !important;
    transition: fill 0.3s ease;
}

.diagram-house-group:hover .house-window {
    fill: #fbbf24 !important;
    filter: drop-shadow(0 0 8px #fbbf24);
    transition: fill 0.3s ease, filter 0.3s ease;
}

.diagram-house-group:hover .house-roof {
    fill: #f59e0b !important;
    transition: fill 0.3s ease;
}

/* ============================================================
   LIVE TELEMETRY SATELLITE TICKER STYLE
   ============================================================ */

.live-telemetry-ticker {
    width: 100%;
    background: rgba(10, 15, 30, 0.75);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding: 0.7rem 0;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
}

.ticker-track {
    display: inline-block;
    white-space: nowrap;
    animation: ticker-slide 35s linear infinite;
}

.ticker-indicator {
    color: var(--solar-gold);
    font-weight: 800;
    font-size: 0.78rem;
    margin-right: 1.25rem;
    letter-spacing: 0.08em;
    font-family: 'Outfit', sans-serif;
}

.ticker-item {
    color: var(--text-secondary);
    font-size: 0.78rem;
    margin-right: 2.25rem;
    letter-spacing: 0.03em;
    font-family: 'Outfit', sans-serif;
    display: inline-block;
}

@keyframes ticker-slide {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 768px) {
    .hero-media-wrapper {
        margin-top: 1.5rem !important;
    }
    .btn-manual-add {
        width: calc(100% - 1rem) !important;
        margin: 1rem auto 0 auto !important;
        padding: 0.5rem 0.8rem !important;
        font-size: 0.8rem !important;
        border-radius: 8px !important;
        display: none;
        align-items: center !important;
        justify-content: center !important;
    }
    .manual-add-drawer.active {
        display: none;
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 90% !important;
        max-width: 360px !important;
        background: rgba(15, 23, 42, 0.98) !important;
        backdrop-filter: blur(16px) !important;
        border: 1px solid rgba(251, 191, 36, 0.3) !important;
        border-radius: 16px !important;
        padding: 1.25rem !important;
        z-index: 10000 !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 9999px rgba(11, 15, 25, 0.8) !important;
        animation: zoomIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
        gap: 0.85rem !important;
    }
    .preset-power-pills {
        flex-wrap: wrap !important;
        gap: 0.35rem !important;
    }
    .power-pill {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.65rem !important;
        border-radius: 12px !important;
    }
    .drawer-actions {
        gap: 0.5rem !important;
    }
    .drawer-actions button {
        padding: 0.5rem !important;
        font-size: 0.8rem !important;
    }
}



/* ============================================================
   SATELLITE ROOF SCANNER & 3D SHADING STYLES
   ============================================================ */

.satellite-roof-widget {
    transition: var(--transition-smooth);
}

#satellite-roof-map {
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 12px !important;
}

.leaflet-popup-content-wrapper {
    background: #0f172a !important;
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif !important;
    border-radius: 8px !important;
    border: 1px solid rgba(251, 191, 36, 0.3) !important;
}

.leaflet-container {
    background: #0f172a !important;
    font-family: 'Outfit', sans-serif !important;
}

.shading-simulation-widget {
    transition: var(--transition-smooth);
}

#solar-3d-canvas {
    border-radius: 10px;
}

@media (max-width: 768px) {
    .satellite-roof-widget {
        padding: 1rem !important;
    }
    #satellite-roof-map {
        height: 240px !important;
    }
    .satellite-map-actions {
        width: 100% !important;
        justify-content: space-between !important;
    }
    .satellite-map-actions button {
        flex: 1 !important;
        padding: 0.4rem 0.3rem !important;
        font-size: 0.7rem !important;
    }
    .roof-metrics-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    .shading-simulation-widget select {
        font-size: 0.75rem !important;
    }
}


/* ============================================================
   WORKFLOW & SCROLL LOCK ENHANCEMENTS
   ============================================================ */
body.modal-open {
    overflow: hidden !important;
    touch-action: none !important;
}

.modal-backdrop-blur {
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

.results-top-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
    .results-top-action-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 1rem !important;
        gap: 0.75rem !important;
    }
}


/* ============================================================
   PACK DESIGN VISUEL 2.0 & MOTION DESIGN ULTRA-MODERNE
   ============================================================ */

/* 1. Glassmorphism 2.0 & Glowing Shimmer Effect */
.glass-panel {
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.08), transparent);
    transition: 0.6s ease;
    pointer-events: none;
}

.glass-panel:hover::before {
    left: 100%;
}

.glass-panel:hover {
    border-color: rgba(251, 191, 36, 0.35) !important;
    box-shadow: 0 12px 40px rgba(251, 191, 36, 0.15), 0 0 15px rgba(251, 191, 36, 0.1) !important;
    transform: translateY(-2px) !important;
}

/* 2. Fluid Neon Energy Flow Gauge Bar */
.live-gauge-container {
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 6px !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5) !important;
}

#live-gauge-bar {
    background-size: 30px 30px !important;
    background-image: linear-gradient(
        135deg, 
        rgba(255, 255, 255, 0.25) 25%, 
        transparent 25%, 
        transparent 50%, 
        rgba(255, 255, 255, 0.25) 50%, 
        rgba(255, 255, 255, 0.25) 75%, 
        transparent 75%, 
        transparent
    ) !important;
    animation: moveGaugeStripe 1.5s linear infinite !important;
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.6) !important;
}

@keyframes moveGaugeStripe {
    0% { background-position: 0 0; }
    100% { background-position: 30px 0; }
}

/* 3. Spring Micro-Interactions on Selectable Cards & Buttons */
.card-selectable, .catalog-item-card, .btn-premium, .tab-btn {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.card-selectable:active, .catalog-item-card:active, .btn-premium:active {
    transform: scale(0.96) !important;
}

.card-selectable.selected, .catalog-item-card.selected {
    border-color: var(--solar-gold) !important;
    background: rgba(251, 191, 36, 0.08) !important;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.25), inset 0 0 10px rgba(251, 191, 36, 0.1) !important;
    animation: springPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes springPop {
    0% { transform: scale(0.95); }
    50% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

/* 4. Ambient Breathing Solar Aura Background */
body {
    background-color: #0b0f19 !important;
    background-image: 
        radial-gradient(circle at 15% 25%, rgba(251, 191, 36, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(59, 130, 246, 0.05) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.03) 0%, transparent 60%) !important;
    animation: solarBreath 12s ease-in-out infinite alternate !important;
}

@keyframes solarBreath {
    0% {
        background-position: 0% 0%, 100% 100%, 50% 50%;
    }
    100% {
        background-position: 5% 5%, 95% 95%, 48% 52%;
    }
}

/* 5. Liquid Gold Stepper Animation */
.step-indicator.active .step-number {
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    color: #000000 !important;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.6) !important;
    animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
    0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(251, 191, 36, 0); }
    100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}


/* ============================================================
   HERO LANDING PAGE ULTRA-MODERN STYLING
   ============================================================ */

.text-gradient-gold {
    background: linear-gradient(135deg, #ffffff 0%, #fbbf24 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

@keyframes dashFlow {
    to {
        stroke-dashoffset: -8;
    }
}

.btn-hero-primary {
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.35) !important;
}

.btn-hero-primary:hover {
    box-shadow: 0 0 35px rgba(251, 191, 36, 0.55) !important;
    transform: translateY(-3px) scale(1.02) !important;
}


/* ============================================================
   HERO ANIMATED SOLAR ASSET KEYFRAMES
   ============================================================ */

@keyframes rayStream {
    0% { stroke-dashoffset: 8; opacity: 0.4; }
    50% { opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 0.4; }
}

@keyframes energyFlow {
    0% { stroke-dashoffset: 10; }
    100% { stroke-dashoffset: 0; }
}

@keyframes batteryCharge {
    0% { width: 10px; opacity: 0.6; }
    100% { width: 32px; opacity: 1; }
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}


/* ============================================================
   ULTRA-MODERN HERO IMAGE IMPLEMENTATION & HOVER ANIMATION
   ============================================================ */

.hero-media-wrapper img {
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.5s ease !important;
    image-rendering: -webkit-optimize-contrast;
}

.hero-media-wrapper:hover img {
    transform: scale(1.04) !important;
    filter: brightness(1) contrast(1.08) !important;
}

.hero-media-wrapper [style*="position: absolute"] {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease !important;
}

.hero-media-wrapper:hover [style*="position: absolute"] {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 25px rgba(251, 191, 36, 0.25) !important;
}


/* ============================================================
   MOBILE ZERO HORIZONTAL WOBBLE STABILITY
   ============================================================ */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

@media (max-width: 768px) {
    .app-container {
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
    }
    .hero-title {
        font-size: 1.8rem !important;
        line-height: 1.25 !important;
    }
    .hero-subtitle {
        font-size: 0.9rem !important;
    }
    .panel-title {
        font-size: 1.35rem !important;
    }
}


/* ============================================================
   SELECT & OPTION CONTRAST FIX (WHITE-ON-WHITE DROPDOWN FIX)
   ============================================================ */
select {
    background-color: #0f172a !important;
    color: #ffffff !important;
    border: 1px solid rgba(251, 191, 36, 0.3) !important;
}

select option {
    background-color: #0f172a !important;
    color: #ffffff !important;
    padding: 8px 12px !important;
}

select option:checked, select option:hover, select option:focus {
    background-color: #1e293b !important;
    color: #fbbf24 !important;
}


/* ============================================================
   CUSTOM DROPDOWN MENU OVERLAY & Z-INDEX CLIPPING FIX
   ============================================================ */
.custom-select-container {
    position: relative !important;
    z-index: 100 !important;
}

.custom-select-container:focus-within, .custom-select-container:hover {
    z-index: 1000 !important;
}

.custom-dropdown-menu {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    left: 0 !important;
    width: 100% !important;
    max-height: 280px !important;
    overflow-y: auto !important;
    z-index: 99999 !important;
    background: #0f172a !important;
    border: 1.5px solid #fbbf24 !important;
    border-radius: 14px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95) !important;
    padding: 0.5rem !important;
}

.custom-dropdown-menu input.dropdown-search-input {
    width: 100% !important;
    padding: 0.65rem 0.85rem !important;
    margin-bottom: 0.5rem !important;
    background: #1e293b !important;
    color: #ffffff !important;
    border: 1px solid rgba(251, 191, 36, 0.4) !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
}

.dropdown-items-container {
    max-height: 200px !important;
    overflow-y: auto !important;
}

.dropdown-item {
    padding: 0.65rem 0.85rem !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
    font-size: 0.9rem !important;
}

.dropdown-item:hover, .dropdown-item:focus {
    background: #1e293b !important;
    color: #fbbf24 !important;
    font-weight: 700 !important;
}

/* Ensure step panels don't clip dropdown overlays */
.step-panel, .glass-panel, .form-group, .location-selector-group {
    overflow: visible !important;
}


/* ============================================================
   FIXED CENTERED MODAL PICKERS & MUTUAL EXCLUSIVITY FIX
   ============================================================ */
.custom-dropdown-menu {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90% !important;
    max-width: 440px !important;
    max-height: 520px !important;
    z-index: 999999 !important;
    background: #0f172a !important;
    border: 2px solid var(--solar-gold) !important;
    border-radius: 20px !important;
    box-shadow: 0 0 0 9999px rgba(11, 15, 25, 0.85), 0 25px 60px rgba(0, 0, 0, 0.95) !important;
    padding: 1.25rem !important;
    display: none;
    flex-direction: column !important;
}

.custom-dropdown-menu input.dropdown-search-input {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    margin-bottom: 0.75rem !important;
    background: #1e293b !important;
    color: #ffffff !important;
    border: 1px solid rgba(251, 191, 36, 0.4) !important;
    border-radius: 10px !important;
    font-size: 0.95rem !important;
}

.dropdown-items-container {
    max-height: 320px !important;
    overflow-y: auto !important;
}

.dropdown-item {
    padding: 0.75rem 1rem !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-size: 0.95rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
}

.dropdown-item:hover, .dropdown-item:focus {
    background: rgba(251, 191, 36, 0.15) !important;
    color: #fbbf24 !important;
    font-weight: 700 !important;
    transform: translateX(4px) !important;
}


/* ============================================================
   BODY MODAL OPEN SCROLL LOCK
   ============================================================ */
body.modal-open {
    overflow: hidden !important;
    touch-action: none !important;
}

.modal-backdrop-blur {
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}


/* ============================================================
   ACTIVE NAV LINK HIGHLIGHT STYLES
   ============================================================ */
.nav-link.active {
    color: var(--solar-gold) !important;
    font-weight: 800 !important;
}

.nav-link.active::after {
    transform: scaleX(1) !important;
    transform-origin: left !important;
    background: var(--solar-gold) !important;
}

@media (max-width: 991px) {
    .nav-menu.active .nav-link.active {
        color: var(--solar-gold) !important;
        background: rgba(251, 191, 36, 0.12) !important;
        border-left: 4px solid var(--solar-gold) !important;
        padding-left: 1.2rem !important;
        border-radius: 8px !important;
    }
}


/* ============================================================
   CUSTOM DROPDOWN DISPLAY OVERRIDE FIX
   ============================================================ */
.custom-dropdown-menu {
    display: none !important;
}

.custom-dropdown-menu.active,
.custom-dropdown-menu.show,
.custom-dropdown-menu[style*="display: block"],
.custom-dropdown-menu[style*="display: flex"] {
    display: flex !important;
    flex-direction: column !important;
}


/* ============================================================
   PREMIUM NATIVE SELECT STYLING FIX
   ============================================================ */
select.select-premium {
    width: 100% !important;
    padding: 0.85rem 1.25rem !important;
    background: #0f172a !important;
    color: #ffffff !important;
    border: 1.5px solid var(--solar-gold) !important;
    border-radius: 14px !important;
    font-size: 1rem !important;
    font-family: inherit !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
    outline: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

select.select-premium:focus, select.select-premium:hover {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3) !important;
}

select.select-premium option {
    background: #0f172a !important;
    color: #ffffff !important;
    padding: 0.75rem !important;
    font-size: 1rem !important;
}


/* ============================================================
   ZERO-FLICKER & HOVER STABILITY FIX
   ============================================================ */
.dropdown-item, .dropdown-item:hover, .dropdown-item:focus,
select.select-premium, select.select-premium:hover, select.select-premium:focus {
    transform: none !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
}

.dropdown-item:hover {
    background: rgba(251, 191, 36, 0.2) !important;
    color: #fbbf24 !important;
    font-weight: 700 !important;
}


/* Touch Target & Mobile Header Fixes */
#lang-select {
    min-height: 40px !important;
    padding: 0.35rem 0.75rem !important;
    margin-right: 0.5rem !important;
    font-size: 0.85rem !important;
}

.hero-subtitle {
    line-height: 1.6 !important;
    font-size: 0.95rem !important;
}

#roof-3d-viewport {
    touch-action: pan-y !important;
}

.badge-surge {
    background: rgba(251, 191, 36, 0.15) !important;
    border: 1px solid rgba(251, 191, 36, 0.4) !important;
    color: var(--solar-gold) !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    padding: 0.15rem 0.4rem !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
}


/* Master Stepper Progress Bar */
.wizard-progress-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 16px;
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.step-indicator-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.step-indicator-item.active {
    color: var(--solar-gold);
}

.step-indicator-item.completed {
    color: #34d399;
}

.step-badge-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
}

.step-indicator-item.active .step-badge-num {
    background: var(--solar-gold);
    color: #0f172a;
    font-weight: 800;
}

.step-indicator-item.completed .step-badge-num {
    background: #34d399;
    color: #0f172a;
    font-weight: 800;
}

@media (max-width: 768px) {
    .wizard-progress-bar {
        padding: 0.6rem 0.85rem;
    }
    .step-indicator-text {
        display: none;
    }
}

/* WhatsApp Sharing Button & PWA Banner Styles */
.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    padding: 0.75rem 1.5rem !important;
    border: none !important;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.btn-whatsapp:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5) !important;
}

.pwa-offline-badge {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* ============================================================
   MOBILE RESPONSIVE & CALCULATION SECTION OVERFLOW FIXES
   ============================================================ */

/* MathJax LaTeX Equations Responsive Wrapping */
.MathJax, .MathJax_Display, .mjx-chtml, .mjx-math, .math-formula-box {
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box !important;
}

/* Calculation & Science Section Responsive Layout */
.science-guide-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: start;
}

.optimization-guide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.pipeline-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

@media (max-width: 992px) {
    .science-guide-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .optimization-guide-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .science-main-panel {
        padding: 1.5rem 1.25rem !important;
        border-radius: 16px !important;
    }

    .science-pipeline-container {
        padding: 1.25rem !important;
    }

    .pipeline-flow {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

@media (max-width: 576px) {
    .science-main-panel {
        padding: 1.15rem 0.85rem !important;
        border-radius: 14px !important;
    }
    
    .results-optimization-guide {
        padding: 1.25rem 0.85rem !important;
    }

    /* MathJax font sizing for ultra-small mobile screens */
    .mjx-chtml {
        font-size: 85% !important;
    }

    /* Fix potential overflow in results dashboard cards */
    .results-header-summary {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    /* Science & Methodology Profile Pills Mobile Responsive */
    .comp-selector {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
    }
    .comp-pill {
        width: 100% !important;
        padding: 0.65rem !important;
        border-radius: 12px !important;
        background: rgba(255, 255, 255, 0.04) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        text-align: center !important;
    }
    .comp-pill.active {
        background: var(--solar-gold) !important;
        color: #060913 !important;
        border-color: var(--solar-gold) !important;
        font-weight: 800 !important;
    }
}

/* Universal MathJax & Formula Responsive Overflow Containment */
.MathJax, .mjx-chtml, .MathJax_Display, .MathJax_CHTML, .math-formula-wrap {
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    display: block !important;
}


/* Master Mobile Science & Formula Overflow Fix */
.math-formula-wrap {
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 0.5rem 0 !important;
    box-sizing: border-box !important;
    word-break: break-word !important;
}

.math-formula-wrap .MathJax_Display, 
.math-formula-wrap .MathJax,
.math-formula-wrap .mjx-chtml {
    max-width: 100% !important;
    overflow-x: auto !important;
    font-size: 85% !important;
}

@media (max-width: 768px) {
    .science-section {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        overflow-x: hidden !important;
    }
    .science-main-panel {
        padding: 1.2rem 0.85rem !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    .science-guide-grid {
        grid-template-columns: 1fr !important;
        width: 100% !important;
    }
    .science-guide-grid h4 {
        font-size: 1rem !important;
        word-break: break-word !important;
    }
    .science-guide-grid p {
        font-size: 0.85rem !important;
        line-height: 1.6 !important;
        word-break: break-word !important;
    }
}


/* Step 3 Mobile Appliance Selection Optimization */
@media (max-width: 768px) {
    .category-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 0.4rem !important;
        padding: 0.5rem 0 !important;
        margin-bottom: 1rem !important;
        width: 100% !important;
        scrollbar-width: none !important;
    }
    .category-tab {
        flex: 0 0 auto !important;
        padding: 0.5rem 0.85rem !important;
        font-size: 0.82rem !important;
        font-weight: 700 !important;
        border-radius: 20px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        color: #ffffff !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        white-space: nowrap !important;
    }
    .category-tab.active {
        background: var(--solar-gold) !important;
        color: #0f172a !important;
        border-color: var(--solar-gold) !important;
    }
    .selected-appliance-row {
        padding: 0.75rem !important;
        margin-bottom: 0.6rem !important;
    }
    .selected-appliance-row input {
        font-size: 0.85rem !important;
        padding: 0.3rem 0.5rem !important;
    }
}


/* Strict Methodology Mobile Width & MathJax Scale */
#science-section, .science-section, .science-main-panel {
    max-width: 100vw !important;
    width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

.math-formula-wrap {
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box !important;
    padding: 0.6rem 0.5rem !important;
    margin: 0.6rem 0 !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border-radius: 10px !important;
    border: 1px solid rgba(251, 191, 36, 0.2) !important;
}

mjx-container, .MathJax, .MathJax_Display, .mjx-chtml {
    max-width: 100% !important;
    font-size: 78% !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    .science-main-panel {
        padding: 1rem 0.75rem !important;
    }
    .science-guide-grid h4 {
        font-size: 0.95rem !important;
        line-height: 1.35 !important;
    }
    .science-guide-grid p {
        font-size: 0.82rem !important;
        line-height: 1.55 !important;
    }
}


/* Methodology Mobile Card Items Styling */
.methodology-card-item {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.methodology-card-item:hover {
    border-color: rgba(251, 191, 36, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 768px) {
    .methodology-card-item {
        padding: 1rem 0.85rem !important;
        margin-bottom: 1rem !important;
        border-radius: 12px !important;
    }
}

/* HOLOGRAPHIC 3D HERO INTERACTIVE ANIMATION & GLOW EFFECTS */
.vector-sizer-card {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    transform-style: preserve-3d;
}

.vector-sizer-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 30px 70px rgba(251, 191, 36, 0.25), 0 0 40px rgba(52, 211, 153, 0.15);
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.25); opacity: 1; box-shadow: 0 0 16px #34d399; }
    100% { transform: scale(1); opacity: 0.8; }
}
/* KEMET AI ULTRA-MODERN QUANTUM TECH PRELOADER STYLES */
.kemet-preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #090d16;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease, transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.kemet-preloader-overlay.hidden-loader {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.05);
    pointer-events: none;
}

.preloader-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    max-width: 480px;
    width: 90%;
}

.quantum-sun-container {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.preloader-sun-svg {
    width: 90px;
    height: 90px;
    filter: drop-shadow(0 0 25px rgba(251, 191, 36, 0.6));
    animation: sunPulseCore 2s ease-in-out infinite alternate;
}

.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(251, 191, 36, 0.35);
}

.ring-1 {
    width: 110px;
    height: 110px;
    border-color: rgba(251, 191, 36, 0.5);
    animation: rotateRing 6s linear infinite;
}

.ring-2 {
    width: 130px;
    height: 130px;
    border-color: rgba(52, 211, 153, 0.4);
    animation: rotateRingRev 9s linear infinite;
}

.ring-3 {
    width: 150px;
    height: 150px;
    border-color: rgba(251, 191, 36, 0.2);
    animation: rotateRing 14s linear infinite;
}

@keyframes rotateRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rotateRingRev {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@keyframes sunPulseCore {
    0% { transform: scale(0.95); filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.5)); }
    100% { transform: scale(1.08); filter: drop-shadow(0 0 35px rgba(251, 191, 36, 0.85)); }
}

.preloader-brand-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.4rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.12em;
    margin: 0 0 0.4rem 0;
}

.preloader-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted, #94a3b8);
    font-weight: 600;
    margin-bottom: 1.5rem;
    min-height: 24px;
}

.preloader-progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.preloader-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #d97706, #fbbf24, #34d399);
    box-shadow: 0 0 12px #fbbf24;
    transition: width 0.15s ease-out;
    border-radius: 10px;
}

.preloader-footer-metrics {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: var(--solar-gold, #fbbf24);
    font-weight: 700;
}

.pulse-dot-green {
    width: 8px;
    height: 8px;
    background: #34d399;
    border-radius: 50%;
    box-shadow: 0 0 10px #34d399;
    animation: pulseGlow 1.5s infinite;
}

.preloader-security-tag {
    color: #64748b;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}
/* USER CUSTOM HERO IMAGE 3D TILT & NEON CIRCUIT ANIMATIONS */
.user-hero-3d-wrapper {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.user-hero-3d-wrapper:hover {
    transform: translateY(-4px) scale(1.015);
    box-shadow: 0 30px 70px rgba(0,0,0,0.9), 0 0 45px rgba(251, 191, 36, 0.45);
}

@keyframes auraPulse {
    0% { opacity: 0.4; transform: scale(0.98); }
    50% { opacity: 0.85; transform: scale(1.02); }
    100% { opacity: 0.4; transform: scale(0.98); }
}
/* ULTRA-DEFINED RESPONSIVE MOBILE HERO IMAGE STYLING */
@media (max-width: 768px) {
    .user-hero-3d-wrapper {
        min-height: 240px !important;
        height: auto !important;
        aspect-ratio: 4 / 3 !important;
        border-radius: 14px !important;
        box-shadow: 0 12px 30px rgba(0,0,0,0.7), 0 0 20px rgba(251, 191, 36, 0.2) !important;
    }

    .user-hero-3d-wrapper img {
        min-height: 240px !important;
        height: 100% !important;
        width: 100% !important;
        object-fit: contain !important;
        background: #070a13 !important;
        filter: brightness(1.04) contrast(1.1) !important;
        border-radius: 14px !important;
    }
}

@media (max-width: 480px) {
    .user-hero-3d-wrapper {
        min-height: 210px !important;
        aspect-ratio: 4 / 3 !important;
    }
}

/* ============================================================
   ENHANCED PRINT STYLES — APPENDED (DO NOT REPLACE ABOVE)
   ============================================================ */
@media print {
    /* Force hide quantum loader and all background overlays */
    #kemet-quantum-loader,
    .kemet-preloader-overlay,
    .quantum-sun-container,
    .orbit-ring,
    .hamburger-btn,
    .lang-selector,
    .ai-floating-widget,
    #sizing-modal-overlay,
    .simulation-loader-overlay,
    .results-actions-footer .btn-select-offer {
        display: none !important;
        visibility: hidden !important;
    }

    /* Equipment breakdown table print-friendly */
    #results-appliances-list {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
        gap: 8px !important;
    }

    #results-appliances-list > div {
        background: #f8fafc !important;
        border: 1px solid #cbd5e1 !important;
        color: #0f172a !important;
        page-break-inside: avoid !important;
    }

    /* Optimization guide print-friendly */
    .results-optimization-guide {
        background: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
        color: #0f172a !important;
        page-break-inside: avoid !important;
    }

    .results-optimization-guide h3 {
        color: #b45309 !important;
    }

    .results-optimization-guide strong {
        color: #1e293b !important;
    }
}


/* ============================================================
   QUICK PRESETS & ENHANCED WORKFLOW STYLES (v2026.08)
   ============================================================ */

.quick-presets-section {
    margin-bottom: 24px;
    padding: 18px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.quick-presets-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.quick-preset-tag {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fbbf24;
    display: flex;
    align-items: center;
    gap: 6px;
}

.quick-preset-hint {
    font-size: 0.8rem;
    color: #94a3b8;
}

.quick-presets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.quick-preset-btn {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    text-align: left;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-preset-btn:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(251, 191, 36, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.quick-preset-btn.active {
    background: rgba(251, 191, 36, 0.1);
    border-color: #fbbf24;
    box-shadow: 0 0 16px rgba(251, 191, 36, 0.2);
}

.preset-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.preset-info {
    flex: 1;
}

.preset-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #ffffff;
    margin-bottom: 2px;
}

.preset-desc {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 6px;
    line-height: 1.3;
}

.preset-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

.badge-green { background: rgba(0, 230, 118, 0.15); color: #00e676; border: 1px solid rgba(0, 230, 118, 0.3); }
.badge-gold { background: rgba(251, 191, 36, 0.15); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.3); }
.badge-purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.badge-orange { background: rgba(249, 115, 22, 0.15); color: #fb923c; border: 1px solid rgba(249, 115, 22, 0.3); }

/* ============================================================
   STICKY LIVE SIZING FOOTER BAR
   ============================================================ */

.sticky-live-sizing-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: rgba(10, 14, 26, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(251, 191, 36, 0.3);
    padding: 10px 20px;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.live-sizing-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.live-sizing-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.live-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-label {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
}

.live-val {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.live-val.val-gold {
    color: #fbbf24;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}

.live-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.15);
}

.live-next-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 8px;
    background: linear-gradient(135deg, #00e676 0%, #00b0ff 100%);
    color: #0a0e1a;
    font-weight: 700;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.live-next-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 230, 118, 0.35);
}

@media (max-width: 600px) {
    .live-sizing-container {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .live-sizing-info {
        justify-content: space-between;
        gap: 8px;
    }
    .live-divider {
        display: none;
    }
    .live-next-btn {
        justify-content: center;
        width: 100%;
        padding: 10px;
    }
}


/* ============================================================
   KEMET AI - EXECUTIVE FRAMED WIZARD CONTAINER & MAPS SEARCH
   ============================================================ */

.wizard-executive-frame {
    max-width: 980px;
    margin: 30px auto 60px auto;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 24px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 30px rgba(251, 191, 36, 0.08);
    padding: 36px 40px;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .wizard-executive-frame {
        margin: 15px 10px 40px 10px;
        padding: 22px 18px;
        border-radius: 18px;
    }
}

/* Address Search Autocomplete Input */
.address-search-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 18px;
}

.address-search-input {
    width: 100%;
    padding: 14px 18px 14px 46px;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.8);
    border: 1.5px solid rgba(251, 191, 36, 0.35);
    color: #ffffff;
    font-size: 0.98rem;
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.address-search-input:focus {
    border-color: #fbbf24;
    box-shadow: 0 0 16px rgba(251, 191, 36, 0.25);
    background: rgba(30, 41, 59, 1);
}

.address-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #fbbf24;
    font-size: 1.1rem;
}

.address-autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 10000;
    background: #1e293b;
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    max-height: 260px;
    overflow-y: auto;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    display: none;
}

.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 0.88rem;
    color: #e2e8f0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.15s ease;
}

.autocomplete-item:hover {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

/* Modifiable Power Badge */
.power-edit-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fbbf24;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.power-edit-badge:hover {
    background: rgba(251, 191, 36, 0.25);
}

.power-inline-input {
    width: 60px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid #fbbf24;
    color: #fbbf24;
    font-weight: 700;
    border-radius: 4px;
    padding: 2px 4px;
    font-size: 0.8rem;
    text-align: center;
    outline: none;
}

/* Express Roof Buttons */
.roof-express-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-top: 14px;
    margin-bottom: 20px;
}

.roof-express-btn {
    padding: 16px;
    border-radius: 14px;
    background: rgba(30, 41, 59, 0.7);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.roof-express-btn:hover, .roof-express-btn.active {
    border-color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
    box-shadow: 0 0 16px rgba(251, 191, 36, 0.2);
    transform: translateY(-2px);
}

.sticky-live-sizing-bar {
    display: none !important;
}


/* ============================================================
   CLIENT GUIDANCE CO-PILOT & 3-TIER COMPARISON CARDS
   ============================================================ */

.step-guidance-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(251, 191, 36, 0.08);
    border-left: 4px solid #fbbf24;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 22px;
    font-size: 0.88rem;
    color: #e2e8f0;
}

.step-guidance-banner i {
    color: #fbbf24;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.results-3tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 28px 0;
}

.tier-card {
    background: rgba(30, 41, 59, 0.85);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: all 0.3s ease;
}

.tier-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.5);
}

.tier-card.recommended {
    border-color: #fbbf24;
    background: rgba(30, 41, 59, 0.98);
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.2);
}

.tier-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #0f172a;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tier-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 14px;
    margin-bottom: 14px;
}

.tier-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
}

.tier-subtitle {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-top: 4px;
}

.tier-price {
    font-size: 1.6rem;
    font-weight: 900;
    color: #fbbf24;
    margin: 12px 0 6px 0;
}

.tier-install-est {
    font-size: 0.82rem;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.tier-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.86rem;
    color: #cbd5e1;
}

.tier-features-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tier-features-list li i {
    color: #00e676;
    font-size: 0.9rem;
}


/* ============================================================
   ULTRA-RESPONSIVE MOBILE OPTIMIZATIONS (320px to 768px)
   ============================================================ */
@media (max-width: 768px) {
    .wizard-executive-frame {
        padding: 1.25rem 1rem !important;
        margin: 1rem auto 2rem auto !important;
        border-radius: 16px !important;
    }

    .panel-title {
        font-size: 1.25rem !important;
        line-height: 1.3 !important;
    }

    .location-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .roof-express-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .building-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .appliance-catalog-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    .category-tabs {
        display: flex !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        padding-bottom: 6px !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 6px !important;
    }

    .category-tab {
        flex: 0 0 auto !important;
        font-size: 0.8rem !important;
        padding: 6px 12px !important;
    }

    .options-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .realtime-energy-widget {
        padding: 1rem !important;
        margin-bottom: 1.25rem !important;
    }

    .goals-subsection {
        padding: 14px !important;
    }

    .btn-preset-auto {
        min-width: 45% !important;
        flex: 1 1 45% !important;
    }

    .results-actions-footer {
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
    }

    .results-actions-footer button,
    .results-actions-footer a {
        width: 100% !important;
        justify-content: center !important;
    }
}

@media (max-width: 480px) {
    .building-grid {
        grid-template-columns: 1fr !important;
    }

    .appliance-catalog-grid {
        grid-template-columns: 1fr !important;
    }

    .stepper-steps {
        gap: 4px !important;
    }

    .step-number {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.8rem !important;
    }

    .step-label {
        display: none !important;
    }
}
