/* Ledger Official Website Design - Exact Match */

:root {
    /* Exact Ledger Website Colors */
    --ledger-black: #000;
    --ledger-white: #fff;
    --ledger-text: #000;
    --ledger-text-light: #666;
    --ledger-border: #e0e0e0;
    --ledger-bg: #fff;
    --ledger-bg-light: #f8f9fa;

    /* Typography - Ledger Website Font */
    --ledger-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Reset and Base - Ledger Website Style */
.ledger-page {
    font-family: var(--ledger-font);
    background: var(--ledger-bg);
    color: var(--ledger-text);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    line-height: 1.5;
}

/* Header - Ledger Style Design */
.ledger-header {
    background: var(--ledger-white);
    border-bottom: 1px solid var(--ledger-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.ledger-logo {
    display: flex;
    align-items: center;
}

.ledger-logo img, .ledger-logo svg {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--ledger-white);
    border: 1px solid var(--ledger-border);
    border-radius: 4px;
    color: var(--ledger-black);
    font-size: 14px;
    font-weight: 500;
    font-family: var(--ledger-font);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.header-btn:hover {
    border-color: var(--ledger-black);
    background: var(--ledger-bg-light);
}

.header-btn svg {
    width: 16px;
    height: 16px;
}

/* Responsive Header */
@media (max-width: 768px) {
    .header-container {
        padding: 0 16px;
    }
    
    .header-btn span {
        display: none;
    }
    
    .header-back span {
        display: none;
    }
}

.header-btn.btn-primary:hover {
    background: #333;
    border-color: #333;
}

.header-btn svg {
    width: 16px;
    height: 16px;
}

/* Main Layout - Exact Ledger Table Style */
.comparison-main {
    background: var(--ledger-bg);
    min-height: calc(100vh - 60px);
}

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

/* Main Content */
.main-content {
    min-height: calc(100vh - 64px);
    background: var(--ledger-bg);
}

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

/* Hero Section - Ledger Style */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 5rem 0;
    min-height: 70vh;
}

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

.hero-badge {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero-badge span {
    background: linear-gradient(90deg, #ff6b35, #ff8a5b);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--ledger-black);
    line-height: 1.1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.hero-content h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--ledger-text-light);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--ledger-text);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-features {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--ledger-text-light);
}

.feature-icon {
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--ledger-black);
    color: var(--ledger-white);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    min-width: 40px;
    text-align: center;
    letter-spacing: 0.5px;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.device-showcase {
    position: relative;
    display: flex;
    gap: 1rem;
}

.device-card {
    position: relative;
    background: var(--ledger-white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

.device-card.featured {
    transform: rotate(5deg) scale(1.1);
    z-index: 2;
}

.device-card:hover {
    transform: rotate(0deg) scale(1.05);
}

.device-card img {
    width: 200px;
    height: auto;
    object-fit: contain;
}

.device-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff6b35;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Products Preview */
.products-preview {
    padding: 5rem 0;
    background: var(--ledger-bg-light);
}

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

.section-header h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ledger-black);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--ledger-text-light);
}

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

.device-preview {
    background: var(--ledger-white);
    border-radius: 16px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--ledger-border);
    display: flex;
    align-items: center;
    gap: 2rem;
    text-align: left;
}

.device-preview:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
    border-color: var(--ledger-black);
}

.device-image {
    position: relative;
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ledger-bg-light);
    border-radius: 12px;
}

.device-image img {
    width: 140px;
    height: auto;
    object-fit: contain;
}

.new-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff6b35;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.device-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.device-info h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ledger-black);
    margin-bottom: 0.5rem;
}

.device-info p {
    font-size: 1rem;
    color: var(--ledger-text-light);
    margin-bottom: 1rem;
    font-weight: 500;
}

.device-description {
    font-size: 0.9rem;
    color: var(--ledger-text);
    line-height: 1.6;
    display: block;
    margin-bottom: 1.5rem;
}

.device-action {
    margin-top: auto;
}

.ask-ai {
    color: #ff6b35;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ask-ai:hover {
    color: #e55a2b;
}

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

/* Button Styles */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--ledger-black);
    color: var(--ledger-white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--ledger-font);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary.large {
    padding: 20px 40px;
    font-size: 18px;
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: transparent;
    color: var(--ledger-black);
    border: 2px solid var(--ledger-border);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--ledger-font);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: var(--ledger-black);
    background: var(--ledger-bg-light);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: transparent;
    color: var(--ledger-black);
    border: 1px solid var(--ledger-border);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    font-family: var(--ledger-font);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-outline:hover {
    background: var(--ledger-black);
    color: var(--ledger-white);
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .devices-grid {
        grid-template-columns: 1fr;
    }
    
    .device-preview {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .device-image {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }
    
    .device-info {
        align-items: center;
        text-align: center;
    }
}

/* Comparison Table - Exact Ledger Website Style */
.comparison-table {
    background: var(--ledger-white);
    border: 1px solid var(--ledger-border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 40px;
}

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

.comparison-table th,
.comparison-table td {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid var(--ledger-border);
    vertical-align: top;
}

.comparison-table th {
    background: var(--ledger-bg-light);
    font-weight: 500;
}

.feature-header {
    background: var(--ledger-white) !important;
    border-right: 1px solid var(--ledger-border);
    width: 200px;
}

.product-header {
    padding: 24px 16px;
    border-right: 1px solid var(--ledger-border);
    min-width: 200px;
}

.product-header:last-child {
    border-right: none;
}

.product-image {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.device-image {
    width: 80px;
    height: 60px;
    background: var(--ledger-bg-light);
    border: 1px solid var(--ledger-border);
    border-radius: 4px;
    position: relative;
}

.device-image.stax::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 30px;
    background: var(--ledger-black);
    border-radius: 2px;
}

.device-image.flex::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 25px;
    background: var(--ledger-black);
    border-radius: 2px;
}

.device-image.nano-x::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 15px;
    background: var(--ledger-black);
    border-radius: 2px;
}

.device-image.nano-s::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25px;
    height: 8px;
    background: var(--ledger-black);
    border-radius: 1px;
}

.product-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ledger-text);
    margin: 0 0 8px 0;
}

.price {
    font-size: 16px;
    font-weight: 600;
    color: var(--ledger-text);
    margin-bottom: 16px;
}

.actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-primary, .btn-secondary {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--ledger-border);
    text-decoration: none;
    font-family: var(--ledger-font);
    width: 100%;
}

.btn-primary {
    background: var(--ledger-black);
    color: var(--ledger-white);
    border-color: var(--ledger-black);
}

.btn-primary:hover {
    background: #333;
    border-color: #333;
}

.btn-secondary {
    background: var(--ledger-white);
    color: var(--ledger-text);
    border: 1px solid var(--ledger-border);
}

.btn-secondary:hover {
    border-color: var(--ledger-text);
}

.btn-customize {
    background: #FF6C00;
    color: var(--ledger-white);
    border: 1px solid #FF6C00;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: var(--ledger-font);
    width: 100%;
}

.btn-customize:hover {
    background: #E55A00;
    border-color: #E55A00;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 108, 0, 0.3);
}

/* Color Swatch Styles */
.color-selection-modal {
    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;
}

.color-selection-content {
    background: var(--ledger-white);
    border-radius: 8px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

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

.color-selection-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ledger-text);
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--ledger-text-light);
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: var(--ledger-text);
}

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

.color-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--ledger-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--ledger-white);
    text-align: center;
}

.color-swatch:hover {
    border-color: #FF6C00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 108, 0, 0.2);
}

.color-swatch.selected {
    border-color: #FF6C00;
    background: rgba(255, 108, 0, 0.05);
}

.color-swatch-preview {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.color-swatch-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ledger-text);
    margin: 0;
}

.color-swatch-availability {
    font-size: 0.75rem;
    color: var(--ledger-text-light);
    margin: 0.25rem 0 0 0;
}

.color-swatch-availability.limited-edition {
    color: #FF6C00;
    font-weight: 600;
}

.apply-color-btn {
    background: #FF6C00;
    color: var(--ledger-white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.apply-color-btn:hover {
    background: #E55A00;
}

.apply-color-btn:disabled {
    background: var(--ledger-border);
    cursor: not-allowed;
}

/* Product Display in Chat */
.product-color-display {
    background: var(--ledger-white);
    border: 1px solid var(--ledger-border);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    text-align: center;
}

.product-color-display img {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.product-color-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ledger-text);
}

.product-color-info .color-name {
    color: #FF6C00;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Price row with customize button */
.price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}

/* Inline Customize Button for Product Cards */
.btn-customize-inline {
    background: #FF6C00;
    color: var(--ledger-white);
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: var(--ledger-font);
    white-space: nowrap;
}

.btn-customize-inline:hover {
    background: #E55A00;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 108, 0, 0.3);
}

.feature-label {
    text-align: left !important;
    font-weight: 500;
    color: var(--ledger-text);
    border-right: 1px solid var(--ledger-border);
    background: var(--ledger-white);
}

.comparison-table tbody td {
    font-size: 14px;
    color: var(--ledger-text-light);
    border-right: 1px solid var(--ledger-border);
}

.comparison-table tbody td:last-child {
    border-right: none;
}

.start-btn svg {
    width: 20px;
    height: 20px;
}

/* AI Assistant Section */
.ai-section {
    margin-top: 48px;
}

.ai-card {
    background: var(--ledger-white);
    border: 1px solid var(--ledger-border);
    border-radius: 4px;
    padding: 32px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.ai-card h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--ledger-text);
    margin: 0 0 8px 0;
}

.ai-card p {
    font-size: 16px;
    color: var(--ledger-text-light);
    line-height: 1.5;
    margin: 0 0 24px 0;
}

.ai-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.ai-btn {
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--ledger-border);
    text-decoration: none;
    font-family: var(--ledger-font);
    min-width: 140px;
}

.ai-btn.primary {
    background: var(--ledger-black);
    color: var(--ledger-white);
    border-color: var(--ledger-black);
}

.ai-btn.primary:hover {
    background: #333;
    border-color: #333;
}

.ai-btn.secondary {
    background: var(--ledger-white);
    color: var(--ledger-text);
    border: 1px solid var(--ledger-border);
}

.ai-btn.secondary:hover {
    border-color: var(--ledger-text);
}

/* Hybrid Chat/Quiz Interface */
.chat-section {
    background: var(--ledger-white);
    border: 1px solid var(--ledger-border);
    border-radius: 8px;
    margin-top: 40px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-height: 1200px;
}

/* Responsive chat sizing */
@media (max-width: 768px) {
    .chat-container {
        height: 100vh;
        min-height: 1000px;
    }
    
    .chat-messages {
        padding: 20px;
    }
    
    .message-content {
        max-width: 90%;
    }
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--ledger-border);
    background: var(--ledger-bg-light);
}

.chat-title-area {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.chat-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ledger-text);
    margin: 0;
}

.context-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--ledger-text-light);
    opacity: 0.8;
}

.context-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.close-chat {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ledger-text-light);
    transition: color 0.2s ease;
    padding: 4px;
}

.close-chat:hover {
    color: var(--ledger-text);
}

.close-chat svg {
    width: 20px;
    height: 20px;
}

.chat-messages {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.message {
    display: flex;
    gap: 12px;
    max-width: 100%;
}

.message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 500;
}

.message.assistant .message-avatar {
    background: var(--ledger-black);
    color: var(--ledger-white);
}

.message.user .message-avatar {
    background: var(--ledger-bg-light);
    color: var(--ledger-text-light);
    border: 1px solid var(--ledger-border);
}

.message-content {
    flex: 1;
    max-width: 85%;
}

.message.user .message-content {
    text-align: right;
}

.message-bubble {
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.6;
    font-family: var(--ledger-font);
}

.message.assistant .message-bubble {
    background: var(--ledger-bg-light);
    color: var(--ledger-text);
    border: 1px solid var(--ledger-border);
}

/* Enhanced formatting for AI responses */
.message.assistant .message-bubble p {
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

.message.assistant .message-bubble p:last-child {
    margin-bottom: 0;
}

.message.assistant .message-bubble strong {
    font-weight: 700;
    color: var(--ledger-black);
}

.message.assistant .message-bubble ul,
.message.assistant .message-bubble ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.message.assistant .message-bubble li {
    margin: 0.25rem 0;
    line-height: 1.5;
}

/* Better spacing for bullet points */
.message.assistant .message-bubble li::marker {
    color: var(--ledger-black);
}

.message.user .message-bubble {
    background: var(--ledger-black);
    color: var(--ledger-white);
}

.message-time {
    font-size: 11px;
    color: var(--ledger-text-light);
    margin-top: 4px;
    font-family: var(--ledger-font);
}

.chat-input-area {
    padding: 16px 24px;
    border-top: 1px solid var(--ledger-border);
    background: var(--ledger-white);
}

.input-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

#chatInput {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--ledger-border);
    border-radius: 4px;
    font-size: 14px;
    font-family: var(--ledger-font);
    background: var(--ledger-white);
    color: var(--ledger-text);
    outline: none;
    transition: border-color 0.2s ease;
}

#chatInput:focus {
    border-color: var(--ledger-text);
}

#chatInput:disabled {
    background: var(--ledger-bg-light);
    color: var(--ledger-text-light);
    cursor: not-allowed;
    border-color: var(--ledger-border);
}

#sendButton {
    width: 40px;
    height: 40px;
    background: var(--ledger-black);
    color: var(--ledger-white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

#sendButton:hover:not(:disabled) {
    background: #333;
}

#sendButton:disabled {
    background: var(--ledger-text-light);
    cursor: not-allowed;
}

#sendButton svg {
    width: 16px;
    height: 16px;
}

.input-suggestions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.suggestion-chip {
    background: var(--ledger-bg-light);
    color: var(--ledger-text);
    border: 1px solid var(--ledger-border);
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--ledger-font);
}

.suggestion-chip:hover {
    background: var(--ledger-text);
    color: var(--ledger-white);
}

/* Chat Input Area */
.chat-input-area {
    padding: 1rem;
    background: var(--ledger-bg-light);
    border-top: 1px solid var(--ledger-border);
}

.input-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
}

#chatInput {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--ledger-border);
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: var(--ledger-font);
    background: var(--ledger-white);
    color: var(--ledger-text);
    outline: none;
    transition: border-color 0.2s ease;
}

#chatInput:focus {
    border-color: var(--ledger-black);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

#chatInput:disabled {
    background: var(--ledger-bg-light);
    color: var(--ledger-text-light);
    cursor: not-allowed;
    border-color: var(--ledger-border);
}

#sendButton {
    padding: 0.75rem;
    background: var(--ledger-black);
    color: var(--ledger-white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    min-width: 44px;
    height: 44px;
}

#sendButton:hover:not(:disabled) {
    background: #333;
    transform: translateY(-1px);
}

#sendButton:disabled {
    background: var(--ledger-text-light);
    cursor: not-allowed;
    transform: none;
}

#sendButton svg {
    width: 18px;
    height: 18px;
}

/* Quick Prompts Section */
.quick-prompts-section {
    border-top: 1px solid var(--ledger-border);
    padding-top: 1rem;
    margin-top: 1rem;
}

.prompts-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.category-btn {
    padding: 0.5rem 1rem;
    background: var(--ledger-white);
    border: 1px solid var(--ledger-border);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--ledger-text);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: var(--ledger-font);
    font-weight: 500;
}

.category-btn:hover {
    background: var(--ledger-bg-light);
    border-color: var(--ledger-black);
}

.category-btn.active {
    background: var(--ledger-black);
    color: var(--ledger-white);
    border-color: var(--ledger-black);
}

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

.prompt-btn {
    padding: 1rem;
    background: var(--ledger-white);
    border: 1px solid var(--ledger-border);
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--ledger-font);
    font-size: 0.875rem;
    color: var(--ledger-text);
    min-height: 60px;
    display: flex;
    align-items: center;
}

.prompt-btn:hover {
    background: var(--ledger-bg-light);
    border-color: var(--ledger-black);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.prompt-text {
    font-weight: 500;
    line-height: 1.3;
}

/* Budget Section Styles */
.budget-section {
    background: var(--ledger-white);
    border: 1px solid var(--ledger-border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.budget-section-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ledger-text);
}

.budget-status {
    font-size: 0.875rem;
    color: var(--ledger-text-light);
    font-weight: 500;
}

.budget-slider-container {
    background: transparent;
    border: none;
    padding: 0;
}

.budget-range-display {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ledger-black);
}

.budget-separator {
    margin: 0 0.5rem;
    color: var(--ledger-text-light);
}

.dual-range-slider {
    position: relative;
    margin: 1.5rem 0;
    height: 40px;
}

.dual-range-slider::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 0;
    right: 0;
    height: 8px;
    background: var(--ledger-border);
    border-radius: 4px;
    z-index: 1;
}

.dual-range-slider::after {
    content: '';
    position: absolute;
    top: 16px;
    left: var(--range-min, 0%);
    width: calc(var(--range-max, 100%) - var(--range-min, 0%));
    height: 8px;
    background: var(--ledger-black);
    border-radius: 4px;
    z-index: 2;
    transition: all 0.1s ease;
}

.dual-range-slider input[type="range"] {
    position: absolute;
    width: 100%;
    height: 8px;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
    z-index: 3;
}

.dual-range-slider input[type="range"]::-webkit-slider-track {
    height: 8px;
    background: var(--ledger-border);
    border-radius: 4px;
}

.dual-range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--ledger-black);
    border: 2px solid var(--ledger-white);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    pointer-events: all;
    cursor: pointer;
    margin-top: -6px;
    position: relative;
    z-index: 4;
}

.dual-range-slider input[type="range"]::-moz-range-track {
    height: 8px;
    background: var(--ledger-border);
    border-radius: 4px;
    border: none;
}

.dual-range-slider input[type="range"]::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--ledger-black);
    border: 2px solid var(--ledger-white);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    pointer-events: all;
    cursor: pointer;
    border: none;
    position: relative;
    z-index: 4;
}

.budget-apply-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: var(--ledger-black);
    color: var(--ledger-white);
    border: none;
    border-radius: 6px;
    font-family: var(--ledger-font);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.budget-apply-btn:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.follow-up-prompts {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ledger-border);
}

.follow-up-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ledger-text-light);
    margin-bottom: 0.5rem;
}

.follow-up-btn {
    display: inline-block;
    margin: 0.25rem 0.5rem 0.25rem 0;
    padding: 0.5rem 0.75rem;
    background: var(--ledger-white);
    border: 1px solid var(--ledger-border);
    border-radius: 16px;
    font-size: 0.75rem;
    color: var(--ledger-text);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--ledger-font);
    white-space: nowrap;
}

.follow-up-btn:hover {
    background: var(--ledger-black);
    color: var(--ledger-white);
    border-color: var(--ledger-black);
}

.conversation-controls {
    text-align: center;
    margin-top: 1rem;
}

.clear-btn, .reset-btn {
    padding: 0.75rem 1rem;
    background: #ff6b35;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--ledger-font);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto;
}

.clear-btn:hover, .reset-btn:hover {
    background: #ff5722;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.reset-btn svg {
    width: 16px;
    height: 16px;
}

/* Prompt Loading States */
.prompts-loading, .no-prompts {
    text-align: center;
    color: var(--ledger-text-light);
    font-size: 0.875rem;
    padding: 2rem;
    font-style: italic;
}

.prompts-loading {
    animation: pulse 1.5s infinite;
}

/* Product Cards in Chat - ULTRA COMPACT */
.product-recommendation {
    margin: 0.25rem 0;
}

.product-recommendation h3 {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ledger-black);
    margin: 0 0 0.25rem 0;
}

.product-recommendation h3::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: var(--ledger-black);
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
}

/* Old product recommendation CSS removed - now using Tailwind */

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 0.75rem 1rem;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ledger-text-light);
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.3;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Quiz specific styles */
.quiz-question {
    background: var(--ledger-bg-light);
    border: 1px solid var(--ledger-border);
    border-radius: 4px;
    padding: 16px;
    margin-top: 12px;
}

.quiz-options {
    margin-bottom: 16px;
}

.quiz-option {
    margin-bottom: 8px;
}

.quiz-option label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--ledger-text);
}

.quiz-option input {
    margin: 0;
}

.quiz-next-btn {
    background: var(--ledger-black);
    color: var(--ledger-white);
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ledger-font);
}

.quiz-next-btn:hover:not(:disabled) {
    background: #333;
}

.quiz-next-btn:disabled {
    background: var(--ledger-text-light);
    cursor: not-allowed;
}

.quiz-next-btn svg {
    width: 16px;
    height: 16px;
}

/* Product cards in chat */
.product-recommendation {
    background: var(--ledger-white);
    border: 1px solid var(--ledger-border);
    border-radius: 4px;
    padding: 16px;
    margin-top: 8px;
}

.product-recommendation h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ledger-text);
    margin: 0 0 8px 0;
}

.product-recommendation .price {
    font-size: 14px;
    font-weight: 600;
    color: var(--ledger-text);
    margin-bottom: 8px;
}

.product-recommendation p {
    font-size: 13px;
    color: var(--ledger-text-light);
    line-height: 1.4;
    margin: 0 0 12px 0;
}

.product-recommendation .actions {
    display: flex;
    gap: 8px;
}

.product-recommendation .btn-primary,
.product-recommendation .btn-secondary {
    padding: 6px 12px;
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .comparison-container {
        padding: 24px 16px;
    }
    
    .comparison-table {
        font-size: 14px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 12px 8px;
    }
    
    .product-header {
        min-width: 150px;
        padding: 16px 8px;
    }
    
    .device-image {
        width: 60px;
        height: 45px;
    }
    
    .ai-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .ai-btn {
        width: 100%;
        max-width: 240px;
    }
    
    .chat-container {
        height: 400px;
    }
    
    .chat-messages {
        padding: 16px;
        gap: 12px;
    }
    
    .chat-input-area {
        padding: 12px 16px;
    }
    
    .message-content {
        max-width: 85%;
    }
    
    .quiz-question {
        padding: 12px;
    }
    
    .input-suggestions {
        gap: 6px;
    }
    
    .suggestion-chip {
        font-size: 11px;
        padding: 4px 8px;
    }
}





/* Chat Input - Ledger Website Style */
.chat-input-container {
    padding: 24px;
    border-top: 1px solid var(--ledger-border);
    background: var(--ledger-white);
}

.input-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
}

#chatInput {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--ledger-border);
    border-radius: 4px;
    font-size: 16px;
    font-family: var(--ledger-font);
    background: var(--ledger-white);
    color: var(--ledger-text);
    outline: none;
    transition: border-color 0.2s ease;
}

#chatInput:focus {
    border-color: var(--ledger-text);
}

#chatInput:disabled {
    background: var(--ledger-bg-light);
    color: var(--ledger-text-light);
    cursor: not-allowed;
    border-color: var(--ledger-border);
}

#sendButton {
    width: 44px;
    height: 44px;
    background: var(--ledger-black);
    color: var(--ledger-white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

#sendButton:hover:not(:disabled) {
    background: #333;
}

#sendButton:disabled {
    background: var(--ledger-text-light);
    cursor: not-allowed;
}

#sendButton svg {
    width: 16px;
    height: 16px;
}

.input-suggestions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.suggestion-chip {
    padding: 0.5rem 0.875rem;
    background: var(--ledger-gray-50);
    color: var(--ledger-gray-700);
    border: 1px solid var(--ledger-gray-200);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: var(--ledger-font);
    font-weight: 500;
}

.suggestion-chip:hover {
    background: var(--ledger-gray-100);
    border-color: var(--ledger-gray-300);
    color: var(--ledger-black);
}

/* Comparison View - Ledger Table Style */
.comparison-view {
    background: var(--ledger-white);
    border: 1px solid var(--ledger-gray-200);
    border-radius: 0.75rem;
    padding: 2rem;
    margin-top: 2rem;
}

.comparison-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--ledger-gray-200);
}

.comparison-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--ledger-black);
    margin: 0;
    letter-spacing: -0.01em;
}

.close-comparison {
    width: 36px;
    height: 36px;
    background: var(--ledger-white);
    border: 1px solid var(--ledger-gray-300);
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    color: var(--ledger-gray-600);
}

.close-comparison:hover {
    background: var(--ledger-gray-50);
    border-color: var(--ledger-gray-500);
    color: var(--ledger-black);
}

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

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-content {
    text-align: center;
    color: var(--ledger-white);
}

.loading-content p {
    margin-top: var(--ledger-space-lg);
    font-size: 1.125rem;
    font-weight: 500;
}

/* Ledger Spinner */
.ledger-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto;
}

.spinner-cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-cube 2s infinite linear;
}

.cube-face {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid var(--ledger-white);
    opacity: 0.8;
}

.cube-face.front  { transform: rotateY(0deg) translateZ(30px); }
.cube-face.back   { transform: rotateY(180deg) translateZ(30px); }
.cube-face.right  { transform: rotateY(90deg) translateZ(30px); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(30px); }
.cube-face.top    { transform: rotateX(90deg) translateZ(30px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(30px); }

@keyframes rotate-cube {
    from { transform: rotateX(0) rotateY(0); }
    to   { transform: rotateX(360deg) rotateY(360deg); }
}

/* ============================================= */
/* PROFESSIONAL PRODUCT CARDS - EXACT LAYOUT MATCH */
/* ============================================= */

/* Product Recommendations Container */
.product-recommendations {
    margin: 1rem 0;
    background: var(--ledger-white);
    border: 1px solid var(--ledger-border);
    border-radius: 8px;
    padding: 1rem;
}

/* Recommended Products Header */
.product-recommendations-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ledger-black);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--ledger-border);
}

.product-recommendations-header::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--ledger-black);
    color: var(--ledger-white);
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
}

/* All Products Stack Vertically */
.product-recommendations .product-card {
    margin-bottom: 1rem;
}

.product-recommendations .product-card:last-child {
    margin-bottom: 0;
}

/* Individual Product Card */
.product-card {
    background: var(--ledger-white);
    border: 1px solid var(--ledger-border);
    border-radius: 6px;
    padding: 0;
    display: flex;
    align-items: flex-start;
    gap: 0;
    transition: all 0.2s ease;
    cursor: pointer;
    height: 80px;
}

.product-card:hover {
    border-color: var(--ledger-black);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Product Image Container - Takes full height */
.product-card-image {
    flex-shrink: 0;
    width: 80px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ledger-bg-light);
    border-radius: 6px 0 0 6px;
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Product Information */
.product-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 0.75rem 0.5rem 0.75rem;
    justify-content: flex-start;
    align-items: flex-start;
    height: 100%;
}

/* Product Header - Name and Price side by side */
.product-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin: 0;
}

/* Product Title */
.product-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ledger-black);
    line-height: 1.2;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Product Price */
.product-card-price {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--ledger-black);
    margin: 0;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

/* Product Features List */
.product-card-features {
    font-size: 0.75rem;
    color: var(--ledger-text-light);
    font-weight: 400;
    margin: 0;
    line-height: 1.3;
    display: block;
    padding: 0;
}

/* Featured Product Card (Single Large) */
.product-card.featured {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
    height: 100px;
}

.product-card.featured .product-card-image {
    width: 100px;
}

.product-card.featured .product-card-info {
    padding: 0 1rem 1rem 1rem;
}

.product-card.featured .product-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ledger-black);
}

.product-card.featured .product-card-price {
    font-size: 1.125rem;
}

.product-card.featured .product-card-features {
    font-size: 0.875rem;
}



/* Single Product Layout */
.product-recommendations.single-product {
    padding: 1.5rem;
}

.product-recommendations.single-product .product-card {
    height: 120px;
}

.product-recommendations.single-product .product-card-image {
    width: 120px;
}

.product-recommendations.single-product .product-card-info {
    padding: 0 1.25rem 1.25rem 1.25rem;
}

.product-recommendations.single-product .product-card-title {
    font-size: 1.25rem;
}

.product-recommendations.single-product .product-card-features {
    font-size: 1rem;
}

/* Removed: Multiple products now stack vertically like single products */

/* Responsive Design */
@media (max-width: 768px) {
    /* Grid removed - all products stack vertically */
    
    .product-card {
        height: 70px;
    }
    
    .product-card-image {
        width: 70px;
    }
    
    .product-card-info {
        padding: 0 0.5rem 0.5rem 0.5rem;
    }
    
    .product-card.featured {
        height: 90px;
    }
    
    .product-card.featured .product-card-image {
        width: 90px;
    }
    
    .product-card.featured .product-card-info {
        padding: 0 0.75rem 0.75rem 0.75rem;
    }
    
    .product-card-title {
        font-size: 0.8rem;
    }
    
    .product-card.featured .product-card-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .product-recommendations {
        padding: 0.75rem;
    }
    
    .product-card {
        height: 60px;
    }
    
    .product-card-image {
        width: 60px;
    }
    
    .product-card-info {
        padding: 0 0.4rem 0.4rem 0.4rem;
    }
    
    .product-card.featured {
        height: 80px;
    }
    
    .product-card.featured .product-card-image {
        width: 80px;
    }
    
    .product-card-title {
        font-size: 0.75rem;
    }
    
    .product-card-features {
        font-size: 0.7rem;
    }
}

/* Responsive Design - Ledger Mobile Style */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }
    
    .chat-container {
        padding: 1rem;
    }
    
    .welcome-section {
        padding: 3rem 1.5rem;
    }
    
    .welcome-section h1 {
        font-size: 2.5rem;
    }
    
    .start-options {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .start-btn {
        width: 100%;
        max-width: 280px;
    }
    
    .quick-facts {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .chat-interface {
        height: calc(100vh - 80px);
        margin-top: 1rem;
    }
    
    .message-content {
        max-width: 85%;
    }
    
    .product-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .product-image {
        width: 100px;
        height: 60px;
        margin: 0 auto;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-view {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 0.75rem;
    }
    
    .chat-container {
        padding: 0.75rem;
    }
    
    .welcome-section {
        padding: 2rem 1rem;
    }
    
    .welcome-section h1 {
        font-size: 2rem;
    }
    
    .chat-messages {
        padding: 1rem;
    }
    
    .chat-input-container {
        padding: 1rem;
    }
    
    .input-wrapper {
        gap: 0.5rem;
    }
    
    #sendButton {
        width: 40px;
        height: 40px;
    }
} 