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

:root {
    --brand-primary: #1a1f36;
    --brand-accent: #f05a28;
    --brand-primary-dark: #060b22;
    --primary-blue: var(--brand-primary);
    --secondary-blue: var(--brand-accent);
    --light-blue: #e8e8ea;
    --dark-navy: var(--brand-primary-dark);
    --white: #FFFFFF;
    --shadow: rgba(30, 41, 59, 0.1);
    --shadow-lg: rgba(30, 41, 59, 0.2);
}

body {
    font-family: 'Kanit', sans-serif;
    background-color: var(--light-blue);
    color: var(--dark-navy);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

.logo {
    height: 32px;
}

.brand-name {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.hotel-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-blue);
}

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

.user-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
}

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

.user-name {
    font-weight: 600;
    color: var(--dark-navy);
}

.user-email {
    font-size: 0.85rem;
    color: #666;
}

/* User Menu */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--white);
    border: 2px solid var(--light-blue);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
    color: var(--dark-navy);
}

.user-menu-btn:hover {
    background-color: var(--light-blue);
    border-color: var(--primary-blue);
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.user-avatar-small svg {
    width: 20px;
    height: 20px;
    stroke: var(--white);
    stroke-width: 2;
}

.user-display-name {
    font-weight: 500;
    color: var(--dark-navy);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 20px var(--shadow-lg);
    padding: 1rem;
    min-width: 200px;
    z-index: 1000;
}

.user-dropdown-email {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: #666;
    border-bottom: 1px solid var(--light-blue);
    margin-bottom: 0.75rem;
    word-break: break-word;
}

.user-dropdown-session {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0;
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0.5rem;
}

.user-dropdown-session i {
    font-size: 0.9rem;
}

.user-dropdown-logout {
    width: 100%;
    padding: 0.5rem 1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    padding: 6rem 2rem;
    text-align: center;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.hero-body {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.88;
    margin-bottom: 2rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Section */
.features {
    padding: 4rem 2rem;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-navy);
}

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

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-lg);
}

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

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-navy);
}

.feature-card p {
    color: #666;
    font-weight: 300;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
}

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

.btn-primary:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--dark-navy);
    border: 2px solid var(--dark-navy);
}

.btn-secondary:hover {
    background-color: var(--dark-navy);
    color: var(--white);
}

.btn-accent {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.6);
}

.btn-secondary-light {
    background-color: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-secondary-light:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--white);
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.3s;
    color: var(--dark-navy);
}

.icon-btn:hover {
    background-color: var(--light-blue);
}

.btn-with-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background-color 0.3s;
    color: var(--dark-navy);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
}

.btn-with-icon:hover {
    background-color: var(--light-blue);
}

/* Chat Widget Button */
.chat-widget-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 99;
}

.chat-widget-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px var(--shadow-lg);
}

/* Chat Window */
.chat-window {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 600px;
    height: 800px;
    max-height: 95%;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 40px var(--shadow-lg);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: all 0.3s;
}

body.inspector-open .chat-window {
    max-width: calc(100vw - var(--inspector-w) - 20px - 4rem);
}

body.inspector-open .chat-window.maximized {
    width: calc(100vw - var(--inspector-w) - 20px - 4rem);
    height: calc(100vh - 4rem);
    bottom: 3rem;
    right: 2rem;
}

.chat-window.maximized {
    width: calc(100vw - 4rem);
    height: calc(100vh - 4rem);
    bottom: 3rem;
    right: 2rem;
}

.chat-window.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9);
}

.chat-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    padding: 1.25rem;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-logo {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    padding: 0.5rem;
}

.chat-bot-icon {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary-blue);
}

.bot-emoji {
    font-size: 1.2rem;
    color: var(--primary-blue);
}

.chat-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.chat-status {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 300;
}

.chat-header .icon-btn {
    color: var(--white);
}

.chat-header .icon-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    gap: 0.75rem;
    animation: messageSlide 0.3s ease-out;
}

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

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-message .message-avatar {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    font-weight: 600;
}

.message-content {
    flex: 1;
    background: var(--light-blue);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    color: var(--dark-navy);
    word-wrap: break-word;
}

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

.user-message .message-content {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
}

.typing-indicator {
    display: flex;
    gap: 0.25rem;
    padding: 0.5rem;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    animation: typing 1.4s infinite;
}

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

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

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

/* Chat Suggestions */
.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1rem 0;
    border-top: 1px solid var(--light-blue);
}

.suggestion-btn {
    padding: 0.4rem 0.75rem;
    background: var(--light-blue);
    border: 1px solid var(--primary-blue);
    border-radius: 16px;
    font-family: 'Kanit', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--primary-blue);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.suggestion-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* Chat Input */
.chat-input-container {
    padding: 1rem;
    border-top: 1px solid var(--light-blue);
    display: flex;
    gap: 0.75rem;
}

.chat-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--light-blue);
    border-radius: 8px;
    font-family: 'Kanit', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

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

.chat-input:disabled {
    background-color: var(--light-blue);
    cursor: not-allowed;
}

.send-btn {
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.send-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-lg);
}

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

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 40px var(--shadow-lg);
    animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--light-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-navy);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--light-blue);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-navy);
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--light-blue);
    border-radius: 8px;
    font-family: 'Kanit', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

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

.form-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: #666;
    font-weight: 300;
}

/* Connection Status */
.connection-section {
    border: 2px solid var(--light-blue);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.connection-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-navy);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.connection-section h3 i {
    font-size: 1.4rem;
    color: var(--primary-blue);
}

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

.connection-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background-color: var(--light-blue);
    border-radius: 8px;
    font-size: 0.9rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-connected {
    background-color: #10b981;
    animation: pulse 2s infinite;
}

.status-disconnected {
    background-color: #ef4444;
}

.status-connecting {
    background-color: var(--primary-blue);
    animation: pulse 1s infinite;
}

.debug-info {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #991b1b;
    max-height: 150px;
    overflow-y: auto;
}

.debug-info.success {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.debug-info pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', monospace;
}

.btn-connect {
    padding: 0.75rem 1.75rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-connect:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--shadow-lg);
}

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

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

/* Inspector Side Panel */
:root {
    --inspector-w: 50vw;
}

body.inspector-open {
    padding-left: calc(var(--inspector-w) + 20px);
    transition: padding-left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body.inspector-collapsed {
    padding-left: 20px;
    transition: padding-left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body:not(.inspector-open):not(.inspector-collapsed) {
    padding-left: 0;
    transition: padding-left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.inspector-panel {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--inspector-w);
    background: var(--white);
    box-shadow: 4px 0 20px var(--shadow-lg);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.inspector-panel.collapsed {
    transform: translateX(calc(-100% - 20px));
    pointer-events: none;
}

.inspector-expand-btn {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8ecf1;
    border: none;
    border-right: 1px solid rgba(0,0,0,0.10);
    color: rgba(0,0,0,0.35);
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.inspector-expand-btn:hover {
    color: var(--primary-blue);
    background: #dce1e8;
}

.inspector-expand-btn i {
    font-size: 14px;
}

.inspector-panel.resizing {
    transition: none;
}

body.inspector-resizing {
    transition: none !important;
}

.inspector-drag-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    cursor: ew-resize;
}

.inspector-drag-overlay.active {
    display: block;
}

.inspector-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--dark-navy), #0f172a);
    padding: 0 0.5rem 0 0;
    height: 44px;
    flex-shrink: 0;
}

.inspector-tabs {
    display: flex;
    height: 100%;
    flex: 1;
    min-width: 0;
}

.inspector-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    height: 100%;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.55);
    font-family: 'Kanit', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.inspector-tab:hover {
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.05);
}

.inspector-tab.active {
    color: #fff;
    border-bottom-color: var(--primary-blue);
    background: rgba(255,255,255,0.08);
}

.inspector-count {
    font-size: 0.72rem;
    background: rgba(255,255,255,0.15);
    padding: 1px 7px;
    border-radius: 10px;
    font-weight: 400;
    flex-shrink: 0;
}

.debug-panel-toolbar {
    display: flex;
    justify-content: flex-end;
    padding: 0.5rem 0 0.25rem 0;
}

.debug-panel-clear-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #888;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s;
}

.debug-panel-clear-btn:hover {
    color: #c0392b;
    border-color: #e8a9a3;
    background: #fdf0ef;
}

.inspector-body {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.inspector-pane {
    display: none;
    position: absolute;
    inset: 0;
    overflow-y: auto;
    padding: 0.75rem;
    background: #fafafa;
}

.inspector-pane.active {
    display: block;
}

.inspector-pane[data-panel="agent-flow"] {
    padding: 0;
    overflow: hidden;
}

.inspector-pane[data-panel="agent-flow"] iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.inspector-separator {
    position: absolute;
    right: -20px;
    top: 0;
    bottom: 0;
    width: 20px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #e8ecf1;
    border-left: 1px solid rgba(0,0,0,0.10);
    border-right: 1px solid rgba(0,0,0,0.10);
}

.separator-collapse-btn {
    width: 20px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: rgba(0,0,0,0.4);
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
    margin-top: 4px;
}

.separator-collapse-btn:hover {
    color: var(--primary-blue);
    background: rgba(0,0,0,0.06);
}

.separator-collapse-btn i {
    font-size: 14px;
    transition: transform 0.3s;
}

.separator-drag-handle {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: ew-resize;
    color: rgba(0,0,0,0.25);
    transition: color 0.2s;
}

.separator-drag-handle:hover {
    color: var(--primary-blue);
}

.separator-drag-handle i {
    font-size: 18px;
}

.debug-panel-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    text-align: center;
}

.debug-panel-empty svg {
    margin-bottom: 1rem;
    opacity: 0.5;
}

.debug-panel-empty p {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.debug-panel-empty small {
    font-size: 0.9rem;
}

.debug-panel-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.debug-request {
    background: var(--white);
    border: 1px solid var(--light-blue);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.debug-request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    user-select: none;
    background: var(--white);
    transition: background-color 0.2s;
}

.debug-request-header:hover {
    background: #fafafa;
}

.debug-request-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.debug-request-method {
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: var(--primary-blue);
    color: var(--white);
}

.debug-request-url {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--dark-navy);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.debug-request-time {
    font-size: 0.8rem;
    color: #666;
}

.debug-request-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.debug-request-status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.debug-request-status-badge.success {
    background: #d1fae5;
    color: #065f46;
}

.debug-request-status-badge.error {
    background: #fee2e2;
    color: #991b1b;
}

.debug-request-status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.debug-request-duration {
    font-size: 0.8rem;
    color: #666;
}

.debug-request-toggle {
    transition: transform 0.2s;
}

.debug-request.expanded .debug-request-toggle {
    transform: rotate(180deg);
}

.debug-request-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.debug-request.expanded .debug-request-body {
    max-height: 600px;
    overflow-y: auto;
}

.debug-request-tabs {
    display: flex;
    border-bottom: 1px solid var(--light-blue);
    background: #fafafa;
}

.debug-request-tab {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
    transition: all 0.2s;
}

.debug-request-tab:hover {
    color: var(--primary-blue);
}

.debug-request-tab.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
    background: var(--white);
}

.debug-request-tab-content {
    display: none;
    padding: 1rem;
}

.debug-request-tab-content.active {
    display: block;
}

.debug-code-block {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    overflow-x: auto;
    line-height: 1.5;
}

.debug-code-block pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.debug-metadata {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1rem;
    font-size: 0.85rem;
}

.debug-metadata-label {
    font-weight: 600;
    color: #666;
}

.debug-metadata-value {
    font-family: 'Courier New', monospace;
    color: var(--dark-navy);
    word-break: break-all;
}

.debug-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
}

.debug-column {
    min-width: 0;
}

.debug-column-header {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-navy);
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: var(--light-blue);
    border-radius: 4px;
}

.jwt-claims-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    padding: 3px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #d4a017;
    background: rgba(212, 160, 23, 0.12);
    border: 1px solid rgba(212, 160, 23, 0.25);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.jwt-claims-toggle:hover {
    background: rgba(212, 160, 23, 0.22);
    border-color: rgba(212, 160, 23, 0.4);
}

.jwt-claims-block {
    margin-top: 6px;
    padding: 8px 10px;
    background: #2d2a1e;
    border: 1px solid rgba(212, 160, 23, 0.2);
    border-radius: 5px;
    font-size: 0.8rem;
    line-height: 1.45;
}

.jwt-claims-block pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #f0d68a;
}

.debug-column .debug-code-block {
    max-height: 400px;
    overflow: auto;
}

@media (max-width: 1024px) {
    .debug-two-columns {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .chat-window {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }

    .chat-window.maximized {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }

    .chat-widget-btn {
        bottom: 1rem;
        right: 1rem;
    }

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

    .btn-with-icon span {
        display: none;
    }

    body.inspector-open {
        padding-left: 0;
    }

    .inspector-panel {
        width: 100vw !important;
    }

    .inspector-tab span {
        display: none;
    }
}

/* Scrollbar Styling */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: var(--light-blue);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-blue);
}

/* ── Stats Strip ─────────────────────────────────────────── */
.stats-strip {
    background: var(--dark-navy);
    color: var(--white);
    padding: 2.5rem 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-blue);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 300;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

/* ── API Table Section ───────────────────────────────────── */
.api-table-section {
    padding: 4rem 2rem;
    background: var(--white);
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-weight: 300;
    margin-bottom: 2rem;
    font-size: 1.05rem;
    margin-top: -2rem;
}

.api-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow);
}

.api-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.api-table thead {
    background: var(--dark-navy);
    color: var(--white);
}

.api-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.api-table tbody tr {
    border-bottom: 1px solid var(--light-blue);
    transition: background-color 0.2s;
}

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

.api-table tbody tr:hover {
    background-color: var(--light-blue);
}

.api-table td {
    padding: 0.9rem 1.25rem;
    color: var(--dark-navy);
}

.endpoint-cell code {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    background: var(--light-blue);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-healthy {
    background: #d1fae5;
    color: #065f46;
}

.status-degraded {
    background: #fee2e2;
    color: #991b1b;
    animation: pulse 2s infinite;
}

/* ── Closing CTA Section ─────────────────────────────────── */
.closing-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    text-align: center;
}

.closing-headline {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.closing-body {
    font-size: 1.15rem;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0.95;
    line-height: 1.7;
}

.closing-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}