/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* EquityNgin Dark Theme */
    --bg-dark: #0a0a0a;
    --bg-darker: #000000;
    --bg-card: #121212;
    --bg-hover: #1a1a1a;
    --bg-input: #1f1f1f;
    
    /* EquityNgin Orange */
    --accent-orange: #f97316;
    --accent-orange-hover: #fb923c;
    --accent-orange-dark: #ea580c;
    
    /* Text Colors */
    --text-primary: #fafafa;
    --text-secondary: #8c8c8c;
    --text-tertiary: #8c8c8c;
    
    /* Borders and accents */
    --border-color: #292929;
    --border-light: #292929;
    
    /* Semantic colors */
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #f97316;
    
    /* Shadows */
    --shadow: 0 1px 0 0 hsl(0 0% 20%), 0 4px 20px -2px hsl(0 0% 0% / 0.5);
    --shadow-lg: 0 0 30px -5px rgba(249, 115, 22, 0.3);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.5);
    
    /* Typography */
    --font-display: 'JetBrains Mono', monospace;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Border Radius */
    --radius: 0.25rem;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
}

.btn, button {
    font-family: var(--font-display);
    font-weight: 500;
}

label {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 12px;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 50%, #1a0f0a 100%);
    padding: 20px;
}

.login-box {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--border-light);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-tagline {
    font-size: 16px;
    color: var(--accent-orange);
    font-weight: 500;
    margin-top: 0;
    letter-spacing: 0.5px;
}

.logo {
    display: inline-block;
    margin-bottom: 20px;
}

.login-header h1 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.login-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.login-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: var(--font-mono);
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--bg-input);
    color: var(--text-primary);
}

.login-form input::placeholder {
    color: var(--text-tertiary);
}

.login-form input:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

.login-footer {
    margin-top: 20px;
    text-align: center;
}

.text-muted {
    color: var(--text-secondary);
    font-size: 13px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.btn-primary {
    background: var(--accent-orange);
    color: #050505;
}

.btn-primary:hover {
    background: var(--accent-orange-hover);
    transform: translateY(-1px);
    box-shadow: 0 0 30px -5px rgba(249, 115, 22, 0.3);
}

.btn-primary:disabled {
    background: var(--text-tertiary);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-secondary {
    background: var(--bg-hover);
    color: var(--accent-orange);
    border: 1px solid var(--accent-orange);
}

.btn-secondary:hover {
    background: var(--accent-orange);
    color: #050505;
    transform: translateY(-1px);
    box-shadow: 0 0 30px -5px rgba(249, 115, 22, 0.3);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* Flash Messages */
.flash-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.flash {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 10px;
    box-shadow: var(--shadow-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 2s forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.flash-success {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border-left: 4px solid var(--success-color);
}

.flash-error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-left: 4px solid var(--error-color);
}

.flash-info {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
    border-left: 4px solid var(--info-color);
}

.flash-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border-left: 4px solid var(--warning-color);
}

.flash-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: inherit;
    opacity: 0.5;
    margin-left: 10px;
}

.flash-close:hover {
    opacity: 1;
}

/* Dashboard */
.dashboard {
    min-height: 100vh;
    background: var(--bg-dark);
}

.navbar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar-user {
    font-size: 14px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-header {
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 32px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.page-header p {
    color: var(--text-secondary);
}

.page-actions {
    display: flex;
    justify-content: flex-end;
    margin: -20px 0 30px;
}

/* Status Cards */
.status-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.status-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    gap: 16px;
    align-items: center;
    border: 1px solid var(--border-light);
    transition: all 0.2s;
}

.status-card:hover {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.1);
}

.status-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.status-success .status-icon {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success-color);
}

.status-warning .status-icon {
    background: rgba(249, 115, 22, 0.15);
    color: var(--accent-orange);
}

.status-info .status-icon {
    background: rgba(249, 115, 22, 0.15);
    color: var(--info-color);
}

.status-content h3 {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 4px;
}

.status-content p {
    font-size: 20px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
    margin-bottom: 24px;
    border-left: 4px solid var(--accent-orange);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--accent-orange);
}

.card h2 {
    font-size: 24px;
    margin-bottom: 16px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.card-header h2 {
    margin: 0;
}

.action-section,
.results-section {
    margin-bottom: 40px;
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    border-left: 4px solid;
    background: var(--bg-card);
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border-color: var(--success-color);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border-color: var(--warning-color);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: var(--error-color);
}

.alert-info {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
    border-color: var(--info-color);
}

.alert ul {
    margin-left: 20px;
}

/* Analysis Progress */
.analysis-progress {
    text-align: center;
    padding: 40px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--accent-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Analysis Results */
.analysis-results {
    margin-top: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

.form-group .hint {
    display: block;
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 12px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.stat-item {
    background: var(--bg-color);
    padding: 16px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.stat-value {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-orange);
    font-family: var(--font-mono);
}

.stat-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all 0.2s;
}

.stat-card:hover {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.1);
}

.stat-card h3 {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 8px;
}

.stat-card .stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-orange);
    font-family: var(--font-mono);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table thead {
    background: var(--bg-hover);
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.table th {
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
    background: rgba(26, 26, 26, 0.3);
    font-family: var(--font-mono);
}

.table tbody tr:hover {
    background: rgba(26, 26, 26, 0.5);
}

.table-striped tbody tr:nth-child(odd) {
    background: #121212;
}

/* Pandas generated table styling */
.table tbody tr td {
    color: var(--text-primary);
    border-color: var(--border-color);
}

table thead tr {
    background: var(--bg-hover);
}

table thead tr th {
    color: var(--text-secondary);
    background: rgba(26, 26, 26, 0.3);
    border-bottom: 1px solid var(--border-color);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.05em;
}

table tbody tr {
    background: transparent;
}

table tbody tr:hover {
    background: rgba(26, 26, 26, 0.5);
}

table tbody tr td {
    padding: 12px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-mono);
    font-size: 14px;
}

table tbody tr:nth-child(odd) {
    background: #121212;
}

/* File Management */
.filename-input {
    padding: 6px 10px;
    border: 2px solid var(--accent-orange);
    border-radius: var(--radius);
    font-size: 14px;
    width: 300px;
    max-width: 100%;
    background: var(--bg-input);
    color: var(--text-primary);
    font-family: var(--font-mono);
    transition: all 0.2s;
}

.filename-input:focus {
    outline: none;
    border-color: var(--accent-orange-hover);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

/* Logo and Branding */
.logo {
    display: inline-block;
    height: 40px;
    width: auto;
}

.logo img {
    height: 100%;
    width: auto;
    display: block;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

.navbar-brand .logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-brand .logo img {
    height: 50px;
    width: auto;
    display: block;
}

.navbar-brand:hover {
    color: var(--accent-orange);
}

.login-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
}

.login-logo img {
    height: 100px;
    width: auto;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 16px;
    }
    
    .navbar-menu {
        width: 100%;
        justify-content: space-between;
    }
    
    .status-cards {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    .filename-input {
        width: 200px;
    }
    
    .engine-tabs {
        flex-direction: column;
    }
    
    .engine-tab {
        justify-content: flex-start;
    }
}

/* ======================================
   ENGINE TABS STYLING
   ====================================== */

.engine-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    padding: 8px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
    overflow-x: auto;
}

.engine-tab {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all 0.2s ease;
}

.engine-tab:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.engine-tab.active {
    background: var(--accent-orange);
    color: #050505;
    box-shadow: 0 0 30px -5px rgba(249, 115, 22, 0.3);
}

.engine-icon {
    font-size: 20px;
}

.engine-name {
    white-space: nowrap;
}

/* Engine Content Sections */
.engine-content {
    display: none;
}

.engine-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Coming Soon Card Styling */
.coming-soon-card {
    text-align: center;
    padding: 60px 40px;
    max-width: 600px;
    margin: 40px auto;
}

.coming-soon-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.coming-soon-card h2 {
    color: var(--accent-orange);
    font-size: 28px;
    margin-bottom: 15px;
}

.coming-soon-card p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 25px;
}

.feature-list {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 300px;
    margin: 0 auto;
}

.feature-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-weight: bold;
}

/* =============================================================================
   PRICE-NGIN FEATURE GRID STYLES
   ============================================================================= */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.feature-card:hover {
    border-color: var(--accent-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.15);
}

.feature-card.selected {
    border-color: var(--accent-orange);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.2);
}

.feature-card.stub {
    opacity: 0.85;
}

.feature-card .feature-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.feature-card .feature-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.feature-card .feature-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.feature-card .feature-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent-orange);
    color: #000;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Engine Configuration Panel */
.engine-config-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.engine-config-header .config-icon {
    font-size: 40px;
}

.engine-config-header h2 {
    margin: 0 0 4px 0;
    font-size: 20px;
}

.engine-config-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.config-section {
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
}

.config-section h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: var(--text-primary);
}

.config-hint {
    margin: 0 0 16px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.cascading-filters {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.filter-count {
    color: var(--accent-orange);
    font-weight: 600;
}

.filter-arrow {
    display: flex;
    align-items: center;
    padding-top: 24px;
    color: var(--text-secondary);
    font-size: 18px;
}

.bedroom-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bedroom-btn {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all 0.2s ease;
}

.bedroom-btn:hover {
    border-color: var(--accent-orange);
}

.bedroom-btn.selected {
    border-color: var(--accent-orange);
    background: rgba(249, 115, 22, 0.15);
    color: var(--accent-orange);
    font-weight: 600;
}

.bedroom-btn .count {
    font-size: 11px;
    color: var(--text-secondary);
    display: block;
    margin-top: 2px;
}

.bedroom-btn.selected .count {
    color: var(--accent-orange);
}

.year-range {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.year-range .filter-group {
    flex: 0 1 180px;
    min-width: 140px;
}

.range-separator {
    padding-bottom: 10px;
    color: var(--text-secondary);
}

.config-summary {
    padding: 16px;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
}

.config-summary strong {
    color: var(--accent-orange);
}

.config-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}

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

/* Results section */
.summary-box {
    padding: 20px;
    border-radius: var(--radius);
    font-size: 15px;
    line-height: 1.6;
}

.summary-box.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.summary-box.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.loading-spinner {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    grid-column: 1 / -1;
}

/* Result Stats Cards */
.result-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}

.stat-card .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-orange);
    font-family: var(--font-mono);
    margin-bottom: 4px;
}

.stat-card .stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-mono);
}

.stat-card.positive .stat-value {
    color: #22c55e;
}

.stat-card.negative .stat-value {
    color: #ef4444;
}

/* Appreciation Table */
.appreciation-table-container {
    margin-top: 24px;
}

.appreciation-table-container h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: var(--text-primary);
}

.table-description {
    margin: 0 0 16px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.appreciation-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.appreciation-table th {
    background: var(--bg-hover);
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-mono);
}

.appreciation-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.appreciation-table tr:last-child td {
    border-bottom: none;
}

.appreciation-table tr:hover {
    background: rgba(26, 26, 26, 0.5);
}

.appreciation-table .price {
    font-weight: 600;
    font-family: var(--font-mono);
}

.appreciation-table .change-positive {
    color: #22c55e;
    font-weight: 600;
}

.appreciation-table .change-negative {
    color: #ef4444;
    font-weight: 600;
}

.appreciation-table .change-neutral {
    color: var(--text-secondary);
}

.appreciation-table .year-number {
    font-weight: 600;
    color: var(--accent-orange);
    font-family: var(--font-mono);
}

.appreciation-table .transactions {
    color: var(--text-secondary);
    font-size: 13px;
}

/* Offplan-Ngin Styles */
.offplan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.offplan-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.2s ease;
}

.offplan-card:hover {
    border-color: var(--accent-orange);
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.2);
    transform: translateY(-2px);
}

.offplan-card-header {
    background: var(--bg-hover);
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.offplan-card-header h3 {
    margin: 0 0 10px 0;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
}

.developer-badge {
    display: inline-block;
    background: var(--accent-orange);
    color: #050505;
    padding: 4px 12px;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-mono);
    text-transform: uppercase;
}

.offplan-card-body {
    padding: 20px;
}

.offplan-card-body p {
    margin: 10px 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.offplan-card-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

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

.offplan-card-footer .btn {
    width: 100%;
    padding: 12px;
    font-weight: 600;
}

/* Appreciation score badges */
.appreciation-score-badge {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.appreciation-score-badge small {
    font-size: 12px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    opacity: 0.9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cascading-filters {
        flex-direction: column;
    }
    
    .filter-arrow {
        display: none;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .year-range {
        flex-direction: column;
    }
    
    .range-separator {
        display: none;
    }
    
    .appreciation-table {
        font-size: 12px;
    }
    
    .appreciation-table th,
    .appreciation-table td {
        padding: 10px 12px;
    }
    
    .offplan-grid {
        grid-template-columns: 1fr;
    }
}
