/* ========================================
   RESET & BASE STYLES
   ======================================== */

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

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --sidebar-bg: #202123;
    --border-radius: 0.5rem;
    --transition: all 0.2s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background: #ffffff;
    font-size: 16px;
}

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

button {
    font-family: inherit;
    cursor: pointer;
}

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

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

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.header {
    background: #ffffff;
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-decoration: none;
}

.logo-icon {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s;
    padding: 0.5rem 0;
}

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

/* ========================================
   MAIN CONTENT & CONTAINER
   ======================================== */

.main-content {
    min-height: calc(100vh - 300px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 4rem 1.5rem;
    text-align: center;
}

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

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-accent {
    background: linear-gradient(to right, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-top: 0.5rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.trust-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

.trust-icon {
    color: var(--success);
    font-weight: 700;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1.5;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-900);
}

.btn-secondary:hover {
    background: var(--gray-200);
}

.btn-warning {
    background: var(--warning);
    color: #ffffff;
}

.btn-warning:hover {
    background: #d97706;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

.btn-back {
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.btn-back:hover {
    background: var(--gray-200);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ========================================
   SECTIONS
   ======================================== */

.section {
    padding: 4rem 1.5rem;
}

.section-gray {
    background: var(--gray-50);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    text-align: center;
    margin-bottom: 3rem;
}

/* ========================================
   COMPARISON GRID (Pricing)
   ======================================== */

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

.comparison-card {
    background: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    border: 2px solid transparent;
}

.comparison-card:hover {
    transform: translateY(-4px);
}

.comparison-featured {
    border: 2px solid var(--primary);
    position: relative;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);
}

.comparison-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--warning);
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 1;
}

.comparison-header {
    padding: 2rem;
    text-align: center;
    background: var(--gray-100);
}

.comparison-featured .comparison-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #ffffff;
}

.comparison-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.comparison-price {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.comparison-list {
    list-style: none;
    padding: 1.5rem 2rem;
}

.comparison-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.comparison-item.disabled {
    opacity: 0.4;
}

.icon-check {
    color: var(--success);
    font-weight: 700;
    flex-shrink: 0;
}

.icon-cross {
    color: var(--gray-400);
    flex-shrink: 0;
}

.comparison-card .btn {
    margin: 0 2rem 2rem;
}

/* ========================================
   FEATURES GRID
   ======================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--gray-200);
    text-align: center;
    transition: box-shadow 0.2s;
}

.feature-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.feature-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.feature-text {
    color: var(--gray-600);
    line-height: 1.6;
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    text-align: center;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.cta-text {
    font-size: 1.125rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.cta-subtext {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-top: 1rem;
}

/* ========================================
   CHAT LAYOUT
   ======================================== */

.chat-layout {
    display: flex;
    height: calc(100vh - 60px);
}

.chat-sidebar-left {
    width: 260px;
    background: var(--sidebar-bg);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-small {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 16px;
}

.new-chat-btn {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.new-chat-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.conversation-item {
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 4px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    transition: background 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.conversation-item.active {
    background: rgba(255, 255, 255, 0.15);
}

.empty-state {
    padding: 32px 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.text-sm {
    font-size: 12px;
    margin-top: 4px;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-info {
    padding: 12px;
    background: rgba(16, 163, 127, 0.1);
    border: 1px solid rgba(16, 163, 127, 0.3);
    border-radius: 6px;
    font-size: 13px;
}

.info-text {
    color: rgba(255, 255, 255, 0.9);
}

/* ========================================
   CHAT MAIN AREA
   ======================================== */

.chat-main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.chat-header {
    background: #ffffff;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-header h1,
.chat-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.chat-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.welcome-screen {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 60px;
    text-align: center;
}

.welcome-icon {
    font-size: 64px;
    margin-bottom: 24px;
    font-weight: 700;
    color: var(--primary);
}

.welcome-screen h1,
.welcome-screen h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.welcome-screen p {
    font-size: 18px;
    color: var(--gray-600);
    margin-bottom: 48px;
}

.example-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 2rem;
}

.example-btn {
    padding: 0.75rem 1.5rem;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9375rem;
}

.example-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.message-bubble {
    max-width: 800px;
    margin: 0 auto 24px;
    padding: 16px 24px;
    border-radius: 12px;
}

.message-user {
    background: var(--gray-100);
}

.message-assistant {
    background: #ffffff;
    border: 1px solid var(--gray-200);
}

.message-postcode {
    font-size: 12px;
    color: var(--gray-600);
    margin-bottom: 8px;
    font-weight: 500;
}

.message-content {
    line-height: 1.6;
    white-space: pre-wrap;
    color: var(--gray-900);
}

.message-actions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

.btn-report {
    padding: 10px 20px;
    background: var(--success);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-report:hover {
    background: #059669;
}

/* ========================================
   CHAT INPUT AREA
   ======================================== */

.chat-input-area {
    background: #ffffff;
    border-top: 1px solid var(--gray-200);
    padding: 1.5rem;
}

.input-group {
    display: flex;
    gap: 0.75rem;
}

.input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

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

.postcode-input {
    margin-bottom: 0.75rem;
}

/* ========================================
   MODAL
   ======================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active,
.modal[style*="display: flex"] {
    display: flex;
}

.modal-content {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gray-100);
    border: none;
    border-radius: var(--border-radius);
    width: 2rem;
    height: 2rem;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-close:hover {
    background: var(--gray-200);
}

.modal-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

/* ========================================
   FORMS
   ======================================== */

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

.discount-input-group {
    display: flex;
    gap: 0.5rem;
}

.discount-message {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.discount-message.success {
    background: #dcfce7;
    color: #16a34a;
}

.discount-message.error {
    background: #fee2e2;
    color: #dc2626;
}

.price-summary {
    background: var(--gray-50);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.price-total {
    border-top: 2px solid var(--gray-200);
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    font-size: 1.125rem;
}

.price-discount {
    color: var(--success);
}

.payment-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: 1rem;
}

/* ========================================
   LOADING & SPINNERS
   ======================================== */

.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-large {
    width: 3rem;
    height: 3rem;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

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

.loading-spinner {
    text-align: center;
    padding: 3rem;
}

.loading-message {
    text-align: center;
    padding: 2rem;
    color: var(--gray-600);
}

/* ========================================
   PAGE HEADER
   ======================================== */

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

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* ========================================
   REPORTS
   ======================================== */

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.report-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--gray-200);
    transition: box-shadow 0.2s;
}

.report-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.report-card h3 {
    font-size: 1.25rem;
    color: var(--gray-900);
}

.report-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-free {
    background: #dcfce7;
    color: #16a34a;
}

.badge-paid {
    background: #dbeafe;
    color: #2563eb;
}

.report-date {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.empty-state-reports {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-600);
}

/* ========================================
   REPORT CONTENT
   ======================================== */

.report-content {
    background: #ffffff;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--gray-200);
}

.report-header {
    margin-bottom: 2rem;
}

.report-meta {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-200);
}

.report-meta h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.report-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
}

.report-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

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

.stat-box {
    background: #ffffff;
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    text-align: center;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: #ffffff;
}

.report-table caption {
    text-align: left;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.report-table th,
.report-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.report-table th {
    background: var(--gray-100);
    font-weight: 600;
    color: var(--gray-700);
}

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

.score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--success);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.flood-box {
    padding: 1rem;
    border-radius: var(--border-radius);
    border-left: 4px solid;
}

.flood-low {
    background: #dcfce7;
    border-color: var(--success);
    color: #166534;
}

.flood-high {
    background: #fee2e2;
    border-color: var(--danger);
    color: #991b1b;
}

.amenity-category {
    margin-bottom: 1.5rem;
}

.amenity-category h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.amenity-category ul {
    list-style: none;
    padding-left: 0;
}

.amenity-category li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.amenity-category li:last-child {
    border-bottom: none;
}

.disclaimer-box {
    background: #fef3c7;
    border-left: 4px solid var(--warning);
    padding: 1rem;
    margin: 2rem 0;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ========================================
   ADMIN
   ======================================== */

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

.stat-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--gray-200);
    text-align: center;
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.admin-section {
    background: #ffffff;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--gray-200);
    margin-bottom: 2rem;
}

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

.section-header h2 {
    font-size: 1.5rem;
    color: var(--gray-900);
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-success {
    background: #dcfce7;
    color: #16a34a;
}

.badge-inactive {
    background: #fee2e2;
    color: #dc2626;
}

/* ========================================
   BLOG
   ======================================== */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: box-shadow 0.2s;
}

.blog-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.blog-card-content {
    padding: 1.5rem;
}

.blog-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.blog-excerpt {
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-date {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.blog-post {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post header {
    margin-bottom: 2rem;
}

.blog-post h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.post-meta {
    color: var(--gray-600);
    font-size: 0.9375rem;
}

.post-image {
    width: 100%;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.post-content {
    line-height: 1.8;
    color: var(--gray-700);
}

.post-content h2 {
    font-size: 1.75rem;
    margin: 2rem 0 1rem;
    color: var(--gray-900);
}

.post-content h3 {
    font-size: 1.375rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--gray-900);
}

.post-content p {
    margin-bottom: 1rem;
}

.post-content ul,
.post-content ol {
    margin: 1rem 0 1rem 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

/* ========================================
   LOGIN & AUTH
   ======================================== */

.login-box {
    background: #ffffff;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--gray-200);
}

.login-box h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.login-box p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.message-box {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
}

.message-box.success {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #86efac;
}

.message-box.error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

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

.form-text {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: 0.25rem;
}

/* ========================================
   PAYMENT SUCCESS/CANCEL
   ======================================== */

.success-box,
.cancel-box {
    background: #ffffff;
    padding: 3rem;
    border-radius: 1rem;
    border: 1px solid var(--gray-200);
}

.success-icon,
.cancel-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

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

.cancel-icon {
    color: var(--warning);
}

.success-box h1,
.cancel-box h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.success-box p,
.cancel-box p {
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.success-box .btn,
.cancel-box .btn {
    margin-top: 1.5rem;
}

/* ========================================
   ERROR BOXES
   ======================================== */

.error-box {
    background: #fee2e2;
    color: #dc2626;
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid #fca5a5;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--gray-900);
    color: #ffffff;
    padding: 3rem 1.5rem 2rem;
    margin-top: 4rem;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-section p,
.footer-section address {
    color: #9ca3af;
    font-size: 0.875rem;
    line-height: 1.6;
    font-style: normal;
}

.footer-section a {
    color: #9ca3af;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: #ffffff;
}

.footer-section ul {
    list-style: none;
}

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

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .chat-layout {
        flex-direction: column;
    }
    
    .chat-sidebar-left {
        width: 100%;
        max-height: 200px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .header,
    .footer,
    .btn,
    .chat-input-area,
    .nav {
        display: none !important;
    }
    
    .report-content {
        border: none;
        box-shadow: none;
    }
}

.chat-layout-full {
    display: flex;
    height: calc(100vh - 60px);
}

.chat-main-full {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-content-full {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.chat-input-fixed {
    border-top: 1px solid var(--gray-200);
    padding: 1.5rem;
    background: #ffffff;
}

.discount-message {
    display: none;
}

@media (max-width: 768px) {
    .chat-layout-full {
        flex-direction: column;
    }
    
    .chat-sidebar-left {
        max-height: 150px;
    }
}