:root {
    --text-primary: #f8fafc;
    --text-muted: #cbd5e1;
    --accent-emerald: #22c55e;
    --accent-emerald-dark: #16a34a;
    --accent-emerald-light: #34d399;
    --accent-sky: #38bdf8;
    --accent-gold: #facc15;
    --accent-magenta: #d946ef;
    --glass: rgba(15, 23, 42, 0.8);
    --card-bg: rgba(15, 23, 42, 0.75);
    --surface-soft: rgba(255, 255, 255, 0.08);
    --surface-strong: rgba(15, 23, 42, 0.9);
    --blur: 18px;
    --focus-ring: 0 0 0 3px rgba(34, 197, 94, 0.25);
    --mobile-gutter: 1.5rem;
}

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

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    background: linear-gradient(180deg, #020617 0%, #1e1b4b 55%, #0f172a 100%);
    color: var(--text-primary);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

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

a:hover {
    text-decoration: underline;
}

p {
    color: var(--text-muted);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Header */
.site-header {
    background: rgba(5, 11, 32, 0.82);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 12px 28px rgba(4, 9, 24, 0.35);
}

.site-header .header-inner {
    padding: var(--header-padding) 0;
}

.site-header .brand-link {
    min-width: 0;
}

.site-header .brand-logo {
    max-width: var(--logo-max-width);
}

@media (max-width: 768px) {
    .site-header .header-inner {
        padding: clamp(0.35rem, 2vw, 0.65rem) 0;
    }
}

.logo img {
    height: 85px;
    width: auto;
    max-width: clamp(120px, 12vw, 180px);
    object-fit: contain;
    display: block;
}

.nav-links {
    display: none;
    gap: 2rem;
    align-items: center;
}

.site-header .nav-link {
    color: rgba(248, 250, 252, 0.85);
    transition: color 0.2s ease;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus-visible {
    color: #ffffff;
}

.phone-btn {
    background: var(--accent-emerald);
    color: #f8fafc;
    padding: 0.65rem 1.75rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35), 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.phone-icon {
    flex-shrink: 0;
}

.phone-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.phone-btn:hover {
    background: var(--accent-emerald-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45), 0 3px 6px rgba(0, 0, 0, 0.15);
}

.phone-btn:hover::before {
    width: 300px;
    height: 300px;
}

.phone-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
    .call-label {
        display: none;
    }
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.highlight {
    display: block;
    color: var(--accent-emerald);
    margin-top: 0.5rem;
}

.hero-description {
    color: rgba(226, 232, 240, 0.9);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 34ch;
}

.features {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    color: rgba(226, 232, 240, 0.8);
    font-size: 0.9rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.stars {
    color: var(--accent-emerald);
}

/* Customization Chips */
.customization-section {
    margin: 1.5rem 0;
}

.customization-category {
    margin-bottom: 1rem;
}

.category-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.82);
    margin-bottom: 0.45rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    color: rgba(226, 232, 240, 0.7);
    font-size: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.chip:hover {
    background: rgba(148, 163, 184, 0.18);
    transform: translateY(-1px);
}

.chip.selected {
    background: rgba(34, 197, 94, 0.18);
    color: rgba(34, 197, 94, 0.95);
    border-color: rgba(34, 197, 94, 0.4);
}

.chip[data-address-summary].active-address {
    background: rgba(34, 197, 94, 0.18);
    color: rgba(34, 197, 94, 0.95);
}

/* Image Upload */
.image-upload-section {
    margin: 1.5rem 0;
}

.upload-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(56, 189, 248, 0.18);
    color: var(--accent-sky);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
}

.upload-button:hover {
    background: rgba(56, 189, 248, 0.25);
    transform: translateY(-1px);
}

.upload-preview {
    margin-top: 1rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
    display: none;
}

.upload-preview.active {
    display: block;
}

.upload-preview img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Share & Fullscreen Buttons */
.action-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.2rem;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--text-primary);
    border: 1px solid rgba(148, 163, 184, 0.25);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.action-btn svg {
    width: 18px;
    height: 18px;
}

/* Fullscreen Modal */
.fullscreen-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

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

.fullscreen-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.fullscreen-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.fullscreen-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Process Section */
.process-overview {
    padding: 0 0 clamp(2.5rem, 4vw, 3rem);
    position: relative;
}

.process-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.15);
    color: #38bdf8;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.process-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.process-subtitle {
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 2.5rem;
    font-size: 1rem;
    line-height: 1.7;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.process-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 18px;
    padding: 1.8rem;
    display: grid;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 22px 60px rgba(2, 6, 23, 0.4);
}

.process-card::after {
    content: "";
    position: absolute;
    inset: auto -40% -40% -40%;
    height: 140px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.22), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.process-card:hover::after {
    opacity: 1;
}

.process-number {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.85rem;
    background: rgba(34, 197, 94, 0.18);
    color: #22c55e;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.process-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.process-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Reviews Section */
.reviews-section {
    padding: 4.5rem 0 5rem;
}

.reviews-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.reviews-eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #38bdf8;
}

.reviews-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.reviews-heading h2 {
    margin-bottom: 0;
}

.reviews-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: var(--surface-soft);
    border: 1px solid rgba(148, 163, 184, 0.22);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.reviews-rating:hover {
    transform: translateY(-2px);
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.reviews-rating .brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
    background: transparent;
    overflow: hidden;
}

.reviews-rating .brand svg {
    width: 100%;
    height: 100%;
}

.reviews-rating .score {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.reviews-rating .stars {
    color: #facc15;
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.35);
    font-size: 0.9rem;
}

.reviews-rating .label {
    color: var(--accent-emerald);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
}

.reviews-description {
    color: var(--text-muted);
    max-width: 560px;
    font-size: 1rem;
    line-height: 1.7;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
}

.review-card {
    background: rgba(248, 250, 252, 0.06);
    border-radius: 20px;
    padding: 1.75rem;
    border: 1px solid rgba(248, 250, 252, 0.12);
    display: grid;
    gap: 0.9rem;
    box-shadow: 0 28px 70px rgba(2, 6, 23, 0.45);
}

.review-photo {
    width: 100%;
    height: 180px;
    border-radius: 1.4rem;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.45);
}

.review-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.review-header {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.review-header strong {
    font-size: 1.08rem;
    color: #f8fafc;
}

.review-meta {
    color: rgba(148, 163, 184, 0.75);
    font-size: 0.9rem;
}

.review-stars {
    color: #facc15;
    letter-spacing: 0.12em;
    font-size: 1.05rem;
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.3);
}

.review-quote {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.review-link {
    color: var(--accent-emerald);
    font-weight: 600;
    text-decoration: none;
    width: max-content;
    transition: all 0.2s ease;
}

.review-link:hover {
    text-decoration: underline;
    color: var(--accent-emerald-light);
}

.owner-response {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.owner-response strong {
    color: var(--text-primary);
}

.reviews-cta {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.reviews-cta a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.1);
    color: var(--accent-emerald);
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(34, 197, 94, 0.3);
    box-shadow: 0 20px 48px rgba(34, 197, 94, 0.22);
    transition: all 0.2s ease;
}

.reviews-cta a:hover {
    background: rgba(34, 197, 94, 0.18);
    border-color: rgba(34, 197, 94, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 24px 56px rgba(34, 197, 94, 0.3);
}

/* Hero Section */
main.hero {
    display: flex;
    align-items: start;
    padding: clamp(0.75rem, 2vw, 1.5rem) 0 clamp(1.25rem, 3vw, 2rem);
    position: relative;
    min-height: auto;
    width: 100%;
    max-width: 100vw;
}

main.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top left, rgba(56, 189, 248, 0.18), transparent 60%),
                radial-gradient(ellipse at top right, rgba(34, 197, 94, 0.15), transparent 55%),
                radial-gradient(ellipse at bottom, rgba(217, 70, 239, 0.12), transparent 65%);
    opacity: 0.85;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    width: min(100%, var(--max-width));
    margin: 0 auto;
    padding: 0 var(--layout-gutter);
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(1rem, 4vw, 2.25rem);
    width: 100%;
    align-items: start;
    justify-items: stretch;
    position: relative;
    z-index: 2;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1.4fr 0.9fr;
        gap: clamp(2.5rem, 5vw, 5rem);
        align-items: start;
    }
    .hero-content { order: 1; }
    .hero-art {
        order: 2;
        max-width: 520px;
        justify-self: end;
        height: fit-content;
    }

    .house-wrapper {
        max-height: none;
    }

    .house-frame {
        min-height: 300px !important;
        height: auto;
        max-height: 400px;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 640px) {
    .hero-grid {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }
    .hero-content,
    .hero-art,
    .house-wrapper {
        width: 100%;
    }
}

.hero-art {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: relative;
    align-self: start;
    align-items: stretch;
}

.hero-art::before {
    content: "";
    position: absolute;
    inset: -8% -8% -8%;
    background: conic-gradient(from 160deg,
            rgba(34, 197, 94, 0.25),
            rgba(56, 189, 248, 0.22),
            rgba(217, 70, 239, 0.18),
            rgba(34, 197, 94, 0.25));
    filter: blur(80px);
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}

.house-wrapper {
    position: relative;
    border-radius: 1.5rem 1.5rem 0 0; /* Round top only, flat bottom */
    overflow: visible; /* Changed from hidden to allow sidebar to show */
    background: transparent; /* No background, let form connect seamlessly */
    padding: 0;
    box-shadow: none; /* Remove shadow to eliminate gap appearance */
    border: none; /* Remove border for seamless connection */
    width: 100%;
    z-index: 1;
    box-sizing: border-box;
}

.house-frame {
    position: relative;
    border-radius: 1.5rem 1.5rem 0 0; /* Round top only, flat bottom for form */
    overflow: hidden; /* Keep hidden here to clip images properly */
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(12px) saturate(1.2);
    border: 1px solid rgba(148, 163, 184, 0.15); /* Add border back for definition */
    border-bottom: none; /* No bottom border for seamless form connection */
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.3); /* Top and side shadow only */
    aspect-ratio: 16 / 10;
    min-height: clamp(280px, 34vw, 560px);
}

#hero-house {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    max-height: 400px;
    border-radius: 1.5rem 1.5rem 0 0;
    transition: transform 0.8s ease, filter 0.8s ease;
    filter: saturate(1.15) brightness(1.05);
    background: linear-gradient(
        90deg,
        rgba(30, 41, 59, 0.4) 0%,
        rgba(51, 65, 85, 0.5) 20%,
        rgba(30, 41, 59, 0.4) 40%,
        rgba(30, 41, 59, 0.4) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
}

#hero-house.loaded {
    animation: none;
    background: transparent;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

body.has-address #hero-house {
    transform: scale(1.01);
    filter: saturate(1.2) brightness(1.1);
}

.house-frame.loading::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    z-index: 10;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        background: rgba(15, 23, 42, 0.4);
        backdrop-filter: blur(20px) saturate(1.3);
    }
    50% {
        background: rgba(34, 197, 94, 0.2);
        backdrop-filter: blur(25px) saturate(1.5);
    }
}

.house-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.04) 0%, rgba(2, 6, 23, 0.45) 100%);
    pointer-events: none;
}

.hero-preview-status {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0;
    border-radius: 999px;
    background: transparent;
    border: none;
    box-shadow: none;
    color: #f8fafc;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    z-index: 15;
    pointer-events: none;
}

.hero-preview-status.loading {
    background: transparent;
    border-color: transparent;
}

.hero-preview-label {
    display: none;
}

.hero-preview-status.loading .hero-preview-label {
    display: none;
}

.hero-loading-dots {
    display: inline-flex;
    gap: 0.35rem;
}

.hero-loading-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--accent-sky);
    opacity: 0.45;
    transform-origin: center bottom;
    animation: hero-dot-pop 2.2s ease-in-out 1 forwards;
}

.hero-loading-dot:nth-child(2) {
    background: var(--accent-gold);
    animation-delay: 0.1s;
}

.hero-loading-dot:nth-child(3) {
    background: var(--accent-emerald);
    animation-delay: 0.2s;
}

@keyframes hero-dot-pop {
    0% { transform: translateY(0); opacity: 0.2; }
    18% { transform: translateY(-6px); opacity: 1; }
    32% { transform: translateY(0); opacity: 0.75; }
    46% { transform: translateY(-4px); opacity: 0.9; }
    60% { transform: translateY(0); opacity: 0.6; }
    74% { transform: translateY(0); opacity: 0.55; }
    100% { transform: translateY(0); opacity: 0.55; }
}

.house-wrapper.loading .hero-loading-dot {
    animation: hero-dot-wave 1.6s ease-in-out infinite;
}

.house-wrapper.loading .hero-loading-dot:nth-child(2) { animation-delay: 0.15s; }
.house-wrapper.loading .hero-loading-dot:nth-child(3) { animation-delay: 0.3s; }

.house-wrapper.lights-rest .hero-loading-dot {
    animation: none;
    opacity: 0.55;
}

@keyframes hero-dot-wave {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(-4px); opacity: 0.95; }
}

/* Hero Before/After Animations */
.hero-before-after {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-before-after.active {
    opacity: 1;
    pointer-events: all;
    position: relative;
}

.hero-before,
.hero-after {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-before {
    z-index: 1;
    /* Subtle nighttime filter on carousel before images */
    filter: brightness(0.6) contrast(1.05) saturate(0.9) hue-rotate(-10deg) sepia(5%) blur(2px);
}

.hero-after {
    z-index: 2;
    /* Starts hidden via clip-path, set by JavaScript */
}

/* Hero CTA Chip */
.hero-cta {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(56, 189, 248, 0.15));
    backdrop-filter: blur(10px);
    border-radius: 999px;
    border: 1px solid rgba(34, 197, 94, 0.6);
    opacity: 0;
    transition: opacity 0.8s ease 2s;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    animation: chipGlow 3s ease-in-out infinite;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.2);
}

@keyframes chipGlow {
    0%, 100% {
        color: rgba(255, 255, 255, 0.9);
        border-color: rgba(34, 197, 94, 0.6);
        box-shadow: 0 4px 16px rgba(34, 197, 94, 0.2);
    }
    50% {
        color: rgba(34, 197, 94, 1);
        border-color: rgba(34, 197, 94, 0.9);
        box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4), 0 0 30px rgba(34, 197, 94, 0.3);
    }
}

.hero-before-after.show-after .hero-cta {
    opacity: 1;
}

@media (max-width: 768px) {
    .hero-cta {
        bottom: 12px;
        padding: 6px 12px;
        font-size: 0.7rem;
    }
}

.hero-ai-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.hero-ai-loading.active {
    opacity: 1;
    pointer-events: all;
}

.hero-ai-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(34, 197, 94, 0.2);
    border-top-color: #22c55e;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1rem;
}

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

.hero-ai-loading span {
    color: #f8fafc;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}

.hero-ai-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 24px;
    font-size: 0.8125rem;
    font-weight: 600;
    z-index: 3;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.hero-ai-badge.visible {
    opacity: 1;
    transform: translateY(0);
}

.house-wrapper.enhancing .house-frame {
    position: relative;
}

.house-wrapper.enhancing .enhancement-loader {
    display: flex !important;
}

.enhancement-loader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    gap: 0.5rem;
    z-index: 30;
    filter: none !important;
    -webkit-filter: none !important;
}

.enhancement-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    animation: dot-wave 1.4s ease-in-out infinite;
}

.enhancement-dot:nth-child(1) {
    background: #4285F4;
    animation-delay: 0s;
}

.enhancement-dot:nth-child(2) {
    background: #EA4335;
    animation-delay: 0.2s;
}

.enhancement-dot:nth-child(3) {
    background: #FBBC05;
    animation-delay: 0.4s;
}

.enhancement-dot:nth-child(4) {
    background: #34A853;
    animation-delay: 0.6s;
}

@keyframes dot-wave {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.house-wrapper.enhanced .hero-after {
    opacity: 1;
}

/* Reveal Slider for User's House */
.reveal-slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    border-radius: 1.5rem 1.5rem 0 0; /* Round top corners only, flat bottom for form */
}

.reveal-before,
.reveal-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none !important;
    border-radius: 1.5rem 1.5rem 0 0; /* Round top corners only, flat bottom */
}

.reveal-before {
    z-index: 1;
    /* Subtle nighttime CSS filter */
    filter: brightness(0.6) contrast(1.05) saturate(0.9) hue-rotate(-10deg) sepia(5%);
}

.reveal-after {
    z-index: 2;
    /* Clip path will be updated by JavaScript */
    clip-path: inset(0 50% 0 0);
}

/* Interactive Slider Handle */
.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.8) 0%, rgba(16, 185, 129, 0.8) 100%);
    z-index: 10;
    pointer-events: none !important;
    transition: opacity 0.2s ease;
}

@keyframes slider-pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(34, 197, 94, 0.5),
                    0 0 0 0 rgba(34, 197, 94, 0.4);
    }
    50% {
        box-shadow: 0 4px 12px rgba(34, 197, 94, 0.5),
                    0 0 0 12px rgba(34, 197, 94, 0);
    }
}

/* Top Share Banner - Animated (full width) */
.share-banner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 0.5rem 0.875rem; /* More compact */
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(16, 185, 129, 0.95));
    backdrop-filter: blur(12px);
    border-radius: 1.5rem 1.5rem 0 0; /* Round both top corners */
    font-weight: 600;
    font-size: 0.75rem; /* Smaller text */
    color: white;
    z-index: 30;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    animation: banner-slide-down 0.5s ease-out 0.5s both;
    height: 36px; /* Fixed height so sidebar knows where to start */
}

.share-banner:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 1), rgba(16, 185, 129, 1));
    transform: translateY(2px);
}

.share-banner svg {
    width: 14px; /* Smaller icon */
    height: 14px;
    animation: share-pulse 2s ease-in-out infinite;
}

@keyframes banner-slide-down {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes share-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Download instruction label - Bottom Right */
.download-instruction {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.75rem;
    color: rgba(226, 232, 240, 0.8);
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0.6;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

/* Remove animated icon - too distracting */
.download-instruction::before {
    display: none;
}

.reveal-slider-container:hover .download-instruction {
    opacity: 1;
    background: rgba(34, 197, 94, 0.9);
    color: white;
}

/* Light theme */
body.theme-light .download-instruction {
    background: rgba(255, 255, 255, 0.9);
    color: #334155;
}

body.theme-light .reveal-slider-container:hover .download-instruction {
    background: rgba(16, 185, 129, 0.9);
    color: white;
}

/* AI Control Chips - Top Right (HIDDEN - using Canva-style sidebar instead) */
.ai-control-chips.top-chips {
    display: none !important;
}

/* Decoration Chips - Bottom Center Horizontal (HIDDEN - using Canva-style sidebar instead) */
.decoration-chips {
    display: none !important;
}

.floating-chip {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: rgba(226, 232, 240, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
}

.floating-chip:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: var(--accent-emerald);
    color: var(--accent-emerald);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.floating-chip svg {
    width: 14px;
    height: 14px;
}

.chip-symbol {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
}

/* Toggle chips with labels (wider pills) */
.floating-chip.toggle-chip {
    width: auto;
    min-width: 32px;
    padding: 0 10px;
    border-radius: 16px;
    gap: 4px;
}

.chip-label {
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.floating-chip.toggle-chip[data-active="true"] {
    background: rgba(34, 197, 94, 0.25);
    border-color: var(--accent-emerald);
    color: var(--accent-emerald);
}

.floating-chip.toggle-chip[data-active="true"] .chip-symbol {
    content: '−';
}

/* Chip with Dropdown */
.chip-with-dropdown {
    position: relative;
}

/* Expand hover area with invisible padding */
.chip-with-dropdown::before {
    content: '';
    position: absolute;
    inset: -12px;
    z-index: 0;
}

.chip-dropdown {
    position: absolute;
    bottom: calc(100% - 0.25rem);
    right: -20px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    border: 1.5px solid rgba(148, 163, 184, 0.3);
    border-radius: 12px;
    padding: 0.75rem 0.5rem 0.5rem;
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.15s ease;
    z-index: 30;
}

.chip-with-dropdown:hover .chip-dropdown,
.chip-dropdown:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
    pointer-events: auto;
}

.dropdown-item:hover {
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-emerald);
}

.dropdown-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Inline Prompt Input */
.inline-prompt-input {
    position: absolute;
    bottom: 3.5rem;
    left: 1rem;
    right: 1rem;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    border: 1.5px solid rgba(148, 163, 184, 0.3);
    border-radius: 12px;
    padding: 0.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 20;
    pointer-events: auto;
}

.inline-prompt-input.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.inline-prompt-input input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.inline-prompt-input input:focus {
    outline: none;
    border-color: var(--accent-emerald);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.inline-prompt-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.inline-prompt-actions button {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
}

/* Fullscreen Modal */
.fullscreen-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.fullscreen-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.fullscreen-content {
    position: relative;
    width: 50%;
    max-width: 1200px;
    aspect-ratio: 4/3;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.2);
    z-index: 10001;
}

.fullscreen-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(15, 23, 42, 0.9);
    border: 1.5px solid rgba(148, 163, 184, 0.3);
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10002;
}

.fullscreen-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #f87171;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .fullscreen-content {
        width: 70%;
        max-width: none;
    }
}

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

/* Custom Prompt Modal */
.custom-prompt-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

.modal-content h3 {
    margin-bottom: 1rem;
    color: var(--accent-emerald);
    font-size: 1.5rem;
}

.modal-content textarea {
    width: 100%;
    padding: 0.875rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9375rem;
    resize: vertical;
    margin-bottom: 1.5rem;
}

.modal-content textarea:focus {
    outline: none;
    border-color: var(--accent-emerald);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.modal-actions button {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9375rem;
}

.hero-custom-house {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

.hero-custom-house.loaded {
    opacity: 1;
}

body.has-address .hero-before-after {
    display: none !important;
}

body.has-address .hero-custom-house {
    display: block !important;
}

/* Form Styles */
.address-card {
    background: rgba(248, 250, 252, 0.08);
    border-radius: 1.5rem;
    padding: 1.2rem 1.5rem;
    box-shadow: 0 24px 60px rgba(4, 9, 20, 0.5);
    border: 1px solid rgba(248, 250, 252, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(var(--blur));
}

.address-card h2 {
    margin: 0.15rem 0 1rem;
    font-size: 1.32rem;
    font-weight: 600;
    color: var(--text-primary);
}

.hero-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: min(100%, 540px);
    margin: 0 auto;
    min-height: 0;
}

.address-step h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.15rem;
}

.hero-card-media {
    display: flex;
    justify-content: center;
}

.hero-card-body {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
}

.address-step {
    width: 100%;
    padding: clamp(0.6rem, 2vw, 0.9rem);
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(12px) saturate(1.2);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-top: none;
    border-radius: 0 0 1.2rem 1.2rem;
}

.address-hint {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(148, 163, 184, 0.7);
    margin: 0.5rem 0 0.25rem;
    padding: 0;
}

.step-card {
    width: 100%;
    display: grid;
    gap: 0.35rem;
    padding: clamp(0.85rem, 4vw, 1.25rem) clamp(1rem, 5vw, 1.6rem);
    border-radius: 1.4rem;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 52px rgba(4, 9, 20, 0.42);
}

.step-card .step-label {
    align-self: flex-start;
}

.address-step h2 {
    margin: 0;
    font-size: 1.28rem;
}

.details-step {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    margin: 0 !important;
}

body.has-address .address-step {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden;
    opacity: 0;
    margin: 0 !important;
    padding: 0 !important;
}

body.has-address .details-step {
    display: grid !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s ease;
}

@media (min-width: 900px) {
    .hero-card {
        max-width: 800px;
    }
}

#address-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.input-with-button {
    position: relative;
    width: 100%;
    padding: 0;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.input-with-button input {
    width: 100%;
}

.input-with-button input::placeholder {
    font-weight: 400;
    color: rgba(100, 116, 139, 0.5);
}

.input-button {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(2.85rem, 5.2vw, 3.4rem);
    height: clamp(2.85rem, 5.2vw, 3.4rem);
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: #0B1120;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3), 0 0 16px rgba(34, 197, 94, 0.2);
}

.input-button:hover {
    background: linear-gradient(135deg, #2dd76e 0%, #22c55e 100%);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4), 0 0 20px rgba(34, 197, 94, 0.3);
}

.input-button:active {
    transform: translateY(-50%) scale(0.98);
}

#address-form label span,
#details-form label span,
.field-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.82);
    margin-bottom: 0.45rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="datetime-local"],
input[type="date"],
input[type="time"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.32);
    background: rgba(15, 23, 42, 0.6);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.7;
    cursor: pointer;
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover,
input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

input::placeholder,
textarea::placeholder {
    color: rgba(226, 232, 240, 0.85);
}

#address-input::placeholder {
    color: rgba(100, 116, 139, 0.75);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(34, 197, 94, 0.55);
    box-shadow: var(--focus-ring);
    background: rgba(15, 23, 42, 0.75);
}

input.error,
select.error,
textarea.error {
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.25);
}

textarea {
    min-height: 140px;
    resize: vertical;
}

@keyframes blink-caret {
    0%, 49% { caret-color: #22c55e; }
    50%, 100% { caret-color: transparent; }
}

#address-input {
    width: 100%;
    padding: clamp(0.95rem, 2.2vw, 1.15rem) 1.35rem;
    padding-right: 3.75rem;
    border-radius: 999px;
    border: 2px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.98);
    color: #0f172a;
    font-size: clamp(1.05rem, 2.2vw, 1.2rem);
    font-weight: 600;
    caret-color: #22c55e;
    animation: blink-caret 0.7s steps(1) infinite;
    letter-spacing: 0.01em;
    transition: all 0.2s ease;
}

/* Equal columns for perfect alignment */
@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

#address-input:focus {
    outline: none;
    border-color: rgba(34, 197, 94, 0.6);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
    background: #ffffff;
    caret-color: #22c55e;
    animation: blink-caret 0.7s steps(1) infinite;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.6rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent-emerald-dark));
    color: #04130a;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 20px 38px rgba(34, 197, 94, 0.28);
}

.primary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 24px 48px rgba(52, 211, 153, 0.35);
}

.subtext {
    font-size: 0.8rem;
    color: rgba(226, 232, 240, 0.75);
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    width: 100%;
    align-items: flex-start;
    text-align: left;
    margin: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.2rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.18);
    color: var(--accent-emerald);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.hero-title {
    font-size: clamp(2.5rem, 4vw, 3.6rem);
    font-weight: 800;
    line-height: 1.08;
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    letter-spacing: -0.02em;
    text-align: left;
    width: 100%;
}

.hero-title span {
    color: var(--accent-emerald);
}

.hero-copy {
    font-size: 1.02rem;
    color: var(--text-muted);
    max-width: 36ch;
    line-height: 1.55;
    margin: 0;
    text-align: left;
}

.hero-metrics {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.85rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-top: 0.35rem;
    width: 100%;
}

.metric-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1.05rem;
    border-radius: 999px;
    background: var(--surface-soft);
    color: #f8fafc;
    font-weight: 600;
    box-shadow: 0 18px 32px rgba(15, 118, 110, 0.22);
}

.metric-pill-link {
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.metric-pill-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.15);
}

.metric-pill-link:hover .metric-cta {
    opacity: 1;
}

.metric-cta {
    color: var(--accent-emerald);
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
    margin-left: 0.15rem;
    opacity: 0.95;
}

.metric-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: transparent;
    overflow: hidden;
}

.metric-brand svg {
    width: 100%;
    height: 100%;
}

.metric-stars {
    font-size: 0.95rem;
    letter-spacing: 0.18em;
    color: #facc15;
}

.metric-score {
    color: var(--text-muted);
    font-weight: 500;
}

.metric-dot {
    color: rgba(148, 163, 184, 0.65);
    font-size: 1.1rem;
}

.metric-text {
    color: var(--accent-emerald-light);
    font-weight: 600;
    text-align: center;
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.2rem;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--accent-sky);
    font-weight: 600;
    border: 1px solid rgba(56, 189, 248, 0.35);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.secondary-button:hover {
    background: rgba(56, 189, 248, 0.2);
    transform: translateY(-1px);
}

#details-panel {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none;
    position: relative;
}

#details-panel form {
    display: grid;
    gap: 0.5rem;
}

.details-card {
    width: min(100%, 680px);
    margin: 0 auto;
    display: grid;
    gap: 0.85rem;
    border-radius: 0 0 1.5rem 1.5rem;
    padding: clamp(1.25rem, 4vw, 1.75rem) clamp(1.25rem, 5vw, 2.2rem) clamp(1.5rem, 5vw, 2.4rem);
}

.details-card form[aria-hidden="true"] {
    display: none;
}

#details-panel h3 {
    margin: 0 0 0.2rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

body.has-address #details-panel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.details-header {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.details-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: rgba(226, 232, 240, 0.65);
    margin-bottom: 0.35rem;
}

.progress-count {
    font-weight: 600;
    color: rgba(248, 250, 252, 0.8);
    letter-spacing: 0.08em;
}

.step-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.18);
    color: var(--accent-sky);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.compact-grid label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.compact-grid label span {
    margin-bottom: 0;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.72);
    font-weight: 600;
}

.full-span {
    grid-column: 1 / -1;
}

/* Multi-Step Form Layout */
.step-fields {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.field-row label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.field-row label span {
    margin-bottom: 0;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.72);
    font-weight: 600;
}

/* Step Transitions */
.form-step {
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-step.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
    animation: slideInStep 0.3s ease forwards;
}

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


/* Google Places Autocomplete Dropdown Styling */
.pac-container {
    z-index: 9999 !important;
    font-family: 'Inter', system-ui, sans-serif !important;
    background: rgba(15, 23, 42, 0.98) !important;
    backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
    border-radius: 12px !important;
    margin-top: 8px !important;
    padding: 8px 0 !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(34, 197, 94, 0.1) !important;
}

.pac-container:after {
    display: none !important;
}

.pac-item {
    font-size: 0.9rem !important;
    padding: 14px 18px !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    line-height: 1.5 !important;
}

.pac-item:last-child {
    border-bottom: none !important;
}

.pac-item:hover,
.pac-item-selected {
    background: rgba(34, 197, 94, 0.12) !important;
    border-color: rgba(34, 197, 94, 0.2) !important;
}

.pac-item-query {
    color: #f8fafc !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
}

.pac-matched {
    color: #22c55e !important;
    font-weight: 700 !important;
}

.pac-icon {
    display: none !important;
}

.pac-icon-marker {
    display: none !important;
}

.success-state {
    display: none;
    margin-top: 1.5rem;
    padding: 1.4rem 1.6rem;
    border-radius: 1.5rem;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.28);
    color: var(--text-primary);
    box-shadow: 0 20px 40px rgba(34, 197, 94, 0.25);
}

.success-state.active { display: block; }

.loader-backdrop {
    display: none !important;
}

.loader-backdrop.active {
    display: none !important;
}

.loader-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    padding: 1.5rem 2rem;
    border-radius: 1.5rem;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.55);
}

.loader-dots {
    display: inline-flex;
    gap: 0.4rem;
}

.loader-dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: #38bdf8;
    opacity: 0.4;
    transform-origin: center;
    animation: loader-wave 1.4s ease-in-out infinite;
}

.loader-dot:nth-child(2) { animation-delay: 0.15s; }
.loader-dot:nth-child(3) { animation-delay: 0.3s; }

.loader-copy {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
}

@keyframes loader-wave {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
    60% { transform: translateY(0); opacity: 0.65; }
}

/* Responsive Mobile */
@media (max-width: 768px) {
    main.hero {
        padding: 0;
    }

    .hero-inner {
        padding: 0 var(--layout-gutter);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hero-content {
        order: 1;
        gap: 0.05rem;
        text-align: center;
        margin-bottom: 0;
        align-items: center;
    }

    .hero-title {
        font-size: 1.5rem;
        line-height: 1.2;
        margin: 0;
        text-align: center;
    }

    .hero-badge {
        display: none;
    }

    .mobile-nc-chip {
        display: block !important;
        text-align: center;
        margin-top: -1.5rem;
        margin-bottom: 0.3rem;
    }

    .mobile-review-widget {
        display: block !important;
    }

    .mobile-review-widget a {
        box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2) !important;
        border: 1px solid rgba(34, 197, 94, 0.25) !important;
    }

    .mobile-review-widget a:active {
        transform: scale(0.98);
        background: rgba(34, 197, 94, 0.12) !important;
    }

    .hero-metrics {
        display: none;
    }

    .hero-art {
        order: 2;
        max-width: 100%;
        width: 100%;
        overflow: hidden;
        margin-top: -4rem;
    }

    .hero-art::before {
        display: none;
    }

    .house-wrapper {
        max-width: 100% !important;
        margin: 0;
        padding: 0.25rem;
        width: 100%;
    }

    .house-frame {
        min-height: clamp(200px, 56vw, 320px);
        aspect-ratio: 4 / 3;
    }

    .address-step {
        padding: 0.6rem 0.35rem;
    }

    .hero-card {
        width: 100%;
        max-width: 100%;
    }

    .details-card {
        padding: 1.5rem 0.5rem 1.8rem;
        margin: 0 auto 0;
        width: 100%;
        max-width: 100%;
    }

    header {
        padding: 0 1rem;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        display: flex;
        align-items: center;
    }

    .logo img {
        height: 58px;
        max-width: 200px;
        width: 100%;
    }

    .nav-links {
        display: flex;
    }

    .nav-links .nav-link {
        display: none;
    }

    .phone-btn {
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 50%;
        display: flex !important;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
        position: relative;
        flex-shrink: 0;
    }

    .phone-btn svg,
    .phone-btn span {
        display: none;
    }

    .phone-btn::after {
        content: "";
        width: 22px;
        height: 22px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        transform: scaleX(-1);
    }

    .mobile-call-btn {
        display: flex;
    }

    .mobile-floating-call {
        position: fixed;
        bottom: 1.25rem;
        right: 1.25rem;
        width: 58px;
        height: 58px;
        border-radius: 50%;
        background: radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.25), transparent 55%),
            linear-gradient(135deg, var(--accent-emerald) 0%, var(--accent-emerald-dark) 100%);
        display: none;
        align-items: center;
        justify-content: center;
        box-shadow: 0 18px 30px rgba(6, 122, 45, 0.4), 0 6px 12px rgba(4, 8, 20, 0.35);
        z-index: 1000;
        text-decoration: none;
        transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
        opacity: 0;
        transform: translateY(12px);
    }

    @media (max-width: 960px) {
        .mobile-floating-call {
            display: flex;
        }
    }

    .mobile-floating-call.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-floating-call.visible.call-fab-lifted {
        transform: translateY(-4px);
        box-shadow: 0 24px 34px rgba(6, 122, 45, 0.45), 0 10px 18px rgba(4, 8, 20, 0.35);
    }

    .mobile-floating-call::after {
        content: "";
        width: 26px;
        height: 26px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    .mobile-floating-call:active {
        transform: translateY(0) scale(0.95);
    }

    /* Mobile Form Field Rows */
    .field-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .step-fields {
        gap: 0.5rem;
    }

    .secondary-button,
    .primary-button {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
    }
}

/* Footer */
footer {
    background: transparent;
    padding: 3rem 0 2rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #34d399;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.875rem;
}

footer p,
footer span {
    color: var(--text-muted);
}

.footer-section p {
    margin-top: 1rem;
}

.footer-bottom a {
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-bottom a:hover {
    color: var(--accent-emerald-light);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--surface-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: background-color 0.2s, color 0.2s;
}

.social-link:hover {
    background: rgba(34, 197, 94, 0.2);
    color: var(--text-primary);
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: rgba(248, 250, 252, 0.06);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(248, 250, 252, 0.12);
    text-align: center;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card.featured {
    border: 2px solid var(--accent-emerald);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(4, 9, 20, 0.45);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent-sky));
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    white-space: nowrap;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
    white-space: nowrap;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-features i {
    color: var(--accent-emerald-light);
}

.pricing-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent-emerald-dark));
    color: #04130a;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.pricing-button:hover {
    background: linear-gradient(135deg, var(--accent-emerald-light), var(--accent-emerald));
}

.services-cta {
    margin-top: 3rem;
    padding: clamp(1.75rem, 3vw, 2.75rem);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(56, 189, 248, 0.18));
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 28px 60px rgba(2, 6, 23, 0.45);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: flex-start;
}

.services-cta h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0;
}

.services-cta p {
    margin: 0;
    color: var(--text-muted);
    max-width: 52ch;
    line-height: 1.6;
}

.services-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.services-cta button,
.services-cta a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
}

.services-cta-primary {
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent-sky));
    color: #031525;
    box-shadow: 0 20px 45px rgba(56, 189, 248, 0.3);
    border: none;
}

.services-cta-primary:hover {
    box-shadow: 0 24px 55px rgba(34, 197, 94, 0.32);
}

.services-cta-secondary {
    background: var(--accent-emerald);
    color: #f8fafc;
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35), 0 2px 4px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.services-cta-secondary:hover {
    background: var(--accent-emerald-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45), 0 3px 6px rgba(0, 0, 0, 0.15);
    border-color: rgba(34, 197, 94, 0.5);
}

.services-cta-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

section {
    padding: var(--section-spacing) 0;
}

.section-dark {
    background: rgba(15, 23, 42, 0.5);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Theme Toggle Buttons */
.theme-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.theme-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.theme-btn.active {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.5);
    color: #22c55e;
}

body.theme-dark .theme-btn {
    border-color: rgba(255, 255, 255, 0.15);
}

body.theme-dark .theme-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
}

body.theme-light .theme-btn {
    border-color: rgba(0, 0, 0, 0.15);
    color: #1f2937;
}

body.theme-light .theme-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.25);
}

/* Light Theme Color Overrides */
body.theme-light {
    --text-primary: #1e293b;
    --text-muted: #475569;
    background: linear-gradient(to bottom, #f8fafc 0%, #e2e8f0 100%);
}

body.theme-light h1,
body.theme-light h2,
body.theme-light h3,
body.theme-light h4,
body.theme-light h5,
body.theme-light h6 {
    color: #0f172a;
}

body.theme-light p,
body.theme-light span,
body.theme-light li,
body.theme-light a:not(.btn-primary):not(.cta-primary):not(.cta-secondary) {
    color: #334155;
}

body.theme-light .hero-section {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

body.theme-light .hero-content h1 {
    color: #0f172a;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

body.theme-light .hero-content p {
    color: #475569;
}

body.theme-light .cta-primary {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);
}

body.theme-light .cta-primary:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
}

body.theme-light .cta-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    border: 2px solid #cbd5e1;
}

body.theme-light .cta-secondary:hover {
    background: #ffffff;
    border-color: #94a3b8;
}

body.theme-light .feature-card,
body.theme-light .pricing-card,
body.theme-light .review-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body.theme-light .feature-card:hover,
body.theme-light .pricing-card:hover {
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #cbd5e1;
}

body.theme-light .feature-icon {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

body.theme-light .section {
    background: transparent;
}

body.theme-light .section:nth-child(even) {
    background: rgba(241, 245, 249, 0.6);
}

body.theme-light .site-header {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

body.theme-light .nav-list a {
    color: #334155;
}

body.theme-light .nav-list a:hover {
    color: #dc2626;
}

body.theme-light .site-footer {
    background: linear-gradient(to bottom, #1e293b 0%, #0f172a 100%);
    color: #f8fafc;
}

body.theme-light .site-footer h3,
body.theme-light .site-footer p,
body.theme-light .site-footer a,
body.theme-light .site-footer li {
    color: #e2e8f0;
}

body.theme-light .site-footer a:hover {
    color: #ffffff;
}

body.theme-light .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.theme-light input,
body.theme-light select,
body.theme-light textarea {
    background: rgba(255, 255, 255, 0.95);
    color: #1e293b;
    border: 1px solid #cbd5e1;
}

body.theme-light input:focus,
body.theme-light select:focus,
body.theme-light textarea:focus {
    border-color: #dc2626;
    background: #ffffff;
}

body.theme-light input::placeholder,
body.theme-light textarea::placeholder {
    color: #94a3b8;
}

body.theme-light .badge,
body.theme-light .tag {
    background: rgba(220, 38, 38, 0.1);
    color: #991b1b;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

body.theme-light .stats-number {
    color: #dc2626;
}

body.theme-light .testimonial-author {
    color: #0f172a;
}

body.theme-light .testimonial-role {
    color: #64748b;
}

body.theme-light .price {
    color: #0f172a;
}

body.theme-light .price-unit {
    color: #64748b;
}

/* COMPREHENSIVE Light Theme Overrides - Force ALL text to be dark and readable */

/* Section headings */
body.theme-light .section-title,
body.theme-light .section-heading,
body.theme-light h2.section-title,
body.theme-light h2 {
    color: #0f172a !important;
    text-shadow: none !important;
}

body.theme-light h3 {
    color: #1e293b !important;
}

/* Hero section */
body.theme-light .hero-content h1,
body.theme-light .hero-title {
    color: #0f172a !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

body.theme-light .hero-content p,
body.theme-light .hero-subtitle,
body.theme-light .hero-description {
    color: #334155 !important;
}

/* Pricing section */
body.theme-light .pricing-title,
body.theme-light .pricing-section h2,
body.theme-light .pricing-section .section-title {
    color: #0f172a !important;
}

body.theme-light .pricing-subtitle,
body.theme-light .pricing-description {
    color: #475569 !important;
}

body.theme-light .price,
body.theme-light .pricing-amount,
body.theme-light .pricing-card .price {
    color: #0f172a !important;
    font-weight: 700 !important;
}

body.theme-light .pricing-card h3,
body.theme-light .pricing-card-title {
    color: #1e293b !important;
}

body.theme-light .pricing-card p,
body.theme-light .pricing-card li {
    color: #475569 !important;
}

/* Steps section */
body.theme-light .steps-title {
    color: #0f172a !important;
}

body.theme-light .steps-subtitle {
    color: #475569 !important;
}

body.theme-light .step-title,
body.theme-light .feature-title {
    color: #1e293b !important;
}

body.theme-light .step-description,
body.theme-light .feature-description {
    color: #475569 !important;
}

/* Reviews section */
body.theme-light .reviews-title,
body.theme-light .testimonials-title {
    color: #0f172a !important;
}

body.theme-light .review-text,
body.theme-light .testimonial-text {
    color: #334155 !important;
}

body.theme-light .review-author,
body.theme-light .testimonial-author {
    color: #1e293b !important;
}

/* Form elements */
body.theme-light .form-label,
body.theme-light label,
body.theme-light .details-card label,
body.theme-light .details-card label span,
body.theme-light #details-form label,
body.theme-light #details-form label span,
body.theme-light #address-form label,
body.theme-light #address-form label span {
    color: #1e293b !important;
}

body.theme-light .form-description {
    color: #475569 !important;
}

body.theme-light input::placeholder,
body.theme-light textarea::placeholder {
    color: #64748b !important;
}

/* CTA sections */
body.theme-light .cta-section h2,
body.theme-light .cta-title {
    color: #0f172a !important;
}

body.theme-light .cta-section p,
body.theme-light .cta-description {
    color: #334155 !important;
}

/* Footer - keep dark */
body.theme-light .site-footer {
    background: linear-gradient(to bottom, #1e293b 0%, #0f172a 100%) !important;
}

body.theme-light .site-footer,
body.theme-light .site-footer h3,
body.theme-light .site-footer h4,
body.theme-light .site-footer p,
body.theme-light .site-footer a,
body.theme-light .site-footer li,
body.theme-light .site-footer span {
    color: #e2e8f0 !important;
}

body.theme-light .site-footer a:hover {
    color: #ffffff !important;
}

/* All paragraph text */
body.theme-light p:not(.site-footer p) {
    color: #475569 !important;
}

/* All list items */
body.theme-light li:not(.site-footer li) {
    color: #475569 !important;
}

/* All spans */
body.theme-light span:not(.site-footer span) {
    color: #475569 !important;
}

/* Section backgrounds */
body.theme-light .section {
    background: transparent !important;
}

body.theme-light .section:nth-child(even) {
    background: rgba(248, 250, 252, 0.5) !important;
}

body.theme-light .pricing-section {
    background: rgba(241, 245, 249, 0.8) !important;
}

/* Make sure small text is also visible */
body.theme-light small,
body.theme-light .text-sm,
body.theme-light .small-text {
    color: #64748b !important;
}

/* Links outside footer */
body.theme-light a:not(.site-footer a):not(.cta-primary):not(.cta-secondary):not(.nav-list a):not(.nav-link):not(.btn-primary) {
    color: #0f766e !important;
}

body.theme-light a:not(.site-footer a):not(.cta-primary):not(.cta-secondary):not(.nav-list a):not(.nav-link):not(.btn-primary):hover {
    color: #134e4a !important;
}

/* Remove gradient text effects in light theme */
body.theme-light h1,
body.theme-light h2,
body.theme-light h3,
body.theme-light .process-title,
body.theme-light .section-title {
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    color: #0f172a !important;
}

/* Pricing prices - remove any gradient effects */
body.theme-light .pricing-price,
body.theme-light .pricing-amount {
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    color: #0f172a !important;
    font-weight: 700 !important;
}

/* All headings in sections */
body.theme-light .section h1,
body.theme-light .section h2,
body.theme-light .section h3,
body.theme-light .hero-content h1 {
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    color: #0f172a !important;
}

/* Fix CTA section styling in light theme */
body.theme-light .section-dark {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%) !important;
}

body.theme-light .section-dark h2,
body.theme-light .section-dark h3 {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

body.theme-light .section-dark p {
    color: #fef2f2 !important;
}

body.theme-light .section-dark .cta-primary,
body.theme-light .section-dark button {
    background: #ffffff !important;
    color: #dc2626 !important;
    border: 2px solid #ffffff !important;
    font-weight: 600 !important;
}

body.theme-light .section-dark .cta-primary:hover,
body.theme-light .section-dark button:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

/* COMPREHENSIVE LIGHT THEME FIXES - MAKE EVERYTHING PERFECT */

/* Fix form placeholder text - make it clearly visible */
body.theme-light input::placeholder,
body.theme-light textarea::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

/* Fix form text under inputs */
body.theme-light .form-note,
body.theme-light .input-note,
body.theme-light small {
    color: #64748b !important;
}

/* Replace ugly blue links with elegant red/burgundy */
body.theme-light a:not(.site-footer a):not(.cta-primary):not(.cta-secondary):not(.nav-list a):not(.btn-primary) {
    color: #dc2626 !important;
}

body.theme-light a:not(.site-footer a):not(.cta-primary):not(.cta-secondary):not(.nav-list a):not(.btn-primary):hover {
    color: #991b1b !important;
}

/* CTA Section - Elegant gradient instead of red */
body.theme-light .section-dark {
    background: linear-gradient(135deg, #0f766e 0%, #134e4a 100%) !important;
}

body.theme-light .section-dark h2 {
    color: #ffffff !important;
}

body.theme-light .section-dark p {
    color: #ccfbf1 !important;
}

body.theme-light .section-dark button,
body.theme-light .section-dark .cta-primary {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #0f766e !important;
    border: none !important;
    font-weight: 600 !important;
}

body.theme-light .section-dark button:hover,
body.theme-light .section-dark .cta-primary:hover {
    background: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
}

/* Ensure logo is visible - check if it needs background */
body.theme-light .brand-logo {
    opacity: 1 !important;
    filter: none !important;
}

/* Fix any remaining dark text on dark backgrounds */
body.theme-light .hero-panel,
body.theme-light .card-dark,
body.theme-light [class*="dark-bg"] {
    background: rgba(255, 255, 255, 0.95) !important;
}

/* Ensure all form elements are readable */
body.theme-light input,
body.theme-light select,
body.theme-light textarea {
    background: rgba(255, 255, 255, 0.98) !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
}

body.theme-light input:focus,
body.theme-light select:focus,
body.theme-light textarea:focus {
    border-color: #0f766e !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1) !important;
}

/* FIX ALL REMAINING LIGHT THEME ISSUES */

/* Navigation links - use teal instead of blue */
body.theme-light .nav-list a {
    color: #0f766e !important;
}

body.theme-light .nav-list a:hover {
    color: #134e4a !important;
}

body.theme-light .nav-list a.active {
    background: rgba(15, 118, 110, 0.1) !important;
    color: #0f766e !important;
}

/* Phone button - white text on green */
body.theme-light .cta-primary,
body.theme-light button.cta-primary,
body.theme-light a.cta-primary,
body.theme-light .btn-primary,
body.theme-light button.btn-primary,
body.theme-light a.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border: none !important;
}

body.theme-light .cta-primary:hover,
body.theme-light .btn-primary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: #ffffff !important;
}

/* All links - use teal instead of red */
body.theme-light a:not(.site-footer a):not(.cta-primary):not(.cta-secondary):not(.nav-list a):not(.btn-primary) {
    color: #0f766e !important;
}

body.theme-light a:not(.site-footer a):not(.cta-primary):not(.cta-secondary):not(.nav-list a):not(.btn-primary):hover {
    color: #134e4a !important;
}

/* Review author names - make them clearly visible */
body.theme-light .review-author,
body.theme-light .review-author-name,
body.theme-light .testimonial-author {
    color: #0f172a !important;
    font-weight: 600 !important;
}

body.theme-light .review-meta,
body.theme-light .review-date,
body.theme-light .review-location {
    color: #64748b !important;
}

/* Review cards - ensure proper background */
body.theme-light .review-card,
body.theme-light .testimonial-card {
    background: rgba(255, 255, 255, 0.95) !important;
}

/* Fix Holiday Lighting nav button - should be teal not blue */
body.theme-light .nav-list a,
body.theme-light .nav-list .nav-link,
body.theme-light nav a,
body.theme-light header a:not(.brand-link):not(.cta-primary):not(.btn-primary) {
    color: #0f766e !important;
}

body.theme-light .nav-list a:hover,
body.theme-light nav a:hover {
    color: #134e4a !important;
}

/* Active/current page nav item */
body.theme-light .nav-list a.active,
body.theme-light .nav-list .active {
    background: rgba(15, 118, 110, 0.1) !important;
    color: #0f766e !important;
    border-color: #0f766e !important;
}

/* Force nav-link to be teal in light theme */
body.theme-light .nav-link,
body.theme-light .nav-link.active,
body.theme-light a.nav-link {
    color: #0f766e !important;
}

body.theme-light .nav-link:hover,
body.theme-light a.nav-link:hover {
    color: #134e4a !important;
}

/* COMPREHENSIVE LIGHT THEME FIX - OVERRIDE EVERYTHING */

/* Pricing Section - make everything dark */
body.theme-light .pricing-section {
    background: rgba(241, 245, 249, 0.8) !important;
}

body.theme-light .pricing-section h2,
body.theme-light .pricing-section h3,
body.theme-light .pricing-title {
    color: #0f172a !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
}

body.theme-light .pricing-subtitle,
body.theme-light .pricing-description {
    color: #475569 !important;
}

/* Google Reviews badge */
body.theme-light .review-badge,
body.theme-light [class*="google"],
body.theme-light [class*="review"] div {
    color: #0f172a !important;
}

/* CTA Section - already has dark background, keep white text */
body.theme-light .section-dark h2,
body.theme-light .section-dark h3,
body.theme-light .section-dark p {
    color: #ffffff !important;
}

/* ALL other sections - force dark text */
body.theme-light .section:not(.section-dark) h1,
body.theme-light .section:not(.section-dark) h2,
body.theme-light .section:not(.section-dark) h3,
body.theme-light .section:not(.section-dark) h4,
body.theme-light .section:not(.section-dark) h5,
body.theme-light .section:not(.section-dark) h6 {
    color: #0f172a !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
}

body.theme-light .section:not(.section-dark) p,
body.theme-light .section:not(.section-dark) span,
body.theme-light .section:not(.section-dark) div {
    color: #475569 !important;
}

/* Fix Simple Pricing heading in light theme */
body.theme-light .section-header h2 {
    color: #0f172a !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
}

body.theme-light .section-subtitle {
    color: #475569 !important;
}

/* Fix pricing section subtitle - needs to be white on teal background */
body.theme-light .pricing-section .section-subtitle,
body.theme-light .pricing-section p {
    color: #ffffff !important;
}

/* Make sure the pricing section background stays teal */
body.theme-light .pricing-section {
    background: #0f766e !important;
}

/* CTA section paragraph text - make white on teal background in light theme */
body.theme-light .services-cta p,
body.theme-light section:has(.services-cta) p {
    color: #ffffff !important;
}

/* OVERRIDE: Pricing section specific styles for light theme */
/* Pricing section heading - white on teal */
body.theme-light #pricing h2 {
    color: #ffffff !important;
}

/* Pricing section subtitle - white on teal */
body.theme-light #pricing .section-subtitle {
    color: #ffffff !important;
}

/* Pricing card titles - must be dark on white cards */
body.theme-light .pricing-title {
    color: #0f172a !important;
}

/* Pricing card text - keep dark */
body.theme-light .pricing-card p,
body.theme-light .pricing-card li,
body.theme-light .pricing-card span {
    color: #475569 !important;
}

/* CRITICAL FIX: Pricing card titles must be dark on white cards, even though they're in section-dark */
body.theme-light #pricing .pricing-card h3,
body.theme-light #pricing .pricing-title,
body.theme-light .pricing-card .pricing-title {
    color: #0f172a !important;
    background: none !important;
    -webkit-text-fill-color: #0f172a !important;
    text-shadow: none !important;
}

/* ========================================
   COMPREHENSIVE LIGHT THEME IMPROVEMENTS
   ======================================== */

/* Address form area - better backgrounds and visibility */
body.theme-light .address-step {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(15, 118, 110, 0.2) !important;
}

body.theme-light .address-hint {
    color: #64748b !important;
}

body.theme-light #address-input {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}

body.theme-light #address-input::placeholder {
    color: #94a3b8 !important;
}

body.theme-light #address-input:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

/* Mobile review widget - light theme styling */
body.theme-light .mobile-review-widget a {
    background: rgba(16, 185, 129, 0.1) !important;
}

body.theme-light .mobile-review-widget {
    color: #0f172a !important;
}

/* Google autocomplete dropdown - proper light theme colors */
body.theme-light .pac-container {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

body.theme-light .pac-item,
body.theme-light .pac-item-query {
    color: #0f172a !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

body.theme-light .pac-item:hover,
body.theme-light .pac-item-selected {
    background-color: rgba(16, 185, 129, 0.1) !important;
}

body.theme-light .pac-matched {
    color: #059669 !important;
    font-weight: 600;
}

body.theme-light .pac-icon {
    filter: none !important;
}

/* Step cards and form areas */
body.theme-light .step-card {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

body.theme-light .step-card h2,
body.theme-light .step-card h3,
body.theme-light .step-card .step-label {
    color: #0f172a !important;
}

body.theme-light .step-card p,
body.theme-light .step-card label {
    color: #475569 !important;
}

/* Form inputs in light theme */
body.theme-light input[type="text"],
body.theme-light input[type="email"],
body.theme-light input[type="tel"],
body.theme-light textarea,
body.theme-light select {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}

body.theme-light input[type="text"]:focus,
body.theme-light input[type="email"]:focus,
body.theme-light input[type="tel"]:focus,
body.theme-light textarea:focus,
body.theme-light select:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

body.theme-light input::placeholder,
body.theme-light textarea::placeholder {
    color: #94a3b8 !important;
}

/* Remove weird grey line in footer */
body.theme-light footer {
    border-top: 1px solid #e2e8f0 !important;
}

/* ========================================
   SOCIAL SHARE CTA (Compact One-Line)
   ======================================== */

.social-share-cta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.5rem 0;
    padding: 0.875rem 1.25rem;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 12px;
    animation: shareSlideIn 0.4s ease-out;
}

@keyframes shareSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.share-cta-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--emerald);
    white-space: nowrap;
}

.share-btn-inline {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    color: var(--emerald);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.share-btn-inline:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: var(--emerald);
    transform: translateY(-2px);
}

.share-btn-inline svg {
    width: 18px;
    height: 18px;
}

.share-cta-tag {
    font-size: 0.8rem;
    color: rgba(248, 250, 252, 0.65);
    font-style: italic;
    white-space: nowrap;
}

/* Toast notification */
.share-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(34, 197, 94, 0.95);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
}

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

/* Light theme */
body.theme-light .social-share-cta {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.25);
}

body.theme-light .share-cta-text {
    color: #059669;
}

body.theme-light .share-btn-inline {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #059669;
}

body.theme-light .share-btn-inline:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
}

body.theme-light .share-cta-tag {
    color: #64748b;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .social-share-cta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .share-cta-tag {
        margin-left: 0;
        width: 100%;
        text-align: center;
        font-size: 0.8rem;
    }
}

/* Contest Terms Asterisk */
.contest-terms-link {
    font-size: 0.7rem;
    color: var(--emerald);
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.2s ease;
    text-decoration: none;
    margin-left: 2px;
}

.contest-terms-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Contest Terms Modal */
.contest-terms-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contest-terms-modal.show {
    opacity: 1;
}

.contest-terms-content {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.contest-terms-modal.show .contest-terms-content {
    transform: translateY(0);
}

.contest-terms-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #f87171;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contest-terms-close:hover {
    background: rgba(248, 113, 113, 0.2);
    border-color: #f87171;
    transform: scale(1.05);
}

.contest-terms-content h3 {
    margin: 0 0 1.5rem 0;
    color: var(--emerald);
    font-size: 1.5rem;
    font-weight: 700;
}

.contest-terms-body {
    color: rgba(248, 250, 252, 0.85);
    line-height: 1.7;
}

.contest-terms-body p {
    margin: 0 0 1rem 0;
}

.contest-terms-body strong {
    color: var(--emerald);
    font-weight: 600;
}

.contest-terms-body ul {
    margin: 0.5rem 0 1rem 1.5rem;
    padding: 0;
}

.contest-terms-body li {
    margin: 0.5rem 0;
}

/* Light theme */
body.theme-light .contest-terms-link {
    color: #059669;
}

body.theme-light .contest-terms-content {
    background: white;
    border-color: rgba(0, 0, 0, 0.1);
}

body.theme-light .contest-terms-content h3 {
    color: #059669;
}

body.theme-light .contest-terms-body {
    color: #1e293b;
}

body.theme-light .contest-terms-body strong {
    color: #059669;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .contest-terms-content {
        padding: 1.5rem;
        max-height: 90vh;
    }

    .contest-terms-content h3 {
        font-size: 1.25rem;
        padding-right: 2rem;
    }
}

/* ========================================
   COMPACT SOCIAL SHARE CTA (Below Image)
   ======================================== */

.social-share-compact-cta {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    animation: shareSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.compact-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--emerald) 0%, #10b981 100%);
    border: none;
    border-radius: 999px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4);
}

.compact-share-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.5);
}

.compact-share-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.compact-share-btn svg {
    width: 20px;
    height: 20px;
}

/* Share Modal */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.share-modal.show {
    opacity: 1;
}

.share-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.share-modal-content {
    position: relative;
    background: var(--card-bg);
    border: 2px solid rgba(34, 197, 94, 0.3);
    border-radius: 24px;
    max-width: 500px;
    width: calc(100% - 2rem);
    max-height: 85vh;
    overflow-y: auto;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.share-modal.show .share-modal-content {
    transform: scale(1) translateY(0);
}

.share-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    background: rgba(248, 113, 113, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.4);
    color: #f87171;
    border-radius: 8px;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.share-modal-close:hover {
    background: rgba(248, 113, 113, 0.2);
    transform: scale(1.05);
}

.share-modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-right: 2.5rem;
}

.share-modal-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--emerald);
    line-height: 1.3;
}

.share-modal-header p {
    margin: 0;
    color: rgba(248, 250, 252, 0.7);
    font-size: 1rem;
}

.share-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.share-modal-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem;
    border-radius: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-modal-primary {
    background: linear-gradient(135deg, var(--emerald) 0%, #10b981 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.share-modal-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.share-modal-secondary {
    background: rgba(34, 197, 94, 0.12);
    border: 2px solid rgba(34, 197, 94, 0.3);
    color: var(--emerald);
}

.share-modal-secondary:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: var(--emerald);
}

.share-modal-btn svg {
    width: 24px;
    height: 24px;
}

.share-modal-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.share-modal-divider::before,
.share-modal-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: rgba(34, 197, 94, 0.2);
}

.share-modal-divider::before {
    left: 0;
}

.share-modal-divider::after {
    right: 0;
}

.share-modal-divider span {
    background: var(--card-bg);
    padding: 0 1rem;
    font-size: 0.8rem;
    color: rgba(248, 250, 252, 0.5);
    text-transform: uppercase;
    font-weight: 600;
}

.share-modal-platforms {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.share-platform-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-platform-btn svg {
    width: 32px;
    height: 32px;
}

.share-platform-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.share-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    border-color: #bc1888;
}

.share-tiktok:hover {
    background: linear-gradient(135deg, #00f2ea 0%, #ff0050 100%);
    border-color: #00f2ea;
}

.share-twitter:hover {
    background: #000000;
    border-color: white;
}

.share-modal-hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(34, 197, 94, 0.2);
}

.modal-hashtag {
    padding: 0.375rem 0.875rem;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 999px;
    font-size: 0.75rem;
    color: var(--emerald);
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .share-modal-content {
        padding: 1.5rem;
    }

    .share-modal-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 28px;
        height: 28px;
        font-size: 1.15rem;
    }

    .share-modal-header {
        padding-right: 2rem;
    }

    .share-modal-header h3 {
        font-size: 1.25rem;
    }

    .share-modal-actions {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .share-modal-platforms {
        grid-template-columns: 1fr;
    }

    .share-platform-btn {
        flex-direction: row;
        justify-content: flex-start;
        padding: 1rem 1.25rem;
    }
}


/* ========================================
   CANVA-STYLE EDITOR SIDEBAR
   ======================================== */

/* Narrow Icon Sidebar (Left) - Overlay inside image, UNDER banner */
.editor-sidebar {
    position: absolute;
    left: 0;
    top: 36px; /* Start below banner */
    bottom: 0;
    width: 50px; /* Narrower: 50px instead of 60px */
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(12px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0; /* No border radius - sits under banner */
    z-index: 25;
    display: flex; /* Show by default, will be visible with slider */
    opacity: 0; /* Start hidden, JavaScript will fade in */
    flex-direction: column;
    align-items: center;
    padding: 0.375rem 0; /* Even tighter: 0.375rem */
    gap: 0; /* No gap between items */
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.3);
    transition: opacity 0.4s ease; /* Smooth fade in */
}

.editor-tab {
    width: 46px; /* Smaller: 46px instead of 56px */
    height: 38px; /* More compact: 38px */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.125rem; /* Tighter spacing */
    background: transparent;
    border: none;
    border-radius: 6px;
    color: rgba(248, 250, 252, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0.25rem 0.125rem; /* Even tighter padding */
    margin: 0.125rem 0; /* Small margin between tabs */
}

.editor-tab:hover {
    background: rgba(34, 197, 94, 0.15);
    color: var(--emerald);
    transform: scale(1.05);
}

.editor-tab.active {
    background: rgba(34, 197, 94, 0.2);
    color: var(--emerald);
    box-shadow: inset 3px 0 0 var(--emerald);
}

/* Make Redo button stand out */
.editor-tab[data-action="regenerate"] {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.editor-tab[data-action="regenerate"]:hover {
    background: rgba(34, 197, 94, 0.25);
    border-color: var(--emerald);
    transform: scale(1.1) rotate(-15deg);
}

.editor-tab svg {
    width: 20px; /* Smaller: 20px instead of 24px */
    height: 20px;
    flex-shrink: 0;
}

.editor-tab span {
    font-size: 0.5625rem; /* Smaller: 9px instead of 10px */
    font-weight: 600;
    text-align: center;
    line-height: 1;
}

.editor-spacer {
    flex: 1;
    min-height: 0.5rem; /* Tighter spacing */
}

/* Expandable Panel (Right of Sidebar) - Inside image */
.editor-panel {
    position: absolute;
    left: 50px; /* Updated to match narrower sidebar */
    top: 36px; /* Start below banner */
    bottom: 0;
    width: 240px; /* Slightly narrower: 240px instead of 260px */
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 24;
    transform: translateX(-100%);
    overflow-y: auto; /* Allow scrolling for long content */
    overflow-x: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
}

.editor-panel.active {
    transform: translateX(0);
}

.panel-content {
    padding: 1rem; /* More compact: 1rem instead of 1.5rem */
}

.panel-title {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem; /* Smaller: 14px instead of 20px */
    font-weight: 700;
    color: var(--emerald);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.panel-description {
    margin: 0 0 0.75rem 0; /* Tighter: 0.75rem instead of 1.5rem */
    font-size: 0.75rem; /* Smaller */
    color: rgba(248, 250, 252, 0.6);
    line-height: 1.4;
}

.panel-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Even tighter */
    padding: 0.5rem 0.625rem; /* More compact padding */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1); /* Thinner border */
    border-radius: 6px; /* Smaller radius */
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem; /* Tighter: 0.5rem instead of 0.75rem */
}

.panel-btn:hover {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    transform: translateX(2px);
}

.panel-btn.active {
    background: rgba(34, 197, 94, 0.15);
    border-color: var(--emerald);
}

.panel-btn svg,
.color-preview {
    width: 20px; /* Smaller: 20px instead of 24px */
    height: 20px;
    flex-shrink: 0;
    border-radius: 4px;
}

.panel-btn-text {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.125rem; /* Tighter */
}

.panel-btn-text strong {
    font-weight: 600;
    font-size: 0.8125rem; /* Smaller: 13px */
    line-height: 1.2;
}

.panel-btn-text small {
    font-size: 0.6875rem; /* Smaller: 11px */
    color: rgba(248, 250, 252, 0.5);
    font-weight: 400;
    line-height: 1.2;
}

.panel-toggle {
    font-size: 1.25rem; /* Smaller toggle icon */
    font-weight: 700;
    color: var(--emerald);
    min-width: 20px;
    text-align: center;
}

.panel-btn-large {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem; /* Tighter */
    padding: 0.875rem; /* More compact */
    background: linear-gradient(135deg, var(--emerald) 0%, #10b981 100%);
    border: none;
    border-radius: 8px; /* Smaller radius */
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.panel-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.panel-btn-large svg {
    width: 32px;
    height: 32px;
}

.color-preview {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

/* Hide default floating chips when sidebar is shown */
.editor-sidebar ~ .house-wrapper .ai-control-chips,
.editor-sidebar ~ .house-wrapper .decoration-chips {
    opacity: 0.3;
    pointer-events: none;
}

/* Light Theme */
body.theme-light .editor-sidebar {
    background: rgba(255, 255, 255, 0.98);
    border-right-color: rgba(0, 0, 0, 0.1);
}

body.theme-light .editor-tab {
    color: #64748b;
}

body.theme-light .editor-tab:hover {
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
}

body.theme-light .editor-tab.active {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    box-shadow: inset 3px 0 0 #059669;
}

body.theme-light .editor-panel {
    background: white;
    border-right-color: rgba(0, 0, 0, 0.1);
}

body.theme-light .panel-title {
    color: #059669;
}

body.theme-light .panel-description {
    color: #64748b;
}

body.theme-light .panel-btn {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1e293b;
}

body.theme-light .panel-btn:hover {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
}

body.theme-light .panel-btn-text small {
    color: #64748b;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .editor-sidebar {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: auto;
        height: 60px;
        flex-direction: row;
        justify-content: space-around;
        padding: 0.5rem;
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .editor-tab {
        width: auto;
        height: auto;
        flex: 1;
        max-width: 80px;
    }

    .editor-spacer {
        display: none;
    }

    .editor-panel {
        left: 0;
        right: 0;
        top: auto;
        bottom: 60px;
        width: auto;
        max-height: 50vh;
        transform: translateY(100%);
    }

    .editor-panel.active {
        transform: translateY(0);
    }
}

