/* ============================================
   PropYield - Modern Mobile-First Styles
   ============================================ */

/* === CSS Variables === */
:root {
    /* Colors */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;

    --secondary: #10b981;
    --secondary-dark: #059669;

    --accent-blue: #3b82f6;
    --accent-orange: #f59e0b;
    --accent-pink: #ec4899;
    --accent-teal: #14b8a6;
    --accent-purple: #8b5cf6;

    --bg-dark: #0f0f1a;
    --bg-card: #1a1a2e;
    --bg-elevated: #252540;
    --bg-input: #16162b;

    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --text-muted: #6b6b80;

    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);

    /* Success/Error */
    --green: #10b981;
    --red: #ef4444;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-md: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 24px;
    --font-size-2xl: 32px;
    --font-size-3xl: 40px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition: 0.25s ease;
    --transition-slow: 0.4s ease;

    /* Bottom Nav Height */
    --bottom-nav-height: 72px;
    --header-height: 60px;
}

/* === Reset & Base === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === App Header === */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-md);
    z-index: 1000;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent-purple));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.brand-name {
    font-weight: 700;
    font-size: var(--font-size-lg);
    background: linear-gradient(135deg, var(--primary-light), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-nav {
    display: flex;
    gap: var(--space-sm);
}

.header-nav .nav-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    transition: var(--transition);
}

.header-nav .nav-link:hover,
.header-nav .nav-link.active {
    color: var(--primary-light);
    background: rgba(99, 102, 241, 0.1);
}

/* === Main Content === */
.app-main {
    padding-top: var(--header-height);
    padding-bottom: calc(var(--bottom-nav-height) + var(--space-lg));
    min-height: 100vh;
}

/* === Bottom Navigation === */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: rgba(15, 15, 26, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: var(--space-sm) var(--space-md);
    color: var(--text-muted);
    transition: var(--transition);
    border-radius: var(--radius-md);
}

.bottom-nav-item i {
    font-size: 20px;
}

.bottom-nav-item span {
    font-size: var(--font-size-xs);
    font-weight: 500;
}

.bottom-nav-item.active {
    color: var(--primary-light);
}

.bottom-nav-item.active i {
    transform: scale(1.1);
}

/* === Page Header === */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: var(--font-size-lg);
    font-weight: 600;
}

.back-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    color: var(--text-primary);
    background: var(--bg-elevated);
    transition: var(--transition);
    flex-shrink: 0;
}

.back-btn:hover {
    background: var(--primary);
    color: white;
}

.back-btn i {
    font-size: var(--font-size-md);
}

.header-spacer {
    width: 40px;
}

/* === Hero Section === */
.hero {
    padding: var(--space-xl) var(--space-md);
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-card) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    color: var(--primary-light);
    margin-bottom: var(--space-md);
}

.hero-title {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-light), var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: var(--font-size-md);
    margin-bottom: var(--space-lg);
    max-width: 400px;
}

.hero-stats {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-light);
}

.stat-label {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.hero-visual {
    display: none;
}

/* === Feature Cards === */
.features {
    padding: var(--space-xl) var(--space-md);
}

.section-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.section-title i {
    color: var(--primary-light);
}

.section-subtitle {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.feature-cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.feature-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.feature-card .card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.calculator-card .card-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.analyze-card .card-icon {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white;
}

.search-card .card-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.feature-card .card-content h3 {
    font-size: var(--font-size-md);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.feature-card .card-content p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

.feature-card .card-arrow {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    margin-left: auto;
    flex-shrink: 0;
}

.feature-card .card-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.calculator-card .card-glow {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent);
}

.analyze-card .card-glow {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2), transparent);
}

.search-card .card-glow {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2), transparent);
}

.feature-card:hover .card-glow {
    opacity: 1;
}

/* === Why Dubai Section === */
.why-dubai {
    padding: var(--space-xl) var(--space-md);
    background: var(--bg-card);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.benefit-item {
    padding: var(--space-md);
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    text-align: center;
}

.benefit-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-sm);
    background: rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-light);
}

.benefit-item h4 {
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.benefit-item p {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
}

/* === Quick Start Section === */
.quick-start {
    padding: var(--space-xl) var(--space-md);
    text-align: center;
}

.quick-start h2 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-sm);
}

.quick-start p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.action-btn.secondary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* === Loading Overlay === */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 26, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--space-md);
}

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

.loading-spinner p {
    color: var(--text-secondary);
}

/* === Form Styles === */
.calculator-container,
.analyze-container,
.search-container {
    padding: var(--space-md);
}

.calculator-form,
.analyze-form {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid var(--border);
}

/* Step Indicator */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-xl);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    transition: var(--transition);
}

.step.active .step-number {
    background: var(--primary);
    color: white;
}

.step.completed .step-number {
    background: var(--green);
    color: white;
}

.step-label {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

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

.step-line {
    width: 40px;
    height: 2px;
    background: var(--border);
    margin: 0 var(--space-sm);
    margin-bottom: 20px;
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.step-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.step-icon.blue {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
}

.step-icon.orange {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-orange);
}

.step-icon.green {
    background: rgba(16, 185, 129, 0.15);
    color: var(--secondary);
}

.step-icon.purple {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-purple);
}

.step-header h3 {
    font-size: var(--font-size-md);
    margin-bottom: 2px;
}

.step-header p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

/* Form Grid */
.form-grid {
    display: grid;
    gap: var(--space-md);
}

.form-grid.compact {
    grid-template-columns: repeat(2, 1fr);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.input-group label {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-secondary);
}

.input-field {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.input-field:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.input-field .prefix,
.input-field .suffix {
    padding: 0 var(--space-md);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    background: var(--bg-elevated);
    height: 48px;
    display: flex;
    align-items: center;
}

.input-field input {
    flex: 1;
    padding: var(--space-md);
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: var(--font-size-md);
    min-width: 0;
}

.input-field input:focus {
    outline: none;
}

.input-group.featured .input-field {
    border-color: var(--primary);
}

/* Info Box */
.info-box {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-md);
    margin-top: var(--space-md);
}

.info-box i {
    color: var(--accent-blue);
    flex-shrink: 0;
    margin-top: 2px;
}

.info-box p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-xl);
    gap: var(--space-md);
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--font-size-md);
    transition: var(--transition);
}

.nav-btn.prev {
    background: var(--bg-elevated);
    color: var(--text-secondary);
}

.nav-btn.next,
.nav-btn.submit {
    flex: 1;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* === Results Container === */
.results-container {
    margin-top: var(--space-lg);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.kpi-grid.compact {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
}

.kpi-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.kpi-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    border-color: rgba(16, 185, 129, 0.3);
}

.kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.kpi-icon.green {
    background: rgba(16, 185, 129, 0.15);
    color: var(--green);
}

.kpi-icon.blue {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
}

.kpi-icon.purple {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-purple);
}

.kpi-icon.orange {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-orange);
}

.kpi-icon.teal {
    background: rgba(20, 184, 166, 0.15);
    color: var(--accent-teal);
}

.kpi-icon.pink {
    background: rgba(236, 72, 153, 0.15);
    color: var(--accent-pink);
}

.kpi-content {
    display: flex;
    flex-direction: column;
}

.kpi-label {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.kpi-value {
    font-size: var(--font-size-lg);
    font-weight: 700;
}

.kpi-value.green {
    color: var(--green);
}

.kpi-value.blue {
    color: var(--accent-blue);
}

.kpi-value.orange {
    color: var(--accent-orange);
}

.kpi-value.teal {
    color: var(--accent-teal);
}

/* Summary Card */
.summary-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid var(--border);
    margin-bottom: var(--space-lg);
}

.summary-card h3 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-md);
    margin-bottom: var(--space-md);
}

.summary-card h3 i {
    color: var(--primary-light);
}

.summary-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border);
}

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

.summary-item span:first-child {
    color: var(--text-secondary);
}

.summary-item span:last-child {
    font-weight: 600;
}

.summary-item.total {
    padding-top: var(--space-md);
    margin-top: var(--space-sm);
    border-top: 2px solid var(--border);
}

.summary-item.total span:last-child {
    color: var(--primary-light);
    font-size: var(--font-size-lg);
}

/* Recalculate Button */
.recalculate-btn {
    width: 100%;
    padding: var(--space-md);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    transition: var(--transition);
}

.recalculate-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Calculate Button */
.calculate-btn {
    width: 100%;
    padding: var(--space-md);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    transition: var(--transition);
    margin-top: var(--space-md);
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* === Accordion === */
.accordion-section {
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    text-align: left;
    transition: var(--transition);
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.03);
}

.accordion-header i:first-child {
    color: var(--primary-light);
}

.accordion-header span {
    flex: 1;
}

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

.accordion-header.collapsed .accordion-chevron {
    transform: rotate(-90deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.active {
    max-height: 1000px;
    padding: 0 var(--space-md) var(--space-md);
}

/* === URL Analyzer === */
.url-input-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    border: 1px solid var(--border);
}

.url-input-section .section-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-md);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.url-input-section .section-icon.purple {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-purple);
}

.url-input-section h2 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-sm);
}

.url-input-section>p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.url-input-wrapper {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.url-input {
    flex: 1;
    padding: var(--space-md);
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--font-size-md);
}

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

.analyze-btn {
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(135deg, var(--accent-purple), #6d28d9);
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    transition: var(--transition);
}

.analyze-btn:hover {
    transform: translateY(-2px);
}

.how-it-works {
    text-align: left;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    padding: var(--space-md);
}

.how-it-works h4 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-sm);
    color: var(--accent-orange);
}

.how-it-works ul {
    list-style: none;
}

.how-it-works li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    padding: var(--space-xs) 0;
}

.how-it-works li i {
    color: var(--green);
    font-size: 12px;
}

/* Property Details */
.property-details {
    margin-top: var(--space-lg);
}

.property-card-header {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: var(--space-md);
}

.property-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.property-info {
    padding: var(--space-md);
}

.property-info h3 {
    font-size: var(--font-size-md);
    margin-bottom: var(--space-sm);
}

.property-price {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: var(--space-sm);
}

.property-specs {
    display: flex;
    gap: var(--space-md);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-sm);
}

.property-specs i {
    margin-right: var(--space-xs);
}

.property-location {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.property-location i {
    margin-right: var(--space-xs);
}

/* === Search Page === */
.search-filters {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid var(--border);
    margin-bottom: var(--space-lg);
}

.filter-row {
    margin-bottom: var(--space-md);
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-row.compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.location-input {
    position: relative;
}

.location-input .input-field {
    padding-left: var(--space-md);
}

.location-input .input-field i {
    color: var(--text-muted);
    margin-right: var(--space-sm);
}

.location-input .input-field input {
    padding-left: 0;
}

.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.suggestions-dropdown.visible {
    display: block;
}

.suggestion-item {
    padding: var(--space-md);
    cursor: pointer;
    transition: var(--transition);
}

.suggestion-item:hover {
    background: var(--bg-elevated);
}

.filter-select,
.filter-input {
    width: 100%;
    padding: var(--space-md);
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--font-size-sm);
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-btn {
    width: 100%;
    padding: var(--space-md);
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    transition: var(--transition);
}

.search-btn:hover {
    transform: translateY(-2px);
}

/* Property Grid */
.property-grid {
    display: grid;
    gap: var(--space-md);
}

.property-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}

.property-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.property-card-image {
    height: 160px;
    overflow: hidden;
    position: relative;
}

.property-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-card-badge {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    background: rgba(16, 185, 129, 0.9);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: white;
}

.property-card-body {
    padding: var(--space-md);
}

.property-card-price {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: var(--space-xs);
}

.property-card-title {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-card-meta {
    display: flex;
    gap: var(--space-md);
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.property-card-meta span i {
    margin-right: 4px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--space-2xl);
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-md);
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--text-muted);
}

.empty-state h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-sm);
}

.empty-state p {
    color: var(--text-secondary);
}

/* === Property Modal === */
.property-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: flex-end;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    position: relative;
    width: 100%;
    max-height: 90vh;
    background: var(--bg-dark);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    overflow-y: auto;
    padding: var(--space-lg);
    padding-bottom: calc(var(--space-lg) + env(safe-area-inset-bottom));
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 36px;
    height: 36px;
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    z-index: 10;
}

.modal-header {
    margin-bottom: var(--space-lg);
}

.modal-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.modal-info h2 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-xs);
}

.modal-price {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: var(--space-sm);
}

.modal-specs {
    display: flex;
    gap: var(--space-md);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-sm);
}

.modal-location {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.quick-roi {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.roi-item {
    background: var(--bg-card);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    text-align: center;
}

.roi-label {
    display: block;
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.roi-value {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--green);
}

.modal-results {
    margin: var(--space-md) 0;
}

.bayut-btn {
    width: 100%;
    padding: var(--space-md);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

/* === Desktop Styles === */
@media (min-width: 768px) {

    /* === Hero Desktop Enhancement === */
    .hero {
        padding: var(--space-2xl) var(--space-xl);
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 500px;
        max-width: 1200px;
        margin: 0 auto;
    }

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

    .hero-title {
        font-size: var(--font-size-3xl);
        line-height: 1.1;
    }

    .hero-title br {
        display: none;
    }

    .hero-subtitle {
        font-size: var(--font-size-lg);
        max-width: 500px;
        margin-bottom: var(--space-xl);
    }

    .hero-stats {
        gap: var(--space-xl);
    }

    .hero-stats .stat-item {
        background: var(--bg-card);
        padding: var(--space-md) var(--space-lg);
        border-radius: var(--radius-md);
        border: 1px solid var(--border);
    }

    .hero-stats .stat-value {
        font-size: var(--font-size-2xl);
    }

    .hero-stats .stat-label {
        font-size: var(--font-size-sm);
    }

    /* Floating Visual Cards */
    .hero-visual {
        display: block;
        position: relative;
        width: 350px;
        height: 350px;
        flex-shrink: 0;
    }

    .floating-card {
        position: absolute;
        display: flex;
        align-items: center;
        gap: var(--space-sm);
        padding: var(--space-md) var(--space-lg);
        background: var(--bg-card);
        border-radius: var(--radius-md);
        border: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        animation: float 6s ease-in-out infinite;
    }

    .floating-card i {
        font-size: 20px;
    }

    .floating-card span {
        font-weight: 600;
        font-size: var(--font-size-sm);
    }

    .floating-card.card-1 {
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        animation-delay: 0s;
    }

    .floating-card.card-1 i {
        color: var(--green);
    }

    .floating-card.card-2 {
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        animation-delay: 2s;
    }

    .floating-card.card-2 i {
        color: var(--accent-orange);
    }

    .floating-card.card-3 {
        bottom: 20px;
        right: 0;
        animation-delay: 4s;
    }

    .floating-card.card-3 i {
        color: var(--accent-blue);
    }

    @keyframes float {

        0%,
        100% {
            transform: translateY(0) translateX(var(--tx, 0));
        }

        50% {
            transform: translateY(-15px) translateX(var(--tx, 0));
        }
    }

    .floating-card.card-1 {
        --tx: -50%;
    }

    .floating-card.card-2 {
        --tx: 0;
    }

    .feature-cards {
        flex-direction: row;
    }

    .feature-card {
        flex: 1;
        flex-direction: column;
        text-align: center;
    }

    .feature-card .card-arrow {
        display: none;
    }

    .quick-actions {
        flex-direction: row;
        justify-content: center;
    }

    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .property-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .bottom-nav {
        display: none;
    }

    .app-main {
        padding-bottom: var(--space-xl);
    }

    .calculator-container,
    .analyze-container,
    .search-container {
        max-width: 800px;
        margin: 0 auto;
    }

    .property-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .kpi-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .kpi-card.featured {
        grid-column: span 1;
    }
}

/* ============================================
   ADDITIONAL STYLES FOR SEARCH & DETAIL VIEW
   ============================================ */

/* === Property Detail View === */
.property-detail-view {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-dark);
    overflow-y: auto;
    z-index: 100;
    padding-bottom: calc(var(--bottom-nav-height) + var(--space-xl));
}

.detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.detail-header h1 {
    font-size: var(--font-size-md);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* === Image Carousel === */
.image-carousel {
    position: relative;
    height: 280px;
    background: var(--bg-card);
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-container img.active {
    opacity: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 5;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.carousel-btn.prev {
    left: var(--space-md);
}

.carousel-btn.next {
    right: var(--space-md);
}

.carousel-dots {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-sm);
    z-index: 5;
}

.carousel-dots .dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dots .dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

/* === Detail Content === */
.detail-content {
    padding: var(--space-lg);
}

.detail-price {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: var(--space-sm);
}

.detail-specs {
    display: flex;
    gap: var(--space-lg);
    color: var(--text-secondary);
    font-size: var(--font-size-md);
    margin-bottom: var(--space-sm);
}

.detail-specs i {
    margin-right: var(--space-xs);
    color: var(--text-muted);
}

.detail-location {
    color: var(--text-muted);
    font-size: var(--font-size-md);
    margin-bottom: var(--space-lg);
}

.detail-location i {
    margin-right: var(--space-sm);
}

/* === Quick Stats === */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.quick-stats .stat-item {
    background: var(--bg-card);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    text-align: center;
}

.quick-stats .stat-label {
    display: block;
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.quick-stats .stat-value {
    font-size: var(--font-size-lg);
    font-weight: 700;
}

.quick-stats .stat-value.green {
    color: var(--green);
}

.quick-stats .stat-value.blue {
    color: var(--accent-blue);
}

.quick-stats .stat-value.orange {
    color: var(--accent-orange);
}

/* === Detail Sections === */
.detail-section {
    margin-bottom: var(--space-lg);
}

.detail-section h3 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-md);
    margin-bottom: var(--space-md);
}

.detail-section h3 i {
    color: var(--primary-light);
}

.detail-section p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

/* === Amenities Grid === */
.amenities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.amenity-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
}

.amenity-tag i {
    color: var(--green);
    font-size: 10px;
}

.no-data {
    color: var(--text-muted);
    font-style: italic;
}

/* === Results Section === */
.results-section {
    margin-top: var(--space-xl);
}

.results-section h3 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-lg);
}

.results-section h3 i {
    color: var(--primary-light);
}

/* === Summary Card Enhancement === */
.summary-card h4 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-md);
    margin-bottom: var(--space-md);
}

.summary-card h4 i {
    color: var(--primary-light);
}

/* === Table Card === */
.table-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid var(--border);
    margin-bottom: var(--space-lg);
}

.table-card h4 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-md);
    margin-bottom: var(--space-md);
}

.table-card h4 i {
    color: var(--primary-light);
}

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
}

.data-table th,
.data-table td {
    padding: var(--space-sm) var(--space-md);
    text-align: right;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: var(--bg-elevated);
    font-weight: 600;
    color: var(--text-secondary);
    position: sticky;
    top: 0;
}

.data-table th:first-child,
.data-table td:first-child {
    text-align: left;
}

.data-table td.positive {
    color: var(--green);
}

.data-table td.negative {
    color: var(--red);
}

/* === Register Button === */
.register-btn {
    width: 100%;
    padding: var(--space-lg);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    font-size: var(--font-size-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
    transition: var(--transition);
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* === Lead Form Modal === */
.lead-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

.lead-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
}

.lead-modal .modal-content {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    animation: slideUp 0.3s ease;
}

.lead-modal .modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 36px;
    height: 36px;
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.lead-modal h2 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-xs);
}

.lead-modal>.modal-content>p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.lead-form .input-group {
    margin-bottom: var(--space-md);
}

.lead-form input,
.lead-form textarea {
    width: 100%;
    padding: var(--space-md);
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--font-size-md);
}

.lead-form input:focus,
.lead-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.lead-form textarea {
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: var(--space-md);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

/* === Property Card Enhancements === */
.property-card-roi {
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.property-card-roi .roi-item {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.property-card-roi .roi-item i {
    font-size: 10px;
}

.property-card-roi .roi-item.yield {
    color: var(--green);
    font-weight: 600;
}

.property-card-roi .loading-text {
    color: var(--text-muted);
    font-size: var(--font-size-xs);
}

.property-card-badge.loading-badge {
    background: var(--bg-elevated);
    color: var(--text-muted);
}

/* === Responsive Enhancements === */
@media (min-width: 768px) {
    .quick-stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .image-carousel {
        height: 400px;
    }

    .detail-content {
        max-width: 800px;
        margin: 0 auto;
    }
}

/* === URL Input Section (Analyze Page) === */
.url-input-section {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
}

.url-input-section .section-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.url-input-section .section-icon.purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.1));
    color: var(--accent-purple);
}

.url-input-section h2 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-sm);
}

.url-input-section>p {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.url-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.url-input {
    width: 100%;
    padding: var(--space-lg);
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--font-size-md);
}

.url-input:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.analyze-btn {
    width: 100%;
    padding: var(--space-lg);
    background: linear-gradient(135deg, var(--accent-purple), #6d28d9);
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    font-size: var(--font-size-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    transition: var(--transition);
}

.analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.how-it-works {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: left;
}

.how-it-works h4 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-md);
    margin-bottom: var(--space-md);
}

.how-it-works h4 i {
    color: var(--accent-orange);
}

.how-it-works ul {
    list-style: none;
}

.how-it-works li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-sm);
}

.how-it-works li i {
    color: var(--green);
    font-size: 12px;
}

@media (min-width: 768px) {
    .url-input-wrapper {
        flex-direction: row;
    }

    .url-input {
        flex: 1;
    }

    .analyze-btn {
        width: auto;
        padding: var(--space-lg) var(--space-xl);
    }
}

/* === Results Header === */
.results-header {
    text-align: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border);
}

.results-header h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-xs);
}

.results-header h2 i {
    color: var(--primary-light);
}

.results-header p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

/* === KPI Sub-labels === */
.kpi-sub {
    display: block;
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

/* === Recalculate Button Enhancement === */
.recalculate-btn {
    width: 100%;
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 600;
    font-size: var(--font-size-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    transition: var(--transition);
}

.recalculate-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--primary);
}

.recalculate-btn i {
    color: var(--primary-light);
}

/* === Params Accordion === */
.params-accordion {
    margin: var(--space-lg) 0;
}

.accordion-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.accordion-toggle:hover {
    background: var(--bg-elevated);
}

.accordion-toggle span {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.accordion-toggle i:first-child {
    color: var(--accent-orange);
}

.accordion-icon {
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

/* Override the global accordion-content for params accordion */
.params-accordion .accordion-content {
    max-height: none;
    overflow: visible;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: var(--space-lg);
}

.params-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.param-group h5 {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.param-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.param-item {
    display: flex;
    flex-direction: column;
}

.param-item label {
    display: block;
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.param-input {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.param-input input {
    flex: 1;
    padding: var(--space-sm) var(--space-sm);
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    min-width: 0;
}

.param-input input:focus {
    outline: none;
}

.param-input span {
    padding: var(--space-sm);
    color: var(--text-muted);
    font-size: var(--font-size-xs);
    background: var(--bg-elevated);
    white-space: nowrap;
}

.recalc-btn {
    width: 100%;
    padding: var(--space-md);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    transition: var(--transition);
}

.recalc-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* === Table Enhancements === */
.table-subtitle {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin: calc(-1 * var(--space-sm)) 0 var(--space-md) 0;
}

.data-table.compact th,
.data-table.compact td {
    padding: var(--space-sm);
    font-size: var(--font-size-xs);
}

.loading-text {
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
}

.no-data {
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
}

td.no-data {
    padding: var(--space-lg) !important;
}

/* Responsive params grid */
@media (min-width: 768px) {
    .param-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* === Description HTML Styling === */
#detail-description {
    line-height: 1.6;
    color: var(--text-secondary);
}

#detail-description strong {
    color: var(--text-primary);
    font-weight: 600;
}

#detail-description ul {
    margin: var(--space-sm) 0;
    padding-left: var(--space-lg);
}

#detail-description li {
    margin-bottom: var(--space-xs);
}
/* === Footer Styles === */
.app-footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    padding: var(--space-xl) var(--space-md);
    margin-bottom: calc(var(--bottom-nav-height) + var(--space-md));
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    margin-bottom: var(--space-md);
}

.footer-logo {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--primary);
}

.footer-tagline {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-md);
}

.footer-links a {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-info {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.footer-location {
    margin-bottom: var(--space-xs);
}

.footer-location i {
    color: var(--accent-red);
    margin-right: var(--space-xs);
}

.footer-copyright {
    opacity: 0.7;
}

/* === Authentication Pages === */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    padding-bottom: calc(var(--bottom-nav-height) + var(--space-lg));
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.auth-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-md);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary-light);
}

.auth-icon.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    color: var(--green);
}

.auth-header h1 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-sm);
}

.auth-header p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-group label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-secondary);
}

.input-field {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0 var(--space-md);
    transition: var(--transition);
}

.input-field:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.input-field i {
    color: var(--text-muted);
    margin-right: var(--space-sm);
}

.input-field input,
.input-field select {
    flex: 1;
    background: transparent;
    border: none;
    padding: var(--space-md) 0;
    color: var(--text-primary);
    font-size: var(--font-size-md);
}

.input-field input:focus,
.input-field select:focus {
    outline: none;
}

.input-field select {
    cursor: pointer;
}

.toggle-password {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--space-xs);
    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--primary-light);
}

.field-hint {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-top: calc(-1 * var(--space-xs));
}

.privacy-notice {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-md);
    font-size: var(--font-size-xs);
}

.privacy-notice i {
    color: var(--accent-blue);
    flex-shrink: 0;
    margin-top: 2px;
}

.privacy-notice p {
    color: var(--text-secondary);
    margin: 0;
}

.alert {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-md);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--red);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--green);
}

.auth-submit-btn {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-md);
    border: none;
    color: white;
    font-weight: 600;
    font-size: var(--font-size-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    cursor: pointer;
    transition: var(--transition);
}

.auth-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-footer {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.auth-footer a:hover {
    color: var(--primary);
}

.form-utilities {
    display: flex;
    justify-content: flex-end;
    margin-top: calc(-1 * var(--space-sm));
}

.forgot-link {
    font-size: var(--font-size-sm);
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

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

.resend-btn {
    background: transparent;
    border: none;
    color: var(--primary-light);
    font-size: var(--font-size-xs);
    cursor: pointer;
    padding: var(--space-xs) 0;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    transition: var(--transition);
}

.resend-btn:hover {
    color: var(--primary);
}

.resend-btn i {
    font-size: 10px;
}

/* Mobile Optimizations for Auth */
@media (max-width: 480px) {
    .auth-card {
        padding: var(--space-lg);
    }
    
    .auth-header h1 {
        font-size: var(--font-size-lg);
    }
}

/* === Pricing Page === */
.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-md);
    padding-bottom: calc(var(--bottom-nav-height) + var(--space-lg));
}

.pricing-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.pricing-header h1 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-sm);
}

.pricing-header p {
    color: var(--text-secondary);
    font-size: var(--font-size-md);
}

.pricing-grid {
    display: grid;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--green);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.pricing-card.premium {
    border-color: var(--accent-purple);
}

.pricing-card.lifetime {
    border-color: var(--accent-orange);
}

.pricing-card.current {
    opacity: 0.7;
}

.plan-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: var(--space-xs) var(--space-md);
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--text-secondary);
}

.plan-badge.popular {
    background: linear-gradient(135deg, var(--green), var(--secondary-dark));
    color: white;
}

.plan-badge.premium {
    background: linear-gradient(135deg, var(--accent-purple), #6d28d9);
    color: white;
}

.plan-badge.lifetime {
    background: linear-gradient(135deg, var(--accent-orange), #d97706);
    color: white;
}

.plan-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.plan-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-md);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary-light);
}

.plan-icon.green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    color: var(--green);
}

.plan-icon.purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05));
    color: var(--accent-purple);
}

.plan-icon.gold {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
    color: var(--accent-orange);
}

.plan-header h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-md);
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--space-xs);
}

.plan-price .currency {
    font-size: var(--font-size-md);
    color: var(--text-secondary);
}

.plan-price .price {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--primary-light);
}

.plan-price .period {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.plan-features {
    margin-bottom: var(--space-xl);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    font-size: var(--font-size-sm);
}

.feature-item i {
    color: var(--green);
    flex-shrink: 0;
}

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

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

.feature-item.info i {
    color: var(--accent-blue);
}

.feature-item.special i {
    color: var(--accent-orange);
}

.plan-btn {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-md);
    border: none;
    color: white;
    font-weight: 600;
    font-size: var(--font-size-md);
    text-align: center;
    text-decoration: none;
    display: block;
    cursor: pointer;
    transition: var(--transition);
}

.plan-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.plan-btn.featured {
    background: linear-gradient(135deg, var(--green), var(--secondary-dark));
}

.plan-btn.premium {
    background: linear-gradient(135deg, var(--accent-purple), #6d28d9);
}

.plan-btn.lifetime {
    background: linear-gradient(135deg, var(--accent-orange), #d97706);
}

.plan-btn.current {
    background: var(--bg-elevated);
    color: var(--text-muted);
    cursor: not-allowed;
}

.usage-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.stats-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-light);
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.stat-value {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-primary);
}

.pricing-faq {
    max-width: 800px;
    margin: 0 auto;
}

.pricing-faq h2 {
    text-align: center;
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-xl);
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
}

.faq-item h4 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-md);
    margin-bottom: var(--space-sm);
    color: var(--primary-light);
}

.faq-item p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

/* Mobile Optimizations for Pricing */
@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

/* === Home Page Enhancements === */

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.hero-btn {
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--font-size-md);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    transition: var(--transition);
}

.hero-btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-md);
}

.hero-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-btn.secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.hero-btn.secondary:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Pricing Section on Home */
.pricing-section {
    padding: var(--space-2xl) var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-grid-home {
    display: grid;
   gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.pricing-card-home {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    position: relative;
    transition: var(--transition);
    text-align: center;
}

.pricing-card-home:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card-home.featured {
    border-color: var(--green);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.price-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: var(--space-xs) var(--space-md);
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.price-badge.popular {
    background: linear-gradient(135deg, var(--green), var(--secondary-dark));
    color: white;
}

.price-badge.premium {
    background: linear-gradient(135deg, var(--accent-purple), #6d28d9);
    color: white;
}

.price-badge.lifetime {
    background: linear-gradient(135deg, var(--accent-orange), #d97706);
    color: white;
}

.price-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-md);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary-light);
}

.pricing-card-home h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-md);
}

.price-amount {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: var(--space-md);
}

.price-amount span {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.price-note {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-top: calc(-1 * var(--space-sm));
    margin-bottom: var(--space-md);
}

.price-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.price-features li {
    padding: var(--space-sm) 0;
    font-size: var(--font-size-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.price-features i {
    color: var(--green);
}

.pricing-cta {
    text-align: center;
    margin-top: var(--space-xl);
}

/* Responsive Pricing Grid */
@media (min-width: 768px) {
    .pricing-grid-home {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .pricing-grid-home {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-btn {
        width: 100%;
        justify-content: center;
    }
}
