:root {
    --bg-dark: #f3f8f5;
    --bg-dark-secondary: #e6f3ed;
    --bg-card: #ffffff;
    --border-color: rgba(5, 46, 36, 0.12);
    --border-hover: rgba(225, 90, 23, 0.4);
    --primary: #e15a17;
    --primary-rgb: 225, 90, 23;
    --secondary: #064e3b;
    --success: #059669;
    --text-main: #0b2e24;
    --text-secondary: #1a4d3f;
    --text-muted: #4e7a6e;
    --font-outfit: 'Outfit', sans-serif;
    --font-inter: 'Inter', sans-serif;
    --shadow: 0 10px 30px rgba(5, 46, 36, 0.06);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-variant-numeric: no-slashed-zero !important;
    font-feature-settings: "zero" 0, "cv19" 0 !important;
}

body {
    font-family: var(--font-inter);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-outfit);
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* Common Background Canvas and Grid */
.fixed-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.35;
    z-index: 1;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 850px;
    background: linear-gradient(to bottom, var(--bg-dark-secondary) 0%, var(--bg-dark) 100%);
    z-index: -2;
    overflow: hidden;
}

.hero-grid::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.02;
    background-image: linear-gradient(to right, #808080 1px, transparent 1px), linear-gradient(to bottom, #808080 1px, transparent 1px);
    background-size: 40px 40px;
}

html.light .hero-grid::after {
    opacity: 0.05;
}

/* Telemetry Status Bar */
.telemetry-bar {
    background-color: #051f14;
    border-bottom: 1px solid rgba(20, 108, 67, 0.2);
    padding: 6px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
    color: #146c43;
    position: relative;
    z-index: 50;
}

html.light .telemetry-bar {
    background-color: #f0f7f4;
    border-bottom-color: rgba(5, 46, 36, 0.08);
    color: #059669;
}

.telemetry-left, .telemetry-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-main);
    font-weight: 700;
}

.status-pulse {
    width: 6px;
    height: 6px;
    background-color: #ffb703;
    border-radius: 50%;
    animation: pulse 1.5s infinite alternate;
}

html.light .status-pulse {
    background-color: #e15a17;
}

/* Header & Nav */
header.main-header {
    position: sticky;
    top: 0;
    background: rgba(11, 46, 36, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    transition: var(--transition);
}

html.light header.main-header {
    background: rgba(243, 248, 245, 0.92);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-holder {
    padding: 8px;
    background: var(--primary);
    color: #05140f;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.logo-holder i {
    width: 20px;
    height: 20px;
}

.logo-text {
    text-align: left;
}

.logo-text h2 {
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
}

.logo-text span {
    font-family: monospace;
    font-size: 9px;
    letter-spacing: 0.15em;
    color: var(--primary);
}

nav.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-item {
    font-family: monospace;
    font-size: 11px;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding-bottom: 2px;
}

.nav-item span {
    color: var(--primary);
    opacity: 0.6;
    margin-right: 4px;
}

.nav-item.active, .nav-item:hover {
    color: var(--primary);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #05140f;
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.15);
}

.btn-primary:hover {
    background-color: #f5a524;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(var(--primary-rgb), 0.25);
}

html.light .btn-primary {
    color: #ffffff;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    padding: 0;
}

.hamburger-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    display: none;
    padding: 6px;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 113px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #051c15;
    z-index: 99;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-t: 1px solid rgba(255, 255, 255, 0.05);
    font-family: monospace;
}

html.light .mobile-nav-drawer {
    background-color: #e6f3ed;
    border-t-color: rgba(5, 46, 36, 0.08);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.mobile-nav-links h3 {
    font-size: 10px;
    letter-spacing: 0.15em;
    color: var(--success);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    text-transform: uppercase;
}

.mobile-nav-item {
    font-size: 13px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-secondary);
}

.mobile-nav-item.active {
    color: var(--primary);
    font-weight: 700;
}

/* Main Layout & Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 10;
    position: relative;
}

.section-padding {
    padding: 80px 0;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.card:hover {
    border-color: var(--border-hover);
}

/* Custom Grid */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Inputs & Form Elements */
.input-field {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-main);
    font-family: var(--font-inter);
    font-size: 13px;
    outline: none;
    transition: var(--transition);
}

html.light .input-field {
    background-color: rgba(5, 46, 36, 0.04);
}

.input-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.1);
}

.select-field {
    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='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px;
    padding-right: 40px;
}

html.light .select-field {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(11,46,36,0.6)' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
}

/* Range Slider */
input[type="range"].slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: var(--bg-dark-secondary);
    border-radius: 3px;
    outline: none;
    border: 1px solid var(--border-color);
}

input[type="range"].slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.1s ease;
}

input[type="range"].slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

/* Phase Selector Group */
.phase-selector-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.phase-btn {
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.05);
    padding: 14px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    font-family: var(--font-inter);
    transition: var(--transition);
    color: var(--text-secondary);
}

.phase-btn.active {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
}

/* Sizing Stats Grid */
.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.result-card {
    background: rgba(var(--primary-rgb), 0.01);
    border: 1px solid rgba(var(--primary-rgb), 0.08);
    border-radius: 12px;
    padding: 16px 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.result-card.highlight {
    border-color: rgba(16, 185, 129, 0.25);
    background: rgba(16, 185, 129, 0.02);
}

.result-card .label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-family: monospace;
    letter-spacing: 0.05em;
}

.result-card .val {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    font-family: var(--font-outfit);
}

.result-card.highlight .val {
    color: var(--success);
}

/* Spec summary boxes */
.specs-box {
    background: rgba(0, 0, 0, 0.1);
    border: 1px dashed var(--border-color);
    border-radius: 10px;
    padding: 16px;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

html.light .specs-box {
    background: rgba(5, 46, 36, 0.02);
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 20, 15, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 520px;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
    position: relative;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
}

html.light .modal-card {
    background: #ffffff;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.modal-header h3 {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.modal-close-btn:hover {
    color: var(--text-main);
}

/* Step Wizard Stepper headers */
.wizard-header-steps {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.wizard-step-bullet {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
}

.wizard-step-bullet span.num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-family: monospace;
}

.wizard-step-bullet.active {
    color: var(--primary);
}

.wizard-step-bullet.active span.num {
    background-color: var(--primary);
    color: #05140f;
    border-color: var(--primary);
}

.wizard-step-bullet.completed {
    color: var(--success);
}

.wizard-step-bullet.completed span.num {
    background-color: var(--success);
    color: #ffffff;
    border-color: var(--success);
}

/* Side Drawers (Cart and Compare) */
.side-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    height: 100vh;
    background-color: var(--bg-dark-secondary);
    border-left: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 30px;
    text-align: left;
}

html.light .side-drawer {
    background-color: #ffffff;
}

.side-drawer.active {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.drawer-header h3 {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawer-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 4px;
}

.drawer-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

/* Dynamic List Items inside Cart */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

html.light .cart-item {
    border-bottom-color: rgba(5, 46, 36, 0.06);
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cart-item-name {
    font-size: 13px;
    font-weight: 700;
}

.cart-item-meta {
    font-size: 10px;
    color: var(--text-muted);
    font-family: monospace;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

/* Compare Row Layouts */
.compare-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 10px;
}

.compare-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    position: relative;
}

.compare-card-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

/* Footer layout */
footer.main-footer {
    background-color: #020504;
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

html.light footer.main-footer {
    background-color: #e6f3ed;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: left;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--text-main);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    font-family: monospace;
}

.footer-col p {
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.15); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Media Queries */
@media (max-width: 991px) {
    .grid-4, .grid-3, .grid-2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    header.main-header nav.main-nav {
        display: none;
    }
    
    header.main-header .btn-primary {
        display: none; /* Hide primary CTA in header on mobile */
    }
    
    .hamburger-btn {
        display: block;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .side-drawer {
        width: 100%;
        right: -100%;
    }
}

/* ==========================================
   FLOATING SOLAR AI ASSISTANT CHATBOT CSS
   ========================================== */
.ai-chat-bubble {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--primary);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ai-chat-bubble:hover {
    transform: scale(1.15) rotate(15deg);
    box-shadow: 0 12px 40px rgba(var(--primary-rgb), 0.3);
}

.ai-chat-drawer {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 380px;
    height: 500px;
    border-radius: 20px;
    background: rgba(11, 46, 36, 0.88);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html.light .ai-chat-drawer {
    background: rgba(243, 248, 245, 0.94);
    box-shadow: 0 15px 40px rgba(5, 46, 36, 0.08);
}

.ai-chat-header {
    background: rgba(5, 20, 15, 0.95);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

html.light .ai-chat-header {
    background: #0b2e24;
}

.ai-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-chat-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
    align-items: center;
    background: rgba(0,0,0,0.15);
}

#ai-chat-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    font-size: 12px;
    outline: none;
    transition: var(--transition);
}

html.light #ai-chat-input {
    background: rgba(255,255,255,0.85);
    color: #0b2e24;
}

#ai-chat-input:focus {
    border-color: var(--primary);
}

.ai-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.45;
    text-align: left;
}

.ai-msg.user {
    align-self: flex-end;
    background-color: var(--primary);
    color: #05140f;
    border-bottom-right-radius: 2px;
}

html.light .ai-msg.user {
    color: #fff;
}

.ai-msg.assistant {
    align-self: flex-start;
    background-color: rgba(255,255,255,0.06);
    color: #fff;
    border-bottom-left-radius: 2px;
    border: 1px solid rgba(255,255,255,0.05);
}

html.light .ai-msg.assistant {
    background-color: rgba(5,46,36,0.05);
    color: #0b2e24;
    border-color: rgba(5,46,36,0.08);
}

.ai-msg.typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
}

.ai-msg.typing .dot {
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    animation: typing 1s infinite alternate;
}

html.light .ai-msg.typing .dot {
    background: rgba(11,46,36,0.5);
}

.ai-msg.typing .dot:nth-child(2) { animation-delay: 0.2s; }
.ai-msg.typing .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0% { transform: translateY(0px); opacity: 0.3; }
    100% { transform: translateY(-4px); opacity: 1; }
}

@media (max-width: 768px) {
    .ai-chat-drawer {
        width: calc(100vw - 32px);
        height: 400px;
        bottom: 16px;
        right: 16px;
        border-radius: 12px;
    }
    .ai-chat-bubble {
        bottom: 16px;
        right: 16px;
    }
    .mobile-tab-bar {
        display: grid;
    }
    body {
        padding-bottom: 75px !important;
    }
}

/* Mobile Tab Bar styles (hidden by default on desktop) */
.mobile-tab-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 60px;
    background: rgba(5, 20, 15, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 183, 3, 0.15);
    z-index: 99999;
    grid-template-columns: repeat(5, 1fr);
    justify-items: center;
    align-items: center;
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.5);
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-family: var(--font-outfit);
    font-size: 9px;
    font-weight: 500;
    gap: 3px;
    width: 100%;
    height: 100%;
    transition: var(--transition);
}

.mobile-tab-item i {
    width: 18px;
    height: 18px;
}

.mobile-tab-item:hover, .mobile-tab-item.active {
    color: var(--primary);
}

.mobile-tab-item.active i {
    stroke-width: 2.5px;
    filter: drop-shadow(0 0 5px rgba(255, 183, 3, 0.4));
}

html.light .mobile-tab-bar {
    background: rgba(243, 248, 245, 0.92);
    border-top: 1px solid rgba(5, 46, 36, 0.08);
    box-shadow: 0 -4px 20px rgba(5, 46, 36, 0.06);
}

html.light .mobile-tab-item {
    color: rgba(26, 77, 63, 0.65);
}

html.light .mobile-tab-item:hover, html.light .mobile-tab-item.active {
    color: var(--primary);
}

/* Hide scrollbar for portfolio carousel track */
#portfolio-carousel-track {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}
#portfolio-carousel-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Portfolio Carousel Card Responsive Rules */
.portfolio-card {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 290px;
    snap-align: start;
    background: var(--bg-card);
    border-radius: 14px;
    overflow: hidden;
    padding: 0 !important;
    border: 1px solid var(--border-color);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

@media (max-width: 991px) {
    .portfolio-card {
        flex: 0 0 calc(50% - 10px) !important;
        min-width: 260px !important;
    }
}

/* ==========================================
   SUPER MOBILE RESPONSIVE SYSTEM OVERRIDES
   ========================================== */
@media (max-width: 768px) {
    /* Responsive Typography Overrides */
    h1, [data-cms-field="cms-hero-title"] { font-size: clamp(22px, 6vw, 30px) !important; line-height: 1.25 !important; }
    h2 { font-size: clamp(18px, 5vw, 24px) !important; line-height: 1.3 !important; }
    h3 { font-size: clamp(16px, 4vw, 20px) !important; }

    /* Layout Grids: Force Single Column Stack */
    .grid-2, .grid-3, .grid-4 {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Container & Section Spacing */
    .container { padding-left: 16px !important; padding-right: 16px !important; }
    .section-padding { padding-top: 32px !important; padding-bottom: 32px !important; }

    /* Hero Section Mobile Adaptations */
    .hero-metrics-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
        padding: 12px 4px !important;
        text-align: center;
    }
    .hero-metrics-grid div span:first-child {
        font-size: 17px !important;
    }
    .hero-metrics-grid div span:last-child {
        font-size: 8px !important;
        letter-spacing: 0 !important;
    }

    /* Portfolio Carousel Mobile Peek Sizing (84% card width) */
    #portfolio-carousel-track {
        padding: 6px 4px 16px 4px !important;
        gap: 14px !important;
    }
    #portfolio-carousel-track .portfolio-card {
        flex: 0 0 84% !important;
        min-width: 250px !important;
        max-width: 320px !important;
        snap-align: center !important;
    }

    /* Mobile Header & Controls */
    header.main-header { padding: 10px 12px !important; }
    .logo-text h2 { font-size: 12.5px !important; letter-spacing: 0.08em !important; white-space: nowrap !important; }
    .logo-text span { font-size: 7.5px !important; letter-spacing: 0.1em !important; white-space: nowrap !important; }
    .logo-image-holder { height: 32px !important; }
    .logo-image-holder img { max-height: 32px !important; }

    /* Telemetry Live Rate Banner */
    .telemetry-bar {
        overflow-x: auto;
        white-space: nowrap;
        padding: 6px 12px;
        -webkit-overflow-scrolling: touch;
    }

    /* Interactive Rooftop Simulator Grid */
    #rooftop-panel-grid {
        grid-template-columns: repeat(auto-fill, minmax(32px, 1fr)) !important;
        gap: 4px !important;
    }

    /* Floating Widgets Positioning */
    #wa-widget-card {
        width: calc(100vw - 32px) !important;
        right: 16px !important;
        bottom: 135px !important;
        max-height: 70vh !important;
        overflow-y: auto !important;
    }

    #wa-chat-bubble {
        bottom: 75px !important;
        right: 16px !important;
    }

    .ai-chat-bubble {
        bottom: 75px !important;
        right: 76px !important;
    }

    .ai-chat-drawer {
        width: calc(100vw - 32px) !important;
        height: 75vh !important;
        max-height: 480px !important;
        bottom: 75px !important;
        right: 16px !important;
    }

    /* Portfolio Filter Pills */
    .portfolio-filter-btn {
        flex: 1 1 auto;
        text-align: center;
        padding: 8px 12px !important;
        font-size: 10px !important;
    }

    /* Touch Sliders & Buttons */
    input[type=range] {
        height: 36px;
        touch-action: manipulation;
    }
    .btn {
        padding: 11px 16px !important;
        font-size: 10.5px !important;
    }
    .card {
        padding: 16px !important;
        border-radius: 12px !important;
    }

    /* 2-Column Services Grid on Mobile Devices */
    .services-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .services-grid .card {
        padding: 12px !important;
        border-radius: 10px !important;
    }
    .services-grid .card h4, .services-grid .card h3 {
        font-size: 12.5px !important;
        margin-bottom: 4px !important;
    }
    .services-grid .card p {
        font-size: 10px !important;
        line-height: 1.35 !important;
    }
}

/* Guarantee Zero Horizontal Page Scrollbar Wiggle */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

@media (max-width: 480px) {
    /* Scope Full-Width Buttons only to Block CTAs */
    .btn-block, .hero-cta-btn {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }

    /* Small Touch Buttons */
    .btn-sm, .portfolio-filter-btn {
        width: auto !important;
        display: inline-flex !important;
    }

    /* Arrow Buttons */
    .portfolio-arrow-btn {
        width: 40px !important;
        height: 40px !important;
        flex: 0 0 40px !important;
        border-radius: 50% !important;
        padding: 0 !important;
    }
    
    .grid-3:not(.services-grid), .grid-2:not(.services-grid), .grid-4:not(.services-grid) {
        grid-template-columns: 1fr !important;
    }

    /* Guaranteed 2-Column Mobile Services Grid */
    .services-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .services-grid .card {
        padding: 10px 8px !important;
    }
}

/* ==========================================
   NATIVE APP-LIKE SIZING AUDITING MODULE CSS
   ========================================== */
.sizer-app-shell {
    max-width: 980px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(5, 46, 36, 0.08);
    overflow: hidden;
    padding: 0;
    text-align: left;
}

.sizer-app-header {
    background: rgba(5, 46, 36, 0.03);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.sizer-app-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 20px;
    font-size: 10px;
    font-family: monospace;
    font-weight: 700;
    color: #059669;
    text-transform: uppercase;
}

.sizer-app-segments {
    display: flex;
    background: rgba(5, 46, 36, 0.05);
    padding: 5px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    gap: 5px;
    width: 100%;
}

.sizer-app-segment-item {
    flex: 1;
    text-align: center;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sizer-app-segment-item.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(225, 90, 23, 0.3);
}

.sizer-app-body {
    padding: 32px 28px;
}

.sizer-app-preset-tile {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sizer-app-preset-tile:hover, .sizer-app-preset-tile.active {
    background: rgba(255, 183, 3, 0.12);
    border-color: var(--primary);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    /* Hide grid overlays and version badge on mobile */
    .hero-grid, .fixed-canvas, .sizer-version-text, .sizer-app-status-badge {
        display: none !important;
    }
    .sizer-app-shell {
        border-radius: 16px !important;
    }
    .sizer-app-body {
        padding: 20px 16px !important;
    }
    .sizer-app-segment-item {
        padding: 8px 4px !important;
        font-size: 9px !important;
        gap: 4px !important;
    }
    .sizer-app-header {
        padding: 12px 14px !important;
    }
}

/* Sleek Native App Stepper Controls */
.qty-controls {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3px 6px;
    gap: 6px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-main);
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qty-btn:hover, .qty-btn:active {
    background: var(--primary);
    color: #05140f;
    transform: scale(1.1);
}

/* ==========================================
   MOBILE-FRIENDLY AI SMART SIZER STYLING
   ========================================== */
.ai-sizer-card {
    margin-top: 24px;
    padding: 20px;
    border-radius: 16px;
    background: rgba(225, 90, 23, 0.04);
    border: 1px dashed rgba(225, 90, 23, 0.3);
    text-align: left;
}

.ai-sizer-chips-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.ai-sizer-chip {
    font-size: 10px;
    font-weight: 600;
    color: var(--primary);
    background: #ffffff;
    border: 1px solid rgba(225, 90, 23, 0.25);
    padding: 5px 10px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ai-sizer-chip:hover, .ai-sizer-chip:active {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-1px);
}

.ai-sizer-input-group {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.ai-parse-btn {
    padding: 0 20px;
    font-size: 10.5px;
    font-weight: 800;
    font-family: monospace;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .ai-sizer-card {
        padding: 14px !important;
        border-radius: 12px !important;
    }
    .ai-sizer-input-group {
        flex-direction: column !important;
    }
    .ai-parse-btn {
        width: 100% !important;
        padding: 12px 16px !important;
        font-size: 11px !important;
    }
}

/* Clean Light Mode Portfolio Cards */
.portfolio-card {
    background: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 25px rgba(5, 46, 36, 0.05) !important;
    overflow: hidden;
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(5, 46, 36, 0.1) !important;
}

.portfolio-card h4 {
    color: var(--text-main) !important;
}

.portfolio-card p {
    color: var(--text-secondary) !important;
}

/* ==========================================
   NATIVE MOBILE APP BOTTOM DOCK CSS
   ========================================== */
.mobile-app-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 85px !important; /* Prevents mobile nav dock covering page footer */
    }

    footer.main-footer {
        padding-bottom: 85px !important;
    }

    .mobile-app-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100vw;
        height: 62px;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(16px);
        border-top: 1px solid rgba(5, 46, 36, 0.12);
        box-shadow: 0 -4px 20px rgba(5, 46, 36, 0.08);
        z-index: 99990;
        justify-content: space-around;
        align-items: center;
        padding: 0 4px;
    }

    .mobile-app-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--text-muted);
        text-decoration: none;
        font-size: 9.5px;
        font-weight: 700;
        gap: 3px;
        transition: all 0.2s ease;
        padding: 6px 0;
    }

    .mobile-app-nav-item i, .mobile-app-nav-item svg {
        width: 18px;
        height: 18px;
        transition: transform 0.2s ease;
    }

    .mobile-app-nav-item.active {
        color: var(--primary);
    }

    .mobile-app-nav-item.active i, .mobile-app-nav-item.active svg {
        transform: translateY(-2px) scale(1.1);
        color: var(--primary);
    }

    .mobile-app-nav-item.whatsapp-nav-item {
        color: #059669;
    }

    /* Reposition floating widgets above mobile bottom nav */
    #wa-chat-bubble, .ai-chat-bubble {
        bottom: 72px !important;
    }

    #wa-widget-card, .ai-chat-drawer {
        bottom: 130px !important;
    }

    /* Main Layout Grid Collapsing */
    .grid-2 {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .grid-3 {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Quick View Modal Responsiveness */
    #quickview-modal > div {
        padding: 18px !important;
        max-height: 94vh !important;
    }

    #quickview-content > div {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Verification Grid */
    #vpane-proposal > div, #verification-certificate-card > div {
        grid-template-columns: 1fr !important;
    }

    /* Typography scale for small screens */
    h1 {
        font-size: 28px !important;
        line-height: 1.25 !important;
    }

    h2 {
        font-size: 20px !important;
    }

    /* Side drawers full width on mobile */
    .side-drawer {
        width: 100vw !important;
        max-width: 100vw !important;
    }
}

