/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow: hidden;
    background: #ffffff;
    color: #374151;
    display: grid;
    grid-template-columns: 260px 1fr;
    height: 100vh;
}

/* 좌측 사이드바 */
.sidebar {
    background: #f7f7f8;
    border-right: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 12px;
}

.sidebar-header {
    padding: 8px 0 16px;
}

.new-chat-btn {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.new-chat-btn:hover {
    background: #ffffff;
    border-color: #9ca3af;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.nav-section-title {
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    font-size: 14px;
    transition: all 0.2s;
    gap: 10px;
    cursor: pointer;
}

.nav-item:hover {
    background: #e5e5e5;
}

.nav-item.active {
    background: #e5e5e5;
    font-weight: 500;
}

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

.nav-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 대화 삭제 버튼 */
.delete-conversation-btn {
    display: none; /* 기본적으로 숨김 */
    background: none;
    border: none;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
    color: #9ca3af;
    transition: all 0.2s;
    flex-shrink: 0;
}

.nav-item:hover .delete-conversation-btn {
    display: block; /* 호버 시 표시 */
}

.delete-conversation-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.delete-conversation-btn svg {
    display: block;
    width: 14px;
    height: 14px;
}

.sidebar-footer {
    padding-top: 12px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    font-size: 14px;
    transition: all 0.2s;
    gap: 10px;
    cursor: pointer;
}

.footer-item:hover {
    background: #e5e5e5;
}

.footer-item.active {
    background: #e5e5e5;
    font-weight: 500;
}

/* 메인 영역 */
.main-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
}

/* 상단 헤더 */
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #e5e5e5;
    background: #ffffff;
}

.header-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
    transition: color 0.2s ease;
}

.header-title:hover {
    color: #4f46e5;
}

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

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

.header-google-signin > div {
    display: flex !important;
    align-items: center !important;
}

.header-btn {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: transparent;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.header-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.header-btn.primary {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

.header-btn.primary:hover {
    background: #0d8a6b;
}

/* 대화 영역 */
.chat-container {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
}

.chat-messages {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* 환영 화면 */
.welcome-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.welcome-icon {
    font-size: 64px;
    margin-bottom: 8px;
}

.welcome-title {
    font-size: 32px;
    font-weight: 600;
    color: #111827;
    text-align: center;
}

.welcome-subtitle {
    font-size: 16px;
    color: #6b7280;
    text-align: center;
    margin-top: -20px;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    text-align: center;
    margin-bottom: 16px;
}

/* 예시 프롬프트 */
.examples-section {
    width: 100%;
}

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

.example-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.example-card:hover {
    background: #f9fafb;
    border-color: #10a37f;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.example-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.example-content {
    flex: 1;
}

.example-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.example-desc {
    font-size: 13px;
    color: #6b7280;
}

/* 카테고리 */
.categories-section {
    width: 100%;
}

.categories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.category-chip {
    padding: 8px 16px;
    background: #f3f4f6;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}

.category-chip:hover {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
}

/* 메시지 스타일 */
.message {
    display: flex;
    gap: 16px;
    padding: 24px 0;
    animation: fadeIn 0.3s ease-in;
}

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

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.message.user .message-avatar {
    background: #10a37f;
    color: white;
}

.message.assistant .message-avatar {
    background: #f3f4f6;
}

.message-content {
    flex: 1;
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
}

.message-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #111827;
}

.message-content ul, .message-content ol {
    margin-left: 20px;
    margin-top: 8px;
}

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

.message-content pre {
    background: #f9fafb;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 12px;
    margin: 12px 0;
    overflow-x: auto;
}

.message-content code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
}

.hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.hashtag {
    background: #e5e7eb;
    color: #10a37f;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}

/* 메인 홈 콘텐츠 */
.main-home-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* 상단 입력 영역 */
.top-input-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-input-wrapper {
    padding: 20px 24px 24px;
    background: #ffffff;
    border-top: 1px solid #e5e5e5;
}

.chat-input-container {
    position: relative;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 12px 56px 12px 16px;
    transition: all 0.2s;
}

.chat-input-container:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.1);
}

.chat-input {
    width: 100%;
    border: none;
    outline: none;
    resize: none;
    font-size: 15px;
    line-height: 1.5;
    color: #374151;
    font-family: inherit;
    max-height: 200px;
    overflow-y: auto;
}

.chat-input::placeholder {
    color: #9ca3af;
}

.send-btn {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: #10a37f;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.send-btn:hover:not(:disabled) {
    background: #0d8a6b;
}

.send-btn:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

.input-hint {
    max-width: 800px;
    margin: 12px auto 0;
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
}

/* 로딩 애니메이션 */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: #f3f4f6;
    border-radius: 12px;
    width: fit-content;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9ca3af;
    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);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* 스크롤바 스타일 */
.chat-messages::-webkit-scrollbar,
.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track,
.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb,
.sidebar-nav::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover,
.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* 설문조사 섹션 */
.survey-section {
    background: #f9fafb;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
}

.survey-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.survey-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
}

.survey-btn {
    background: #10a37f;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.survey-btn:hover {
    background: #0d8a6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 163, 127, 0.3);
}

/* 업종별 콘텐츠 섹션 */
.industry-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.industry-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    text-align: center;
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.industry-btn {
    background: #ffffff;
    color: #374151;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.industry-btn:hover {
    background: #10a37f;
    color: white;
    border-color: #10a37f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 163, 127, 0.2);
}

/* 구독 플랜 섹션 */
.subscription-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 40px 32px;
    margin: 32px 0;
    text-align: center;
    color: white;
}

.subscription-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 32px;
}

.subscription-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.plan-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 24px 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.plan-card:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.plan-name {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-price {
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.subscription-description {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin: 0 auto;
}

/* 연락하기 섹션 */
.contact-section {
    background: linear-gradient(135deg, #10a37f 0%, #0d8a6b 100%);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    color: white;
}

.contact-text {
    font-size: 16px;
    line-height: 1.8;
    color: white;
    margin-bottom: 24px;
}

.contact-btn {
    background: white;
    color: #10a37f;
    border: none;
    border-radius: 10px;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* 대화 화면 */
.chat-conversation {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* 내 릴스 화면 */
.my-reels-screen,
.settings-screen {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px;
}

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

.screen-title {
    font-size: 28px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.screen-subtitle {
    font-size: 15px;
    color: #6b7280;
}

.reels-grid {
    display: grid;
    gap: 20px;
}

.reel-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: all 0.2s;
}

.reel-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #10a37f;
}

.reel-thumbnail {
    width: 80px;
    height: 80px;
    background: #f3f4f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reel-icon {
    font-size: 36px;
}

.reel-info {
    flex: 1;
}

.reel-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.reel-meta {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 12px;
}

.reel-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: #f3f4f6;
    color: #6b7280;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
}

.reel-action-btn {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.reel-action-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    border-radius: 12px;
}

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

.empty-text {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 20px;
}

.create-new-btn {
    background: #10a37f;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.create-new-btn:hover {
    background: #0d8a6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 163, 127, 0.3);
}

/* 설정 화면 */
.settings-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.settings-section {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 24px;
}

.settings-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 20px;
}

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

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

.settings-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #374151;
}

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

.settings-value {
    font-size: 14px;
    color: #6b7280;
}

.settings-btn {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.settings-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.settings-item-btn {
    width: 100%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    font-size: 15px;
    color: #374151;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s;
}

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

.settings-item-btn:hover {
    color: #10a37f;
}

.settings-item-btn.danger {
    color: #dc2626;
}

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

/* 구독 카드 */
.subscription-card {
    background: linear-gradient(135deg, #10a37f 0%, #0d8a6b 100%);
    border-radius: 12px;
    padding: 24px;
    color: white;
}

.subscription-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.subscription-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.subscription-desc {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.subscription-usage {
    margin-bottom: 20px;
}

.usage-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.usage-fill {
    height: 100%;
    background: white;
    border-radius: 4px;
}

.usage-text {
    font-size: 13px;
    opacity: 0.9;
}

.upgrade-btn {
    background: white;
    color: #10a37f;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 토글 스위치 */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

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

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

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

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

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

/* 모달 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

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

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

.modal-form label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.modal-form input {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
}

.modal-form input:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.1);
}

/* 체크박스 그룹 스타일 */
.form-group-checkbox {
    margin: 16px 0;
    padding: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-text {
    flex: 1;
    line-height: 1.6;
    color: #374151;
}

.checkbox-text strong {
    color: #dc2626;
    font-weight: 600;
}

.privacy-link {
    color: #10a37f;
    text-decoration: underline;
    margin-left: 4px;
    font-size: 13px;
}

.privacy-link:hover {
    color: #0d8a6b;
}

.modal-submit-btn {
    background: #10a37f;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
}

.modal-submit-btn:hover {
    background: #0d8a6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 163, 127, 0.3);
}

/* 구글 로그인 관련 스타일 */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: #9ca3af;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.divider::before {
    margin-right: 12px;
}

.divider::after {
    margin-left: 12px;
}

.google-signin-button {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* 설문조사 화면 */
.survey-full-screen {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px;
}

.survey-form {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.survey-question {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 24px;
}

.question-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 20px;
}

.question-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f9fafb;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.option-item:hover {
    background: #f3f4f6;
    border-color: #10a37f;
}

.option-item input[type="radio"] {
    cursor: pointer;
    width: 20px;
    height: 20px;
}

.option-item input[type="radio"]:checked {
    accent-color: #10a37f;
}

.option-item span {
    font-size: 15px;
    color: #374151;
    font-weight: 500;
}

.option-item:has(input:checked) {
    background: #e8f5f1;
    border-color: #10a37f;
}

.survey-submit-btn {
    background: #10a37f;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.survey-submit-btn:hover {
    background: #0d8a6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 163, 127, 0.3);
}

/* 로딩 화면 */
.loading-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 40px 24px;
}

.loading-content {
    text-align: center;
    max-width: 500px;
}

.loading-icon {
    margin-bottom: 32px;
}

.spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border: 6px solid #e5e7eb;
    border-top: 6px solid #10a37f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}

.loading-message {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 32px;
    min-height: 24px;
    transition: all 0.3s ease;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10a37f 0%, #0d8a6b 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 6px;
}

.progress-text {
    font-size: 14px;
    color: #10a37f;
    font-weight: 600;
}

/* 추천 결과 선택 화면 */
.recommendation-results-screen {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* 애니메이션 클래스 */
.hidden {
    opacity: 0;
    visibility: hidden;
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

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

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

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 32px;
    margin-bottom: 32px;
}

.recommendation-card {
    background: #ffffff;
    border: 2px solid #e5e5e5;
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.recommendation-card:hover {
    border-color: #10a37f;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(16, 163, 127, 0.15);
}

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

.recommendation-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    flex: 1;
}

.recommendation-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.recommendation-description {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

.recommendation-query {
    font-size: 14px;
    color: #10a37f;
    background: #f0fdf4;
    padding: 12px;
    border-radius: 8px;
    margin: 8px 0;
    font-style: italic;
    border-left: 3px solid #10a37f;
}

.recommendation-select-btn {
    background: #10a37f;
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: auto;
}

.recommendation-select-btn:hover {
    background: #0d8a6b;
    transform: scale(1.02);
}

.recommendation-actions {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.back-to-home-btn {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.back-to-home-btn:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

/* 반응형 */
@media (max-width: 1024px) {
    body {
        grid-template-columns: 220px 1fr;
    }

    .industry-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .question-options {
        grid-template-columns: 1fr;
    }

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

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

    .sidebar {
        position: fixed;
        left: -260px;
        width: 260px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s;
    }

    .sidebar.open {
        left: 0;
    }

    .main-home-content {
        padding: 24px 16px;
        gap: 40px;
    }

    .industry-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .chat-messages {
        padding: 24px 16px;
    }

    .chat-input-wrapper {
        padding: 16px;
    }

    .survey-section,
    .subscription-section,
    .contact-section {
        padding: 24px 20px;
    }

    .survey-text,
    .industry-text,
    .contact-text {
        font-size: 14px;
    }

    .subscription-title {
        font-size: 20px;
        margin-bottom: 24px;
    }

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

    .plan-name {
        font-size: 15px;
        min-height: 36px;
    }

    .plan-price {
        font-size: 24px;
    }

    .subscription-description {
        font-size: 14px;
    }

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

    .recommendation-card {
        padding: 20px;
    }

    .recommendation-title {
        font-size: 18px;
    }

    .recommendation-results-screen {
        padding: 24px 16px;
    }

    .loading-screen {
        min-height: 400px;
        padding: 24px 16px;
    }

    .spinner {
        width: 60px;
        height: 60px;
        border-width: 5px;
    }

    .loading-title {
        font-size: 20px;
    }

    .loading-message {
        font-size: 14px;
    }
}
