/* Dimora AI — Premium Design System & Stylesheet */

/* --- CSS Root & Variables --- */
:root {
    --primary: #D36135;           /* Rich Terracotta */
    --primary-hover: #B54920;
    --primary-rgb: 211, 97, 53;
    --primary-light: #E79B7F;
    --secondary: #5B7053;         /* Olive Green */
    --accent-gold: #D4AF37;       /* Soft Gold */
    --accent-gold-hover: #BCA030;
    --bg-dark: #121D1A;           /* Deep Cypress Green / Dark theme background */
    --bg-darker: #0B1210;
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.06);
    --card-hover-border: rgba(211, 97, 53, 0.3);
    --text-light: #F9F6F0;        /* Soft Cream */
    --text-muted: #8E9E98;
    --text-dark: #121D1A;
    --white: #FFFFFF;
    --success: #52B788;
    --warning: #F4A261;
    --danger: #E63946;
    
    --glass-blur: blur(20px);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Montserrat', Helvetica, Arial, sans-serif;
}

/* --- Reset & Global --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-darker);
    color: var(--text-light);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    isolation: isolate;
    background: transparent;
}

body::before,
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
}

body::before {
    z-index: -2;
    background-image: url('assets/hero_background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

body::after {
    z-index: -1;
    background: rgba(11, 18, 16, 0.58);
}

img,
svg {
    max-width: 100%;
}

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

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    letter-spacing: -0.01em;
}

p {
    font-weight: 300;
    letter-spacing: 0.01em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--text-light) 30%, var(--primary-light) 70%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

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

.text-success {
    color: var(--success);
}

.font-semibold {
    font-weight: 600;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-light);
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 25px rgba(var(--primary-rgb), 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--text-light);
}

.btn-outline:hover {
    background-color: rgba(var(--primary-rgb), 0.1);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.6rem 1.4rem;
    font-size: 0.8rem;
}

.btn-full {
    width: 100%;
}

.badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: rgba(255, 255, 255, 0.08);
}

.badge-accent {
    background-color: rgba(var(--primary-rgb), 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
}

/* --- Glassmorphism Panel --- */
.glass-panel {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* --- Main Header --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(11, 18, 16, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: clamp(0.8rem, 1.5vw, 1.8rem);
    max-width: 1560px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    font-family: var(--font-sans);
    flex: 0 0 auto;
    white-space: nowrap;
}

.logo-accent {
    color: var(--primary);
}

.logo-light {
    color: var(--text-light);
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 1.9vw, 2.25rem);
    flex: 1 1 auto;
    min-width: 0;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

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

.nav-info-link {
    background: rgba(211, 176, 96, 0.08);
    border: 1px solid rgba(211, 176, 96, 0.32);
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 42px;
    padding: 0.45rem 0.9rem;
    font-family: var(--font-sans);
    flex: 0 0 auto;
    color: var(--accent-gold);
    box-shadow: inset 0 0 0 1px rgba(211, 176, 96, 0.04);
}

.nav-info-link svg {
    color: var(--accent-gold);
    stroke-width: 2.2;
}

.nav-info-link:hover {
    background: rgba(211, 176, 96, 0.15);
    border-color: rgba(211, 176, 96, 0.48);
    color: var(--accent-gold);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    flex: 0 0 auto;
}

.lang-selector {
    display: flex;
    flex: 0 0 auto;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 2px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.lang-btn.active, .lang-btn:hover {
    color: var(--text-light);
    background-color: var(--primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background-image: url('assets/hero_background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(11, 18, 16, 0.42) 0%,
        rgba(11, 18, 16, 0.48) 48%,
        rgba(11, 18, 16, 0.72) 78%,
        var(--bg-darker) 100%
    );
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    padding-bottom: 4rem;
}

.hero-content {
    max-width: 800px;
}

.hero-tagline {
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 650px;
}

.hero-region-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-region-cta > span {
    color: var(--text-muted);
    font-size: 0.78rem;
    padding-left: 0.75rem;
}

.hero-region-btn {
    min-height: 48px;
    padding: 0.75rem 1.5rem;
}

/* AI Search Box */
.search-box-container {
    width: 100%;
    max-width: 700px;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 8px;
    padding: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 10px 35px rgba(var(--primary-rgb), 0.2);
}

.search-icon {
    color: var(--primary-light);
    margin-left: 1rem;
    margin-right: 0.5rem;
}

.search-box input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-light);
    font-family: var(--font-sans);
    font-size: 1rem;
    padding: 0.8rem 0.5rem;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-btn {
    padding: 0.8rem 1.8rem;
}

.search-tags {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.tag-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.search-tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.search-tag:hover {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: var(--primary-light);
    color: var(--primary-light);
}

/* --- Section Headers --- */
.section-header {
    margin-bottom: 4rem;
    max-width: 750px;
}

.section-header.text-center {
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: 0.8rem;
    display: block;
}

.section-title {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1.2rem;
}

.section-lead {
    font-size: 1.1rem;
}

/* --- AI Scouting Dashboard Section --- */
.dashboard-section {
    padding: 8rem 0;
    background: rgba(11, 18, 16, 0.72);
    position: relative;
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}

.dashboard-section::after {
    display: none;
}

.dashboard-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 600px;
    overflow: hidden;
}

/* Sidebar / Controls */
.dashboard-controls {
    border-right: 1px solid var(--card-border);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background: rgba(11, 18, 16, 0.56);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.control-title {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-btn {
    text-align: left;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 0.6rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.filter-btn:hover {
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

.filter-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.2);
}

.dashboard-select {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    padding: 0.8rem;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    outline: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dashboard-select:focus {
    border-color: var(--primary);
}

.dashboard-select option {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

/* Live Ticker */
.ai-ticker-panel {
    margin-top: auto;
    border-top: 1px solid var(--card-border);
    padding-top: 1.5rem;
}

.ticker-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.ticker-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--success);
}

.ticker-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
}

.ticker-messages {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.ticker-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 0.5rem;
    border-radius: 4px;
    border-left: 2px solid var(--primary);
    animation: tickerFade 0.5s ease-in-out;
}

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

/* Dashboard Content Grid */
.dashboard-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

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

.stat-card {
    background: rgba(18, 29, 26, 0.72);
    border: 1px solid var(--card-border);
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.scout-ops-panel {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(211, 97, 53, 0.16);
    border-radius: 8px;
    background: rgba(18, 29, 26, 0.76);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.scout-ops-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.scout-ops-header h4 {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.scout-ops-header p {
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.45;
    max-width: 720px;
}

.scout-ops-status {
    flex: 0 0 auto;
    max-width: 220px;
    padding: 0.34rem 0.55rem;
    border: 1px solid rgba(211, 176, 96, 0.24);
    border-radius: 4px;
    background: rgba(211, 176, 96, 0.08);
    color: var(--accent-gold);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.scout-ops-status.is-busy {
    border-color: rgba(211, 97, 53, 0.34);
    background: rgba(211, 97, 53, 0.12);
    color: var(--primary-light);
}

.scout-ops-status.is-success {
    border-color: rgba(79, 195, 139, 0.28);
    background: rgba(79, 195, 139, 0.1);
    color: var(--success);
}

.scout-ops-status.is-error {
    border-color: rgba(230, 57, 70, 0.3);
    background: rgba(230, 57, 70, 0.1);
    color: #ffd0d5;
}

.scout-ops-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.scout-ops-metric {
    min-width: 0;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.16);
}

.scout-ops-metric span {
    display: block;
    color: var(--text-muted);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.25;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.scout-ops-metric strong {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-light);
    font-size: 1.2rem;
    line-height: 1.1;
}

.scout-ops-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.scout-ops-actions .btn {
    min-height: 2.5rem;
    flex: 1 1 190px;
    padding-inline: 0.9rem;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.stat-change {
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.triage-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    background: rgba(18, 29, 26, 0.72);
}

.triage-header h4 {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    margin-bottom: 0.25rem;
}

.triage-header p {
    color: var(--text-muted);
    font-size: 0.76rem;
    line-height: 1.45;
}

.triage-grid,
.report-triage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 0.75rem;
}

.triage-stat,
.triage-card {
    min-width: 0;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.12);
}

.triage-stat {
    text-align: left;
    color: inherit;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.triage-stat:hover,
.triage-stat.active {
    border-color: rgba(211, 97, 53, 0.35);
    background: rgba(211, 97, 53, 0.09);
}

.triage-stat.active .triage-label {
    color: var(--primary-light);
}

.triage-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.triage-stat strong {
    display: block;
    color: var(--text-light);
    font-size: 1.45rem;
    line-height: 1.2;
    margin: 0.25rem 0;
}

.triage-stat small,
.triage-card small {
    display: block;
    color: var(--text-muted);
    font-size: 0.68rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.triage-insights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.triage-active-note {
    margin-top: 0.65rem;
    padding: 0.55rem 0.7rem;
    border-left: 3px solid var(--primary);
    border-radius: 4px;
    background: rgba(211, 97, 53, 0.08);
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.45;
}

.triage-chip,
.flag-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    max-width: 100%;
    padding: 0.26rem 0.46rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 600;
    font-family: var(--font-sans);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.triage-chip {
    cursor: pointer;
}

.triage-chip.active,
.triage-chip:hover {
    border-color: rgba(211, 97, 53, 0.35);
    background: rgba(211, 97, 53, 0.09);
    color: var(--text-light);
}

.flag-chip.high {
    color: #ffd0d5;
    border-color: rgba(230, 57, 70, 0.35);
    background: rgba(230, 57, 70, 0.13);
}

.flag-chip.medium {
    color: #ffe3b0;
    border-color: rgba(244, 162, 97, 0.32);
    background: rgba(244, 162, 97, 0.12);
}

.flag-chip.low {
    color: var(--text-muted);
}

.property-triage {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 1rem;
    padding: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.1);
}

.property-triage-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.triage-card strong {
    display: block;
    color: var(--text-light);
    font-size: 0.78rem;
    margin-bottom: 0.2rem;
}

/* Property Grid */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.property-card {
    background: rgba(18, 29, 26, 0.78);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    border-color: var(--card-hover-border);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.card-image-wrapper {
    height: 180px;
    position: relative;
    overflow: hidden;
}

.property-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: var(--transition-smooth);
}

.property-thumbnail-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-smooth);
}

.property-card:hover .property-thumbnail-placeholder,
.property-card:hover .property-thumbnail-image {
    transform: scale(1.05);
}

.property-thumbnail-empty {
    background: linear-gradient(135deg, #1d2b27, #131b18);
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.property-thumbnail-empty i {
    width: 24px;
    height: 24px;
    color: var(--primary-light);
}

.property-thumbnail-empty span {
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.property-title-link {
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s ease;
}

.property-title-link:hover {
    color: var(--primary);
}

.badge-overlay {
    position: absolute;
    z-index: 2;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--font-sans);
}

.score-badge {
    top: 1rem;
    right: 1rem;
    background-color: var(--primary);
    color: var(--text-light);
}

.region-badge {
    top: 1rem;
    left: 1rem;
    background-color: rgba(18, 29, 26, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent-gold);
    backdrop-filter: blur(4px);
}

.card-details {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.property-name {
    font-size: 1.25rem;
    margin-bottom: 0.4rem;
}

.property-location {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
}

.icon-xs {
    width: 12px;
    height: 12px;
}

.icon-sm {
    width: 16px;
    height: 16px;
}

.text-terracotta {
    color: var(--primary-light);
}

.property-financials {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
}

.financial-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.financial-val {
    color: var(--text-light);
}

.financial-row.highlight {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.4rem;
    margin-top: 0.2rem;
    font-size: 0.8rem;
}

.property-metrics {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1.2rem;
    margin-bottom: 1.2rem;
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-value {
    font-size: 1.1rem;
    font-weight: 700;
}

.card-action-btn {
    margin-top: auto;
}

.card-actions-stack {
    display: grid;
    gap: 0.55rem;
    margin-top: auto;
}

.card-actions-stack .btn {
    justify-content: center;
}

.card-photo-analysis {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.85rem;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.16);
    scroll-margin-top: 7.5rem;
}

.card-photo-analysis.is-loading {
    border-color: rgba(211, 176, 96, 0.28);
    background: rgba(211, 176, 96, 0.055);
}

.card-photo-analysis.is-ready {
    border-color: rgba(79, 195, 139, 0.22);
}

.card-photo-analysis.is-partial {
    border-color: rgba(211, 176, 96, 0.3);
    background: rgba(211, 176, 96, 0.06);
}

.card-photo-analysis.is-error {
    border-color: rgba(230, 57, 70, 0.26);
    background: rgba(230, 57, 70, 0.07);
}

.card-photo-analysis-head {
    display: grid;
    gap: 0.2rem;
}

.card-photo-analysis-head strong {
    color: var(--text-light);
    font-size: 0.78rem;
}

.analysis-loading-title {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.analysis-inline-spinner {
    width: 0.82rem;
    height: 0.82rem;
    flex: 0 0 auto;
    border: 2px solid rgba(255, 255, 255, 0.16);
    border-top-color: var(--primary);
    border-radius: 999px;
    animation: spin 0.8s linear infinite;
}

.card-photo-analysis-head span {
    color: var(--text-muted);
    font-size: 0.7rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.photo-analysis-steps,
.card-photo-analysis-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.photo-analysis-steps span,
.card-photo-analysis-metrics span,
.photo-analysis-empty {
    padding: 0.24rem 0.42rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-muted);
    font-size: 0.66rem;
    line-height: 1.25;
}

.card-photo-analysis-metrics strong {
    color: var(--text-light);
}

.card-photo-analysis-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.4rem;
}

.card-photo-analysis-grid .photo-analysis-thumb {
    min-width: 0;
}

.photo-analysis-more {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    min-width: 0;
    border-radius: 4px;
    border: 1px solid rgba(211, 176, 96, 0.26);
    background: rgba(211, 176, 96, 0.08);
    color: var(--text-light);
    text-align: center;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: var(--transition-smooth);
}

.photo-analysis-more:hover,
.photo-analysis-more:focus-visible {
    border-color: rgba(211, 176, 96, 0.48);
    background: rgba(211, 176, 96, 0.14);
    outline: none;
}

.photo-analysis-more strong {
    display: block;
    font-size: 0.78rem;
    line-height: 1;
}

.photo-analysis-more small {
    display: block;
    margin-top: 0.12rem;
    color: var(--text-muted);
    font-size: 0.58rem;
    line-height: 1;
}

.card-visual-analysis {
    border-color: rgba(79, 195, 139, 0.18);
    background: rgba(79, 195, 139, 0.035);
}

.visual-analysis-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}

.visual-analysis-category {
    min-width: 0;
    display: grid;
    gap: 0.18rem;
    padding: 0.55rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.025);
}

.visual-analysis-category strong,
.visual-analysis-sample > strong {
    color: var(--text-light);
    font-size: 0.68rem;
}

.visual-analysis-category span,
.visual-analysis-category small,
.visual-analysis-signal span,
.visual-observation-item span,
.visual-observation-item small {
    color: var(--text-muted);
    font-size: 0.64rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.visual-analysis-signals,
.visual-observation-list,
.visual-analysis-sample,
.visual-floorplan-pilot,
.visual-floorplan-rooms,
.visual-floorplan-signals {
    display: grid;
    gap: 0.45rem;
}

.visual-analysis-signal,
.visual-observation-item,
.visual-floorplan-room {
    min-width: 0;
    display: grid;
    gap: 0.16rem;
    padding: 0.5rem 0.55rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.025);
}

.visual-analysis-signal {
    border-left: 3px solid rgba(211, 176, 96, 0.75);
}

.visual-analysis-signal.high {
    border-left-color: rgba(230, 57, 70, 0.82);
}

.visual-analysis-signal.low {
    border-left-color: rgba(79, 195, 139, 0.82);
}

.visual-analysis-signal strong,
.visual-observation-item strong,
.visual-floorplan-pilot strong {
    color: var(--text-light);
    font-size: 0.68rem;
}

.visual-floorplan-pilot {
    padding: 0.65rem;
    border-radius: 6px;
    border: 1px solid rgba(211, 176, 96, 0.2);
    background: rgba(211, 176, 96, 0.045);
}

.visual-floorplan-pilot.is-empty {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
}

.visual-floorplan-head {
    display: grid;
    gap: 0.18rem;
}

.visual-floorplan-head span,
.visual-floorplan-room span,
.visual-floorplan-room small,
.visual-floorplan-rooms > .photo-analysis-empty,
.visual-floorplan-signals > .photo-analysis-empty {
    color: var(--text-muted);
    font-size: 0.64rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.visual-floorplan-room span {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
}

.visual-floorplan-room em {
    color: var(--terracotta-light);
    font-size: 0.6rem;
    font-style: normal;
}

@media (max-width: 640px) {
    .visual-analysis-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Fiscal Bonus Simulator --- */
.bonus-section {
    padding: 8rem 0;
    background: rgba(11, 18, 16, 0.72);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    scroll-margin-top: 80px;
}

.bonus-simulator-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(18, 29, 26, 0.72);
}

.bonus-simulator-shell.is-under-construction .bonus-form-panel,
.bonus-simulator-shell.is-under-construction .bonus-results-panel {
    opacity: 0.92;
    filter: none;
    pointer-events: none;
    user-select: none;
}

.bonus-construction-overlay {
    position: absolute;
    z-index: 5;
    inset: 1.5rem;
    display: grid;
    place-content: center;
    gap: 0.75rem;
    padding: 2rem;
    border: 1px solid rgba(211, 176, 96, 0.36);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(11, 18, 16, 0.2), rgba(11, 18, 16, 0.14));
    box-shadow: inset 0 0 0 9999px rgba(11, 18, 16, 0.02), 0 14px 26px rgba(0, 0, 0, 0.18);
    text-align: center;
}

.bonus-construction-overlay strong {
    color: var(--text-light);
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.05;
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.72);
}

.bonus-construction-overlay span {
    max-width: 560px;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.bonus-form-panel,
.bonus-results-panel {
    min-width: 0;
    display: grid;
    gap: 1rem;
}

.bonus-results-panel.is-updated {
    animation: bonusPanelPulse 0.45s ease-out;
}

.bonus-results-panel.is-updated .bonus-summary-card {
    border-color: rgba(79, 195, 139, 0.42);
}

.bonus-update-status {
    justify-self: flex-start;
    padding: 0.32rem 0.55rem;
    border: 1px solid rgba(79, 195, 139, 0.24);
    border-radius: 4px;
    background: rgba(79, 195, 139, 0.08);
    color: var(--success);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.25;
}

@keyframes bonusPanelPulse {
    0% {
        border-color: rgba(79, 195, 139, 0.42);
        box-shadow: 0 0 0 0 rgba(79, 195, 139, 0.18);
    }
    100% {
        border-color: rgba(255, 255, 255, 0.06);
        box-shadow: 0 0 0 12px rgba(79, 195, 139, 0);
    }
}

.bonus-panel-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.bonus-panel-header p,
.bonus-disclaimer {
    color: var(--text-muted);
    font-size: 0.76rem;
    line-height: 1.5;
}

.bonus-form-grid,
.bonus-cost-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.bonus-field {
    min-width: 0;
    display: grid;
    gap: 0.35rem;
}

.bonus-field > span,
.bonus-check span {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.25;
    text-transform: uppercase;
}

.bonus-toggle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.bonus-check {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
}

.bonus-check input {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    margin-top: 0.05rem;
    accent-color: var(--primary);
}

.bonus-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.bonus-summary-card {
    min-width: 0;
    padding: 0.85rem;
    border: 1px solid rgba(211, 176, 96, 0.16);
    border-radius: 6px;
    background: rgba(211, 176, 96, 0.055);
}

.bonus-summary-card span {
    display: block;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.25;
    text-transform: uppercase;
}

.bonus-summary-card strong {
    display: block;
    margin-top: 0.35rem;
    color: var(--text-light);
    font-size: 1.2rem;
    line-height: 1.15;
}

.bonus-result-list,
.bonus-warning-list {
    display: grid;
    gap: 0.65rem;
}

.bonus-result-item,
.bonus-warning-item {
    min-width: 0;
    padding: 0.8rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.bonus-result-item {
    border-left: 3px solid rgba(79, 195, 139, 0.78);
}

.bonus-result-item.is-ineligible {
    border-left-color: rgba(230, 57, 70, 0.76);
    opacity: 0.86;
}

.bonus-result-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: baseline;
    margin-bottom: 0.35rem;
}

.bonus-result-head strong {
    color: var(--text-light);
    font-size: 0.82rem;
}

.bonus-result-head span {
    color: var(--success);
    font-size: 0.8rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.bonus-result-item.is-ineligible .bonus-result-head span {
    color: #ffd0d5;
}

.bonus-result-item p,
.bonus-warning-item {
    color: var(--text-muted);
    font-size: 0.7rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.bonus-warning-item {
    border-left: 3px solid rgba(211, 176, 96, 0.76);
}

/* --- Before & After Slider Section --- */
.slider-section {
    padding: 8rem 0;
    background: rgba(18, 29, 26, 0.74);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}

.before-after-container {
    max-width: 900px;
    margin: 0 auto 4rem auto;
    padding: 1rem;
}

.before-after-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 8px;
    user-select: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.image-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

.after-image {
    width: 50%;
    z-index: 2;
    overflow: hidden;
}

.after-image img {
    width: 100%; /* Will stay absolute width matching container */
    max-width: none;
}

.label-badge {
    position: absolute;
    bottom: 1.5rem;
    z-index: 3;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
}

.badge-before {
    right: 1.5rem;
    background-color: rgba(18, 29, 26, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.badge-after {
    left: 1.5rem;
    background-color: var(--primary);
    color: var(--text-light);
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background-color: var(--white);
    z-index: 10;
    cursor: ew-resize;
    transform: translateX(-50%);
}

.handle-line {
    width: 100%;
    height: 100%;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.handle-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 3px solid var(--primary);
    transition: background-color 0.2s;
}

.handle-button i {
    width: 18px;
    height: 18px;
}

.before-after-slider:hover .handle-button {
    background-color: var(--text-light);
}

/* Restoration cards grid */
.restoration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.restoration-card {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.restoration-card-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 8px;
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.restoration-card h4 {
    font-size: 1.3rem;
    font-weight: 500;
}

.restoration-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- AI Feasibility Analyzer Section --- */
.analyzer-section {
    padding: 8rem 0;
    background: rgba(11, 18, 16, 0.74);
    scroll-margin-top: 80px; /* Offset for fixed header */
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}

.analyzer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.analyzer-card {
    min-width: 0;
    min-height: 480px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
}

/* Dropzone styling */
.dropzone-panel {
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
    border: 2px dashed rgba(255,255,255,0.15);
    transition: var(--transition-smooth);
}

.dropzone-panel:hover {
    border-color: var(--primary);
    background: rgba(211, 97, 53, 0.02);
}

.dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.dropzone-icon-container {
    width: 80px;
    height: 80px;
    background-color: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
}

.dropzone-panel:hover .dropzone-icon-container {
    background-color: rgba(var(--primary-rgb), 0.1);
    border-color: rgba(var(--primary-rgb), 0.2);
    color: var(--primary-light);
}

.dropzone-icon {
    width: 32px;
    height: 32px;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.dropzone-panel:hover .dropzone-icon {
    color: var(--primary-light);
    transform: scale(1.1);
}

.dropzone-panel h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    font-family: var(--font-sans);
    font-weight: 600;
}

.dropzone-panel p {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.hidden-file-input {
    display: none;
}

.or-divider {
    width: 100%;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    margin: 1.5rem 0;
}

.or-divider::before, .or-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.or-divider::before {
    margin-right: 1rem;
}

.or-divider::after {
    margin-left: 1rem;
}

.url-input-container {
    width: 100%;
    display: flex;
    gap: 0.5rem;
}

.url-input-container input {
    min-width: 0;
    flex: 1;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-light);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    padding: 0.8rem 1rem;
    border-radius: 4px;
    outline: none;
    transition: var(--transition-smooth);
}

.url-input-container input:focus {
    border-color: var(--primary);
}

/* Results panel styling */
.results-panel {
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.results-empty {
    margin: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.placeholder-icon {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
}

.results-empty h3 {
    font-size: 1.4rem;
    font-family: var(--font-sans);
}

.results-empty p {
    font-size: 0.85rem;
    max-width: 300px;
}

/* Loading panel */
.results-loading {
    margin: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.05);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.results-loading h3 {
    font-size: 1.4rem;
    font-family: var(--font-sans);
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary);
    width: 0;
    transition: width 0.1s ease-in-out;
}

.progress-bar.bg-success {
    background-color: var(--success);
}

.progress-bar.bg-warning {
    background-color: var(--warning);
}

/* Results Data View */
.results-data {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
    animation: dataFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    min-width: 0;
}

.results-header h3 {
    font-size: 1.8rem;
    font-family: var(--font-serif);
    line-height: 1.25;
    padding-top: 0.35rem; /* Prevents top vertical clipping of serif font */
    min-width: 0;
    overflow-wrap: anywhere;
}

.report-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.divider {
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

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

.report-metric-box {
    min-width: 0;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 6px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.box-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
    overflow-wrap: anywhere;
}

.box-val {
    font-size: 1.25rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.report-metric-box.highlight {
    background: rgba(var(--primary-rgb), 0.05);
    border-color: rgba(var(--primary-rgb), 0.15);
}

.ai-score-panel {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.025);
}

.score-component-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.score-component {
    min-width: 0;
    padding: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.12);
}

.score-component-head {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 0;
}

.score-component-head span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.score-component-reason {
    margin-top: 0.25rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    line-height: 1.45;
}

.report-details {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    min-width: 0;
}

.details-title {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

.report-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.complexity-indicators {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.complexity-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.complexity-labels {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.75rem;
    min-width: 0;
}

.complexity-labels span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.report-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.report-actions .btn {
    flex: 1;
}

.hidden {
    display: none !important;
}

.property-source-metadata {
    margin-top: 0.2rem;
}

.property-source-metadata summary {
    color: var(--accent-gold);
    cursor: pointer;
    font-weight: 700;
}

.property-source-metadata div {
    margin-top: 0.25rem;
    line-height: 1.4;
}

.source-metadata-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.65rem;
    margin-top: 1rem;
}

.source-metadata-item {
    min-width: 0;
    padding: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.source-metadata-item strong {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--text-light);
}

.photo-analysis-panel {
    margin-top: 1rem;
    padding: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.12);
}

.photo-analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.photo-analysis-header strong {
    display: block;
    color: var(--text-light);
    font-size: 0.85rem;
}

.photo-analysis-header span {
    display: block;
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.45;
}

.photo-analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 0.55rem;
}

.photo-analysis-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.03);
}

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

.photo-analysis-thumb span {
    position: absolute;
    left: 0.25rem;
    top: 0.25rem;
    padding: 0.12rem 0.32rem;
    border-radius: 3px;
    background: rgba(11, 18, 16, 0.78);
    color: var(--text-light);
    font-size: 0.62rem;
    font-weight: 700;
}

/* --- Business Concept Section (Het Concept) --- */
.concept-section {
    position: relative;
    padding: 8rem 0;
    background: rgba(11, 18, 16, 0.72);
    overflow: hidden;
}

.concept-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/hero_background.png');
    background-size: cover;
    background-position: center;
    opacity: 0.16;
    pointer-events: none;
}

.concept-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(11, 18, 16, 0.56) 0%, rgba(11, 18, 16, 0.18) 50%, rgba(11, 18, 16, 0.7) 100%);
    pointer-events: none;
}

.concept-container {
    position: relative;
    z-index: 2;
}

.concept-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.concept-info-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.concept-demo-note {
    display: grid;
    gap: 0.45rem;
    max-width: 660px;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(211, 176, 96, 0.2);
    border-left: 3px solid rgba(211, 176, 96, 0.72);
    border-radius: 6px;
    background: rgba(211, 176, 96, 0.045);
}

.concept-demo-note span {
    width: fit-content;
    padding: 0.18rem 0.55rem;
    border: 1px solid rgba(211, 176, 96, 0.32);
    border-radius: 999px;
    color: var(--accent-gold);
    background: rgba(211, 176, 96, 0.08);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.concept-demo-note p {
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.concept-title {
    font-size: 3rem;
    line-height: 1.15;
}

.concept-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.concept-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    margin: 1rem 0;
}

.concept-features li {
    display: flex;
    gap: 1.2rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.concept-features h5 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.concept-features p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.concept-cta-box {
    margin-top: 1.5rem;
    padding: 2rem;
}

.cta-title {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
}

.cta-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Visual stack side */
.tech-card-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tech-card {
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: transparent;
    transition: var(--transition-smooth);
}

.tech-card.active {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.tech-card.active::before {
    background-color: var(--primary);
}

.card-num {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-light);
    display: block;
    margin-bottom: 0.6rem;
}

.tech-card h4 {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.tech-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- Main Footer --- */
.main-footer {
    background: rgba(11, 18, 16, 0.78);
    border-top: 1px solid var(--card-border);
    padding: 5rem 0 2.5rem 0;
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    font-size: 1.8rem;
}

.footer-slogan {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 320px;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.footer-socials a:hover {
    color: var(--primary-light);
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
}

.footer-links-grid {
    display: contents;
}

.links-col {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.links-col h4 {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
}

.links-col a {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.links-col a:hover {
    color: var(--primary-light);
    padding-left: 3px;
}

.contact-info-item {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-bottom {
    padding-top: 2.5rem;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1100px) {
    .nav-menu {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .header-actions {
        flex-shrink: 0;
    }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .dashboard-wrapper {
        grid-template-columns: 1fr;
    }
    
    .dashboard-controls {
        border-right: none;
        border-bottom: 1px solid var(--card-border);
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-start;
    }
    
    .control-group {
        flex: 1;
        min-width: 200px;
    }
    
    .ai-ticker-panel {
        width: 100%;
        border-top: 1px solid var(--card-border);
        padding-top: 1.5rem;
    }

    .analyzer-grid {
        grid-template-columns: 1fr;
        max-width: 760px;
        gap: 1.5rem;
    }

    .bonus-simulator-shell {
        grid-template-columns: 1fr;
    }

    .analyzer-card {
        min-height: auto;
        padding: 2rem;
    }
    
    .concept-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .header-container {
        height: 70px;
    }

    .logo {
        font-size: 1.25rem;
    }
    
    .header-actions {
        flex-shrink: 0;
        gap: 0.65rem;
    }
    
    .hero-title {
        font-size: 2.4rem;
    }
    
    .hero-lead {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-region-cta {
        width: 100%;
        max-width: 360px;
        align-items: stretch;
        flex-direction: column;
        gap: 0.45rem;
    }

    .hero-region-cta > span {
        padding-left: 0;
        text-align: center;
    }

    .hero-region-btn {
        width: 100%;
    }
    
    .search-box {
        flex-direction: column;
        padding: 0.5rem;
        background: rgba(255, 255, 255, 0.08);
    }
    
    .search-box input {
        width: 100%;
        padding: 0.6rem 0.5rem;
    }
    
    .search-btn {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }

    .dashboard-wrapper {
        display: block;
        overflow: hidden;
    }

    .dashboard-controls {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 1.1rem;
        padding: 1rem;
        width: 100%;
    }

    .control-group {
        flex: none;
        min-width: 0;
        width: 100%;
    }

    .dashboard-content {
        gap: 1.5rem;
        overflow: hidden;
        padding: 1rem;
        width: 100%;
    }

    .scout-ops-header {
        flex-direction: column;
        align-items: stretch;
    }

    .scout-ops-status {
        max-width: none;
    }

    .scout-ops-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .scout-ops-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .scout-ops-actions .btn {
        width: 100%;
    }

    .dashboard-tabs {
        gap: 0.5rem;
        margin-bottom: 1rem;
        max-width: 100%;
        overflow-x: auto;
        padding-bottom: 0.75rem;
        scrollbar-width: thin;
    }

    .db-tab-btn {
        flex: 0 0 auto;
        padding: 0.65rem 0.8rem;
        white-space: nowrap;
    }

    .bonus-simulator-shell {
        padding: 1rem;
    }

    .bonus-form-grid,
    .bonus-cost-grid,
    .bonus-toggle-grid,
    .bonus-summary-grid {
        grid-template-columns: 1fr;
    }

    .triage-grid,
    .report-triage-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-stats,
    .property-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .property-features {
        grid-template-columns: 1fr !important;
    }

    .score-component-grid,
    .source-metadata-grid {
        grid-template-columns: 1fr;
    }

    .analyzer-grid {
        max-width: 100%;
        width: 100%;
    }

    .analyzer-card {
        min-height: auto;
        min-width: 0;
        padding: 1.25rem;
        width: 100%;
    }

    .results-header,
    .report-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .results-header .badge {
        align-self: flex-start;
    }

    .report-grid,
    .fiscal-grid {
        grid-template-columns: 1fr;
    }

    .dropzone-content {
        min-width: 0;
    }

    .url-input-container {
        flex-direction: column;
    }

    .url-input-container input,
    .url-input-container .btn {
        width: 100%;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .scout-ops-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-tabs {
        flex-direction: column;
        overflow-x: visible;
    }

    .db-tab-btn {
        width: 100%;
        justify-content: flex-start;
        white-space: normal;
    }

    .db-tab-btn.active::after {
        display: none;
    }
}

/* Animations pulse utility */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .4; }
}

/* Scroll driven fades */
.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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


/* --- Dashboard Tabs & Layouts --- */
.dashboard-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.5rem;
}

.dashboard-help-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.4rem;
}

.db-tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: var(--transition-smooth);
}

.db-tab-btn:hover {
    color: var(--text-light);
}

.db-tab-btn.active {
    color: var(--primary);
}

.db-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -0.55rem;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

.db-tab-content {
    animation: fadeIn 0.4s ease-out;
}

.db-tab-content.hidden {
    display: none;
}

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

/* --- Keyword search input --- */
.dashboard-input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    padding: 0.8rem;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    outline: none;
    transition: var(--transition-smooth);
    width: 100%;
}

.dashboard-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
}

.dashboard-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.status-taxonomy {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.025);
}

.status-taxonomy-title {
    margin-bottom: 0.55rem;
    color: var(--text-light);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.status-taxonomy-row {
    display: grid;
    gap: 0.18rem;
    padding: 0.45rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.status-taxonomy-row span {
    color: var(--text-light);
    font-size: 0.78rem;
    font-weight: 600;
}

.status-taxonomy-row small {
    color: var(--text-muted);
    font-size: 0.7rem;
    line-height: 1.45;
}

.status-channel-counts {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.65rem;
}

.status-channel-count {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.7rem;
}

.status-channel-count strong {
    color: var(--text-light);
    font-weight: 600;
}

/* --- Badges & Freshness --- */
.property-location {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.property-age {
    color: var(--text-muted);
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.status-badge {
    top: 3.2rem !important; /* place below scout score and region badges */
}

.badge-new {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #fff !important;
    font-weight: 600;
}

.badge-price-drop {
    background: linear-gradient(135deg, #f97316, #ea580c) !important;
    color: #fff !important;
    font-weight: 600;
}

/* Channel specific badges */
.channel-badge {
    bottom: 1rem;
    left: 1rem;
    font-size: 0.65rem;
    font-weight: 600;
}

.badge-immobiliare {
    background-color: #005a9c !important;
    color: #fff !important;
}

.badge-idealista {
    background-color: #c2df1e !important;
    color: #2b390b !important;
}

.badge-aste {
    background-color: #7b2cbf !important;
    color: #fff !important;
}

.auction-badge {
    bottom: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #7b2cbf, #5a189a) !important;
    color: #fff !important;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}


/* --- Tab 2: AI Agent Workspace --- */
.agent-workspace {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .agent-workspace {
        grid-template-columns: 1fr;
    }
}

.agent-config-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 1.5rem;
}

.config-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.agent-demo-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0.18rem 0.55rem;
    border: 1px solid rgba(211, 176, 96, 0.38);
    border-radius: 999px;
    color: var(--accent-gold);
    background: rgba(211, 176, 96, 0.08);
    font-family: var(--font-sans);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.agent-demo-note {
    display: grid;
    gap: 0.2rem;
    margin-top: 1rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(211, 176, 96, 0.18);
    border-left: 3px solid rgba(211, 176, 96, 0.72);
    border-radius: 6px;
    background: rgba(211, 176, 96, 0.045);
}

.agent-demo-note strong {
    color: var(--text-light);
    font-size: 0.74rem;
}

.agent-demo-note span {
    color: var(--text-muted);
    font-size: 0.68rem;
    line-height: 1.45;
}

.config-fields {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.config-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.config-field label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Console style window */
.agent-console {
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    height: 320px;
    overflow: hidden;
}

.console-header {
    background: #161b22;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.console-title {
    font-size: 0.75rem;
    font-family: var(--font-sans);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-clear-console {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.7rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-clear-console:hover {
    color: var(--text-light);
}

.console-body {
    padding: 1rem;
    flex: 1;
    overflow-y: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    line-height: 1.4;
}

.console-line {
    margin-bottom: 0.4rem;
    color: #c9d1d9;
}

.console-line.system {
    color: #8b949e;
}

.console-line.success {
    color: #58a6ff;
}

.console-line.warning {
    color: #d29922;
}

.console-line.info {
    color: #58a6ff;
}

/* Tasks Table */
.active-tasks-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 1.5rem;
}

.active-tasks-panel h4 {
    margin-bottom: 1rem;
}

.tasks-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.tasks-table th, .tasks-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tasks-table th {
    color: var(--text-muted);
    font-weight: 600;
}

.tasks-table td {
    color: var(--text-light);
}

.badge-accent {
    background: rgba(var(--primary-rgb), 0.15);
    color: var(--primary);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* --- Tab 3: Reports & Alerts Workspace --- */
.reports-workspace {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .reports-workspace {
        grid-template-columns: 1fr;
    }
}

.report-settings-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.settings-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 0.5rem;
}

.settings-header h4 {
    margin: 0;
}

.settings-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.field-row label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.field-row.toggle-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 0.8rem;
    margin-top: 0.5rem;
}

.field-row.toggle-row span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
}

/* IOS Switch Toggle Switch styling */
.switch-toggle {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
}

.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: var(--text-light);
    transition: .4s;
    border-radius: 50%;
}

.switch-toggle input:checked + .switch-slider {
    background-color: var(--primary);
}

.switch-toggle input:checked + .switch-slider:before {
    transform: translateX(18px);
}

/* --- Info Trigger Button & Modal Overlay --- */
.btn-info-trigger {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--accent-gold);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    font-family: var(--font-sans);
    font-weight: 500;
    outline: none;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.section-info-trigger {
    margin-top: 0.2rem;
}

.btn-info-compact {
    margin: 0;
    padding: 0.42rem 0.75rem;
    border-radius: 6px;
    font-size: 0.68rem;
}

.concept-info-trigger {
    margin: 0.85rem 0 0.9rem;
}

.btn-info-trigger:hover {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: rgba(var(--primary-rgb), 0.3);
    color: var(--primary-light);
    transform: translateY(-1px);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 18, 16, 0.46);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000; /* Ensure overlay sits on top of everything, including fixed header */
    opacity: 1;
    transition: var(--transition-smooth);
}

.modal-overlay.hidden {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

.modal-card {
    width: 90%;
    max-width: 760px;
    padding: 3rem;
    position: relative;
    background: linear-gradient(145deg, rgba(18, 29, 26, 0.84), rgba(11, 18, 16, 0.78));
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.25rem;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.02);
}

.modal-close-btn:hover {
    color: var(--text-light);
    background-color: rgba(255, 255, 255, 0.08);
}

.modal-title {
    font-size: 2rem;
    font-family: var(--font-serif);
    margin-bottom: 1.5rem;
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 0.8rem;
}

.modal-intro {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.modal-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.modal-list li {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    position: relative;
    padding-left: 1.8rem;
}

.modal-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.1rem;
    color: var(--primary);
    font-weight: 800;
    font-size: 1rem;
}

.modal-list li strong {
    color: var(--primary-light);
    display: inline-block;
    margin-right: 0.2rem;
}

/* Modal animation */
.animate-fade-in {
    animation: modalFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-section-title {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-gold);
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 0.4rem;
}

.modal-poc-intro {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 300;
    line-height: 1.6;
}

.modal-poc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 0;
}

.modal-poc-list li {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    position: relative;
    padding-left: 1.8rem;
}

.modal-poc-list li::before {
    content: "⚡";
    position: absolute;
    left: 0;
    top: 0.1rem;
    color: var(--accent-gold);
    font-weight: 800;
    font-size: 0.85rem;
}

.modal-poc-list li strong {
    color: var(--text-light);
}

.modal-poc-list li span.implemented {
    color: var(--success);
    font-weight: 600;
}

.modal-poc-list li span.pending {
    color: var(--warning);
    font-weight: 600;
}

.modal-feature-list {
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}

.modal-feature-list li {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 6px;
    padding: 0.75rem 0.85rem 0.75rem 2rem;
}

.modal-feature-list li::before {
    left: 0.75rem;
    top: 0.78rem;
}

.generic-info-content {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.generic-info-lead {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
}

.generic-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.85rem;
}

.generic-info-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 6px;
    padding: 0.9rem;
}

.generic-info-card strong {
    display: block;
    color: var(--primary-light);
    font-size: 0.84rem;
    margin-bottom: 0.35rem;
}

.generic-info-card p {
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.55;
    margin: 0;
}

.generic-info-note {
    border-left: 3px solid var(--accent-gold);
    background: rgba(211, 176, 96, 0.07);
    color: var(--text-light);
    border-radius: 6px;
    padding: 0.85rem 1rem;
    font-size: 0.82rem;
    line-height: 1.55;
}

/* --- Fiscal Benefits Panel in AI Report --- */
.fiscal-benefits-panel {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(211, 176, 96, 0.04);
    border: 1px solid rgba(211, 176, 96, 0.12);
    border-radius: 10px;
    min-width: 0;
    overflow: hidden;
}

.fiscal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.fiscal-item {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.fiscal-item.highlight {
    background: rgba(91, 112, 83, 0.08);
    border-color: rgba(91, 112, 83, 0.2);
}

.fiscal-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.fiscal-val {
    font-size: 1.3rem;
    font-weight: 700;
    font-family: var(--font-sans);
    overflow-wrap: anywhere;
}

.fiscal-sub {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-style: italic;
    overflow-wrap: anywhere;
}

.fiscal-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    border-left: 3px solid var(--accent-gold);
    line-height: 1.5;
    min-width: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    .fiscal-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Brighter Tuscan page treatment --- */
body::after {
    background: rgba(11, 18, 16, 0.34);
}

.dashboard-section,
.bonus-section,
.slider-section,
.analyzer-section {
    background: linear-gradient(
        180deg,
        rgba(11, 18, 16, 0.22) 0%,
        rgba(11, 18, 16, 0.26) 46%,
        rgba(11, 18, 16, 0.38) 100%
    ) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.concept-section {
    background: rgba(11, 18, 16, 0.24) !important;
}

.concept-bg-image {
    opacity: 0.72;
}

.concept-overlay {
    background: linear-gradient(
        180deg,
        rgba(11, 18, 16, 0.22) 0%,
        rgba(11, 18, 16, 0.10) 48%,
        rgba(11, 18, 16, 0.36) 100%
    );
}

.dashboard-wrapper.glass-panel,
.bonus-simulator-shell.glass-panel,
.analyzer-card.glass-panel,
.before-after-container.glass-panel,
.concept-cta-box.glass-panel,
.tech-card.glass-panel {
    background: rgba(18, 29, 26, 0.48);
    border-color: rgba(255, 255, 255, 0.11);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.dashboard-controls,
.stat-card,
.scout-ops-panel,
.triage-panel,
.agent-config-panel,
.active-tasks-panel,
.report-settings-card {
    background: rgba(18, 29, 26, 0.50);
    border-color: rgba(255, 255, 255, 0.10);
}

.scout-ops-metric,
.triage-stat,
.bonus-summary-card,
.source-metadata-item,
.photo-analysis-panel,
.report-metric-box,
.fiscal-item {
    background: rgba(18, 29, 26, 0.38);
}

.concept-demo-note {
    background: rgba(18, 29, 26, 0.46);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.concept-demo-note p {
    color: rgba(249, 246, 240, 0.82);
}
