/* ====================
   CSS Variables & Reset
   ==================== */
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #dbeafe;

    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --error: #ef4444;
    --error-light: #fee2e2;

    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.5;
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

/* ====================
   Layout
   ==================== */
.app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 48px;
    width: 100%;
}

/* ====================
   Header
   ==================== */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}

.header-left {
    display: flex;
    align-items: center;
}

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

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
}

.header-nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    text-decoration: none;
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all 0.15s;
}

.nav-link:hover {
    color: var(--gray-900);
    background: var(--gray-100);
}

.nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}

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

.btn-export {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--gray-900);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--gray-200);
}

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

/* ====================
   Progress Section
   ==================== */
.progress-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    width: 100%;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.step-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
}

.step-next {
    font-size: 14px;
    color: var(--gray-500);
}

.progress-bar {
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.step-hint {
    margin-top: 8px;
    font-size: 14px;
    color: var(--gray-500);
}

/* ====================
   Step 1: Hero Card
   ==================== */
.hero-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 24px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    padding: 64px 48px;
    text-align: center;
}

.hero-content h1 {
    font-size: 40px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-content>p {
    font-size: 16px;
    color: var(--gray-400);
    margin-bottom: 32px;
}

.url-form {
    max-width: 600px;
    margin: 0 auto;
}

.url-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 6px 6px 6px 16px;
    box-shadow: var(--shadow-lg);
}

.search-icon {
    flex-shrink: 0;
    margin-right: 12px;
}

.url-input-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 12px 0;
    color: var(--gray-900);
}

.url-input-wrapper input::placeholder {
    color: var(--gray-400);
}

.security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--gray-400);
}

/* Settings Toggle */
.settings-toggle {
    text-align: center;
    margin-bottom: 16px;
}

.btn-text {
    background: none;
    border: none;
    color: var(--gray-500);
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
}

.btn-text:hover {
    color: var(--primary);
}

.advanced-settings {
    max-width: 600px;
    margin: 0 auto;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

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

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--gray-900);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.hint {
    font-weight: 400;
    font-size: 12px;
    color: var(--gray-400);
}

/* ====================
   Buttons
   ==================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
}

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

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.btn-back {
    display: block;
    margin-top: 16px;
    text-align: center;
}

/* ====================
   Loading
   ==================== */
.loading-card {
    text-align: center;
    padding: 80px 40px;
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
}

.loader {
    width: 48px;
    height: 48px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 24px;
    animation: spin 1s linear infinite;
}

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

.loading-card h2 {
    font-size: 20px;
    margin-bottom: 8px;
}

.loading-card p {
    color: var(--gray-500);
}

/* ====================
   Step 2: Goal Selection
   ==================== */
.step-header {
    margin-bottom: 32px;
}

.step-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-header p {
    font-size: 16px;
    color: var(--gray-600);
}

.goal-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

@media (max-width: 768px) {
    .goal-layout {
        grid-template-columns: 1fr;
    }
}

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

.preview-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    padding: 16px;
}

.preview-image {
    background: var(--gray-100);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 12px;
}

.preview-image img {
    width: 100%;
    height: auto;
    display: block;
}

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

.preview-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
}

.preview-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--success);
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
}

.preview-time {
    font-size: 13px;
    color: var(--gray-400);
    margin-top: 4px;
}

.summary-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    padding: 20px;
}

.summary-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--gray-900);
}

.summary-card p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
}

.goal-column h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.goal-subtitle {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 20px;
}

.goal-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.goal-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.15s;
}

.goal-option:hover {
    border-color: var(--gray-300);
}

.goal-option.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.goal-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
}

.goal-option.selected .goal-radio {
    border-color: var(--primary);
    background: var(--primary);
}

.goal-option.selected .goal-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
}

.goal-info {
    flex: 1;
}

.goal-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.goal-desc {
    font-size: 13px;
    color: var(--gray-500);
}

.goal-badge {
    padding: 4px 10px;
    background: var(--error-light);
    color: var(--error);
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
}

/* ====================
   Step 3: Results
   ==================== */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.results-step {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.results-title h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.results-title p {
    color: var(--gray-500);
    font-size: 14px;
}

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

.results-grid {
    display: grid;
    grid-template-columns: 200px 1fr 280px;
    gap: 24px;
    margin-bottom: 32px;
}

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

/* Score Card */
.score-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    padding: 24px;
    text-align: center;
}

.score-circle {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 16px;
}

.score-circle svg {
    width: 100%;
    height: 100%;
}

.score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
}

.score-total {
    font-size: 16px;
    color: var(--gray-400);
}

.score-change {
    margin-bottom: 8px;
}

.change-positive {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--success-light);
    color: var(--success);
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
}

.score-rating {
    font-size: 13px;
    color: var(--gray-500);
}

/* Breakdown Card */
.breakdown-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    padding: 24px;
}

.breakdown-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.breakdown-subtitle {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 20px;
}

.breakdown-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.breakdown-item {
    display: grid;
    grid-template-columns: 180px 1fr auto;
    align-items: center;
    gap: 16px;
}

.breakdown-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray-700);
}

.breakdown-icon {
    font-size: 16px;
}

.breakdown-bar {
    height: 8px;
    background: var(--gray-100);
    border-radius: 4px;
    overflow: hidden;
}

.breakdown-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.breakdown-fill.warning {
    background: var(--warning);
}

.breakdown-score {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    min-width: 60px;
    text-align: right;
}

/* Quick Wins Card */
.quickwins-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    padding: 24px;
}

.quickwins-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.quickwins-icon {
    width: 24px;
    height: 24px;
    background: var(--warning-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.quickwins-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.quickwins-subtitle {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 16px;
}

.quickwins-list {
    list-style: none;
}

.quickwins-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}

.quickwins-list li:last-child {
    border-bottom: none;
}

.quickwins-list input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary);
}

.quickwins-list label {
    flex: 1;
    cursor: pointer;
}

.quickwins-list strong {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.quickwins-list span {
    font-size: 13px;
    color: var(--gray-500);
}

/* Issues & Strengths Grid */
.issues-strengths-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
}

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

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

.section-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.count-badge {
    padding: 4px 12px;
    background: var(--error-light);
    color: var(--error);
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
}

.count-badge.success {
    background: var(--success-light);
    color: var(--success);
}

/* Issue Cards */
.issues-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.issue-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.issue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
}

.issue-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.issue-icon {
    width: 32px;
    height: 32px;
    background: var(--error-light);
    color: var(--error);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.issue-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
}

.issue-category {
    font-size: 13px;
    color: var(--gray-500);
}

.priority-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

.priority-high {
    background: var(--error);
    color: var(--white);
}

.priority-medium {
    background: var(--warning);
    color: var(--gray-900);
}

.priority-low {
    background: var(--gray-200);
    color: var(--gray-700);
}

.issue-body {
    padding: 20px;
}

.issue-description {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 16px;
}

.issue-solution {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 16px;
}

.solution-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--success);
    margin-bottom: 8px;
}

.solution-text {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.6;
}

/* Strengths List */
.strengths-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.strength-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.strength-icon {
    width: 24px;
    height: 24px;
    background: var(--success-light);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.strength-content {
    flex: 1;
}

.strength-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.strength-desc {
    font-size: 13px;
    color: var(--gray-500);
}

/* Error Card */
.error-card {
    text-align: center;
    padding: 80px 40px;
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
}

.error-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.error-card h2 {
    font-size: 20px;
    margin-bottom: 8px;
}

.error-card p {
    color: var(--gray-500);
    margin-bottom: 24px;
}

/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-top: 1px solid var(--gray-200);
    margin-top: auto;
}

.footer p {
    font-size: 13px;
    color: var(--gray-500);
}

.footer-nav {
    display: flex;
    gap: 24px;
}

.footer-nav a {
    font-size: 13px;
    color: var(--gray-500);
    text-decoration: none;
}

.footer-nav a:hover {
    color: var(--gray-700);
}

/* ====================
   Fixed Chat Sidebar
   ==================== */
.chat-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    height: 100vh;
    background: var(--white);
    border-left: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transform: translateX(0);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

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

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--primary);
    color: var(--white);
    flex-shrink: 0;
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-icon {
    font-size: 20px;
}

.chat-title h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    margin: 0;
}

.chat-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

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

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

.chat-message {
    display: flex;
    flex-direction: column;
}

.chat-message.user {
    align-items: flex-end;
}

.chat-message.assistant {
    align-items: flex-start;
}

.message-content {
    max-width: 90%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.chat-message.user .message-content {
    background: var(--primary);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.chat-message.assistant .message-content {
    background: var(--gray-100);
    color: var(--gray-800);
    border-bottom-left-radius: 4px;
}

.chat-message.loading .message-content {
    background: var(--gray-100);
    color: var(--gray-500);
    font-style: italic;
}

.chat-input-form {
    display: flex;
    padding: 16px;
    gap: 12px;
    border-top: 1px solid var(--gray-200);
    background: var(--white);
    flex-shrink: 0;
}

.chat-input-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 24px;
    font-size: 14px;
    color: var(--gray-900);
}

.chat-input-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-chat-send {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
    flex-shrink: 0;
}

.btn-chat-send:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

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

/* Floating Action Button */
.chat-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    z-index: 999;
    transition: all 0.2s;
}

.chat-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.5);
}

.chat-fab.hidden {
    display: none;
}

.chat-fab-icon {
    font-size: 18px;
}

@media (max-width: 768px) {
    .chat-sidebar {
        width: 100%;
    }
}