
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1a202c;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(30, 58, 138, 0.6) 0%, transparent 50%),
        linear-gradient(135deg, #1e3a8a 0%, #3730a3 25%, #4338ca 50%, #6366f1 75%, #1e3a8a 100%);
    background-attachment: fixed;
    background-size: 400% 400%;
    min-height: 100vh;
    animation: crystalShine 8s ease-in-out infinite;
}

@keyframes crystalShine {
    0%, 100% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 50% 100%;
    }
    75% {
        background-position: 50% 0%;
    }
}

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

/* Header */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo i {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
}

.user-info i {
    font-size: 1.5rem;
    color: #2563eb;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 140px);
    padding: 2rem 0;
    position: relative;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(102, 126, 234, 0.05) 0%, transparent 50%);
    backdrop-filter: blur(1px);
    pointer-events: none;
    animation: floatingBackground 20s ease-in-out infinite;
}

@keyframes floatingBackground {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

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

.page-header h1 {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #6b7280;
    font-size: 1.1rem;
}

/* Dashboard Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.stat-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.2) 0%, transparent 50%, rgba(255,255,255,0.2) 100%);
}

.stat-icon i {
    font-size: 1.5rem;
    color: white;
    position: relative;
    z-index: 1;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: bold;
    color: #1f2937;
}

.stat-content p {
    color: #6b7280;
    font-size: 0.9rem;
}

.dashboard-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.dashboard-section {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.dashboard-section h3 {
    margin-bottom: 1rem;
    color: #1f2937;
}

.activity-list,
.task-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
}

.activity-item i {
    color: #2563eb;
    width: 20px;
}

.activity-item small {
    margin-left: auto;
    color: #6b7280;
}

.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #e5e7eb;
}

.task-item.priority-high {
    border-left-color: #ef4444;
}

.task-item.priority-medium {
    border-left-color: #f59e0b;
}

.task-item.priority-low {
    border-left-color: #10b981;
}

.task-content h4 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.task-content p {
    font-size: 0.8rem;
    color: #6b7280;
}

.priority-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.priority-badge.high {
    background: #fef2f2;
    color: #dc2626;
}

.priority-badge.medium {
    background: #fffbeb;
    color: #d97706;
}

.priority-badge.low {
    background: #f0fdf4;
    color: #16a34a;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    color: #1f2937;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-small {
    padding: 0.5rem;
    border: none;
    border-radius: 6px;
    background: #f3f4f6;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-small:hover {
    background: #e5e7eb;
}

/* Listing Controls */
.listing-controls {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.filter-tabs {
    display: flex;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
}

.tab-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.3s;
}

.tab-btn.active,
.tab-btn:hover {
    background: #2563eb;
    color: white;
}

/* Properties Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.property-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.property-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.property-card:hover::before {
    opacity: 1;
}

.property-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2);
}

.property-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.property-price {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.property-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.property-category {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.9);
    color: #374151;
}

.status-active {
    background: #f0fdf4;
    color: #16a34a;
}

.status-pending {
    background: #fffbeb;
    color: #d97706;
}

.status-sold {
    background: #fef2f2;
    color: #dc2626;
}

.property-content {
    padding: 1.5rem;
}

.property-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.property-address {
    color: #6b7280;
    margin-bottom: 1rem;
}

.property-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #374151;
}

.property-features span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
}

.property-metrics {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
}

.metric-label {
    font-size: 0.8rem;
    color: #6b7280;
}

.property-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.property-app-links {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

.property-app-links h4 {
    font-size: 0.9rem;
    color: #374151;
    margin: 0 0 0.75rem 0;
    font-weight: 600;
}

.app-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.app-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.app-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.app-link.zillow {
    background: #006aff;
    color: white;
}

.app-link.zillow:hover {
    background: #0056d9;
}

.app-link.realtor {
    background: #d92228;
    color: white;
}

.app-link.realtor:hover {
    background: #b91c1c;
}

.app-link.redfin {
    background: #a02424;
    color: white;
}

.app-link.redfin:hover {
    background: #7f1d1d;
}

.app-link.trulia {
    background: #53b50a;
    color: white;
}

.app-link.trulia:hover {
    background: #16a34a;
}

.app-link i {
    font-size: 0.9rem;
}

/* Leads Table */
.leads-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.leads-table table {
    width: 100%;
    border-collapse: collapse;
}

.leads-table th,
.leads-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.leads-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
}

.lead-info strong {
    display: block;
    margin-bottom: 0.25rem;
}

.lead-notes {
    font-size: 0.8rem;
    color: #6b7280;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-hot {
    background: #fef2f2;
    color: #dc2626;
}

.status-warm {
    background: #fffbeb;
    color: #d97706;
}

.status-cold {
    background: #f0f9ff;
    color: #0284c7;
}

.action-buttons {
    display: flex;
    gap: 0.25rem;
}

/* Tasks Grid */
.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.task-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #e5e7eb;
}

.task-card.priority-high {
    border-left-color: #ef4444;
}

.task-card.priority-medium {
    border-left-color: #f59e0b;
}

.task-card.priority-low {
    border-left-color: #10b981;
}

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

.task-header h3 {
    color: #1f2937;
    margin-right: 1rem;
}

.task-details {
    margin-bottom: 1rem;
}

.task-details p {
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.task-details i {
    width: 16px;
    margin-right: 0.5rem;
    color: #9ca3af;
}

.task-actions {
    display: flex;
    gap: 0.5rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: bold;
}

.footer-brand i {
    color: #2563eb;
}

.footer-contact {
    margin-top: 1rem;
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.email-link:hover {
    color: #2563eb;
}

.email-link i {
    color: #2563eb;
}

/* AI Output Styles */
.ai-output {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.ai-output:not(:empty) {
    display: block;
}

.ai-tool-card textarea {
    width: 100%;
    min-height: 80px;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 1rem;
}

.ai-tool-card select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    margin-bottom: 1rem;
    background: white;
}

.ai-tool-card label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .dashboard-sections {
        grid-template-columns: 1fr;
    }
    
    .properties-grid,
    .tasks-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .listing-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .leads-table {
        overflow-x: auto;
    }
}

/* AI Tools Styles */
.ai-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.ai-tool-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border-left: 4px solid transparent;
    background-image: linear-gradient(rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.98)), 
                      linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: all 0.3s ease;
}

.ai-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tool-header i {
    font-size: 1.5rem;
    color: #2563eb;
    background: #f0f7ff;
    padding: 0.75rem;
    border-radius: 8px;
}

.tool-header h3 {
    color: #1f2937;
    margin: 0;
}

.tool-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-select,
.form-input,
.form-textarea {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

.form-select:focus,
.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
    min-height: 80px;
    resize: vertical;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form-group label {
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

.tool-actions {
    margin-top: 0.5rem;
}

.generated-content {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: 2rem;
    border-left: 4px solid #10b981;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.content-header h3 {
    color: #1f2937;
    margin: 0;
}

.content-actions {
    display: flex;
    gap: 0.5rem;
}

.content-body {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
}

/* Document Upload Styles */
.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin: 1rem 0;
    background: #f9fafb;
}

.upload-area:hover {
    border-color: #2563eb;
    background: #f0f7ff;
}

.upload-area i {
    font-size: 2rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.upload-area p {
    margin: 0.5rem 0;
    color: #374151;
    font-weight: 500;
}

.upload-area small {
    color: #6b7280;
    font-size: 0.8rem;
}

#document-upload {
    display: none;
}

/* Document Analysis Results */
.document-analysis-result {
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.analysis-header {
    background: #f8fafc;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 8px 8px 0 0;
}

.analysis-header p {
    margin: 0.25rem 0;
    color: #374151;
    font-size: 0.9rem;
}

.compliance-score {
    padding: 1rem;
    text-align: center;
    font-weight: bold;
    border-radius: 6px;
    margin: 1rem;
}

.compliance-score.compliant {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.compliance-score.warning {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fed7aa;
}

.compliance-score.non-compliant {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.compliance-section {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.compliance-section:last-child {
    border-bottom: none;
}

.compliance-section h6 {
    margin: 0 0 0.75rem 0;
    color: #1f2937;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.compliance-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.compliance-section li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.compliance-section li:last-child {
    border-bottom: none;
}

.compliance-section li.found::before {
    content: "✓";
    color: #16a34a;
    font-weight: bold;
}

.compliance-section li.issue::before {
    content: "⚠";
    color: #d97706;
    font-weight: bold;
}

.compliance-section li.recommendation::before {
    content: "💡";
}

.legal-notice {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem;
}

.legal-notice p {
    margin: 0;
    color: #92400e;
    font-size: 0.9rem;
}

#analyze-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .ai-tools-grid {
        grid-template-columns: 1fr;
    }
    
    .content-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .content-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .upload-area {
        padding: 1.5rem 1rem;
    }
    
    .upload-area i {
        font-size: 1.5rem;
    }
}

/* Subscription Styles */
.subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.subscription-header h2 {
    color: #1f2937;
    margin: 0;
}

.trial-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.subscription-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.current-plan-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #2563eb;
}

.current-plan-card.trial {
    border-left-color: #f59e0b;
}

.current-plan-card.pro {
    border-left-color: #10b981;
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.plan-header h3 {
    margin: 0;
    color: #1f2937;
}

.plan-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.plan-status.active {
    background: #f0fdf4;
    color: #16a34a;
}

.plan-status.inactive {
    background: #fef2f2;
    color: #dc2626;
}

.plan-details h4 {
    font-size: 1.3rem;
    margin: 0 0 0.5rem 0;
    color: #1f2937;
}

.plan-price {
    font-size: 2rem;
    font-weight: bold;
    color: #2563eb;
    margin-bottom: 1rem;
}

.trial-info {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.trial-info p {
    margin: 0.25rem 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #374151;
}

.plan-features i {
    color: #10b981;
    font-size: 0.8rem;
}

.plan-actions {
    margin-top: 1.5rem;
}

.upgrade-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.usage-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: fit-content;
}

.usage-card h3 {
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.usage-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.usage-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.usage-label {
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

.usage-bar {
    background: #e5e7eb;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
}

.usage-progress {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.usage-text {
    font-size: 0.8rem;
    color: #6b7280;
    text-align: right;
}

.usage-count {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
}

.pricing-section {
    margin-top: 3rem;
}

.pricing-section h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1f2937;
}

.pricing-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.pricing-card.pro {
    border: 2px solid #2563eb;
}

.pricing-header h4 {
    margin: 0 0 0.5rem 0;
    color: #1f2937;
    font-size: 1.5rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: bold;
    color: #2563eb;
    margin: 1rem 0;
}

.pricing-features {
    text-align: left;
    margin: 2rem 0;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #374151;
}

.pricing-features i {
    color: #10b981;
}

.pricing-actions button {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.trial-note {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.billing-section {
    margin-top: 3rem;
}

.billing-section h3 {
    margin-bottom: 1rem;
    color: #1f2937;
}

.billing-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.billing-details {
    margin-bottom: 1.5rem;
}

.billing-details p {
    margin-bottom: 0.5rem;
    color: #374151;
}

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

.btn-danger {
    background: #dc2626;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.btn-danger:hover {
    background: #b91c1c;
}

/* Payment Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.payment-modal {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    margin: 0;
    color: #1f2937;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #374151;
}

.modal-content {
    padding: 1.5rem;
}

.payment-summary {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.payment-summary h4 {
    margin: 0 0 1rem 0;
    color: #1f2937;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: #6b7280;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 0.5rem;
    border-top: 1px solid #e5e7eb;
    color: #1f2937;
}

.payment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form-group label {
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

.form-group input {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.payment-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1rem;
}

.payment-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.payment-security {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.payment-security p {
    color: #6b7280;
    font-size: 0.8rem;
    margin: 0;
}

.payment-security i {
    color: #10b981;
    margin-right: 0.25rem;
}

@media (max-width: 768px) {
    .subscription-grid {
        grid-template-columns: 1fr;
    }
    
    .billing-actions {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .payment-modal {
        width: 95%;
        margin: 1rem;
    }
}

/* Feedback Section Styles */
.feedback-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.feedback-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.feedback-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-header i {
    font-size: 1.5rem;
}

.card-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.card-content {
    padding: 2rem;
}

.card-content p {
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.feedback-form,
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    color: #374151;
    font-weight: 500;
    margin: 0;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

.contact-info-section {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.contact-info-section h3 {
    color: #1f2937;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.5rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: #f0f7ff;
    transform: translateY(-2px);
}

.contact-method i {
    font-size: 1.5rem;
    color: #2563eb;
    background: white;
    padding: 0.75rem;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-method h4 {
    margin: 0 0 0.5rem 0;
    color: #1f2937;
    font-size: 1.1rem;
}

.contact-method p {
    margin: 0 0 0.25rem 0;
    color: #374151;
    font-weight: 600;
}

.contact-method small {
    color: #6b7280;
    font-size: 0.85rem;
}

.feedback-stats {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
}

.feedback-stats h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

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

.satisfaction-stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: white;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input:invalid,
.form-group select:invalid,
.form-group textarea:invalid {
    border-color: #ef4444;
}

.form-group input:invalid:focus,
.form-group select:invalid:focus,
.form-group textarea:invalid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

@media (max-width: 768px) {
    .feedback-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .satisfaction-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card-content {
        padding: 1.5rem;
    }
}

/* Blog and Content Pages */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-post {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.blog-post h2 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.post-meta {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.blog-post p {
    color: #374151;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.read-more {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #1d4ed8;
    transform: translateX(5px);
}

/* Features Page */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.feature-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.feature-card li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #374151;
}

.feature-card li i {
    color: #10b981;
    font-size: 0.9rem;
}

.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 20px;
    margin: 4rem 0;
}

.cta-section h2 {
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

.cta-section p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.large-btn {
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
    background: white;
    color: #2563eb;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.large-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Pricing Page */
.pricing-comparison {
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
}

.pricing-card.featured {
    border: 3px solid #2563eb;
    transform: scale(1.05);
    position: relative;
    max-width: 400px;
}

.pricing-card.featured::before {
    content: "MOST POPULAR";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #2563eb;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin: 1rem 0;
}

.currency {
    font-size: 1.5rem;
    color: #6b7280;
}

.amount {
    font-size: 4rem;
    font-weight: 800;
    color: #2563eb;
}

.period {
    font-size: 1.2rem;
    color: #6b7280;
    margin-left: 0.25rem;
}

.trial-text {
    color: #10b981;
    font-weight: 600;
    margin: 0;
}

.guarantee {
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.pricing-faq {
    margin-top: 4rem;
}

.pricing-faq h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1f2937;
}

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

.faq-item {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.faq-item h4 {
    color: #1f2937;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.faq-item p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-section {
        padding: 3rem 1.5rem;
    }
    
    .cta-section h2 {
        font-size: 1.8rem;
    }
    
    .pricing-card.featured {
        transform: none;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .property-metrics {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .ai-tool-card {
        padding: 1rem;
    }
    
    .subscription-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .current-plan-card,
    .pricing-card {
        padding: 1rem;
    }
    
    .feedback-stats {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .satisfaction-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    .contact-info-section {
        padding: 1.5rem;
    }
    
    .feature-card,
    .blog-post,
    .faq-item {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i {
        font-size: 1.5rem;
    }
    
    .amount {
        font-size: 3rem;
    }
}
