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

:root {
    --left-sidebar-width: 240px;
    --sidebar-width: 150px;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f8f8;
    --bg-tertiary: #f0f0f0;
    --bg-hover: #e8e8e8;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #777777;
    --accent-color: #800020;
    --accent-hover: #660019;
    --accent-light: rgba(128, 0, 32, 0.08);
    --border-color: #e0e0e0;
    --chat-input-bg: #ffffff;
    --chat-input-border: #cccccc;
    --scrollbar-thumb: #cccccc;
    --scrollbar-track: transparent;
}

html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
    overscroll-behavior: none;
}

@media (max-width: 768px) {
    html, body {
        overflow: auto;
    }
}

/* ========== LEFT SIDEBAR ========== */
.left-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--left-sidebar-width);
    height: 100vh;
    height: 100dvh;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    z-index: 100;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sidebar-top {
    height: 33.333%;
    min-height: 120px;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

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

.context-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #800020;
}

.context-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Bottom section - 2/3 height - Shopping Cart */
.sidebar-bottom {
    flex: 1;
    overflow: hidden;
}

/* ========== SHOPPING CART ========== */
.cart-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.cart-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    flex-shrink: 0;
}

.cart-icon {
    width: 16px;
    height: 16px;
    color: var(--accent-color);
}

.cart-count {
    margin-left: auto;
    background: var(--accent-color);
    color: white;
    font-size: 11px;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.cart-items::-webkit-scrollbar {
    width: 4px;
}

.cart-items::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 2px;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    text-align: center;
    padding: 20px;
}

.cart-empty svg {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    opacity: 0.4;
}

.cart-empty p {
    font-size: 13px;
    margin-bottom: 4px;
}

.cart-empty-hint {
    font-size: 11px !important;
    opacity: 0.7;
}

.cart-item {
    display: flex;
    gap: 8px;
    padding: 8px;
    border-radius: 8px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    margin-bottom: 6px;
    position: relative;
}

.cart-item-img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-tertiary);
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-details {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.cart-item-qty-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    transition: all 0.2s;
}

.cart-item-qty-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.cart-item-qty {
    font-size: 12px;
    font-weight: 500;
    min-width: 16px;
    text-align: center;
}

.cart-item-price {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-color);
    margin-left: auto;
}

.cart-item-remove {
    width: 18px;
    height: 18px;
    border: none;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    padding: 0;
    transition: color 0.2s;
    flex-shrink: 0;
}

.cart-item-remove:hover {
    color: #dc3545;
}

.cart-footer {
    border-top: 1px solid var(--border-color);
    padding: 12px;
    flex-shrink: 0;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

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

.cart-total-amount {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-color);
}

.cart-checkout-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: var(--accent-color);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.cart-checkout-btn:hover {
    background: var(--accent-hover);
}

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

/* Add-to-cart button in messages */
.add-to-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: none;
    border-radius: 8px;
    background: var(--accent-color);
    color: white;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 8px;
}

.add-to-cart-btn:hover {
    background: var(--accent-hover);
}

.add-to-cart-btn svg {
    width: 14px;
    height: 14px;
}

.add-to-cart-btn.added {
    background: #28a745;
}

/* Product card in messages */
.message-product {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 10px;
    margin: 8px 0;
    border: 1px solid var(--border-color);
}

.message-product-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--bg-tertiary);
}

.message-product-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.message-product-info p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 2px 0 0 !important;
}

.message-product-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-color);
    margin-left: auto;
}

/* ========== RIGHT SIDEBAR ========== */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--sidebar-width);
    height: 100vh;
    height: 100dvh;
    background-color: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
    transition: background-color 0.2s;
}

.sidebar-logo:hover {
    background-color: var(--bg-hover);
}

.sidebar-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.sidebar-logo span {
    font-size: 16px;
    font-weight: 600;
}

.btn-new-chat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: transparent;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 8px;
}

.btn-new-chat:hover {
    background-color: var(--bg-hover);
}

.btn-new-chat svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 4px 8px;
}

.sidebar-menu::-webkit-scrollbar {
    width: 6px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 3px;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 12px;
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: background-color 0.2s, color 0.2s;
    margin-bottom: 2px;
    cursor: pointer;
}

.menu-item:hover {
    background-color: var(--accent-light);
    color: var(--accent-color);
}

.menu-item.active {
    background-color: var(--accent-color);
    color: #ffffff;
}

.menu-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.8;
}

.menu-item:hover svg,
.menu-item.active svg {
    opacity: 1;
}

.sidebar-footer {
    padding: 12px;
    border-top: 1px solid var(--border-color);
}

.sidebar-footer-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
}

.footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: background-color 0.2s, color 0.2s;
}

.footer-link:hover {
    background-color: var(--accent-light);
    color: var(--accent-color);
}

.footer-link svg {
    width: 16px;
    height: 16px;
}

/* ========== HAMBURGER ========== */
.hamburger {
    display: none;
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 200;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.hamburger svg {
    width: 22px;
    height: 22px;
}

/* ========== MAIN CONTENT ========== */
.main-content {
    margin-left: var(--left-sidebar-width);
    margin-right: var(--sidebar-width);
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: margin-left 0.3s ease, margin-right 0.3s ease;
    background-color: #ffffff;
    background-image: url('logo.svg');
    background-size: 120px;
    background-position: center;
    background-repeat: no-repeat;
    background-opacity: 0.03;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 0;
    pointer-events: none;
}

.main-content > * {
    position: relative;
    z-index: 1;
}

/* ========== CHAT AREA ========== */
.chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.chat-container::-webkit-scrollbar {
    width: 8px;
}

.chat-container::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
}

.chat-messages {
    max-width: 768px;
    margin: 0 auto;
    padding: 0 20px;
}

.message {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    animation: fadeIn 0.3s ease;
}

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

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

.message-avatar.user {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.message-avatar.assistant {
    background: var(--accent-color);
    color: white;
    overflow: hidden;
}

.message-avatar.assistant svg {
    width: 20px;
    height: 20px;
}

.message-content {
    flex: 1;
    line-height: 1.7;
    font-size: 15px;
    color: var(--text-primary);
}

.message-content p {
    margin-bottom: 12px;
}

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

.message-content strong {
    color: var(--accent-color);
}

.message-content ul, .message-content ol {
    padding-left: 20px;
    margin-bottom: 12px;
}

.message-content li {
    margin-bottom: 6px;
}

/* Welcome screen */
.welcome-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 40px 20px;
}

.welcome-logo {
    width: 70px;
    height: 70px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--accent-color), #a0002a);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.welcome-screen h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.welcome-screen p {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 32px;
    line-height: 1.6;
}

.welcome-suggestions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 600px;
    width: 100%;
}

.suggestion-card {
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    color: var(--text-secondary);
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.suggestion-card:hover {
    background: #ffffff;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* ========== CHAT INPUT ========== */
.chat-input-wrapper {
    padding: 0 20px 24px;
}

.chat-input-container {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

.chat-input {
    width: 100%;
    padding: 16px 56px 16px 20px;
    border: 1px solid var(--chat-input-border);
    border-radius: 24px;
    background-color: var(--chat-input-bg);
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    resize: none;
    min-height: 56px;
    max-height: 200px;
    line-height: 1.5;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.chat-input::placeholder {
    color: var(--text-muted);
}

.chat-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 2px 12px rgba(128, 0, 32, 0.15);
}

.send-btn {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--accent-color);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, opacity 0.2s;
    opacity: 0.5;
}

.send-btn.active {
    opacity: 1;
}

.send-btn:hover {
    background: var(--accent-hover);
}

.send-btn.sending {
    background: #dc3545;
    opacity: 1;
}

.send-btn.sending:hover {
    background: #c82333;
}

.send-btn svg {
    width: 18px;
    height: 18px;
}

.chat-disclaimer {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
    padding: 0 20px;
}

.chat-disclaimer a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.chat-disclaimer a:hover {
    text-decoration: underline;
}

/* ========== CHECKOUT MODAL ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.modal-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-primary);
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
}

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

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.modal-btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.modal-btn-primary {
    background: var(--accent-color);
    color: white;
}

.modal-btn-primary:hover {
    background: var(--accent-hover);
}

.modal-btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.modal-btn-secondary:hover {
    background: var(--bg-hover);
}

/* Order success */
.order-success {
    text-align: center;
    padding: 20px;
}

.order-success svg {
    width: 64px;
    height: 64px;
    color: #28a745;
    margin-bottom: 16px;
}

.order-success h2 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

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

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .left-sidebar {
        transform: translateX(-100%);
        width: calc(100% - var(--sidebar-width));
    }

    .left-sidebar.open {
        transform: translateX(0);
    }

    .sidebar {
        transform: translateX(100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .hamburger {
        display: flex;
    }

    .main-content {
        margin-left: 0;
        margin-right: 0;
    }

    .chat-container {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .welcome-suggestions {
        grid-template-columns: 1fr;
    }

    .chat-input {
        font-size: 14px;
    }

    .modal-content {
        padding: 20px;
    }
}

/* ========== SUBPAGES ========== */
.subpage-container {
    margin-left: var(--left-sidebar-width);
    margin-right: var(--sidebar-width);
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    z-index: 1;
    transition: margin-left 0.3s ease, margin-right 0.3s ease;
    background-color: #ffffff;
    background-image: url('logo.svg');
    background-size: 120px;
    background-position: center;
    background-repeat: no-repeat;
}

.subpage-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 0;
    pointer-events: none;
}

.subpage-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    position: relative;
    z-index: 1;
}

.subpage-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.subpage-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.subpage-header h1 svg {
    width: 32px;
    height: 32px;
    color: var(--accent-color);
}

.subpage-header p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    cursor: default;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 32px rgba(128, 0, 32, 0.12);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-color), #a0002a);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.card-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

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

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

.card .card-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 12px;
}

.card .add-to-cart-subpage {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: var(--accent-color);
    color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.card .add-to-cart-subpage:hover {
    background: var(--accent-hover);
}

/* ========== BOTTOM FOOTER BAR ========== */
.bottom-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    font-size: 12px;
    color: var(--text-muted);
}

.bottom-footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.bottom-footer a:hover {
    color: var(--accent-color);
}

.bottom-footer span {
    color: var(--border-color);
}

@media (max-width: 768px) {
    .subpage-container {
        margin-left: 0;
        margin-right: 0;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .bottom-footer {
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* Typing animation */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-color);
    animation: typingBounce 1.4s infinite;
}

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

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

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

/* ========== FAQ Section ========== */
.faq-section {
    max-width: 768px;
    margin: 60px auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.faq-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 32px;
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--accent-color);
}

.faq-item {
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.faq-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.faq-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.faq-item strong {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .faq-section {
        margin: 40px 16px;
        padding: 24px 16px;
    }
    
    .faq-title {
        font-size: 20px;
    }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
