/*
 * BJLOGIS Customer Service Chat Application
 * Premium Pure CSS Design System - Professional UI/UX
 * Version: 5.0 - Detailed Tab-Specific Design
 */

/* ===== CSS RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'SF Pro Display', 'Noto Sans KR', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #212121;
    background-color: #fafafa;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-overflow-scrolling: touch;
}

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    /* ITEASY Inspired Colors */
    --primary-blue: #1e88e5;
    --primary-blue-dark: #1565c0;
    --primary-blue-light: #bbdefb;
    --primary-blue-subtle: #e3f2fd;

    /* Professional Color Palette */
    --accent-teal: #26c6da;
    --accent-green: #66bb6a;
    --accent-orange: #ffa726;
    --accent-red: #ef5350;
    --accent-success: #4caf50;
    --accent-warning: #ff9800;
    --accent-purple: #9c27b0;

    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;

    /* Semantic Colors */
    --text-dark: #212121;
    --text-gray: #757575;
    --text-light: #bdbdbd;
    --bg-gray: #fafafa;

    /* Professional Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 8px 0 rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 16px 0 rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 12px 24px 0 rgba(0, 0, 0, 0.18);
    --shadow-2xl: 0 16px 32px 0 rgba(0, 0, 0, 0.22);

    /* Card-specific shadows */
    --card-shadow: 0 2px 12px 0 rgba(30, 136, 229, 0.08);
    --card-shadow-hover: 0 8px 24px 0 rgba(30, 136, 229, 0.15);
    --card-shadow-active: 0 4px 16px 0 rgba(30, 136, 229, 0.12);

    /* Transitions */
    --transition-fast: 0.15s ease-out;
    --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-spring: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Border Radius */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-3xl: 24px;
    --radius-full: 9999px;
}

button {
    border: 0;
}


#home-tab {
    padding: 24px;
}

#home-tab button {
  width: 100%;
  margin-bottom: 10px;
}

/* ===== LAYOUT COMPONENTS ===== */

/* App Container - ITEASY Style */
.app-container {
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, var(--gray-50) 0%, #f0f4f8 100%);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: 0.5s all;
}

/* Desktop Enhancement */
@media (min-width: 768px) {
    .app-container {
        width: 390px;
        height: 744px;
        max-height: 90vh;
        margin: 2vh auto;
        border-radius: var(--radius-3xl);
        box-shadow: var(--shadow-2xl);
        background: var(--white);
        border: 1px solid var(--gray-200);
    }

    .app-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(30, 136, 229, 0.02) 0%, rgba(38, 198, 218, 0.01) 100%);
        pointer-events: none;
        z-index: 1;
    }

    .app-container > * {
        position: relative;
        z-index: 2;
    }
}

/* Status Bar - iPhone Style */
.status-bar {
    height: 44px;
    background: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 1px solid var(--gray-100);
    position: relative;
}

.status-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--gray-200) 50%, transparent 100%);
}

.signal-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.signal-dot {
    width: 8px;
    height: 8px;
    background: var(--gray-400);
    border-radius: 50%;
    transition: var(--transition-base);
}

.signal-dot.active {
    background: var(--primary-blue);
    box-shadow: 0 0 8px rgba(30, 136, 229, 0.4);
}

/* Header Section - Professional */
.main-header {
    background: var(--white);
    padding: 24px 24px 32px;
    border-bottom: 1px solid var(--gray-100);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--gray-200) 50%, transparent 100%);
}

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

.brand-logo {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--card-shadow);
    position: relative;
}

.brand-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: var(--radius-xl);
    pointer-events: none;
}

.brand-text h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.brand-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 6px rgba(102, 187, 106, 0.4);
}

.brand-status p {
    font-size: 14px;
    color: var(--text-gray);
    margin: 0;
    font-weight: 500;
}

.close-btn {
    width: 36px;
    height: 36px;
    background: var(--gray-50);
    border: none;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
    color: var(--text-gray);
}

.close-btn:hover {
    background: var(--gray-100);
    color: var(--text-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Content Area */
.content-area {
    flex: 1;
    overflow: hidden;
    position: relative;
    background: var(--bg-gray);
}

/* Tab Content */
.tab-content {
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    -webkit-overflow-scrolling: touch;
}

.tab-content.hidden {
    display: none;
}

/* ===== HOME TAB - LANDING/DASHBOARD ===== */

/* Welcome Card - Premium ITEASY Style */
.welcome-card {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    border-radius: var(--radius-3xl);
    padding: 28px;
    margin-bottom: 32px;
    box-shadow: var(--card-shadow-hover);
    position: relative;
    overflow: hidden;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.welcome-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.welcome-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.welcome-avatar {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.welcome-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    letter-spacing: -0.02em;
}

.welcome-card p {
    color: var(--white);
    margin: 0;
    position: relative;
    z-index: 2;
    line-height: 1.6;
}

.welcome-card strong {
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Trust Indicators */
.trust-indicator {
    background: rgba(102, 187, 106, 0.1);
    border: 1px solid rgba(102, 187, 106, 0.2);
    border-radius: var(--radius-xl);
    padding: 12px 20px;
    margin-bottom: 16px;
    animation: glow 3s ease-in-out infinite;
}

.trust-indicator.secondary {
    background: rgba(189, 189, 189, 0.1);
    border-color: rgba(189, 189, 189, 0.2);
    animation: none;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 8px rgba(102, 187, 106, 0.3);
    }
    50% {
        box-shadow: 0 0 16px rgba(102, 187, 106, 0.5);
    }
}

/* ===== AI CHAT TAB - REAL-TIME MESSAGING ===== */

/* AI Status Control Panel */
.ai-control-panel {
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
    border-bottom: 1px solid var(--gray-100);
    padding: 16px 20px;
    position: relative;
}

.ai-control-panel::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--gray-200) 50%, transparent 100%);
}

.ai-status-display {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.ai-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-red);
    transition: var(--transition-base);
    box-shadow: 0 0 8px rgba(239, 83, 80, 0.4);
}

.ai-indicator.active {
    background: var(--accent-green);
    box-shadow: 0 0 8px rgba(102, 187, 106, 0.4);
    animation: pulse 2s infinite;
}

.ai-status-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-gray);
}

.ai-toggle-button {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: var(--radius-lg);
    font-weight: 500;
    transition: var(--transition-base);
}

/* Chat Messages Container */

.user-message {
    display: flex;
    gap: 3px;
    margin-bottom: 16px;
    justify-content: flex-end;
}

.chat-messages-container {
    background: linear-gradient(135deg, var(--gray-50) 0%, #f8fafc 100%);
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    position: relative;
}

.chat-messages-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to bottom, var(--gray-50), transparent);
    pointer-events: none;
}

.welcome-message-group {
    margin-bottom: 24px;
}

.ai-avatar-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.ai-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--card-shadow);
    position: relative;
}

.ai-avatar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 50%;
    pointer-events: none;
}

.ai-intro {
    margin-left: 12px;
}

.ai-intro h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: -0.02em;
}

.ai-intro p {
    font-size: 14px;
    color: var(--text-gray);
    margin: 2px 0 0 0;
    font-weight: 500;
}

.ai-message-bubble {
    background: var(--white);
    border-radius: var(--radius-2xl);
    border-top-left-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(30, 136, 229, 0.08);
    position: relative;
    max-width: 280px;
}

.ai-message-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(30, 136, 229, 0.1) 50%, transparent 100%);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.ai-message-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
}

/* Chat Input Area */
.chat-input-area {
    background: var(--white);
    border-top: 1px solid var(--gray-100);
    padding: 20px;
    position: relative;
}

.chat-input-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--gray-200) 50%, transparent 100%);
}

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

.chat-input-container {
    flex: 1;
    position: relative;
}

.chat-input {
    width: 100%;
    min-height: 48px;
    max-height: 120px;
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-3xl);
    resize: none;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
    background: var(--gray-50);
    transition: var(--transition-base);
    color: var(--text-dark);
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.1);
}

.chat-input::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

.chat-send-button {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    box-shadow: var(--card-shadow);
}

.chat-send-button:hover {
    transform: scale(1.05);
    box-shadow: var(--card-shadow-hover);
}

.chat-send-button:active {
    transform: scale(0.95);
}

/* ===== SERVICE SELECTION TAB - CATEGORY GRID ===== */

.service-selection-header {
    text-align: center;
    margin-bottom: 32px;
}

.service-selection-title {
    font-size: 16px;
    color: var(--text-gray);
    margin: 0;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.service-categories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.service-category-card {
    background: var(--white);
    border: 2px solid var(--gray-100);
    border-radius: var(--radius-2xl);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow-xs);
    position: relative;
    overflow: hidden;
}

.service-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.02) 0%, rgba(38, 198, 218, 0.01) 100%);
    opacity: 0;
    transition: var(--transition-base);
}

.service-category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary-blue-light);
}

.service-category-card:hover::before {
    opacity: 1;
}

.service-category-card:active {
    transform: translateY(-2px);
}

.service-category-icon {
    font-size: 36px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    position: relative;
    z-index: 2;
}

.service-category-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    margin: 0;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 2;
}

.service-category-card.full-width {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: center;
    padding: 20px;
    margin-top: 8px;
}

.service-category-card.full-width .service-category-icon {
    font-size: 32px;
}

.service-category-card.full-width .service-category-title {
    font-size: 16px;
}

/* Service-specific color accents */
.service-category-card[data-service="배송대행"]:hover {
    border-color: var(--accent-orange);
}

.service-category-card[data-service="수입대행"]:hover {
    border-color: var(--accent-green);
}

.service-category-card[data-service="개발자 문의"]:hover {
    border-color: var(--accent-purple);
}

.service-category-card[data-service="결제대행"]:hover {
    border-color: var(--accent-teal);
}

.service-category-card[data-service="시장조사"]:hover {
    border-color: var(--primary-blue);
}

.service-category-card[data-service="포워딩견적"]:hover {
    border-color: var(--accent-teal);
}

/* ===== INQUIRY FORM TAB - PROFESSIONAL FORM ===== */

.form-container {
    background: var(--bg-gray);
    padding: 20px;
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.form-section {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--gray-100);
}

.form-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
    position: relative;
}

.form-section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-blue);
    border-radius: 1px;
}

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

.form-row.two-columns {
    grid-template-columns: 1fr 1fr;
}

.form-field {
    position: relative;
}

.form-field-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
    position: relative;
}

.form-field-label.required::after {
    content: '*';
    color: var(--accent-red);
    margin-left: 4px;
    font-weight: 600;
}

.form-field-input,
.form-field-textarea {
    width: 100%;
    padding: 16px 18px;
    font-size: 16px;
    font-family: inherit;
    color: var(--text-dark);
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    transition: var(--transition-base);
    box-shadow: var(--shadow-xs);
}

.form-field-input:focus,
.form-field-textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.1);
    background: var(--white);
}

.form-field-input::placeholder,
.form-field-textarea::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

.form-field-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.form-field-input.error {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 4px rgba(239, 83, 80, 0.1);
}

.form-field-input.success {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 4px rgba(102, 187, 106, 0.1);
}

.form-field-hint {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 6px;
    line-height: 1.4;
}

.form-field-error {
    font-size: 13px;
    color: var(--accent-red);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* File Upload Area */
.file-upload-area {
    background: var(--gray-50);
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-xl);
    padding: 24px;
    text-align: center;
    transition: var(--transition-base);
    cursor: pointer;
    position: relative;
}

.file-upload-area:hover {
    border-color: var(--primary-blue);
    background: var(--primary-blue-subtle);
}

.file-upload-area.dragover {
    border-color: var(--primary-blue);
    background: var(--primary-blue-subtle);
    transform: scale(1.02);
}

.file-upload-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-blue-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: var(--primary-blue);
}

.file-upload-text {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

.file-upload-hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

.uploaded-files-list {
    margin-top: 16px;
}

.uploaded-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: 8px;
    transition: var(--transition-base);
}

.uploaded-file-item:hover {
    box-shadow: var(--shadow-sm);
}

.uploaded-file-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.uploaded-file-icon {
    width: 32px;
    height: 32px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
}

.uploaded-file-details {
    flex: 1;
}

.uploaded-file-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0;
}

.uploaded-file-size {
    font-size: 12px;
    color: var(--text-light);
    margin: 2px 0 0 0;
}

.uploaded-file-remove {
    width: 28px;
    height: 28px;
    background: var(--accent-red);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.uploaded-file-remove:hover {
    background: #d32f2f;
    transform: scale(1.1);
}

/* Form Actions */
.form-actions {
    background: var(--white);
    border-top: 1px solid var(--gray-100);
    padding: 20px;
    display: flex;
    gap: 12px;
}

.form-actions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--gray-200) 50%, transparent 100%);
}

/* ===== BOARD TAB - INQUIRY MANAGEMENT ===== */

.board-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    padding: 20px;
    position: relative;
}

.board-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--gray-200) 50%, transparent 100%);
}

.board-title-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.board-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: -0.02em;
}

.new-inquiry-button {
    padding: 10px 16px;
    font-size: 14px;
    border-radius: var(--radius-lg);
    font-weight: 500;
}

.inquiry-list-container {
    padding: 20px;
    background: var(--bg-gray);
}

.inquiry-item {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-2xl);
    padding: 20px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow-xs);
    position: relative;
    overflow: hidden;
}

.inquiry-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.02) 0%, rgba(38, 198, 218, 0.01) 100%);
    opacity: 0;
    transition: var(--transition-base);
}

.inquiry-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary-blue-light);
}

.inquiry-item:hover::before {
    opacity: 1;
}

.inquiry-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.inquiry-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.inquiry-category-badge {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--white);
    background: var(--primary-blue);
    border-radius: var(--radius-full);
    letter-spacing: -0.01em;
}

.inquiry-status-badge {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
    letter-spacing: -0.01em;
}

.inquiry-status-badge.pending {
    color: var(--accent-orange);
    background: rgba(255, 167, 38, 0.1);
    border: 1px solid rgba(255, 167, 38, 0.2);
}

.inquiry-status-badge.completed {
    color: var(--accent-green);
    background: rgba(102, 187, 106, 0.1);
    border: 1px solid rgba(102, 187, 106, 0.2);
}

.inquiry-timestamp {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

.inquiry-content {
    position: relative;
    z-index: 2;
}

.inquiry-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 8px 0;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.inquiry-preview {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.5;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.inquiry-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-light);
    position: relative;
    z-index: 2;
}

.inquiry-contact-info {
    display: flex;
    gap: 16px;
}

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

.inquiry-file-count {
    display: flex;
    align-items: center;
    gap: 4px;
}

.inquiry-view-more {
    color: var(--primary-blue);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
}

.empty-state-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 8px 0;
}

.empty-state-description {
    font-size: 14px;
    color: var(--text-gray);
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.empty-state-action {
    padding: 12px 24px;
    font-size: 14px;
    border-radius: var(--radius-xl);
    font-weight: 500;
}

/* ===== BUTTONS - PROFESSIONAL SYSTEM ===== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
    position: relative;
    overflow: hidden;
    min-height: 48px;
    font-family: inherit;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: var(--transition-fast);
}

.btn:hover::before {
    opacity: 1;
}

.btn:active {
    transform: scale(0.98);
}

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

.btn:disabled::before {
    display: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--white);
    box-shadow: var(--card-shadow);
}

.btn-primary:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-1px);
}

.btn-primary.full-width {
    width: 100%;
    margin-bottom: 24px;
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue-light);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--primary-blue-subtle);
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: linear-gradient(135deg, var(--accent-success) 0%, #388e3c 100%);
    color: var(--white);
    box-shadow: var(--card-shadow);
}

.btn-success:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-1px);
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
    min-height: 36px;
    border-radius: var(--radius-lg);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
    min-height: 56px;
    border-radius: var(--radius-2xl);
}

.btn-icon-only {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
}

.btn-icon-only.small {
    width: 36px;
    height: 36px;
}

/* ===== UTILITY CLASSES ===== */

/* Flexbox */
.flex { display: flex; }
.flex-1 { flex: 1; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

/* Gaps */
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

/* Grid */
.grid { display: grid; }

/* Text */
.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.text-white { color: var(--white); }
.text-text-dark { color: var(--text-dark); }
.text-text-gray { color: var(--text-gray); }
.text-gray-400 { color: var(--gray-400); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-800 { color: var(--gray-800); }
.text-green-600 { color: var(--accent-green); }
.text-blue-500 { color: var(--primary-blue); }
.text-center { text-align: center; }
.leading-none { line-height: 1; }
.leading-relaxed { line-height: 1.75; }
.opacity-75 { opacity: 0.75; }
.opacity-90 { opacity: 0.9; }

/* Spacing */
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-5 { padding: 20px; }
.p-6 { padding: 24px; }
.px-2 { padding-left: 8px; padding-right: 8px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-5 { padding-top: 20px; padding-bottom: 20px; }
.m-4 { margin: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }

/* Background Colors */
.bg-white { background-color: var(--white); }
.bg-gray-50 { background-color: var(--gray-50); }
.bg-gray-100 { background-color: var(--gray-100); }
.bg-gray-200 { background-color: var(--gray-200); }
.bg-gray-400 { background-color: var(--gray-400); }
.bg-primary-blue { background-color: var(--primary-blue); }
.bg-bg-gray { background-color: var(--bg-gray); }
.bg-red-500 { background-color: var(--accent-red); }

/* Borders */
.border { border: 1px solid var(--gray-200); }
.border-b { border-bottom: 1px solid var(--gray-100); }
.border-t { border-top: 1px solid var(--gray-100); }
.border-gray-100 { border-color: var(--gray-100); }
.border-gray-200 { border-color: var(--gray-200); }

/* Border Radius */
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-3xl { border-radius: var(--radius-3xl); }
.rounded-full { border-radius: 50%; }
.rounded-tl-md { border-top-left-radius: var(--radius-md); }
.rounded-t-3xl { border-top-left-radius: var(--radius-3xl); border-top-right-radius: var(--radius-3xl); }
.rounded-b-3xl { border-bottom-left-radius: var(--radius-3xl); border-bottom-right-radius: var(--radius-3xl); }

/* Shadows */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: var(--shadow-2xl); }

/* Width & Height */
.w-2 { width: 8px; }
.w-3 { width: 12px; }
.w-4 { width: 16px; }
.w-5 { width: 20px; }
.w-6 { width: 24px; }
.w-8 { width: 32px; }
.w-10 { width: 40px; }
.w-12 { width: 48px; }
.w-16 { width: 64px; }
.w-full { width: 100%; }
.h-2 { height: 8px; }
.h-3 { height: 12px; }
.h-4 { height: 16px; }
.h-5 { height: 20px; }
.h-6 { height: 24px; }
.h-8 { height: 32px; }
.h-10 { height: 40px; }
.h-12 { height: 48px; }
.h-16 { height: 64px; }
.h-full { height: 100%; }

.max-w-xs { max-width: 320px; }
.max-w-lg { max-width: 512px; }
.max-h-360px { max-height: 360px; }
.max-h-510px { max-height: 510px; }
.max-h-520px { max-height: 520px; }
.max-h-554px { max-height: 554px; }
.max-h-85vh { max-height: 85vh; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.bottom-0 { bottom: 0; }
.bottom-6 { bottom: 24px; }
.left-0 { left: 0; }
.right-6 { right: 24px; }
.top-3 { top: 12px; }
.right-3 { right: 12px; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.inset-y-0 { top: 0; bottom: 0; }
.-top-1 { top: -4px; }
.-right-1 { right: -4px; }

/* Z-index */
.z-30 { z-index: 30; }
.z-50 { z-index: 50; }


/* padding for safe area */
.py-1 { padding-top: calc(8px + env(safe-area-inset-top)); padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
.pb-1 { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
.pb-2 { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
.pb-3 { padding-bottom: calc(24px + env(safe-area-inset-bottom)); } 

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }

/* Transform */
.transform { transform: translateZ(0); }

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

.bg-gradient-to-r { background-image: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%); }
.from-blue-500 { background-image: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%); }
.to-indigo-600  { background-image: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%); }
.rounded-xl { border-radius: var(--radius-xl); }
.font-semibold { font-weight: 600; }
.hover:from-blue-600 { background-image: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%); }
.hover:to-indigo-700 { background-image: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%); }
.transition-all { transition: all 0.3s ease; }
.duration-300 { transition-duration: 300ms; }
.focus:outline-none { outline: none; }
.focus:ring-2 { box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.2); }
.focus:ring-blue-500 { box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.2); }
.focus:ring-offset-2 { box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.2); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.whitespace-pre-line { white-space: pre-line; }

.bg-green-100 { background-color: rgba(102, 187, 106, 0.1); } 
.bg-orange-100 { background-color: rgba(255, 167, 38, 0.1); }
.text-green-800 { color: #2e7d32; }
.text-orange-800 { color: #ef6c00; }
.text-purple-800  { color: #6a1b9a; }
.bg-purple-100 { background-color: rgba(171, 71, 188, 0.1); }

.mb-1 { margin-bottom: 4px; }

/* backdrop blur */
.bg-green-600 { background-color: var(--accent-green); }
.backdrop-blur { backdrop-filter: blur(8px); }


/* ===== NAVIGATION ===== */

.navtab {
    background: var(--white);
    border-top: 1px solid var(--gray-100);
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
    position: relative;
}

.navtab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--gray-200) 50%, transparent 100%);
}

.tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: var(--transition-base);
    border-radius: var(--radius-lg);
    color: var(--gray-400);
    font-size: 12px;
    font-weight: 500;
    position: relative;
}

.tab-btn:hover {
    background: var(--gray-50);
    color: var(--gray-600);
}

.tab-btn.active {
    color: var(--primary-blue);
}

.tab-btn.active::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: var(--radius-full);
}

.tab-btn span {
    font-size: 12px;
    margin-top: 2px;
    letter-spacing: -0.01em;
}

/* ===== FLOATING BUTTON ===== */

#bj-floating-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    transition: var(--transition-spring);
}

#bj-floating-btn button {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 16px;
    cursor: pointer;
    box-shadow: var(--shadow-2xl);
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; 
}

#bj-floating-btn button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-fast);
}

#bj-floating-btn button:hover::before {
    opacity: 1;
}

#bj-floating-btn button:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 20px 40px rgba(30, 136, 229, 0.4);
}

#bj-floating-btn button:active {
    transform: scale(1.05) translateY(-1px);
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: var(--accent-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--white);
    border: 2px solid var(--white);
    box-shadow: var(--shadow-md);
    animation: bounce 2s infinite;
}

/* ===== BACK BUTTON ===== */

.back-btn {
    width: 36px;
    height: 36px;
    background: var(--gray-50);
    border: none;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
    color: var(--text-gray);
}

.back-btn:hover {
    background: var(--gray-100);
    color: var(--text-dark);
    transform: translateX(-2px);
}

/* ===== MODAL ===== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-overlay.hidden {
    display: none;
}

/* ===== ANIMATIONS ===== */

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

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: translate3d(0, 0, 0); }
    40%, 43% { transform: translate3d(0, -8px, 0); }
    70% { transform: translate3d(0, -4px, 0); }
    90% { transform: translate3d(0, -2px, 0); }
}

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

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-pulse { animation: pulse 2s infinite; }
.animate-bounce { animation: bounce 2s infinite; }
.animate-spin { animation: spin 1s linear infinite; }
.animate-slide-up-modal { animation: slideUpModal 0.3s ease-out; }
.animate-fade-in { animation: fadeIn 0.3s ease-out; }

/* ===== HOVER EFFECTS ===== */

.hover-bg-blue-700:hover { background-color: var(--primary-blue-dark); }
.hover-bg-gray-50:hover { background-color: var(--gray-50); }
.hover-scale-110:hover { transform: scale(1.1); }
.active-scale-95:active { transform: scale(0.95); }

/* Line Clamp */
.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

/* ===== SCROLLBAR STYLING ===== */

.tab-content::-webkit-scrollbar {
    width: 4px;
}

.tab-content::-webkit-scrollbar-track {
    background: transparent;
}

.tab-content::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 2px;
}

.tab-content::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 480px) {
    .main-header {
        padding: 16px 16px 24px;
    }

    .service-categories-grid {
        gap: 12px;
    }

    .service-category-card {
        padding: 20px 16px;
    }

    .form-row.two-columns {
        grid-template-columns: 1fr;
    }

    .form-actions {
        padding: 16px;
    }
}

/* ===== ACCESSIBILITY ===== */

@media (prefers-contrast: high) {
    .service-category-card,
    .welcome-card,
    .btn,
    .inquiry-item {
        border-width: 2px;
    }
}

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

/* ===== PRINT STYLES ===== */

@media print {
    .app-container {
        width: 100% !important;
        height: auto !important;
        box-shadow: none !important;
        border: none !important;
    }

    .navtab,
    #bj-floating-btn {
        display: none !important;
    }
}

/* Legacy Support */
.space-y-4 > * + * { margin-top: 16px; }
.space-y-6 > * + * { margin-top: 24px; }
.space-y-2 > * + * { margin-top: 8px; }

/* Form backward compatibility */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 500; color: var(--text-dark); margin-bottom: 8px; }
.form-input, .form-textarea {
    width: 100%; padding: 16px; font-size: 16px; font-family: inherit; color: var(--text-dark);
    background: var(--white); border: 2px solid var(--gray-200); border-radius: var(--radius-xl);
    transition: var(--transition-base); box-shadow: var(--shadow-xs);
}
.form-input:focus, .form-textarea:focus {
    outline: none; border-color: var(--primary-blue); box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.1);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-light); }
.form-textarea { min-height: 120px; resize: vertical; line-height: 1.75; }

/* Service grid backward compatibility */
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.service-card {
    background: var(--white); border: 2px solid var(--gray-100); border-radius: var(--radius-2xl);
    padding: 24px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px;
    cursor: pointer; transition: var(--transition-base); box-shadow: var(--shadow-xs);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); border-color: var(--primary-blue-light); }
.service-icon { font-size: 36px; line-height: 1; }
.service-title { font-size: 15px; font-weight: 600; color: var(--text-dark); text-align: center; margin: 0; }

/* Chat backward compatibility */
.chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.message { display: flex; gap: 12px; max-width: 85%; }
.message.user { align-self: flex-end; flex-direction: row-reverse; }
.message-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
    display: flex; align-items: center; justify-content: center; color: var(--white);
    font-size: 14px; font-weight: 600; flex-shrink: 0;
}
.message.user .message-avatar { background: linear-gradient(135deg, var(--gray-600) 0%, var(--gray-700) 100%); }
.message-bubble {
    background: var(--white); border-radius: var(--radius-2xl); border-top-left-radius: var(--radius-md);
    padding: 16px; box-shadow: var(--card-shadow); border: 1px solid rgba(30, 136, 229, 0.08);
    position: relative; word-wrap: break-word;
}
.message.user .message-bubble {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--white); border-color: transparent; border-top-right-radius: var(--radius-md);
    border-top-left-radius: var(--radius-2xl);
}