/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

* {
    --webkit-scrollbar-width: none;
    --webkit-scrollbar-height: none;
    --ms-overflow-style: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: #111111;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Theme toggle button (reuse homepage look) */
.theme-toggle {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.theme-toggle:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-1px); }
.theme-toggle .material-symbols-outlined { font-size: 18px; line-height: 1; }

/* Dashboard Container */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background-color: #111111;
}

/* Light theme core overrides */
.theme-light body { background-color: #f9fafb; color: #0f172a; }
.theme-light .dashboard-container { background-color: #f9fafb; }
.theme-light .sidebar { background-color: #ffffff; border-right: 1px solid #e5e7eb; }
.theme-light .sidebar-header { border-bottom: 1px solid #e5e7eb; }
.theme-light .logo-text { color: #0f172a; }
.theme-light .menu-section-title { color: #6b7280; }
.theme-light .menu-item { color: #4b5563; }
.theme-light .menu-item:hover { background-color: #f3f4f6; color: #0f172a; }
.theme-light .menu-item.active { background-color: #e5e7eb; color: #0f172a; }
.theme-light .logout-btn { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); color: #6b7280; }
.theme-light .logout-btn:hover { background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.35); color: #b91c1c; }
.theme-light .user-name { color: #0f172a; }
.theme-light .user-role { color: #6b7280; }
.theme-light .main-wrapper { background-color: #ffffff; }
.theme-light .main-content { background-color: #ffffff; }
.theme-light .content-header { border-bottom: 1px solid #e5e7eb; background-color: #ffffff; }
.theme-light .content-header h1 { color: #0f172a; }
.theme-light .btn-primary { background-color: #111827; color: #ffffff; box-shadow: 0 1px 2px rgba(16,24,40,0.12); }
.theme-light .btn-primary:hover { background-color: #0b1220; }
.theme-light .btn-secondary { background-color: #ffffff; color: #111827; border-color: #d1d5db; box-shadow: 0 1px 2px rgba(16,24,40,0.06); }
.theme-light .btn-secondary:hover { background-color: #f1f5f9; border-color: #cfd6df; }
.theme-light .theme-toggle { background: rgba(0,0,0,0.06); color: #111111; border-color: rgba(0,0,0,0.18); }
.theme-light .theme-toggle:hover { background: rgba(0,0,0,0.10); }

/* Cards and surfaces */
.theme-light .stat-card,
.theme-light .chart-card,
.theme-light .activity-card,
.theme-light .metrics-card,
.theme-light .table-card,
.theme-light .settings-card,
.theme-light .review-summary-card,
.theme-light .deployment-settings-card,
.theme-light .section-card,
.theme-light .chatbot-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(16,24,40,0.06);
}
.theme-light .card-header { border-bottom: 1px solid #e5e7eb; }
.theme-light .card-header h3 { color: #0f172a; }
.theme-light .card-description,
.theme-light .project-content p,
.theme-light .about-text,
.theme-light .section-header p,
.theme-light .detail-label { color: #6b7280; }
.theme-light .stat-icon { background-color: #f3f4f6; color: #111111; }
.theme-light .stat-number { color: #0f172a; }
.theme-light .stat-content h3 { color: #6b7280; }
.theme-light .activity-icon,
.theme-light .detail-icon,
.theme-light .bot-avatar,
.theme-light .option-icon,
.theme-light .option-icon-new,
.theme-light .project-menu { background-color: #f3f4f6; color: #6b7280; }
.theme-light .message-bubble { background-color: #f9fafb; border: 1px solid #e5e7eb; color: #111111; }
.theme-light .card-footer { background-color: #fafafa; border-top: 1px solid #e5e7eb; }

/* Inputs */
.theme-light .form-input,
.theme-light .select-input,
.theme-light .form-textarea,
.theme-light .dropdown-button,
.theme-light .dropdown-menu,
.theme-light .search-input {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #0f172a;
}
.theme-light .form-input:focus,
.theme-light .form-textarea:focus,
.theme-light .search-input:focus { border-color: #111827; background-color: #ffffff; }
.theme-light .form-input::placeholder,
.theme-light .search-input::placeholder { color: #94a3b8; }
.theme-light .dropdown-option { color: #0f172a; }
.theme-light .dropdown-option:hover { background-color: #f3f4f6; }
.theme-light .checkbox-item { background-color: #ffffff; border-color: #e5e7eb; }
.theme-light .checkbox-custom { border-color: #e5e7eb; }

/* Tables */
.theme-light .monochrome-table { background: #ffffff; border: 1px solid #e5e7eb; }
.theme-light .monochrome-table thead th { background: #f3f4f6; color: #0f172a; border-bottom: 1px solid #e5e7eb; }
.theme-light .monochrome-table tbody td { color: #111111; border-bottom: 1px solid #e5e7eb; }
.theme-light .monochrome-table tbody tr:hover { background: #f9fafb; }

/* Misc */
.theme-light .footer, .theme-light .content-header, .theme-light .section-header { color: #0f172a; }

/* Additional global light-theme text fixes */
.theme-light .header-content h2 { color: #0f172a; }
.theme-light .header-content p { color: #6b7280; }
.theme-light .card-info h3 { color: #0f172a; }
.theme-light .platform-header h3 { color: #0f172a; }
.theme-light .platform-content p { color: #475569; }
.theme-light .help-content h3 { color: #0f172a; }
.theme-light .help-content p { color: #475569; }
.theme-light .coming-soon-content h2 { color: #0f172a; }
.theme-light .coming-soon-content p { color: #6b7280; }

/* --- Light overrides for Setup (inline-styled partial) --- */
.theme-light .setup-container .integration-card { background: #ffffff !important; border-color: #e5e7eb !important; box-shadow: 0 1px 2px rgba(16,24,40,0.06); }
.theme-light .setup-container .integration-header { border-bottom: 1px solid #e5e7eb !important; }
.theme-light .setup-container .integration-icon.google { background: #f3f4f6 !important; color: #111827 !important; }
.theme-light .setup-container .integration-info h3 { color: #0f172a !important; }
.theme-light .setup-container .integration-description h4,
.theme-light .setup-container .setup-steps h4 { color: #0f172a !important; }
.theme-light .setup-container .features-list .feature-item { background: #f9fafb !important; border-color: #e5e7eb !important; }
.theme-light .setup-container .feature-icon { background: #eef2f7 !important; color: #64748b !important; }
.theme-light .setup-container .feature-content strong { color: #0f172a !important; }
.theme-light .setup-container .feature-content p { color: #64748b !important; }
.theme-light .setup-container .step-number { background: #e5e7eb !important; color: #111827 !important; }
.theme-light .setup-container .step-content strong { color: #0f172a !important; }
.theme-light .setup-container .step-content p { color: #64748b !important; }
.theme-light .setup-container .permission-notice { background: rgba(59,130,246,0.08) !important; border-color: rgba(59,130,246,0.22) !important; }
.theme-light .setup-container .notice-content strong { color: #0f172a !important; }
.theme-light .setup-container .notice-content p { color: #475569 !important; }
.theme-light .future-integrations h3 { color: #0f172a !important; }
.theme-light .future-card { background: #ffffff !important; border-color: #e5e7eb !important; }
.theme-light .future-card h4 { color: #0f172a !important; }
.theme-light .future-card p { color: #6b7280 !important; }
.theme-light .future-icon { color: #64748b !important; background: #eef2f7 !important; }

/* --- Light overrides for Calendar full-page layout --- */
.theme-light .calendar-fullscreen { background: #ffffff; }
.theme-light .calendar-header-bar {
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.9) 80%, rgba(255,255,255,0) 100%);
    border-bottom: 1px solid #e5e7eb;
}
.theme-light .week-selector { color: #0f172a; }
.theme-light .calendar-title { color: #0f172a; }
.theme-light .nav-arrow { background: rgba(0,0,0,0.06); color: #111111; border: 1px solid rgba(0,0,0,0.12); }
.theme-light .nav-arrow:hover { background: rgba(0,0,0,0.10); }
.theme-light .today-btn, .theme-light .sync-btn, .theme-light .reset-btn {
    background: rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.12);
    color: #111111;
}
.theme-light .sync-btn:hover { background: rgba(59,130,246,0.12); border-color: rgba(59,130,246,0.35); }
.theme-light .reset-btn:hover { background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.35); }
.theme-light .view-toggle { background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.12); }
.theme-light .view-btn { color: #6b7280; }
.theme-light .view-btn:hover { color: #111111; }
.theme-light .view-btn.active { background: #0f172a; color: #ffffff; box-shadow: none; }

.theme-light .calendar-grid-container { background: #ffffff; }
.theme-light .time-column-fixed { background: #f9fafb; border-right: 1px solid #e5e7eb; }
.theme-light .time-header-cell { background: #f9fafb; border-bottom: 1px solid #e5e7eb; }
.theme-light .time-label { color: #64748b; border-bottom: 1px solid #e5e7eb; }
.theme-light .time-label.half-hour { color: #94a3b8; }

.theme-light .day-headers-row { background: #f9fafb; border-bottom: 1px solid #e5e7eb; }
.theme-light .day-header-cell { border-right: 1px solid #e5e7eb; }
.theme-light .day-header-cell.today { background: rgba(0,0,0,0.04); }
.theme-light .day-name { color: #64748b; }
.theme-light .day-number { color: #0f172a; }
.theme-light .today-badge { background: #0f172a; color: #ffffff; }

.theme-light .day-column-content { border-right: 1px solid #e5e7eb; }
.theme-light .day-column-content.today { background: rgba(0,0,0,0.02); }
.theme-light .hour-cell { border-bottom: 1px solid #e5e7eb; }
.theme-light .hour-cell.half-hour { border-bottom: 1px solid #f1f5f9; }
.theme-light .hour-cell:hover { background: rgba(0,0,0,0.06); }
.theme-light .hour-cell:nth-child(even) { background: rgba(0,0,0,0.02); }
.theme-light .hour-cell.unavailable {
    background: repeating-linear-gradient(45deg, rgba(0,0,0,0.02), rgba(0,0,0,0.02) 10px, rgba(0,0,0,0.04) 10px, rgba(0,0,0,0.04) 20px);
}

.theme-light .appointment-tile.status-pending {
    background: linear-gradient(135deg, rgba(0,0,0,0.08), rgba(0,0,0,0.04));
    border-left-color: #9ca3af;
    color: #111827;
}
.theme-light .appointment-tile.status-confirmed {
    background: linear-gradient(135deg, rgba(0,0,0,0.06), rgba(0,0,0,0.03));
    border-left-color: #d1d5db;
    color: #0f172a;
}
.theme-light .appointment-tile.status-cancelled {
    background: linear-gradient(135deg, rgba(0,0,0,0.04), rgba(0,0,0,0.02));
    border-left-color: #6b7280;
    color: #475569;
}

.theme-light #listView { background: #ffffff !important; }
.theme-light .modal-content { background: #ffffff; border: 1px solid #e5e7eb; }
.theme-light .modal-header { border-bottom: 1px solid #e5e7eb; }
.theme-light .modal-header h3 { color: #0f172a; }
.theme-light .modal-footer { border-top: 1px solid #e5e7eb; }
.theme-light #cancelAppointmentBtn { background: rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.12); color: #111827; }
.theme-light #cancelAppointmentBtn:hover { background: rgba(0,0,0,0.10); }
/* Appointment modal text colors */
.theme-light .appointment-detail label { color: #64748b; }
.theme-light .appointment-detail p { color: #0f172a; }
.theme-light .status-badge { background: rgba(0,0,0,0.06); color: #0f172a; }

/* --- Light overrides for generic dropdown menus used in tables/cards --- */
.theme-light .card-dropdown { background: #ffffff; border: 1px solid #e5e7eb; box-shadow: 0 8px 24px rgba(16,24,40,0.12); }
.theme-light .dropdown-item { color: #0f172a; }
.theme-light .dropdown-item:hover { background: #f3f4f6; }
.theme-light .dropdown-item.delete-item { color: #b91c1c; border-top: 1px solid #e5e7eb; }
.theme-light .dropdown-item.delete-item:hover { background: rgba(239,68,68,0.08); color: #b91c1c; }

/* Ensure table dropdown in list/table contexts also flips to light */
.theme-light .table-kebab .card-dropdown { background: #ffffff; border: 1px solid #e5e7eb; box-shadow: 0 8px 24px rgba(16,24,40,0.12); }
.theme-light .table-kebab .dropdown-item { color: #0f172a; }
.theme-light .table-kebab .dropdown-item:hover { background: #f3f4f6; }
.theme-light .table-kebab .dropdown-item.delete-item { color: #b91c1c; border-top: 1px solid #e5e7eb; }
.theme-light .table-kebab .dropdown-item.delete-item:hover { background: rgba(239,68,68,0.08); color: #b91c1c; }

/* Contact Requests & Conversations modals (light mode) */
.theme-light .modal-overlay { background: rgba(0,0,0,0.5); }
.theme-light .modal-container { background: #ffffff; border: 1px solid #e5e7eb; }
.theme-light .modal-container.large { background: #ffffff; }
.theme-light .modal-header { border-bottom: 1px solid #e5e7eb; }
.theme-light .modal-header h3 { color: #0f172a; }
.theme-light .modal-close { color: #64748b; }
.theme-light .modal-close:hover { color: #0f172a; }
.theme-light .modal-body { color: #0f172a; }

/* Contact Requests: details typography */
.theme-light .request-details .detail-row label { color: #64748b; }
.theme-light .request-details .detail-row span { color: #0f172a; }
.theme-light .request-details .details-content { background: #ffffff; border: 1px solid #e5e7eb; color: #0f172a; }

/* Conversations: info and messages */
.theme-light .conversation-info { background: #ffffff; border: 1px solid #e5e7eb; }
.theme-light .conversation-info .info-label { color: #64748b; }
.theme-light .conversation-info .info-value { color: #0f172a; }
.theme-light .conversation-messages .message-content { background: #f9fafb; border: 1px solid #e5e7eb; color: #0f172a; }
.theme-light .message-item.user .message-content { background: rgba(59,130,246,0.08); border-color: rgba(59,130,246,0.25); color: #0f172a; }
.theme-light .message-item.bot .message-content { background: rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.25); color: #0f172a; }

/* Conversations table hover fix */
.theme-light .conversation-row:hover { background: #f3f4f6 !important; }

/* --- Light overrides for Support Requests page (inline-styled partial) --- */
.theme-light .requests-header { border-bottom: 1px solid #e5e7eb !important; }
.theme-light .requests-container .header-content h2 { color: #0f172a !important; }
.theme-light .requests-container .header-content p { color: #6b7280 !important; }
.theme-light .empty-icon { background: #f1f5f9 !important; color: #64748b !important; }
.theme-light .empty-state h3 { color: #0f172a !important; }
.theme-light .empty-state p { color: #6b7280 !important; }
.theme-light .empty-actions .btn-primary { background: #0f172a !important; color: #ffffff !important; border: 1px solid #0f172a !important; }
.theme-light .empty-actions .btn-primary:hover { background: #0b1220 !important; }

/* --- Light overrides: Installation Guide --- */
.theme-light .installation-header .header-content h2 { color: #0f172a; }
.theme-light .installation-header .header-content p { color: #6b7280; }
.theme-light .section-card { background: #ffffff; border: 1px solid #e5e7eb; }
.theme-light .section-header { border-bottom: 1px solid #e5e7eb; }
.theme-light .section-header.standalone { border-bottom: none; }
.theme-light .section-header h3 { color: #0f172a; }
.theme-light .section-header p { color: #64748b; }
.theme-light .section-icon { background: #f1f5f9; color: #0f172a; }
.theme-light .section-content { color: #0f172a; }
.theme-light .step-number { background: #e5e7eb; color: #111827; }
.theme-light .step-content h4 { color: #0f172a; }
.theme-light .step-content p { color: #64748b; }
.theme-light .platform-card { background: #ffffff; border: 1px solid #e5e7eb; }
.theme-light .platform-header { border-bottom: 1px solid #e5e7eb; }
.theme-light .platform-header h3 { color: #0f172a; }
.theme-light .platform-content p { color: #475569; }
.theme-light .code-block { background: #ffffff; border: 1px solid #e5e7eb; }
.theme-light .code-block code { color: #0f172a; }
.theme-light .copy-btn { background: #ffffff; border: 1px solid #e5e7eb; color: #64748b; }
.theme-light .copy-btn:hover { background: #f3f4f6; color: #0f172a; }

/* Installation Guide: Troubleshooting FAQ */
.theme-light .faq-item h4 { color: #0f172a; }
.theme-light .faq-item p { color: #475569; }

/* --- Light overrides: Help Center --- */
.theme-light .help-card { background: #ffffff; border: 1px solid #e5e7eb; }
.theme-light .help-content h3 { color: #0f172a; }
.theme-light .help-content p { color: #64748b; }
.theme-light .help-icon { color: #64748b; }

/* --- Light overrides: Projects --- */
.theme-light .projects-header .header-content h2 { color: #0f172a; }
.theme-light .projects-header .header-content p { color: #6b7280; }
.theme-light .project-card { background: #ffffff; border: 1px solid #e5e7eb; }
.theme-light .project-header { border-bottom: 1px solid #e5e7eb; }
.theme-light .project-content h3 { color: #0f172a; }
.theme-light .project-content p { color: #64748b; }
.theme-light .project-status.active { background-color: rgba(16,185,129,0.12); color: #059669; }
.theme-light .project-status.completed { background-color: rgba(59,130,246,0.12); color: #2563eb; }
.theme-light .project-status.on-hold { background-color: rgba(245,158,11,0.12); color: #b45309; }
.theme-light .project-menu:hover { background: #f3f4f6; color: #0f172a; }
.theme-light .progress-bar { background: #e5e7eb; }
.theme-light .progress-fill { background: #0f172a; }
.theme-light .progress-text { color: #64748b; }
.theme-light .list-detail-label { color: #64748b; }
.theme-light .list-detail-value { color: #0f172a; }

/* --- Light overrides: AI chat side panel --- */
.theme-light .ai-chat-panel { background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.95) 100%); border-left: 1px solid rgba(0,0,0,0.08); }
.theme-light .ai-chat-header { background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.95) 100%); border-bottom: 1px solid rgba(0,0,0,0.06); }
.theme-light .ai-chat-title { color: #0f172a; }
.theme-light .ai-chat-title svg { color: #64748b; }
.theme-light .ai-chat-close, .theme-light .ai-chat-clear { color: #64748b; }
.theme-light .ai-chat-close:hover, .theme-light .ai-chat-clear:hover { background: rgba(0,0,0,0.06); color: #0f172a; }
.theme-light .ai-chat-messages { background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.95) 100%); }
.theme-light .ai-chat-messages .message-content { background: #ffffff; color: #0f172a; border: 1px solid rgba(0,0,0,0.08); }
.theme-light .ai-chat-input { background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.95) 100%); border-top: 1px solid rgba(0,0,0,0.06); }
.theme-light .ai-chat-input-wrapper { background: rgba(241,245,249,0.6); border: 1px solid rgba(0,0,0,0.08); }
.theme-light .ai-chat-input textarea { color: #0f172a; }
.theme-light .ai-chat-input textarea::placeholder { color: #94a3b8; }
.theme-light .ai-chat-input button { background: #0f172a; color: #ffffff; }
.theme-light .ai-chat-input button:hover { background: #0b1220; }

/* --- Light overrides for Chatbot Settings inline modals --- */
.theme-light #exportModal > div { background: #ffffff !important; border: 1px solid #e5e7eb !important; }
.theme-light #exportModal > div > div:first-child { border-bottom: 1px solid #e5e7eb !important; }
.theme-light #exportModal > div > div:last-child { border-top: 1px solid #e5e7eb !important; }
.theme-light #exportModal code { color: #334155 !important; }
.theme-light #exportModal .btn-secondary { background: #ffffff; color: #0f172a; border-color: #d1d5db; }
.theme-light #exportModal .btn-secondary:hover { background: #f1f5f9; border-color: #cfd6df; }

.theme-light #crawlWebsiteModal > div { background: #ffffff !important; border: 1px solid #e5e7eb !important; }
.theme-light #crawlWebsiteModal > div > div:first-child { border-bottom: 1px solid #e5e7eb !important; }
.theme-light #crawlWebsiteModal > div > div:last-child { border-top: 1px solid #e5e7eb !important; }
.theme-light #crawlWebsiteModal .form-group label { color: #0f172a !important; }
.theme-light #crawlWebsiteModal .form-group .form-input { background: #ffffff; border: 1px solid #e5e7eb; color: #0f172a; }

.theme-light .notification { background: #ffffff; border: 1px solid #e5e7eb; color: #0f172a; }
.theme-light .notification-success { border-color: #10b981; background: rgba(16,185,129,0.08); }
.theme-light .notification-error { border-color: #ef4444; background: rgba(239,68,68,0.08); }

/* --- Light overrides for Usage & Analytics --- */
.theme-light .analytics-content .table-card,
.theme-light .analytics-content .metrics-card { background: #ffffff; border: 1px solid #e5e7eb; }
.theme-light .analytics-content .card-header h3 { color: #0f172a; }
.theme-light .analytics-content .card-header span { color: #64748b; }
.theme-light .analytics-content .metric-label { color: #64748b; }
.theme-light .analytics-content .metric-value { color: #0f172a !important; }
.theme-light #sumIn, .theme-light #sumOut, .theme-light #sumTotal, .theme-light #avgDaily, .theme-light #ioRatio { color: #0f172a !important; }
.theme-light #rangeButtons { background: #f1f5f9 !important; border: 1px solid #e5e7eb !important; }
.theme-light .analytics-content .range-btn { background: #ffffff !important; border: 1px solid #e5e7eb !important; color: #0f172a !important; }
.theme-light .analytics-content .range-btn[style*="background: #1a1a1a"] { background: #0f172a !important; color: #ffffff !important; border-color: #0f172a !important; }
.theme-light #dateRangeDisplay { color: #64748b !important; }
.theme-light .analytics-content .select-input { background: #ffffff; border: 1px solid #e5e7eb; color: #0f172a; }
.theme-light .chart-placeholder { background: #ffffff !important; border: 1px solid #e5e7eb !important; }
.theme-light #chartTooltip, .theme-light #messagesChartTooltip { background: #ffffff !important; border: 1px solid #e5e7eb !important; }
.theme-light #chartTooltip #tooltipDate, .theme-light #messagesChartTooltip #tooltipMessagesDate { color: #64748b !important; }
.theme-light #chartTooltip span, .theme-light #messagesChartTooltip span { color: #0f172a !important; }
.theme-light #messagesProgress, .theme-light #chatbotsProgress { background: linear-gradient(90deg, #0f172a, #334155) !important; }

/* --- Light overrides for Billing page --- */
.theme-light .billing-header h2 { color: #0f172a; }
.theme-light .billing-header p { color: #6b7280; }
.theme-light .current-plan-badge { background: #f8fafc; border: 1px solid #e5e7eb; }
.theme-light .plan-label { color: #64748b; }
.theme-light .plan-name { color: #0f172a; }
.theme-light .subscription-section h3 { color: #0f172a; }
.theme-light .billing-toggle .toggle-label { color: #64748b; }
.theme-light .pricing-card { background: #ffffff; border: 1px solid #e5e7eb; }
.theme-light .pricing-card.featured { border-color: #0f172a; background: #ffffff; }
.theme-light .pricing-card .card-header h4 { color: #0f172a; }
.theme-light .pricing-card .plan-description { color: #6b7280; }
.theme-light .pricing-card .features-list li { color: #334155; }
.theme-light .pricing-card .checkmark { background: rgba(249, 115, 22, 0.1); color: #F97316; }
.theme-light .price-display .currency { color: #64748b; }
.theme-light .price-display .price { color: #0f172a; }
.theme-light .price-display .period { color: #64748b; }
.theme-light .subscription-section .section-subtitle { color: #64748b; }
.theme-light .select-plan-btn { background: #0f172a; color: #ffffff; border: 1px solid #0f172a; }
.theme-light .select-plan-btn:hover { background: #0b1220; }
.theme-light .select-plan-btn.current { background: #e5e7eb; color: #6b7280; border-color: #e5e7eb; }

/* --- Light overrides for Settings page --- */
.theme-light .settings-header .header-content h2 { color: #0f172a; }
.theme-light .settings-header .header-content p { color: #6b7280; }
.theme-light .settings-card { background: #ffffff; border: 1px solid #e5e7eb; backdrop-filter: none; }
.theme-light .settings-card:hover { border-color: #d1d5db; background: #ffffff; box-shadow: 0 4px 16px rgba(16,24,40,0.06); }
.theme-light .card-header { border-bottom: 1px solid #e5e7eb; }
.theme-light .settings-icon { background: #f1f5f9; border: 1px solid #e5e7eb; color: #0f172a; }
.theme-light .settings-icon.danger { background: rgba(220,38,38,0.08); border-color: rgba(220,38,38,0.25); color: #b91c1c; }
.theme-light .header-info h3 { color: #0f172a; }
.theme-light .header-info p { color: #64748b; }
.theme-light .form-group label { color: #0f172a; }
.theme-light .form-input, .theme-light .form-textarea { background: #f9fafb; border: 1px solid #e5e7eb; color: #0f172a; backdrop-filter: none; }
.theme-light .form-input:focus, .theme-light .form-textarea:focus { border-color: #111827; background: #ffffff; box-shadow: 0 0 0 3px rgba(17,24,39,0.06); }
.theme-light .form-hint { color: #64748b; }
.theme-light .btn-primary { background: #0f172a; color: #ffffff; border-color: #0f172a; box-shadow: 0 1px 2px rgba(16,24,40,0.12); }
.theme-light .btn-primary:hover { background: #0b1220; border-color: #0b1220; }
.theme-light .btn-secondary { background: #ffffff; color: #0f172a; border-color: #d1d5db; box-shadow: 0 1px 2px rgba(16,24,40,0.06); }
.theme-light .btn-secondary:hover { background: #f1f5f9; border-color: #cfd6df; }

/* Settings: Legal/Data cards */
.theme-light .legal-item, .theme-light .data-export, .theme-light .availability-day-row { background: #ffffff; border: 1px solid #e5e7eb; backdrop-filter: none; }
.theme-light .legal-item:hover, .theme-light .data-export:hover { background: #ffffff; border-color: #d1d5db; }
.theme-light .legal-content h4, .theme-light .export-header h4 { color: #0f172a; }
.theme-light .legal-content p, .theme-light .export-header p { color: #64748b; }

/* Settings: Availability */
.theme-light .availability-header h4 { color: #0f172a; }
.theme-light .availability-header p { color: #64748b; }
.theme-light .day-label { background: #f9fafb; border: 1px solid #e5e7eb; color: #64748b; }
.theme-light .day-checkbox input[type="checkbox"]:checked + .day-label { background: #0f172a; border-color: #0f172a; color: #ffffff; }
.theme-light .time-input-group label { color: #64748b; }
.theme-light .time-input { background: #ffffff; border: 1px solid #e5e7eb; color: #0f172a; }
.theme-light .time-input:focus { border-color: #111827; background: #ffffff; }
.theme-light .time-separator { color: #94a3b8; }
.theme-light .availability-actions { border-top: 1px solid #e5e7eb; }

/* Settings: Danger zone */
.theme-light .danger-item { background: #ffffff; border: 1px solid rgba(220,38,38,0.25); }
.theme-light .danger-content h4 { color: #0f172a; }
.theme-light .danger-content p { color: #6b7280; }

/* Settings: Password Requirements */
.theme-light .password-requirements { background: #ffffff; border: 1px solid #e5e7eb; }
.theme-light .password-requirements h4 { color: #0f172a; }
.theme-light .password-requirements h4::before { background: #0f172a; }
.theme-light .password-requirements li { color: #475569; }
.theme-light .password-requirements li::before { background: rgba(0,0,0,0.06); color: #64748b; }

/* --- Light overrides for Chatbot Settings page (views/partials/chatbot-settings-content.ejs) --- */
.theme-light .settings-sidebar { background: #ffffff; border-right: 1px solid #e5e7eb; }
.theme-light .settings-sidebar-header { border-bottom: 1px solid #e5e7eb; }
.theme-light .settings-sidebar-header h3 { color: #0f172a; }
.theme-light .settings-nav-item { color: #475569; }
.theme-light .settings-nav-item:hover { background: #f3f4f6; color: #0f172a; }
.theme-light .settings-nav-item.active { background: #e5e7eb; color: #0f172a; }

.theme-light .settings-header { border-bottom: 1px solid #e5e7eb; }
.theme-light .back-link { color: #64748b; }
.theme-light .back-link:hover { color: #0f172a; }
.theme-light .settings-title h2 { color: #0f172a; }
.theme-light .settings-title p { color: #64748b; }

.theme-light .panel-section { background: #ffffff; border: 1px solid #e5e7eb; backdrop-filter: none; }
.theme-light .panel-section:hover { background: #ffffff; border-color: #d1d5db; }
.theme-light .panel-section h3 { color: #0f172a; }
.theme-light .panel-description, .theme-light .section-description { color: #64748b; }

.theme-light .form-header label { color: #0f172a; }
.theme-light .personality-status, .theme-light .context-status { color: #64748b; }
.theme-light .personality-display-box, .theme-light .context-display-box { background: #f9fafb; border: 1px solid #e5e7eb; }
.theme-light .personality-text { color: #0f172a; }
.theme-light .context-text { color: #0f172a; background: #ffffff; border: 1px solid #e5e7eb; }
.theme-light .settings-grid .setting-row { background: #f9fafb; border: 1px solid #e5e7eb; }
.theme-light .setting-label { color: #64748b; }
.theme-light .setting-value { color: #0f172a; }

.theme-light .tone-option, .theme-light .verbosity-option { background: #f9fafb; border: 1px solid #e5e7eb; color: #475569; backdrop-filter: none; }
.theme-light .tone-option:hover, .theme-light .verbosity-option:hover { background: #ffffff; border-color: #d1d5db; color: #0f172a; }
.theme-light .tone-option.active, .theme-light .verbosity-option.active { background: #0f172a; border-color: #0f172a; color: #ffffff; }

.theme-light .form-slider { background: #e5e7eb; }
.theme-light .form-slider::-webkit-slider-thumb { background: #0f172a; }
.theme-light .slider-value { color: #0f172a; }

.theme-light .feature-option { background: #ffffff; border: 1px solid #e5e7eb; backdrop-filter: none; }
.theme-light .feature-option:hover { background: #ffffff; border-color: #d1d5db; }
.theme-light .feature-icon { background: #f1f5f9; color: #64748b; }
.theme-light .feature-info h4 { color: #0f172a; }
.theme-light .feature-info p { color: #64748b; }
.theme-light .feature-note { background: #f9fafb; border: 1px solid #e5e7eb; color: #475569; }

.theme-light .context-display-box pre { background: #ffffff; border: 1px solid #e5e7eb; }
.theme-light .embed-code { background: #f9fafb; }
.theme-light .embed-code pre { background: #ffffff; border: 1px solid #e5e7eb; }

.theme-light .deployment-option { background: #ffffff; border: 1px solid #e5e7eb; backdrop-filter: none; }
.theme-light .option-info { color: #0f172a; }
.theme-light .option-info svg { color: #64748b; }
/* Billing subscription card and modals */
.theme-light .subscription-card { background: #ffffff; border: 1px solid #e5e7eb; }
.theme-light .subscription-header { border-bottom: 1px solid #e5e7eb; }
.theme-light .subscription-info h4 { color: #0f172a; }
.theme-light .subscription-info p { color: #475569; }
.theme-light .detail-value { color: #0f172a; }
.theme-light .upgrade-modal { background: #ffffff; border: 1px solid #e5e7eb; }
.theme-light .upgrade-modal .modal-header { border-bottom: 1px solid #e5e7eb; }
.theme-light .upgrade-modal .modal-header h3 { color: #0f172a; }
.theme-light .upgrade-modal .modal-body p { color: #475569; }
.theme-light .current-payment-info { background: #f9fafb; border: 1px solid #e5e7eb; }
.theme-light .current-payment-info h4 { color: #64748b; }
.theme-light .current-card-display { color: #0f172a; }
.theme-light .current-card-display .card-last4 { color: #334155; }
.theme-light .current-card-display .card-expiry { color: #64748b; }

/* Payment modal light overrides */
.theme-light .payment-modal { background: #ffffff; border: 1px solid #e5e7eb; }
.theme-light .payment-modal .modal-header { border-bottom: 1px solid #e5e7eb; }
.theme-light .payment-modal .modal-header h3 { color: #0f172a; }
.theme-light .summary-card { background: #ffffff; border: 1px solid #e5e7eb; }
.theme-light .summary-item span:first-child { color: #64748b; }
.theme-light .summary-item span:last-child { color: #0f172a; }
.theme-light .summary-divider { background: #e5e7eb; }
.theme-light .success-popup { background: #ffffff; border: 1px solid #e5e7eb; }
.theme-light .success-popup h3 { color: #0f172a; }
.theme-light .success-popup p { color: #475569; }

/* --- Light overrides for Account/Settings page --- */
.theme-light .section-header h2, .theme-light .section-header h3 { color: #0f172a; }
.theme-light .section-header p { color: #6b7280; }
.theme-light .settings-nav-item { color: #475569; }
.theme-light .settings-nav-item:hover { background-color: #f3f4f6; color: #0f172a; }
.theme-light .settings-nav-item.active { background-color: #e5e7eb; color: #0f172a; }
.theme-light .form-group label { color: #0f172a; }
.theme-light .preference-content h4 { color: #0f172a; }
.theme-light .preference-content p { color: #64748b; }

/* --- Light overrides for Create Chatbot wizard --- */
.theme-light .step-item { color: #6b7280; }
.theme-light .step-item.active { color: #0f172a; }
.theme-light .step-circle { background: #e5e7eb; color: #111827; }
.theme-light .step-separator { background-color: #e5e7eb; }
.theme-light .chatbot-wizard .step-header h2 { color: #0f172a; }
.theme-light .chatbot-wizard .step-header p { color: #64748b; }
/* Give form sections a card in light mode for contrast */
.theme-light .chatbot-wizard .wizard-step > .form-section { background: #ffffff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 24px; }
.theme-light .toggle-switch-group { background-color: #eef2f7; }
.theme-light .toggle-option { color: #475569; }
.theme-light .toggle-switch-group::before { background-color: #ffffff; box-shadow: 0 1px 2px rgba(16,24,40,0.08); }
.theme-light .personality-item label { color: #0f172a; }
.theme-light .review-summary-card { background: #ffffff; border: 1px solid #e5e7eb; box-shadow: 0 1px 2px rgba(16,24,40,0.06); }
.theme-light .summary-header h3 { color: #0f172a; }
.theme-light .config-overview h4, .theme-light .message-preview-section h4, .theme-light .settings-header h3 { color: #0f172a; }
.theme-light .chat-preview { background-color: #ffffff; border: 1px solid #e5e7eb; }
.theme-light .preview-message .message-bubble { background-color: #f9fafb; border: 1px solid #e5e7eb; color: #0f172a; }

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background-color: #111111;
    border-right: 1px solid #222222;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh; /* viewport height */
    height: 100dvh; /* mobile-safe viewport height */
    left: 0;
    top: 0;
    bottom: auto;
    z-index: 100;
    transition: width 0.25s ease;
    overflow: hidden; /* avoid internal overflow causing visual gaps */
}

.sidebar-header {
    padding: 28px 20px;
    border-bottom: 1px solid #222222;
}

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

.logo-image {
    border-radius: 6px;
    object-fit: contain;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.025em;
}

.sidebar-menu {
    flex: 1;
    padding: 12px 0;
    overflow-y: auto;
    overscroll-behavior: contain; /* prevent body scroll bounce creating gaps */
    min-height: 0; /* allow flex shrinking */
}

/* Collapsible Sidebar States */
.sidebar.collapsed { width: 56px; }
.sidebar.expanded { width: 280px; z-index: 150; }

/* Toggle button */
.sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0 6px 8px 0;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: #cccccc;
    cursor: pointer;
    transition: all 0.2s ease;
}
.sidebar-toggle:hover { background: rgba(255,255,255,0.12); color: #ffffff; }

/* Collapse: hide labels and extras */
.sidebar.collapsed .logo-text { display: none; }
.sidebar.collapsed .logo { justify-content: center; }
.sidebar.collapsed .menu-section-title { display: none; }
.sidebar.collapsed .menu-item span { display: none; }
.sidebar.collapsed .sidebar-controls { display: none; }
.sidebar.collapsed .user-info { display: none; }
.sidebar.collapsed .user-avatar { display: none; }
.sidebar.collapsed .user-profile { justify-content: center; }
.sidebar.collapsed .logout-btn { position: static; transform: none; width: 48px; height: 48px; background: none; border: none; border-radius: 0; }
.sidebar.collapsed .logout-btn:hover { background: none; border: none; color: #ff4444; }
.sidebar.collapsed .menu-item { justify-content: center; padding: 10px 0; margin: 0 8px 2px 8px; }
.sidebar.collapsed .sidebar-header { padding: 16px 12px; }
.sidebar.expanded .sidebar-header { padding: 28px 20px; }

.menu-section {
    margin-bottom: 16px;
}

.menu-section-title {
    font-size: 10px;
    font-weight: 600;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 20px 4px 20px;
    margin-bottom: 2px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 20px;
    color: #888888;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 6px;
    margin: 0 12px 2px 12px;
}
.menu-item svg { width: 20px; height: 20px; }

.menu-item:hover {
    background-color: #1a1a1a;
    color: #ffffff;
}

/* AI Assistant highlight pulse */
.ai-highlight {
    position: relative;
    outline: 2px solid #ef4444 !important;
    border-radius: 8px;
    animation: aiPulse 1.2s ease-in-out infinite;
}

@keyframes aiPulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.menu-item.active {
    background-color: #222222;
    color: #ffffff;
}

.menu-item svg {
    flex-shrink: 0;
}

.menu-item span {
    font-size: 12px;
    font-weight: 500;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #222222;
}

/* Sidebar: language + theme controls row */
.sidebar-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

/* Language switcher inside sidebar */
.sidebar .lang-switcher { position: relative; }
.sidebar .lang-switcher .btn-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    padding: 0 12px;
    background: #1a1a1a;
    border: 1px solid #333333;
    color: #ffffff;
    border-radius: 8px;
    font-size: 12px;
}
.sidebar .lang-switcher .btn-login:hover { background: #222222; border-color: #444444; }

/* Dropdown menu (override inline defaults cleanly) */
.sidebar .lang-switcher .lang-menu {
    position: absolute;
    left: 50%;
    transform: translateX(calc(-50% + 14px)); /* modal-only left gap */
    top: calc(100% + 8px); /* gap below trigger */
    background: rgba(17,17,17,0.95);
    border: 1px solid #333333;
    backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 6px;
    min-width: 180px;
    z-index: 1000;
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}
.sidebar .lang-switcher .lang-menu .mobile-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    color: #e5e5e5;
    text-decoration: none;
    border-radius: 8px;
}
.sidebar .lang-switcher .lang-menu .mobile-link:hover { background: #222222; color: #ffffff; }

/* Light theme adjustments for sidebar language UI */
.theme-light .sidebar .lang-switcher .btn-login {
    background: #f9fafb;
    border-color: #e5e7eb;
    color: #0f172a;
}
.theme-light .sidebar .lang-switcher .btn-login:hover { background: #ffffff; border-color: #e5e7eb; }
.theme-light .sidebar .lang-switcher .lang-menu {
    background: #ffffff;
    border-color: #e5e7eb;
    box-shadow: 0 12px 32px rgba(16,24,40,0.12);
}
.theme-light .sidebar .lang-switcher .lang-menu .mobile-link { color: #0f172a; }
.theme-light .sidebar .lang-switcher .lang-menu .mobile-link:hover { background: #f3f4f6; }

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background-color: #333333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
}

.user-role {
    font-size: 12px;
    color: #888888;
}

.logout-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #999999;
    text-decoration: none;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: rgba(255, 0, 0, 0.1);
    border-color: rgba(255, 0, 0, 0.3);
    color: #ff4444;
}

/* Main Content Wrapper */
.main-wrapper {
    flex: 1;
    margin-left: 56px; /* keep content layout fixed; sidebar overlays when expanded */
    display: flex;
    position: relative;
    background-color: #111111;
    min-height: 100vh;
}

/* Main Content */
.main-content {
    flex: 1;
    background-color: #111111;
    min-height: 100vh;
    width: 100%;
    transition: padding-right 0.3s ease;
}

/* Calendar Full Page Mode */
.main-content.calendar-fullpage {
    padding: 0;
    overflow: hidden;
    position: relative;
}

.content-header {
    padding: 24px 32px;
    border-bottom: 1px solid #222222;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #111111;
    position: sticky;
    top: 0;
    z-index: 50;
}

.content-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
}

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

/* Hide global header Search button across all pages */
.content-header .btn-secondary { display: none !important; }

/* Buttons */
.btn-primary {
    background-color: #ffffff;
    color: #000000;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

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

.btn-secondary {
    background-color: #222222;
    color: #ffffff;
    border: 1px solid #333333;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: #333333;
    border-color: #444444;
}

.btn-text {
    background: none;
    border: none;
    color: #888888;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.btn-text:hover {
    color: #ffffff;
}

.btn-danger {
    background-color: #dc2626;
    color: #ffffff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

/* Anchor-based buttons should never show underlines */
a.btn-primary,
a.btn-secondary,
a.btn-danger,
a.btn-text,
a.action-btn,
a.btn-login,
a.btn-signup,
a.logout-btn,
a.btn-preview,
a.btn-preview-new,
a.select-plan-btn,
a.pagination-btn {
    text-decoration: none !important;
}
a.btn-primary:hover,
a.btn-secondary:hover,
a.btn-danger:hover,
a.btn-text:hover,
a.action-btn:hover,
a.btn-login:hover,
a.btn-signup:hover,
a.logout-btn:hover,
a.btn-preview:hover,
a.btn-preview-new:hover,
a.select-plan-btn:hover,
a.pagination-btn:hover {
    text-decoration: none !important;
}

/* Content Body */
.content-body {
    padding: 32px;
}

/* Dashboard Grid */
.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.stat-card {
    background-color: #111111;
    border: 1px solid #222222;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    background-color: #222222;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.stat-content h3 {
    font-size: 14px;
    color: #888888;
    font-weight: 500;
    margin-bottom: 8px;
}

.stat-number {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.stat-change {
    font-size: 12px;
    font-weight: 500;
}

.stat-change.positive {
    color: #10b981;
}

.stat-change.negative {
    color: #ef4444;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

/* Cards */
.chart-card, .activity-card {
    background-color: #111111;
    border: 1px solid #222222;
    border-radius: 12px;
    padding: 24px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

/* Chart Placeholder */
.chart-placeholder {
    height: 200px;
    background-color: #0a0a0a;
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 100%;
}

.bar {
    width: 20px;
    background-color: #333333;
    border-radius: 2px;
    min-height: 20px;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.activity-icon {
    width: 32px;
    height: 32px;
    background-color: #222222;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888888;
    flex-shrink: 0;
}

.activity-content p {
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 4px;
}

.activity-time {
    color: #888888;
    font-size: 12px;
}

/* Form Elements */
.select-input, .search-input, .form-input, .form-textarea {
    background-color: #111111;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 10px 12px;
    color: #ffffff;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.select-input:focus, .search-input:focus, .form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #666666;
}

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

/* Analytics Content */
.analytics-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.analytics-filters {
    display: flex;
    gap: 12px;
}

.analytics-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
}

.chart-card.large {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.chart-placeholder.large {
    height: 300px;
}

.line-chart {
    width: 100%;
    height: 100%;
}

.metrics-card, .table-card {
    background-color: #111111;
    border: 1px solid #222222;
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    display: block;
}

.metrics-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-label {
    color: #888888;
    font-size: 14px;
}

.metric-value {
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
}

.metric-change {
    font-size: 12px;
    font-weight: 500;
}

/* Data Table */
.table-container {
    overflow-x: auto;
}

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

.data-table th,
.data-table td {
    text-align: left;
    padding: 12px 0;
    border-bottom: 1px solid #222222;
}

.data-table th {
    color: #888888;
    font-weight: 500;
    font-size: 14px;
}

.data-table td {
    color: #ffffff;
    font-size: 14px;
}

/* Projects Content */
.projects-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.projects-filters .filter-group {
    display: flex;
    gap: 12px;
}

.search-input {
    min-width: 250px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.project-card {
    background-color: #111111;
    border: 1px solid #222222;
    border-radius: 12px;
    padding: 20px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.project-status {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.project-status.active {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.project-status.completed {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.project-status.on-hold {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.project-menu {
    color: #888888;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.project-menu:hover {
    background-color: #222222;
}

.project-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.project-content p {
    color: #888888;
    font-size: 14px;
    margin-bottom: 16px;
}

.project-progress {
    margin-bottom: 16px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: #222222;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background-color: #10b981;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-fill.completed {
    background-color: #3b82f6;
}

.progress-fill.on-hold {
    background-color: #f59e0b;
}

.progress-text {
    font-size: 12px;
    color: #888888;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team-avatars {
    display: flex;
    gap: -8px;
}

.avatar {
    width: 28px;
    height: 28px;
    background-color: #333333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 500;
    color: #ffffff;
    border: 2px solid #111111;
    margin-left: -8px;
}

.avatar:first-child {
    margin-left: 0;
}

.project-deadline {
    font-size: 12px;
    color: #888888;
}

/* Settings Content */
.settings-content {
    display: flex;
    gap: 32px;
}

.settings-nav {
    width: 240px;
    flex-shrink: 0;
}

.settings-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #888888;
    cursor: pointer;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

.settings-nav-item:hover {
    background-color: #111111;
    color: #ffffff;
}

.settings-nav-item.active {
    background-color: #222222;
    color: #ffffff;
}

.settings-main {
    flex: 1;
}

.settings-section {
    margin-bottom: 32px;
}

.section-header {
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.section-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.section-header p {
    color: #888888;
    font-size: 14px;
}

.settings-card {
    background-color: #111111;
    border: 1px solid #222222;
    border-radius: 12px;
}

.settings-card.danger {
    border-color: #dc2626;
}

.profile-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-avatar-section {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 24px;
    border-bottom: 1px solid #222222;
}

.profile-avatar.large {
    width: 80px;
    height: 80px;
    background-color: #333333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.avatar-actions {
    display: flex;
    gap: 12px;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.form-actions {
    display: flex;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #222222;
}

.preference-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #222222;
}

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

.preference-content h4 {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 4px;
}

.preference-content p {
    font-size: 14px;
    color: #888888;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333333;
    border-radius: 24px;
    transition: 0.2s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #888888;
    border-radius: 50%;
    transition: 0.2s;
}

input:checked + .toggle-slider {
    background-color: #ffffff;
}

input:checked + .toggle-slider:before {
    background-color: #000000;
    transform: translateX(24px);
}

.danger-actions .danger-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.danger-content h4 {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 4px;
}

.danger-content p {
    font-size: 14px;
    color: #888888;
}

/* Chart Legend */
.chart-legend {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #888888;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar { width: 240px; }
    .main-content { margin-left: 56px; }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-card.large {
        grid-column: 1;
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    .sidebar { width: 56px; transform: none; }
    .main-content { margin-left: 56px; }

    /* Page header */
    .content-header { padding: 16px; flex-direction: column; align-items: stretch; gap: 12px; }
    .content-header h1 { font-size: 22px; }
    .header-actions { width: 100%; display: grid; grid-template-columns: 48px 1fr; gap: 8px; }
    .header-actions .btn-secondary { width: 48px; padding: 10px; justify-content: center; font-size: 0; }
    .header-actions .btn-secondary svg { margin: 0; }
    .header-actions .btn-primary { width: 100%; justify-content: center; }

    .content-body { padding: 20px 16px; }
    .stats-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .settings-content { flex-direction: column; gap: 20px; }
    .settings-nav { width: 100%; }
    .form-row { grid-template-columns: 1fr; }
}

/* Desktop: always expanded, hide toggle, show full labels */
@media (min-width: 1024px) {
    .sidebar { width: 280px; }
    .sidebar-toggle { display: none; }
    .sidebar.collapsed { width: 280px; }
    .sidebar.expanded { width: 280px; }
    .main-wrapper { margin-left: 280px; }

    .sidebar.collapsed .logo-text { display: inline; }
    .sidebar.collapsed .logo { justify-content: flex-start; }
    .sidebar.collapsed .menu-section-title { display: block; }
    .sidebar.collapsed .menu-item span { display: inline; }
    .sidebar.collapsed .sidebar-controls { display: flex; }
    .sidebar.collapsed .user-info { display: flex; }
    .sidebar.collapsed .user-avatar { display: flex; }
    .sidebar.collapsed .user-profile { justify-content: flex-start; }
    .sidebar.collapsed .logout-btn { position: absolute; right: 0; transform: translateY(-50%); }
    .sidebar.collapsed .menu-item { justify-content: flex-start; padding: 6px 20px; margin: 0 12px 2px 12px; }
    .sidebar.collapsed .sidebar-header { padding: 28px 20px; }
}

/* Coming Soon Styles */
.coming-soon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    width: 100%;
}

.coming-soon-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 400px;
}

.coming-soon-icon {
    width: 80px;
    height: 80px;
    background-color: #222222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888888;
}

.coming-soon-content h2 {
    font-size: 32px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.coming-soon-content p {
    font-size: 16px;
    color: #888888;
    margin: 0;
    line-height: 1.5;
}

/* Create Chatbot Wizard Styles */
.create-chatbot-container {
    max-width: 640px;
    margin: 0 auto;
}

/* Wider layout for review step */
.create-chatbot-container.wide {
    max-width: 1100px;
}

.create-chatbot-container.wide .review-grid {
    grid-template-columns: 3fr 2fr;
}

/* Step Progress Indicator - Simplified */
.step-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 48px;
    gap: 8px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #666666;
    transition: color 0.2s ease;
}

.step-item.active {
    color: #ffffff;
}

.step-item.completed {
    color: #888888;
}

.step-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #222222;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    color: #666666;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.step-item.active .step-circle {
    background-color: #ffffff;
    color: #000000;
}

.step-item.completed .step-circle {
    background-color: #333333;
    color: #ffffff;
}

.step-separator {
    width: 1px;
    height: 16px;
    background-color: #333333;
    margin: 0 4px;
}

/* Wizard Form - Simplified */
.chatbot-wizard {
    background: none;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

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

.step-header {
    margin-bottom: 32px;
}

.step-header h2 {
    font-size: 32px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.2;
}

.step-header p {
    font-size: 16px;
    color: #888888;
    margin: 0;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.form-hint {
    font-size: 14px;
    color: #666666;
    margin-top: 6px;
}

.form-textarea.large {
    min-height: 120px;
}

/* Form Styling - Cleaner */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
}

.form-input, .form-textarea {
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 16px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.2s ease;
    width: 100%;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #ffffff;
    background-color: #222222;
}

/* Custom Dropdown */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-button {
    width: 100%;
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 16px;
    color: #ffffff;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-button:hover {
    border-color: #555555;
    background-color: #222222;
}

.dropdown-button.active {
    border-color: #ffffff;
    background-color: #222222;
}

.dropdown-button .placeholder {
    color: #888888;
}

.dropdown-arrow {
    transition: transform 0.2s ease;
    color: #888888;
}

.dropdown-button.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 8px;
    margin-top: 4px;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: #ffffff;
    font-size: 16px;
}

.dropdown-option:hover {
    background-color: #222222;
}

.dropdown-option:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-option:last-child {
    border-radius: 0 0 8px 8px;
}

.dropdown-option:only-child {
    border-radius: 8px;
}

.dropdown-option.selected {
    background-color: #333333;
    color: #ffffff;
}

/* Language Flags */
.dropdown-option {
    display: flex;
    align-items: center;
    gap: 12px;
}

.language-flag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 15px;
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
}

.language-flag svg {
    width: 20px;
    height: 15px;
}

/* Apple-style Toggle Switch Group */
.toggle-switch-group {
    position: relative;
    display: flex;
    background-color: #222222;
    border-radius: 10px;
    padding: 4px;
    margin-top: 8px;
    overflow: hidden;
}

.toggle-option {
    flex: 1;
    padding: 10px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    background-color: transparent;
    color: #888888;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    z-index: 2;
    position: relative;
}

.toggle-option.active {
    color: #000000;
    font-weight: 600;
}

.toggle-option span {
    display: block;
    position: relative;
    z-index: 2;
}

/* Sliding bubble indicator */
.toggle-switch-group::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background-color: #ffffff;
    border-radius: 6px;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.toggle-switch-group[data-active="manual"]::before {
    transform: translateX(100%);
}

/* Manual content section */
.manual-content {
    margin-top: 24px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    overflow: hidden;
    max-height: 0;
}

.manual-content.show {
    opacity: 1;
    transform: translateY(0);
    max-height: 1000px;
}

.manual-content .form-textarea {
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 16px;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.5;
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.manual-content .form-textarea:focus {
    outline: none;
    border-color: #ffffff;
    background-color: #222222;
}

.manual-content .form-textarea::placeholder {
    color: #666666;
    font-size: 16px;
}

/* Hide original select elements */
.select-input {
    display: none;
}

/* Loading Button Animation */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scraping Progress Indicator - Redesigned */
.scraping-progress {
    margin-top: 32px;
    animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.progress-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 0;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
}

.progress-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
}

.progress-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 28px 24px 28px;
}

.progress-icon-container {
    position: relative;
    flex-shrink: 0;
}

.progress-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #1e40af 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 
        0 8px 25px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.progress-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: iconShine 3s infinite;
}

@keyframes iconShine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.progress-pulse {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 24px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.1);
        opacity: 0;
    }
}

.progress-content {
    flex: 1;
    min-width: 0;
}

.progress-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.progress-title h3 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.025em;
}

.progress-percentage {
    font-size: 18px;
    font-weight: 700;
    color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 50px;
    text-align: right;
}

.progress-message {
    font-size: 15px;
    color: #a1a1aa;
    margin: 0;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.progress-bar-section {
    padding: 0 28px 20px 28px;
}

.progress-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 50%, #2563eb 100%);
    border-radius: 8px;
    position: relative;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-shine {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    animation: progressShine 2.5s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}

.progress-stats {
    display: none;
    gap: 16px;
    padding: 20px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.1);
}

.stat-card {
    flex: 1;
    text-align: center;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff, #e4e4e7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 12px;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.progress-current-url {
    display: none;
    padding: 16px 28px 24px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.1);
}

.url-label {
    font-size: 12px;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 6px;
}

.url-text {
    font-size: 14px;
    color: #a1a1aa;
    font-family: ui-monospace, 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    word-break: break-all;
}

/* Scraping Error Modal */
.scraping-error-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.scraping-error-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.scraping-error-modal {
    background: #111111;
    border: 1px solid #333333;
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    margin: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.scraping-error-modal-overlay.active .scraping-error-modal {
    transform: translateY(0) scale(1);
}

.error-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 24px 20px 24px;
    border-bottom: 1px solid #333333;
}

.error-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.error-info h3 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.error-info p {
    font-size: 14px;
    color: #888888;
    margin: 0;
}

.error-details {
    padding: 24px;
}

.error-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 12px;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.error-explanation,
.error-solution {
    margin-bottom: 20px;
}

.error-explanation h4,
.error-solution h4 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 12px 0;
}

.error-explanation ul {
    margin: 0;
    padding-left: 20px;
    color: #888888;
}

.error-explanation li {
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.error-solution p {
    font-size: 14px;
    color: #888888;
    margin: 0;
    line-height: 1.5;
}

.error-actions {
    display: flex;
    gap: 12px;
    padding: 20px 24px 24px 24px;
    border-top: 1px solid #333333;
}

.error-actions .btn-secondary,
.error-actions .btn-primary {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.error-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #888888;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.error-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.error-actions .btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #ffffff;
}

.error-actions .btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: translateY(-1px);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}



/* Personality Grid */
.personality-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 8px;
}

.personality-item label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 6px;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background-color: #0a0a0a;
    border: 1px solid #222222;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-item:hover {
    background-color: #1a1a1a;
    border-color: #333333;
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #333333;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.checkbox-item input[type="checkbox"]:checked + .checkbox-custom {
    background-color: #ffffff;
    border-color: #ffffff;
}

.checkbox-item input[type="checkbox"]:checked + .checkbox-custom::after {
    content: "✓";
    color: #000000;
    font-size: 12px;
    font-weight: 600;
}

.checkbox-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.checkbox-content strong {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
}

.checkbox-content small {
    font-size: 12px;
    color: #888888;
}

/* Training Methods - Simplified */
.training-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.training-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.training-method:hover {
    background-color: #222222;
    border-color: #555555;
}

.training-method.active {
    border-color: #ffffff;
    background-color: #222222;
}

.method-icon {
    width: 40px;
    height: 40px;
    background-color: #333333;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888888;
    flex-shrink: 0;
}

.training-method.active .method-icon {
    background-color: #ffffff;
    color: #000000;
}

.training-method-content {
    flex: 1;
}

.training-method h3 {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.training-method p {
    font-size: 14px;
    color: #888888;
    margin: 0;
}

.training-content {
    display: none;
}

.training-content.active {
    display: block;
}

/* File Upload - Simplified */
.file-upload-area {
    border: 1px dashed #333333;
    border-radius: 8px;
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #1a1a1a;
}

.file-upload-area:hover {
    border-color: #ffffff;
    background-color: #222222;
}

.upload-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
    color: #888888;
}

.file-upload-area h3 {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 8px;
}

.file-upload-area p {
    font-size: 14px;
    color: #888888;
    margin: 0;
}

/* Chatbot Preview Card */
.chatbot-preview-card {
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 32px;
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    border-bottom: 1px solid #333333;
}

.bot-avatar {
    width: 48px;
    height: 48px;
    background-color: #333333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.bot-info {
    flex: 1;
}

.bot-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.bot-status {
    font-size: 14px;
    color: #10b981;
    font-weight: 500;
}

.btn-preview {
    background-color: #222222;
    color: #ffffff;
    border: 1px solid #333333;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-preview:hover {
    background-color: #333333;
    border-color: #555555;
}

.preview-details {
    padding: 24px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-icon {
    width: 32px;
    height: 32px;
    background-color: #222222;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888888;
    flex-shrink: 0;
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-label {
    font-size: 12px;
    color: #666666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
}

/* Message Preview */
.preview-messages {
    background-color: #0a0a0a;
    border-radius: 8px;
    padding: 16px;
}

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

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
}

.bot-message {
    background-color: #333333;
    color: #ffffff;
    align-self: flex-start;
    border-bottom-left-radius: 6px;
}

/* Deployment Card */
.deployment-card {
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 12px;
    padding: 24px;
}

.deployment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.deployment-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.deployment-badge {
    font-size: 12px;
    color: #888888;
    background-color: #222222;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.deployment-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.deployment-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background-color: #111111;
    border: 1px solid #222222;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.deployment-option:hover {
    background-color: #1a1a1a;
    border-color: #333333;
}

.option-icon {
    width: 40px;
    height: 40px;
    background-color: #222222;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888888;
    flex-shrink: 0;
}

.option-content {
    flex: 1;
}

.option-content h4 {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.option-content p {
    font-size: 14px;
    color: #888888;
    margin: 0;
}

/* Mini Toggle Switches */
.option-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.option-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider-mini {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333333;
    border-radius: 24px;
    transition: 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.toggle-slider-mini:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #888888;
    border-radius: 50%;
    transition: 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.option-toggle input:checked + .toggle-slider-mini {
    background-color: #ffffff;
}

.option-toggle input:checked + .toggle-slider-mini:before {
    background-color: #000000;
    transform: translateX(20px);
}

/* Wizard Navigation - Simplified */
.wizard-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 0;
    margin-top: 48px;
}

.wizard-navigation .btn-secondary,
.wizard-navigation .btn-primary {
    min-width: 120px;
    padding: 12px 24px;
    font-size: 16px;
}

/* Responsive Design for Wizard */
@media (max-width: 768px) {
    .create-chatbot-container {
        max-width: 100%;
        margin: 0;
    }
    
    .step-progress {
        padding: 0 10px;
    }
    
    .step-connector {
        max-width: 40px;
        margin: 0 10px;
    }
    
    .step-label {
        font-size: 10px;
    }
    
    .wizard-step {
        padding: 0;
    }
    

    
    .training-options {
        grid-template-columns: 1fr;
    }
    
    .personality-grid {
        grid-template-columns: 1fr;
    }
    
    .wizard-navigation {
        padding: 16px 20px;
    }
}

/* File Upload Items */
.uploaded-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background-color: #0a0a0a;
    border: 1px solid #222222;
    border-radius: 6px;
    margin-bottom: 8px;
}

.file-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.file-info strong {
    color: #ffffff;
    font-size: 14px;
}

.file-info small {
    color: #888888;
    font-size: 12px;
}

.remove-file {
    background: none;
    border: none;
    color: #888888;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.remove-file:hover {
    background-color: #dc2626;
    color: #ffffff;
}

/* Loading Spinner Animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

/* Loading circle for buttons */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    color: #000000;
}

/* New Step 4 Review Styles */
.review-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    margin-top: 24px;
}

.review-main {
    display: flex;
    flex-direction: column;
}

.review-sidebar {
    display: flex;
    flex-direction: column;
}

/* Summary Card */
.review-summary-card {
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
}

.summary-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #333333;
}

.bot-avatar-large {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #333333, #444444);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.summary-info {
    flex: 1;
}

.summary-info h3 {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #888888;
}

.status-dot.active {
    background-color: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.status-indicator span {
    font-size: 14px;
    color: #10b981;
    font-weight: 500;
}

.btn-preview-new {
    background-color: #222222;
    color: #ffffff;
    border: 1px solid #333333;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-preview-new:hover {
    background-color: #333333;
    border-color: #555555;
    transform: translateY(-1px);
}

/* Configuration Overview */
.config-overview {
    margin-bottom: 32px;
}

.config-overview h4 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 20px 0;
}

.config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.config-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background-color: #0a0a0a;
    border: 1px solid #222222;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.config-item:hover {
    background-color: #111111;
    border-color: #333333;
}

.config-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.config-icon.language,
.config-icon.tone,
.config-icon.response,
.config-icon.training {
    background-color: #222222;
    color: #888888;
}

.config-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.config-label {
    font-size: 12px;
    color: #666666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.config-value {
    font-size: 16px;
    color: #ffffff;
    font-weight: 500;
}

/* Message Preview Section */
.message-preview-section {
    margin-top: 24px;
}

.message-preview-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 16px 0;
}

.chat-preview {
    background-color: #0a0a0a;
    border: 1px solid #222222;
    border-radius: 12px;
    padding: 20px;
}

.preview-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.message-avatar {
    width: 32px;
    height: 32px;
    background-color: #333333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.message-bubble {
    background-color: #222222;
    border: 1px solid #333333;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.4;
    max-width: 280px;
}

/* Deployment Settings Card */
.deployment-settings-card {
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 16px;
    padding: 24px;
    height: fit-content;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #333333;
}

.settings-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.optional-badge {
    font-size: 11px;
    color: #888888;
    background-color: #222222;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recommended-badge {
    font-size: 11px;
    color: #888888;
    background-color: #222222;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Deployment Options */
.deployment-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.deployment-option-new {
    border: 1px solid #222222;
    border-radius: 12px;
    background-color: #111111;
    transition: all 0.2s ease;
}

.deployment-option-new:hover {
    background-color: #1a1a1a;
    border-color: #333333;
}

.option-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
}

.option-icon-new {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.option-icon-new.test {
    background-color: #222222;
    color: #888888;
}

.option-icon-new.api {
    background-color: #222222;
    color: #888888;
}

.option-icon-new.widget {
    background-color: #222222;
    color: #888888;
}

.option-icon-new.support {
    background-color: #222222;
    color: #888888;
}

.option-icon-new.contact {
    background-color: #222222;
    color: #888888;
}

.option-info {
    flex: 1;
}

.option-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.option-info p {
    font-size: 13px;
    color: #888888;
    margin: 0;
}

/* Modern Toggle Switch */
.modern-toggle {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.modern-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider-new {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333333;
    border-radius: 28px;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    border: 1px solid #444444;
}

.toggle-slider-new:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: #888888;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.modern-toggle input:checked + .toggle-slider-new {
    background-color: #10b981;
    border-color: #10b981;
}

.modern-toggle input:checked + .toggle-slider-new:before {
    background-color: #ffffff;
    transform: translateX(24px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Quick Actions */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #333333;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.action-btn.secondary {
    background-color: #222222;
    color: #ffffff;
    border: 1px solid #333333;
}

.action-btn.secondary:hover {
    background-color: #333333;
    border-color: #555555;
    transform: translateY(-1px);
}

.action-btn.primary {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #ffffff;
}

.action-btn.primary:hover {
    background-color: #e5e5e5;
    transform: translateY(-1px);
}

/* Responsive Design for Review Step */
@media (max-width: 1024px) {
    .review-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .config-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .review-summary-card {
        padding: 20px;
    }
    
    .summary-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        text-align: left;
    }
    
    .bot-avatar-large {
        width: 56px;
        height: 56px;
    }
    
    .summary-info h3 {
        font-size: 20px;
    }
    
    .config-item {
        padding: 16px;
    }
    
    .deployment-settings-card {
        padding: 20px;
    }
    
    .option-header {
        padding: 16px;
    }
}

/* My Chatbots Page Styles */
.chatbots-container {
    max-width: 1200px;
    margin: 0 auto;
}

.chatbots-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.header-content h2 {
    font-size: 32px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.header-content p {
    font-size: 16px;
    color: #888888;
    margin: 0;
}

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

/* View Toggle - Apple Style */
.view-toggle {
    display: flex;
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 2px;
    position: relative;
    overflow: hidden;
}

.view-toggle::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(50% - 2px);
    height: calc(100% - 4px);
    background-color: #ffffff;
    border-radius: 6px;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 1;
}

.view-toggle[data-active="list"]::before {
    transform: translateX(100%);
}

.view-btn {
    padding: 8px 12px;
    background: none;
    border: none;
    color: #888888;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    border-radius: 6px;
    min-width: 40px;
}

.view-btn.active {
    color: #000000;
}

/* Chatbots Container Views */
.chatbots-container-view {
    display: block; /* grid is handled by .grid-view-content */
    transition: all 0.3s ease;
}

.chatbots-container-view.list-view {
    grid-template-columns: 1fr;
    gap: 8px;
}

.chatbots-container-view.list-view .chatbot-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 16px 20px;
    min-height: auto;
    position: relative;
    overflow: visible; /* allow dropdown to overflow beyond card bounds in list view */
}

.chatbots-container-view.list-view .chatbot-card:hover {
    transform: none;
}

.chatbots-container-view.list-view .card-header {
    flex-direction: row;
    padding: 0;
    border-bottom: none;
    margin-right: 20px;
    min-width: 280px;
    flex-shrink: 0;
}

.chatbots-container-view.list-view .card-header .card-menu-container {
    display: none;
}

.chatbots-container-view.list-view .chatbot-avatar {
    width: 32px;
    height: 32px;
}

.chatbots-container-view.list-view .card-body {
    flex: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbots-container-view.list-view .list-info {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}

.chatbots-container-view.list-view .list-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.chatbots-container-view.list-view .list-detail-label {
    font-size: 10px;
    color: #666666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.chatbots-container-view.list-view .list-detail-value {
    font-size: 12px;
    color: #ffffff;
    font-weight: 500;
}

.chatbots-container-view.list-view .card-footer {
    padding: 0;
    background: none;
    border-top: none;
    margin-left: 20px;
    flex-shrink: 0;
}


/* List view menu - hidden by default, shown only in list view */
.list-view-menu {
    display: none;
}

.chatbots-container-view.list-view .list-view-menu {
    display: block;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    overflow: visible;
}

.chatbots-container-view.list-view .welcome-preview,
.chatbots-container-view.list-view .card-details,
.chatbots-container-view.list-view .card-description,
.chatbots-container-view.list-view .stats-row {
    display: none;
}

/* List view specific elements */
.list-info {
    display: none;
}

.chatbots-container-view.list-view .list-info {
    display: flex;
}

/* Chatbot Cards */
.chatbot-card {
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.chatbot-card:hover {
    border-color: #555555;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 20px 16px 20px;
    border-bottom: 1px solid #333333;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    background-color: #333333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.card-info {
    flex: 1;
}

.card-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.card-meta {
    display: flex;
    gap: 12px;
    align-items: center;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.05);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-badge.active {
    color: #10b981;
    background-color: rgba(16, 185, 129, 0.1);
}

.status-badge.active .status-dot {
    background-color: #10b981;
}

.status-badge.training {
    color: #f59e0b;
    background-color: rgba(245, 158, 11, 0.1);
}

.status-badge.training .status-dot {
    background-color: #f59e0b;
}

.status-badge.inactive {
    color: #888888;
    background-color: rgba(136, 136, 136, 0.1);
}

.status-badge.inactive .status-dot {
    background-color: #888888;
}

.language-badge {
    font-size: 12px;
    color: #888888;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-menu {
    background: none;
    border: none;
    color: #888888;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.card-menu:hover {
    background-color: #333333;
    color: #ffffff;
}

.card-body {
    padding: 16px 20px;
}

.card-description {
    color: #888888;
    font-size: 14px;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.card-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-label {
    font-size: 12px;
    color: #666666;
    font-weight: 500;
}

.detail-value {
    font-size: 12px;
    color: #ffffff;
    font-weight: 500;
}

.welcome-preview {
    margin-top: 16px;
}

.message-bubble {
    background-color: #111111;
    border: 1px solid #222222;
    border-radius: 12px;
    border-bottom-left-radius: 4px;
    padding: 12px 16px;
    font-size: 13px;
    color: #ffffff;
    font-style: italic;
    line-height: 1.4;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background-color: rgba(0, 0, 0, 0.2);
    border-top: 1px solid #333333;
}

/* Ensure footer content wraps cleanly instead of overflowing */
.card-footer {
    flex-wrap: wrap;
    gap: 12px;
}

/* Chatbots: stack stats and action buttons on small widths */
@media (max-width: 768px) {
    .chatbots-container .card-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .chatbots-container .card-footer .stats-row {
        width: 100%;
        order: 1;
        justify-content: space-between;
    }

    .chatbots-container .card-footer .btn-secondary.btn-sm,
    .chatbots-container .card-footer .btn-danger.btn-sm {
        width: 100%;
        order: 2;
        margin-left: 0;
    }
}

.stats-row {
    display: flex;
    gap: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-number {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.stat-label {
    font-size: 10px;
    color: #666666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
    min-width: auto;
    gap: 6px;
}

/* Card Menu Dropdown */
.card-menu-container {
    position: relative;
}

.card-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    margin-top: 4px;
    overflow: visible;
}

.card-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #222222;
}

.dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

.dropdown-item:only-child {
    border-radius: 8px;
}

.dropdown-item.delete-item {
    color: #dc2626;
    border-top: 1px solid #333333;
}

.dropdown-item.delete-item:hover {
    background-color: rgba(220, 38, 38, 0.1);
    color: #ef4444;
}

/* Installation Guide Styles */
.installation-guide-container {
    max-width: 1200px;
    margin: 0 auto;
}

.installation-header {
    margin-bottom: 32px;
}

.installation-header .header-content h2 {
    font-size: 32px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.installation-header .header-content p {
    font-size: 16px;
    color: #888888;
    margin: 0;
}

.guide-section {
    margin-bottom: 48px;
}

.section-card {
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 12px;
    overflow: hidden;
}

.section-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    border-bottom: 1px solid #333333;
}

.section-header.standalone {
    border-bottom: none;
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.section-header.standalone h2 {
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.section-header.standalone p {
    font-size: 16px;
    color: #888888;
    margin: 0;
}

.section-icon {
    width: 48px;
    height: 48px;
    background-color: #333333;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.section-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.section-header p {
    font-size: 14px;
    color: #888888;
    margin: 0;
}

.section-content {
    padding: 24px;
}

.step-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.step-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.step-number {
    width: 32px;
    height: 32px;
    background-color: #333333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.step-content p {
    font-size: 14px;
    color: #888888;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.platform-card {
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.platform-card:hover {
    border-color: #555555;
    transform: translateY(-2px);
}

.platform-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid #333333;
}

.platform-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.platform-icon.html {
    background-color: #e34f26;
}

.platform-icon.php {
    background-color: #777bb4;
}

.platform-icon.ejs {
    background-color: #68a063;
}

.platform-icon.wordpress {
    background-color: #21759b;
}

.platform-icon.wix {
    background-color: #0c6ebd;
}

.platform-icon.shopify {
    background-color: #95bf47;
}

.platform-icon.react {
    background-color: #61dafb;
}

.platform-icon.squarespace {
    background-color: #000000;
}

.platform-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.platform-content {
    padding: 24px;
}

.platform-content p {
    font-size: 14px;
    color: #888888;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.code-block {
    position: relative;
    background-color: #0a0a0a;
    border: 1px solid #222222;
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
    overflow-x: auto;
}

.code-block code {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    color: #e5e5e5;
    white-space: pre;
    display: block;
}

.copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #222222;
    border: 1px solid #333333;
    border-radius: 6px;
    color: #888888;
    cursor: pointer;
    padding: 8px;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background-color: #333333;
    border-color: #555555;
    color: #ffffff;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.faq-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.faq-item p {
    font-size: 14px;
    color: #888888;
    margin: 0;
    line-height: 1.6;
}

.help-card {
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 12px;
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.help-content {
    flex: 1;
}

.help-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 12px 0;
}

.help-content p {
    font-size: 16px;
    color: #888888;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.help-actions {
    display: flex;
    gap: 16px;
}

.help-icon {
    color: #888888;
    flex-shrink: 0;
}

/* Monochrome Table Styles */
.table-container {
    margin: 0;
    padding: 0;
    overflow: visible;
}

.monochrome-table {
    width: 100%;
    /* Use separate model so border-radius renders across email-like UIs and tables */
    border-collapse: separate;
    border-spacing: 0; /* keep tight borders when using separate */
    background: #111111;
    border: 1px solid #222222;
    border-radius: 12px;
    overflow: visible; /* allow row menus to overflow outside */
    font-size: 14px;
    position: relative;
}

/* Hide overflow only for the border-radius effect */
.monochrome-table thead th:first-child {
    border-top-left-radius: 12px;
}

.monochrome-table thead th:last-child {
    border-top-right-radius: 12px;
}

.monochrome-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.monochrome-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

.monochrome-table thead th {
    background: #151515;
    color: #e0e0e0;
    font-size: 12px;
    font-weight: 800;
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #222222;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.monochrome-table tbody td {
    padding: 14px 12px;
    border-bottom: 1px solid #222222;
    color: #d0d0d0;
    vertical-align: top;
    line-height: 1.45;
}

.monochrome-table tbody tr:hover {
    background: #1a1a1a;
}

.monochrome-table tbody tr:last-child td {
    border-bottom: none;
}

.mono {
    font-variant-numeric: tabular-nums;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
}

.muted {
    color: #999999;
    font-size: 12px;
}

.table-kebab {
    text-align: right;
    width: 40px;
    position: relative;
}

.table-kebab .card-menu {
    background: transparent;
    border: 0;
    color: #aaaaaa;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.table-kebab .card-menu:hover {
    background-color: #222222;
    color: #ffffff;
}

.table-kebab .card-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    margin-top: 4px;
    overflow: visible;
}

.table-kebab .card-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.table-kebab .dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    transition: background-color 0.2s ease;
}

.table-kebab .dropdown-item:hover {
    background-color: #222222;
}

.table-kebab .dropdown-item.delete-item {
    color: #dc2626;
    border-top: 1px solid #333333;
}

.table-kebab .dropdown-item.delete-item:hover {
    background-color: rgba(220, 38, 38, 0.1);
    color: #ef4444;
}

.status-badge-table {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge-table.active {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-badge-table.training {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.status-badge-table.inactive {
    background-color: rgba(136, 136, 136, 0.1);
    color: #888888;
}

.status-badge-table.open {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.status-badge-table.pending {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.status-badge-table.closed {
    background-color: rgba(136, 136, 136, 0.1);
    color: #888888;
}

.status-dot-table {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-badge-table.active .status-dot-table {
    background-color: #10b981;
}

.status-badge-table.training .status-dot-table {
    background-color: #f59e0b;
}

.status-badge-table.inactive .status-dot-table {
    background-color: #888888;
}

.status-badge-table.open .status-dot-table {
    background-color: #3b82f6;
}

.status-badge-table.pending .status-dot-table {
    background-color: #f59e0b;
}

.status-badge-table.closed .status-dot-table {
    background-color: #888888;
}

/* Additional status badges for Help Center and Feedback */
.status-badge-table.resolved {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.status-badge-table.resolved .status-dot-table {
    background-color: #22c55e;
}

.status-badge-table.in_progress {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.status-badge-table.in_progress .status-dot-table {
    background-color: #f59e0b;
}

.status-badge-table.under_review {
    background-color: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.status-badge-table.under_review .status-dot-table {
    background-color: #8b5cf6;
}

.status-badge-table.planned {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.status-badge-table.planned .status-dot-table {
    background-color: #3b82f6;
}

.status-badge-table.completed {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.status-badge-table.completed .status-dot-table {
    background-color: #22c55e;
}

.status-badge-table.rejected {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.status-badge-table.rejected .status-dot-table {
    background-color: #ef4444;
}

/* Priority and type badges */
.status-badge-table.low {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.status-badge-table.medium {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.status-badge-table.high {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.status-badge-table.feature {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.status-badge-table.improvement {
    background-color: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.status-badge-table.bug {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.status-badge-table.ui {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

/* Pagination Styles */
.pagination-container {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #222222;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid #333333;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    background-color: #333333;
    border-color: #555555;
}

.pagination-info {
    color: #888888;
    font-size: 14px;
    font-weight: 500;
}

/* Grid/List view content containers */
.grid-view-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
}

.list-view-content {
    display: none;
}

.chatbots-container-view.list-view .grid-view-content {
    display: none;
}

.chatbots-container-view.list-view .list-view-content {
    display: block;
}

/* Table responsive behavior */
@media (max-width: 768px) {
    .monochrome-table {
        font-size: 12px;
    }
    
    /* Invoices: card-like rows with data labels on mobile */
    .monochrome-table.invoices-mobile thead { display: none; }
    .monochrome-table.invoices-mobile, .monochrome-table.invoices-mobile tbody, .monochrome-table.invoices-mobile tr, .monochrome-table.invoices-mobile td { display: block; width: 100%; }
    .monochrome-table.invoices-mobile tr { margin: 0 0 12px; border: 1px solid #1f2937; border-radius: 12px; padding: 8px 10px; background: #0d0d0d; }
    .monochrome-table.invoices-mobile td { border-bottom: none; padding: 10px 8px; }
    .monochrome-table.invoices-mobile td::before {
        content: attr(data-label);
        display: block;
        font-size: 12px;
        color: #9ca3af;
        margin-bottom: 4px;
    }
    .invoice-actions { justify-content: flex-start; flex-wrap: wrap; }

    .monochrome-table thead th {
        padding: 8px 6px;
        font-size: 10px;
    }
    
    .monochrome-table tbody td {
        padding: 10px 6px;
    }
    
    .muted {
        font-size: 10px;
    }
    
    .pagination {
        flex-direction: column;
        gap: 12px;
    }
    
    .pagination-btn {
        padding: 12px 20px;
        width: 100%;
        justify-content: center;
    }
}

/* Responsive Design for Installation Guide */
@media (max-width: 1024px) {
    .platforms-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    .installation-guide-container {
        margin: 0;
    }
    
    .platforms-grid {
        grid-template-columns: 1fr;
    }
    
    .platform-header {
        padding: 16px 20px;
    }
    
    .platform-content {
        padding: 20px;
    }
    
    .help-card {
        flex-direction: column;
        text-align: center;
        gap: 24px;
        padding: 24px;
    }
    
    .help-actions {
        justify-content: center;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .code-block {
        font-size: 12px;
    }
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    max-width: 400px;
    margin: 0 auto;
}

.empty-icon {
    width: 80px;
    height: 80px;
    background-color: #222222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888888;
    margin-bottom: 24px;
}

.empty-state h3 {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 12px 0;
}

.empty-state p {
    font-size: 16px;
    color: #888888;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

/* AI Chat Panel Styles */
.resizer {
    width: 4px;
    height: 100vh;
    background-color: #222222;
    cursor: col-resize;
    position: fixed;
    right: 400px;
    top: 0;
    z-index: 100;
    display: none;
    transition: background-color 0.2s ease, right 0.3s ease;
}

.resizer:hover {
    background-color: #333333;
}

.resizer::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 40px;
    background-color: #444444;
    border-radius: 1px;
}

.ai-chat-panel {
    width: 400px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.95) 0%, rgba(25, 25, 25, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
    flex-direction: column;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 99;
    transition: width 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
}

.main-wrapper.split-view .main-content {
    padding-right: 404px; /* AI panel width + resizer width */
    transition: padding-right 0.3s ease;
}

.ai-chat-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.95) 0%, rgba(25, 25, 25, 0.95) 100%);
    backdrop-filter: blur(15px);
}

.ai-chat-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
}

.ai-chat-title svg {
    color: #888888;
}

.ai-chat-actions {
    display: flex;
    gap: 8px;
}

.ai-chat-close,
.ai-chat-clear {
    background: none;
    border: none;
    color: #888888;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.ai-chat-close:hover,
.ai-chat-clear:hover {
    background-color: #222222;
    color: #ffffff;
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.95) 0%, rgba(25, 25, 25, 0.95) 100%);
    backdrop-filter: blur(10px);
    min-height: 0;
}

/* Prevent message overflow in AI chat */
.ai-chat-messages .message-content {
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.ai-chat-panel {
    overflow: hidden;
}

/* Hide scrollbars (modern browsers) */
.ai-chat-messages::-webkit-scrollbar { width: 0; height: 0; }
.ai-chat-messages { scrollbar-width: none; -ms-overflow-style: none; }

.ai-message,
.user-message {
    display: flex;
    flex-direction: column;
    max-width: 85%;
    align-self: flex-start;
    gap: 4px;
}

.user-message {
    align-self: flex-end;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    opacity: 0.8;
}

.message-avatar {
    width: 16px;
    height: 16px;
    background: rgba(51, 51, 51, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999999;
    font-size: 8px;
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.05);
}

.user-message .message-avatar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #000000;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

.message-sender {
    font-size: 11px;
    color: #888888;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.user-message .message-sender {
    color: #cccccc;
}

.message-content {
    padding: 12px 16px;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid rgba(255, 255, 255, 0.1);
    word-wrap: break-word;
    position: relative;
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.02),
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.message-content:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 0 25px rgba(255, 255, 255, 0.04),
        0 4px 16px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.user-message .message-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    color: #000000;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.user-message .message-content:hover {
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 
        0 0 25px rgba(255, 255, 255, 0.15),
        0 4px 16px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.ai-message .message-content {
    border-bottom-left-radius: 6px;
}

.user-message .message-content {
    border-bottom-right-radius: 6px;
}

/* Message grouping - remove header for consecutive messages */
.ai-message + .ai-message .message-header,
.user-message + .user-message .message-header {
    display: none;
}

.ai-message + .ai-message,
.user-message + .user-message {
    margin-top: -8px;
}

.ai-chat-input {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.95) 0%, rgba(25, 25, 25, 0.95) 100%);
    backdrop-filter: blur(10px);
}

.ai-chat-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: flex-end;
    background: rgba(42, 42, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 8px;
    min-height: 48px;
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.02),
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
}

.ai-chat-input-wrapper:focus-within {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 0 25px rgba(255, 255, 255, 0.04),
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Create Chatbot wizard bubble */
.ai-wizard {
    padding: 16px;
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    width: 100%;
    max-width: 520px;
}
.ai-wizard h4 { margin: 0 0 10px 0; font-size: 14px; color: #e5e5e5; }
.ai-wizard .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ai-wizard .field { display: flex; flex-direction: column; gap: 6px; }
.ai-wizard label { font-size: 12px; color: #9ca3af; }
.ai-wizard input, .ai-wizard select, .ai-wizard textarea {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 10px 12px;
    color: #fff;
    font-size: 13px;
}
.ai-wizard textarea { min-height: 64px; resize: vertical; }
.ai-wizard .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.ai-wizard .btn { border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.08); color: #fff; padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.ai-wizard .btn.primary { background: #fff; color: #000; border-color: #fff; }
.ai-wizard .btn[disabled] { opacity: 0.6; cursor: default; }

.ai-chat-input textarea {
    flex: 1;
    background: transparent;
    border: none;
    border-radius: 16px;
    padding: 12px 16px;
    padding-right: 48px; /* Space for button */
    color: #ffffff;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    resize: none;
    min-height: 20px;
    max-height: 120px;
    overflow: hidden; /* Remove scrollbar */
    line-height: 1.4;
}

.ai-chat-input textarea::placeholder {
    color: #888888;
}

.ai-chat-input button {
    background-color: #ffffff;
    color: #000000;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: absolute;
    right: 10px;
    bottom: 50%;
    transform: translateY(50%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.ai-chat-input button:hover {
    background-color: #e5e5e5;
    transform: translateY(50%) scale(1.05);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

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

.typing-indicator span {
    width: 8px;
    height: 8px;
    background-color: #666666;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.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.5;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Responsive adjustments for split view */
@media (max-width: 1024px) {
    .ai-chat-panel {
        width: 350px;
    }
}

@media (max-width: 768px) {
    .main-wrapper {
        margin-left: 0;
    }
    
    .main-wrapper.split-view {
        flex-direction: column;
    }
    
    .ai-chat-panel {
        width: 100%;
        height: 50vh;
        border-left: none;
        border-top: 1px solid #222222;
    }
    
    .resizer {
        display: none !important;
    }
    
    .main-content {
        width: 100% !important;
    }
}

.error-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background-color: rgba(220, 38, 38, 0.1);
    border: 1px solid #dc2626;
    border-radius: 8px;
    color: #dc2626;
    font-size: 14px;
    margin-bottom: 24px;
}

/* ===================== */
/* Billing Page Styles   */
/* ===================== */

.billing-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px;
}

/* Invoices table actions */
.btn-sm {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 6px;
}

.invoice-actions {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.invoice-actions a { text-decoration: none; }

/* Loading state for small buttons */
.btn-sm.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.9;
}
.btn-sm.btn-loading::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    border: 2px solid currentColor;
    border-left-color: transparent;
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { from { transform: rotate(0deg);} to { transform: rotate(360deg);} }

.billing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

.billing-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.billing-header p {
    font-size: 16px;
    color: #888888;
    margin: 0;
}

.current-plan-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #222222 100%);
    border: 1px solid #333333;
    border-radius: 12px;
}

.plan-label {
    font-size: 14px;
    color: #888888;
}

.plan-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    text-transform: capitalize;
}

/* Subscription Section */
.subscription-section {
    margin-bottom: 48px;
}

.subscription-section h3 {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.section-subtitle {
    font-size: 16px;
    color: #888888;
    margin: 0 0 32px 0;
}

/* Billing Toggle */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.billing-toggle .toggle-label {
    font-size: 16px;
    color: #888888;
    font-weight: 500;
}

.save-badge {
    display: inline-block;
    padding: 2px 8px;
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    margin-left: 4px;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.pricing-card {
    position: relative;
    background: #111111;
    border: 1px solid #222222;
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: #333333;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.pricing-card.featured {
    border-color: #ffffff;
    background: linear-gradient(135deg, #1a1a1a 0%, #111111 100%);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: linear-gradient(135deg, #ffffff 0%, #e5e5e5 100%);
    color: #000000;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
}

.pricing-card .card-header h4 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.pricing-card .plan-description {
    font-size: 14px;
    color: #888888;
    margin: 0 0 24px 0;
}

.price-display {
    display: flex;
    align-items: baseline;
    margin-bottom: 32px;
}

.price-display .currency {
    font-size: 20px;
    color: #888888;
    margin-right: 4px;
}

.price-display .price {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
}

.price-display .period {
    font-size: 16px;
    color: #888888;
    margin-left: 8px;
}

.pricing-card .features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
}

.pricing-card .features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
    color: #cccccc;
}

.pricing-card .checkmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(249, 115, 22, 0.1);
    color: #F97316;
    border-radius: 50%;
    font-size: 12px;
    flex-shrink: 0;
}

.select-plan-btn {
    width: 100%;
    padding: 12px 24px;
    background: #ffffff;
    color: #000000;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-plan-btn:hover {
    background: #e5e5e5;
    transform: translateY(-2px);
}

.select-plan-btn.current {
    background: #222222;
    color: #888888;
    cursor: not-allowed;
}

/* Payment Modal */
.payment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.payment-modal-overlay[style*="flex"] {
    opacity: 1;
    visibility: visible;
}

.payment-modal {
    background: #111111;
    border: 1px solid #333333;
    border-radius: 16px;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    margin: 20px;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
}

.payment-modal-overlay[style*="flex"] .payment-modal {
    transform: translateY(0) scale(1);
}

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

.modal-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #888888;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #222222;
    color: #ffffff;
}

.modal-content {
    padding: 32px;
}

.payment-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
}

/* Payment Form */
.payment-form-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.form-section {
    background: #111111;
    border: 1px solid #222222;
    border-radius: 12px;
    padding: 24px;
}

.form-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 20px 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #cccccc;
}

.form-input {
    padding: 12px 16px;
    background: #0a0a0a;
    border: 1px solid #333333;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #ffffff;
    background: #111111;
}

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


/* Card Input */
.card-input-wrapper {
    position: relative;
}

.card-icons {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 8px;
}

.card-icon {
    width: 32px;
    height: 20px;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

/* SEPA Mandate */
.sepa-mandate {
    margin-top: 16px;
    padding: 16px;
    background: #0a0a0a;
    border: 1px solid #333333;
    border-radius: 8px;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    accent-color: #ffffff;
}

.checkbox-label {
    font-size: 13px;
    line-height: 1.5;
    color: #888888;
}

.checkbox-label a {
    color: #ffffff;
    text-decoration: underline;
}

/* Order Summary */
.order-summary {
    position: sticky;
    top: 32px;
    height: fit-content;
}

.order-summary h4 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 20px 0;
}

.summary-card {
    background: #111111;
    border: 1px solid #222222;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 14px;
}

.summary-item span:first-child {
    color: #888888;
}

.summary-item span:last-child {
    color: #ffffff;
}

.summary-item.total {
    font-size: 18px;
    font-weight: 600;
}

.summary-item.total span:first-child {
    color: #ffffff;
}

.font-bold {
    font-weight: 600;
}

.summary-divider {
    height: 1px;
    background: #333333;
    margin: 8px 0;
}

.summary-recurring {
    text-align: center;
    padding-top: 8px;
}

.summary-recurring small {
    font-size: 12px;
    color: #888888;
}

/* Payment Terms */
.payment-terms {
    margin-bottom: 20px;
}

/* Submit Button */
.submit-payment-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.submit-payment-btn * {
    color: #ffffff !important;
}

.submit-payment-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #EA580C 0%, #DC2626 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.submit-payment-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Payment Security */
.payment-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 13px;
    color: #888888;
}

.payment-security svg {
    width: 16px;
    height: 16px;
}


/* Modal Responsive Design */
@media (max-width: 1024px) {
    .payment-grid {
        grid-template-columns: 1fr;
    }
    
    .order-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .billing-container {
        padding: 20px;
    }
    
    .billing-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-modal {
        margin: 10px;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 20px 24px;
    }
    
    .modal-content {
        padding: 24px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* =========================
   Legal Pages (global)
   Applies to: /legal/* pages including privacy, terms, cookies, impressum, dpa
   ========================= */
html body .legal-page {
    max-width: 1000px;
    margin: 100px auto 0;
    padding: 48px 20px 80px;
}

html body .legal-hero {
    padding: 24px 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    margin-bottom: 28px !important;
}

html body .legal-title {
    margin: 0 !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.15 !important;
    font-size: clamp(28px, 4vw, 42px) !important;
    color: #ffffff !important;
    text-wrap: balance;
}

html body .legal-sub {
    margin: 10px 0 0 !important;
    color: #b3b3b3 !important;
}

html body .legal-toc {
    display: grid;
    gap: 8px;
    margin: 16px 0 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

html body .legal-toc a {
    color: #ffffff;
    opacity: 0.9;
    text-decoration: none;
}

html body .legal-toc a:hover { opacity: 1; text-decoration: underline; }

html body .legal-section {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    padding: 24px !important;
    margin: 16px 0 !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35) !important;
}

html body .legal-section h2 {
    margin: 0 0 12px !important;
    color: #ffffff !important;
    font-size: 20px !important;
    line-height: 1.25 !important;
}

html body .legal-section h3 {
    margin: 18px 0 10px !important;
    color: #e5e5e5 !important;
    font-size: 16px !important;
}

html body .legal-section p,
html body .legal-section li {
    color: #d6d6d6 !important;
    line-height: 1.7 !important;
}

html body .legal-section ul { margin: 8px 0 0 !important; padding-left: 20px !important; }

html body .legal-section a { color: #ffffff !important; text-decoration: underline !important; }

/* Inline callouts (e.g., last updated) */
html body .legal-note {
    color: #9ca3af !important;
    margin-top: 8px !important;
}

/* Code or definitions in legal text */
html body .legal-code {
    display: inline-block;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 2px 6px;
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 90%;
}

/* Responsive tweaks */
@media (max-width: 640px) {
    html body .legal-page { padding: 32px 16px 64px; margin-top: 80px; }
    html body .legal-section { padding: 20px !important; }
}

/* Light theme for Legal */
.theme-light .legal-title { color: #0f172a !important; }
.theme-light .legal-sub { color: rgba(15, 23, 42, 0.65) !important; }
.theme-light .legal-hero { border-bottom-color: rgba(0,0,0,0.08) !important; }
.theme-light .legal-toc { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); }
.theme-light .legal-toc a { color: #0f172a; opacity: 0.9; }
.theme-light .legal-toc a:hover { opacity: 1; }
.theme-light .legal-section { background: rgba(255,255,255,0.75) !important; border-color: rgba(0,0,0,0.08) !important; box-shadow: 0 20px 60px rgba(0,0,0,0.12) !important; }
.theme-light .legal-section h2 { color: #0f172a !important; }
.theme-light .legal-section h3 { color: #0f172a !important; opacity: 0.9; }
.theme-light .legal-section p,
.theme-light .legal-section li { color: rgba(15,23,42,0.88) !important; }
.theme-light .legal-section a { color: #0f172a !important; }
.theme-light .legal-note { color: rgba(15,23,42,0.6) !important; }
.theme-light .legal-code { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); }
