/* ============================================
   Stylegrapher Design System
   재사용 가능한 STG 클래스 및 컬러 시스템
   Version: 1.0.0
   
   다른 프로젝트에서 사용 시:
   @import url('path/to/stg_design_system.css');
   ============================================ */

/* ============================================
   COLOR SYSTEM - Main, Sub, Background Colors
   ============================================ */
:root {
    /* Dynamic Site Colors */
    --main-color-rgb: 78, 0, 141;
    --sub-color-rgb: 147, 121, 188;
    --background-color-rgb: 255, 255, 255;
    --main-color: rgb(var(--main-color-rgb));
    --sub-color: rgb(var(--sub-color-rgb));
    --background-color: rgb(var(--background-color-rgb));
    --main-color-alpha: rgba(var(--main-color-rgb), 0.9);
    --sub-color-alpha: rgba(var(--sub-color-rgb), 0.8);
    
    /* Primary Colors - Violet Theme */
    --neon-lavender: #4e008d;
    --electric-violet: #9379bc;
    --soft-violet: #F0E8FF;
    --primary-purple: #4e008d;
    --light-purple: #9379bc;
    --dark-purple: #3a0069;
    
    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(78, 0, 141, 0.25);
    --glass-blur: 20px;
    
    /* Shadows */
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --hover-glow: 0 0 30px rgba(78, 0, 141, 0.3), 0 0 60px rgba(147, 121, 188, 0.2);
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

/* ============================================
   STG Body Text Variables
   ============================================ */
:root {
    --stg-body-font-family: 'Nanum Gothic', -apple-system, BlinkMacSystemFont, sans-serif;
    --stg-body-font-size: 16px;
    --stg-body-line-height: 1.8;
    --stg-body-font-weight: 400;
    --stg-body-color-dark: rgba(255, 255, 255, 0.9);
    --stg-body-color-light: #6C757D;
    --stg-body-margin: 0px 0px 24px;
    --stg-body-padding: 0px 8px;
}

/* ============================================
   STG Card Title Variables
   ============================================ */
:root {
    --stg-card-title-font-family: 'Nanum Gothic', sans-serif;
    --stg-card-title-font-size: 22.4px;
    --stg-card-title-font-size-mobile: 18px;
    --stg-card-title-font-weight: 600;
    --stg-card-title-color-light: #44237A;
    --stg-card-title-color-dark: rgb(var(--main-color-rgb));
    --stg-card-title-bg-light: #9379BC1A;
    --stg-card-title-bg-dark: rgba(200, 170, 255, 0.12);
    --stg-card-title-border-light: rgba(78, 0, 141, 0.2);
    --stg-card-title-border-dark: rgba(147, 121, 188, 0.2);
    --stg-card-title-padding: 12px 24px;
    --stg-card-title-padding-mobile: 10px 18px;
    --stg-card-title-border-radius: 12px;
    --stg-card-title-text-shadow-dark: 0 0 20px rgba(200, 170, 255, 0.5);
}

/* ============================================
   STG Button Variables
   ============================================ */
:root {
    --stg-button-font-family: 'Nanum Gothic', sans-serif;
    --stg-button-font-size: 0.9rem;
    --stg-button-font-weight: 400;
    --stg-button-padding: 9.6px 12.8px;
    --stg-button-border-radius: 12px;
    --stg-button-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --stg-button-bg: #44237A1A;
    --stg-button-color: #44237ACC;
    --stg-button-border: transparent;
    --stg-button-hover-bg: #44237A33;
    --stg-button-hover-color: #44237AFF;
    --stg-button-hover-shadow: none;
}

/* ============================================
   STG Page Title Variables
   ============================================ */
:root {
    --stg-page-title-font-family: 'Nanum Gothic', sans-serif;
    --stg-page-title-font-size: 40px;
    --stg-page-title-font-weight: 400;
    --stg-page-title-letter-spacing: 0.1em;
    --stg-page-title-color-dark: var(--main-color);
    --stg-page-title-color-light: var(--main-color);
    --stg-page-title-text-shadow-dark: 0 0 50px rgba(181, 126, 220, 0.5);
}

/* ============================================
   STG Subtitle Variables
   ============================================ */
:root {
    --stg-subtitle-font-family: 'Nanum Gothic', sans-serif;
    --stg-subtitle-font-size: 16px;
    --stg-subtitle-font-weight: 400;
    --stg-subtitle-color: var(--sub-color);
    --stg-subtitle-line-height: 1.8;
}

/* ============================================
   STG Table Variables
   ============================================ */
:root {
    --stg-table-font-family: var(--stg-body-font-family);
    --stg-table-font-size: 15px;
    --stg-table-line-height: 1.7;
    --stg-table-font-weight: 400;
    --stg-table-header-bg-dark: rgb(147, 121, 188);
    --stg-table-header-bg-light: rgb(147, 121, 188);
    --stg-table-header-color: #FFFFFF;
    --stg-table-border-color-dark: rgba(147, 121, 188, 0.6);
    --stg-table-border-color-light: rgba(147, 121, 188, 0.55);
    --stg-table-cell-bg-dark: rgba(18, 0, 36, 0.6);
    --stg-table-cell-bg-light: rgba(255, 255, 255, 0.8);
    --stg-table-text-color-dark: rgba(255, 255, 255, 0.85);
    --stg-table-text-color-light: #333333;
}

/* ============================================
   STG Floating Menu Variables
   ============================================ */
:root {
    --stg-floating-menu-bg: rgba(68, 35, 122, 0.5);
    --stg-floating-menu-color: #FFFFFF;
    --stg-floating-menu-font-family: 'Nanum Gothic', -apple-system, sans-serif;
    --stg-floating-menu-font-size: 16px;
    --stg-floating-menu-padding: 8px 15px 8px 8px;
    --stg-floating-menu-margin: 0px 0px 10px;
    --stg-floating-menu-border-radius: 28px;
}

/* ============================================
   STG Card Sub Format Variables
   ============================================ */
:root {
    --stg-card-sub-border-color-light: rgba(78, 0, 141, 0.35);
    --stg-card-sub-border-color-dark: rgba(147, 121, 188, 0.4);
    --stg-card-sub-shadow-light: 0 4px 20px rgba(78, 0, 141, 0.12), 0 8px 40px rgba(78, 0, 141, 0.08);
    --stg-card-sub-shadow-dark: 0 4px 25px rgba(147, 121, 188, 0.15), 0 10px 50px rgba(78, 0, 141, 0.1);
    --stg-card-sub-border-width: 1.5px;
    --stg-card-sub-border-radius: 24px;
}

/* ============================================
   STG BODY TEXT CLASSES
   본문 텍스트 스타일
   ============================================ */

/* STG Body Text (hyphen 버전) */
.stg-body-text {
    font-family: var(--stg-body-font-family) !important;
    font-size: var(--stg-body-font-size) !important;
    line-height: var(--stg-body-line-height) !important;
    font-weight: var(--stg-body-font-weight) !important;
    margin: var(--stg-body-margin) !important;
    padding: var(--stg-body-padding) !important;
}

/* STG Body Text (underscore 버전) */
.stg_body_text {
    font-family: var(--stg-body-font-family) !important;
    font-size: var(--stg-body-font-size) !important;
    line-height: var(--stg-body-line-height) !important;
    font-weight: var(--stg-body-font-weight) !important;
    margin: var(--stg-body-margin) !important;
    padding: var(--stg-body-padding) !important;
}

/* Light Mode - STG Body Text Color */
body.light-mode .stg_body_text,
body.light-mode .stg-body-text {
    color: var(--stg-body-color-light) !important;
}

/* ============================================
   STG CARD TEXT CLASSES
   카드 내 본문 텍스트
   ============================================ */

.stg_card_text,
.stg-card-text {
    font-family: var(--stg-body-font-family) !important;
    font-size: var(--stg-body-font-size) !important;
    line-height: var(--stg-body-line-height) !important;
    font-weight: var(--stg-body-font-weight) !important;
    margin: var(--stg-body-margin) !important;
    padding: var(--stg-body-padding) !important;
}

body.light-mode .stg_card_text,
body.light-mode .stg-card-text {
    color: var(--stg-body-color-light) !important;
}

/* ============================================
   STG CARD TITLE CLASSES
   카드 제목 스타일
   ============================================ */

.stg_card_title,
.stg-card-title {
    font-family: var(--stg-card-title-font-family) !important;
    font-size: var(--stg-card-title-font-size) !important;
    font-weight: var(--stg-card-title-font-weight) !important;
    color: #ffffff !important;
    background: #9379bc;
    padding: var(--stg-card-title-padding);
    border-radius: var(--stg-card-title-border-radius);
    border: 1px solid var(--stg-card-title-border-light);
    display: inline-block;
    margin-bottom: 1rem;
}

/* STG Card Title 반응형 */
@media (max-width: 768px) {
    .stg_card_title,
    .stg-card-title {
        font-size: var(--stg-card-title-font-size-mobile) !important;
        padding: var(--stg-card-title-padding-mobile);
    }
}

/* ============================================
   STG CARD FORMAT CLASSES
   카드 컨테이너 스타일
   ============================================ */

.stg_card_format {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

/* 카드 상단 그라데이션 라인 */
.stg_card_format::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-lavender), var(--electric-violet), var(--neon-lavender));
    box-shadow: 0 0 20px rgba(200, 170, 255, 0.6);
}

/* 호버 효과 */
.stg_card_format:hover {
    transform: translateY(-8px);
    border-color: rgba(200, 170, 255, 0.5);
    box-shadow: var(--hover-glow);
}

/* Light Mode 카드 컨테이너 스타일 */
body.light-mode .stg_card_format {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(200, 170, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

body.light-mode .stg_card_format::before {
    background: linear-gradient(90deg, transparent, #8B5CF6, #A78BFA, transparent);
    opacity: 0.7;
}

body.light-mode .stg_card_format:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.15);
}

/* 패딩 변형 */
.stg_card_format.stg_card_format--padded {
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .stg_card_format.stg_card_format--padded {
        padding: 2.5rem;
    }
}

/* Card Content */
.stg_card_format .stg_card_content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 260px;
    position: relative;
    z-index: 1;
}

/* Service Icon */
.stg_card_format .stg_card_icon {
    margin-bottom: 1rem;
    font-size: 3rem;
    transition: all 0.4s ease;
}

body.light-mode .stg_card_format .stg_card_icon i {
    color: rgba(139, 95, 191, 0.8) !important;
    filter: none !important;
}

/* Card Description */
.stg_card_format .stg_card_description {
    font-family: var(--stg-body-font-family) !important;
    font-size: var(--stg-body-font-size) !important;
    line-height: var(--stg-body-line-height) !important;
    font-weight: var(--stg-body-font-weight) !important;
    margin: var(--stg-body-margin) !important;
    padding: var(--stg-body-padding) !important;
    white-space: normal;
}

body.light-mode .stg_card_format .stg_card_description {
    color: var(--stg-body-color-light) !important;
}

/* Options Buttons Grid */
.stg_card_format .stg_card_options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 0.5rem;
}

.stg_card_format .stg_card_option_wrapper {
    display: flex;
}

.stg_card_format .stg_card_option_btn {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
    overflow: hidden;
    line-height: 1;
}

body.light-mode .stg_card_format .stg_card_option_btn {
    width: 100% !important;
    min-height: 42.8px !important;
    background: #44237A1A !important;
    color: #44237ACC !important;
    border: 1px solid rgba(68, 35, 122, 0.3) !important;
    border-radius: 6px !important;
    font-family: 'Nanum Gothic', sans-serif !important;
    font-size: 14.4px !important;
    padding: 0.6rem 1rem !important;
}

body.light-mode .stg_card_format .stg_card_option_btn:hover {
    background: #5B3A8C;
    border-color: #5B3A8C;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(91, 58, 140, 0.25);
    transform: translateY(-2px);
}

.stg_card_format .stg_card_option_text {
    transition: transform 0.3s ease;
}

body.light-mode .stg_card_format .stg_card_option_text {
    color: #44237ACC !important;
    font-size: 14.4px !important;
}

body.light-mode .stg_card_format .stg_card_option_btn:hover .stg_card_option_text {
    color: #ffffff !important;
}

.stg_card_format .stg_card_option_arrow {
    font-size: 1.1rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.stg_card_format .stg_card_option_btn:hover .stg_card_option_arrow {
    opacity: 1;
    transform: translateX(0);
}

body.light-mode .stg_card_format .stg_card_option_arrow {
    display: none !important;
}

.stg_card_format .stg_card_option_btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.15), transparent);
    transition: left 0.4s ease;
}

.stg_card_format .stg_card_option_btn:hover::before {
    left: 100%;
}

/* Description Short 변형 */
.stg_card_format .stg_card_description--short {
    font-family: var(--stg-body-font-family) !important;
    font-size: var(--stg-body-font-size) !important;
    line-height: var(--stg-body-line-height) !important;
    font-weight: var(--stg-body-font-weight) !important;
    margin: 0px 0px 0px 0px !important;
    padding: var(--stg-body-padding) !important;
}

body.light-mode .stg_card_format .stg_card_description--short {
    color: var(--stg-body-color-light) !important;
}

/* STG Card Format - Additional Card 변형 */
.stg_card_format.stg_card_format--additional {
    justify-content: center;
    min-height: 300px;
    padding-top: 0.75rem;
}

.stg_card_format--additional:hover {
    transform: translateY(-15px);
}

.stg_card_format--additional .stg_card_icon {
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
}

.stg_card_format--additional:hover .stg_card_icon {
    transform: scale(1.15) rotate(5deg);
}

.stg_card_format--additional::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(181, 126, 220, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 0;
}

.stg_card_format--additional:hover::after {
    left: 100%;
}

/* STG Card Format 반응형 */
@media (max-width: 992px) {
    .stg_card_format .stg_card_content {
        min-height: 240px;
    }
    
    .stg_card_format .stg_card_options {
        gap: 0.6rem;
    }
    
    .stg_card_format .stg_card_option_btn {
        font-size: 0.82rem;
        padding: 0.65rem 0.7rem;
    }
}

@media (max-width: 768px) {
    .stg_card_format {
        padding: 1.25rem;
    }
    
    .stg_card_format .stg_card_description {
        font-size: var(--stg-body-font-size) !important;
        line-height: var(--stg-body-line-height) !important;
        margin: var(--stg-body-margin) !important;
        padding: var(--stg-body-padding) !important;
    }
    
    .stg_card_format .stg_card_options {
        padding: 0;
        gap: 0.5rem;
    }
    
    .stg_card_format .stg_card_option_btn {
        font-size: 0.78rem;
        padding: 0.6rem 0.5rem;
    }
    
    .stg_card_format .stg_card_content {
        min-height: 220px;
    }
    
    .stg_card_format .stg_card_icon {
        font-size: 2.5rem;
    }
    
    .stg_card_format.stg_card_format--additional {
        min-height: 250px;
        border-radius: 20px;
        padding-top: 0.625rem;
    }
    
    .stg_card_format--additional .stg_card_icon {
        font-size: 2.8rem;
    }
    
    .stg_card_format--additional:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 576px) {
    .stg_card_format {
        padding: 1.5rem 1.2rem;
    }
    
    .stg_card_format .stg_card_options {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .stg_card_format .stg_card_content {
        min-height: auto;
    }
    
    .stg_card_format .stg_card_option_btn {
        font-size: 0.85rem;
        padding: 0.7rem 1rem;
    }
}

/* ============================================
   STG BUTTON CLASSES
   버튼 스타일
   ============================================ */

.stg_button {
    font-family: var(--stg-button-font-family) !important;
    font-size: var(--stg-button-font-size) !important;
    font-weight: var(--stg-button-font-weight) !important;
    padding: var(--stg-button-padding);
    border-radius: var(--stg-button-border-radius);
    transition: var(--stg-button-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 202px;
    height: 42px;
    gap: 0.3rem;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    line-height: 1.2;
    background: var(--stg-button-bg);
    color: var(--stg-button-color) !important;
    border: none;
    text-shadow: none;
    box-shadow: none;
}

.stg_button:hover {
    background: var(--stg-button-hover-bg);
    border: none;
    color: var(--stg-button-hover-color) !important;
    box-shadow: var(--stg-button-hover-shadow);
    transform: translateY(-1px);
}

.stg_button .stg_button_text {
    transition: transform 0.3s ease;
    color: var(--stg-button-color) !important;
}

.stg_button:hover .stg_button_text {
    color: var(--stg-button-hover-color) !important;
    transform: none;
}

.stg_button .stg_button_arrow {
    display: none;
}

.stg_button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.15), transparent);
    transition: left 0.4s ease;
}

.stg_button:hover::before {
    left: 100%;
}

/* STG Button 반응형 */
@media (max-width: 992px) {
    .stg_button {
        font-size: 0.85rem !important;
        padding: 0.65rem 0.9rem;
    }
}

@media (max-width: 768px) {
    .stg_button {
        font-size: 0.8rem !important;
        padding: 0.6rem 0.8rem;
    }
}

@media (max-width: 576px) {
    .stg_button {
        font-size: 0.85rem !important;
        padding: 0.7rem 1rem;
    }
}

/* STG Button Sizes */
.stg_button--sm {
    font-size: 0.8rem !important;
    padding: 0.5rem 0.8rem;
}

.stg_button--lg {
    font-size: 1rem !important;
    padding: 0.9rem 1.5rem;
}

.stg_button--block {
    display: flex;
    width: 100%;
}

/* ============================================
   STG PAGE TITLE CLASSES
   페이지 타이틀 스타일
   ============================================ */

.stg_page_title {
    font-family: var(--stg-page-title-font-family) !important;
    font-size: var(--stg-page-title-font-size) !important;
    font-weight: var(--stg-page-title-font-weight) !important;
    letter-spacing: var(--stg-page-title-letter-spacing);
    color: var(--stg-page-title-color-dark) !important;
    text-shadow: var(--stg-page-title-text-shadow-dark);
    margin-bottom: 0.5rem;
}

body.light-mode .stg_page_title {
    color: var(--stg-page-title-color-light) !important;
    text-shadow: none !important;
}

/* ============================================
   STG SUBTITLE CLASSES
   서브타이틀 스타일
   ============================================ */

.stg_subtitle,
.stg-subtitle {
    font-family: var(--stg-subtitle-font-family) !important;
    font-size: var(--stg-subtitle-font-size) !important;
    font-weight: var(--stg-subtitle-font-weight) !important;
    color: var(--stg-subtitle-color) !important;
    line-height: var(--stg-subtitle-line-height) !important;
    margin-bottom: 1rem;
}

body.light-mode .stg_subtitle,
body.light-mode .stg-subtitle {
    color: var(--stg-subtitle-color) !important;
}

/* STG Page Title 반응형 */
@media (max-width: 992px) {
    .stg_page_title {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 768px) {
    .stg_page_title {
        font-size: 2.2rem !important;
    }
}

@media (max-width: 576px) {
    .stg_page_title {
        font-size: 2rem !important;
    }
}

/* ============================================
   STG TABLE CLASSES
   테이블 스타일
   ============================================ */

/* STG Table Wrapper */
.stg_table_wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

.stg_table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0;
    border: 2px solid var(--stg-table-border-color-dark);
}

/* STG Table Header */
.stg_table thead th {
    background: var(--stg-table-header-bg-dark) !important;
    color: var(--stg-table-header-color) !important;
    font-family: var(--stg-table-font-family);
    font-size: var(--stg-table-font-size);
    font-weight: var(--stg-table-font-weight);
    line-height: 1.4;
    padding: 0.6rem 0.8rem;
    text-align: center;
    border: 1px solid var(--stg-table-border-color-dark);
}

/* STG Table Body Cells */
.stg_table tbody td {
    background: var(--stg-table-cell-bg-dark) !important;
    color: var(--stg-table-text-color-dark) !important;
    font-family: var(--stg-table-font-family);
    font-size: var(--stg-table-font-size);
    font-weight: var(--stg-table-font-weight);
    line-height: 1.4;
    padding: 0.5rem 0.8rem;
    vertical-align: middle;
    border: 1px solid var(--stg-table-border-color-dark);
}

/* STG Table Row Hover */
.stg_table tbody tr:hover td {
    background: rgba(139, 92, 246, 0.12) !important;
}

/* STG Table - Column Styles */
.stg_table .stg_table_name {
    text-align: left;
}

.stg_table .stg_table_desc {
    text-align: left;
}

.stg_table .stg_table_duration {
    text-align: center;
    white-space: nowrap;
}

.stg_table .stg_table_price {
    text-align: right;
    white-space: nowrap;
}

.stg_table .stg_table_notes {
    text-align: center;
}

/* STG Table 반응형 */
@media (max-width: 768px) {
    .stg_table_wrapper {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .stg_table {
        min-width: 480px;
    }
    
    .stg_table thead th {
        font-size: 13px;
        padding: 0.5rem 0.6rem;
        white-space: nowrap;
    }
    .stg_table tbody td {
        font-size: 12px;
        padding: 0.5rem 0.6rem;
    }
}

@media (max-width: 576px) {
    .stg_table {
        min-width: 450px;
    }
    
    .stg_table thead th {
        font-size: 12px;
        padding: 0.45rem 0.5rem;
        white-space: nowrap;
    }
    .stg_table tbody td {
        font-size: 11px;
        padding: 0.45rem 0.5rem;
    }
}

/* Light Mode STG Table */
body.light-mode .stg_table {
    border: 2px solid var(--stg-table-border-color-light);
}

body.light-mode .stg_table thead th {
    background: var(--stg-table-header-bg-light) !important;
    color: var(--stg-table-header-color) !important;
    border: 1px solid var(--stg-table-border-color-light);
}

body.light-mode .stg_table tbody td {
    background: var(--stg-table-cell-bg-light) !important;
    color: var(--stg-table-text-color-light) !important;
    border: 1px solid var(--stg-table-border-color-light);
}

body.light-mode .stg_table tbody tr:hover td {
    background: rgba(139, 92, 246, 0.08) !important;
}

/* ============================================
   STG FLOATING MENU CLASSES
   플로팅 메뉴 스타일
   ============================================ */

.stg_floating_menu {
    background: var(--stg-floating-menu-bg) !important;
    color: var(--stg-floating-menu-color) !important;
    font-family: var(--stg-floating-menu-font-family) !important;
    font-size: var(--stg-floating-menu-font-size) !important;
    padding: var(--stg-floating-menu-padding) !important;
    margin: var(--stg-floating-menu-margin) !important;
    border-radius: var(--stg-floating-menu-border-radius) !important;
    border: none !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    min-width: 130px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(68, 35, 122, 0.3) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.stg_floating_menu:hover {
    background: rgba(68, 35, 122, 0.9) !important;
    color: var(--stg-floating-menu-color) !important;
    transform: translateX(-10px) !important;
    box-shadow: 0 6px 25px rgba(68, 35, 122, 0.5) !important;
}

.stg_floating_menu .floating-icon {
    width: 40px !important;
    height: 40px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1)) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.1rem !important;
    margin-right: 10px !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.stg_floating_menu .floating-icon i {
    color: #FFFFFF !important;
}

.stg_floating_menu .floating-text {
    font-family: var(--stg-floating-menu-font-family) !important;
    font-size: var(--stg-floating-menu-font-size) !important;
    font-weight: 500 !important;
    color: var(--stg-floating-menu-color) !important;
    white-space: nowrap !important;
}

/* Light Mode STG Floating Menu */
body.light-mode .stg_floating_menu {
    background: var(--stg-floating-menu-bg) !important;
    color: var(--stg-floating-menu-color) !important;
    box-shadow: 0 4px 15px rgba(68, 35, 122, 0.25) !important;
}

body.light-mode .stg_floating_menu:hover {
    background: rgba(68, 35, 122, 0.9) !important;
    color: var(--stg-floating-menu-color) !important;
    box-shadow: 0 6px 25px rgba(68, 35, 122, 0.4) !important;
}

body.light-mode .stg_floating_menu .floating-icon {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.15)) !important;
}

body.light-mode .stg_floating_menu .floating-icon i {
    color: #FFFFFF !important;
}

body.light-mode .stg_floating_menu .floating-text {
    color: var(--stg-floating-menu-color) !important;
}

/* STG Floating Menu 반응형 */
@media (max-width: 768px) {
    .stg_floating_menu {
        min-width: 70px !important;
        padding: 8px !important;
        flex-direction: column !important;
        text-align: center !important;
        border-radius: 14px !important;
        margin: 0 !important;
    }
    
    .stg_floating_menu .floating-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.85rem !important;
        margin-right: 0 !important;
        margin-bottom: 4px !important;
    }
    
    .stg_floating_menu .floating-text {
        font-size: 0.7rem !important;
    }
    
    .stg_floating_menu:hover {
        transform: translateY(-3px) !important;
    }
}

/* ============================================
   STG CARD SUB FORMAT CLASSES
   서브 카드 스타일 (얇은 보라색 테두리)
   ============================================ */

.stg_card_sub_format,
.card.stg_card_sub_format,
div.stg_card_sub_format {
    border: none !important;
    border-radius: var(--stg-card-sub-border-radius) !important;
    outline: 1.5px solid rgba(181, 126, 220, 0.55) !important;
    outline-offset: 0px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    transition: outline-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.stg_card_sub_format:hover,
.card.stg_card_sub_format:hover,
div.stg_card_sub_format:hover {
    outline-color: rgba(181, 126, 220, 0.7) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-6px);
}

/* Light Mode STG Card Sub Format */
body.light-mode .stg_card_sub_format,
body.light-mode .card.stg_card_sub_format,
body.light-mode div.stg_card_sub_format {
    border: none !important;
    outline: 1.5px solid rgba(139, 92, 246, 0.35) !important;
    outline-offset: 0px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06) !important;
}

body.light-mode .stg_card_sub_format:hover,
body.light-mode .card.stg_card_sub_format:hover,
body.light-mode div.stg_card_sub_format:hover {
    outline-color: rgba(139, 92, 246, 0.5) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-6px);
}

/* STG Card Format + Sub Format 결합 */
.stg_card_format.stg_card_format--additional.stg_card_sub_format {
    border: none !important;
    border-radius: var(--stg-card-sub-border-radius) !important;
    outline: 1.5px solid rgba(181, 126, 220, 0.55) !important;
    outline-offset: 0px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
}

.stg_card_format.stg_card_format--additional.stg_card_sub_format::before {
    display: none !important;
}

.stg_card_format.stg_card_format--additional.stg_card_sub_format:hover {
    outline-color: rgba(181, 126, 220, 0.7) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-6px) !important;
}

body.light-mode .stg_card_format.stg_card_format--additional.stg_card_sub_format {
    border: none !important;
    outline: 1.5px solid rgba(139, 92, 246, 0.35) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06) !important;
}

body.light-mode .stg_card_format.stg_card_format--additional.stg_card_sub_format::before {
    display: none !important;
}

body.light-mode .stg_card_format.stg_card_format--additional.stg_card_sub_format:hover {
    outline-color: rgba(139, 92, 246, 0.5) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-6px) !important;
}

/* STG Card Sub Format 반응형 */
@media (max-width: 768px) {
    .stg_card_sub_format,
    .card.stg_card_sub_format,
    div.stg_card_sub_format {
        border-radius: 20px !important;
    }
}

@media (max-width: 576px) {
    .stg_card_sub_format,
    .card.stg_card_sub_format,
    div.stg_card_sub_format {
        border-radius: 16px !important;
    }
}

/* ============================================
   STG KAKAO FORMAT CLASSES
   카카오톡 예약/문의 카드 스타일
   ============================================ */

.stg_kakao_format {
    position: relative;
    padding: 2rem 0;
    text-align: center;
}

.stg_kakao_format::before {
    display: none;
}

.stg_kakao_format .stg_kakao_content {
    position: relative;
    z-index: 1;
}

.stg_kakao_format .stg_kakao_text {
    font-family: var(--stg-body-font-family) !important;
    font-size: var(--stg-body-font-size) !important;
    line-height: var(--stg-body-line-height) !important;
    font-weight: var(--stg-body-font-weight) !important;
    margin: var(--stg-body-margin) !important;
    padding: var(--stg-body-padding) !important;
    letter-spacing: 0.02em;
}

body.light-mode .stg_kakao_format .stg_kakao_text {
    color: var(--stg-body-color-light);
}

.stg_kakao_format .stg_kakao_glow {
    display: none;
}

/* STG Kakao Format 반응형 */
@media (max-width: 768px) {
    .stg_kakao_format {
        padding: 1.5rem 0;
    }
    
    .stg_kakao_format .stg_kakao_text {
        font-family: var(--stg-body-font-family) !important;
        font-size: var(--stg-body-font-size) !important;
        line-height: var(--stg-body-line-height) !important;
        margin: var(--stg-body-margin) !important;
        padding: var(--stg-body-padding) !important;
    }
}

@media (max-width: 576px) {
    .stg_kakao_format {
        padding: 1rem 0;
    }
}

/* ============================================
   STG FOOTER STYLES
   푸터 스타일 (FOOTER_COMPOSE.md 기반)
   ============================================ */

.stg-footer {
    background: #44237A;
    border-top: 1px solid rgba(200, 170, 255, 0.25);
    padding: 2rem 0 1.5rem;
    margin-top: auto;
    text-align: center;
}

.stg-footer .social-links {
    margin-bottom: 1.5rem;
    text-align: center;
}

.stg-footer .social-link {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.3rem;
    margin: 0 0.8rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-block;
    text-shadow: 0 0 10px rgba(200, 170, 255, 0.3);
}

.stg-footer .social-link:hover {
    color: #FFFFFF;
    text-shadow: 0 0 20px rgba(200, 170, 255, 0.8), 0 0 40px rgba(180, 140, 255, 0.5);
    transform: translateY(-3px) scale(1.1);
}

.stg-footer .footer-info {
    color: rgba(255, 255, 255, 0.95);
    font-family: 'Nanum Gothic', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

.stg-footer .footer-info p {
    margin: 0.3rem 0;
    word-break: keep-all;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    font-size: 14px;
}

.stg-footer .contact-link,
.stg-footer .footer-link {
    color: #E0CFFF;
    text-decoration: none;
    transition: var(--transition-fast);
    text-shadow: 0 0 8px rgba(200, 170, 255, 0.4);
}

.stg-footer .contact-link:hover,
.stg-footer .footer-link:hover {
    color: #FFFFFF;
    text-shadow: 0 0 15px rgba(200, 170, 255, 0.7);
}

.stg-footer .text-neon {
    color: #8B5CF6;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

/* Light Mode STG Footer */
body.light-mode .stg-footer {
    background: #44237A;
}

body.light-mode .stg-footer .footer-info {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

body.light-mode .stg-footer .footer-info p {
    text-shadow: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

body.light-mode .stg-footer .social-link {
    font-size: 1.2rem;
    color: #fff;
    text-shadow: none;
}

body.light-mode .stg-footer .social-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

body.light-mode .stg-footer .contact-link,
body.light-mode .stg-footer .footer-link {
    color: #fff;
    text-shadow: none;
}

body.light-mode .stg-footer .contact-link:hover,
body.light-mode .stg-footer .footer-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

body.light-mode .stg-footer .text-neon {
    color: #8B5CF6;
    text-shadow: none;
}

/* STG Footer 반응형 */
@media (max-width: 768px) {
    .stg-footer .footer-info {
        font-size: 12px;
    }
    
    .stg-footer .footer-info p {
        font-size: 12px;
    }
    
    .stg-footer .social-link {
        font-size: 1.1rem;
        margin: 0 0.5rem;
    }
}

/* ============================================
   STG Floating Chat Button
   모든 페이지에서 챗봇 접근을 위한 플로팅 버튼
   ============================================ */
.stg-floating-chat-btn {
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 9999;
    animation: stg-chat-btn-enter 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.stg-floating-chat-btn a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-lavender), var(--electric-violet));
    color: #FFFFFF;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(78, 0, 141, 0.4), 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
}

.stg-floating-chat-btn a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(78, 0, 141, 0.5), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.stg-floating-chat-btn .material-symbols-outlined {
    font-size: 26px;
    color: #FFFFFF;
}

/* 말풍선 툴팁 */
.stg-floating-chat-btn .chat-tooltip {
    position: absolute;
    bottom: 64px;
    right: 0;
    background: #FFFFFF;
    color: var(--neon-lavender);
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-fast);
    pointer-events: none;
}

.stg-floating-chat-btn:hover .chat-tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* 펄스 애니메이션 */
.stg-floating-chat-btn a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-lavender), var(--electric-violet));
    opacity: 0;
    animation: stg-chat-pulse 2s ease-in-out 3;
}

@keyframes stg-chat-btn-enter {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes stg-chat-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.3;
    }
}

/* 중간 화면 반응형 */
@media (max-width: 768px) {
    .stg-floating-chat-btn {
        bottom: 16px;
        right: 16px;
    }
    
    .stg-floating-chat-btn a,
    .stg-floating-chat-btn button {
        width: 52px;
        height: 52px;
    }
    
    .stg-floating-chat-btn .material-symbols-outlined {
        font-size: 24px;
    }
}

/* 모바일 반응형 */
@media (max-width: 480px) {
    .stg-floating-chat-btn {
        bottom: 12px;
        right: 12px;
    }
    
    .stg-floating-chat-btn a,
    .stg-floating-chat-btn button {
        width: 48px;
        height: 48px;
    }
    
    .stg-floating-chat-btn .material-symbols-outlined {
        font-size: 22px;
    }
    
    .stg-floating-chat-btn .chat-tooltip {
        display: none;
    }
}

/* 플로팅 버튼 버튼 스타일 (a 태그 대신 button 사용 시) */
.stg-floating-chat-btn button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-lavender), var(--electric-violet));
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(78, 0, 141, 0.4), 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
    position: relative;
}

.stg-floating-chat-btn button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(78, 0, 141, 0.5), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.stg-floating-chat-btn button::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-lavender), var(--electric-violet));
    opacity: 0;
    animation: stg-chat-pulse 2s ease-in-out 3;
}

/* ============================================
   STG Chat Modal (Web App Mode)
   오른쪽 하단 모달 챗봇
   ============================================ */
.stg-chat-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.stg-chat-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.stg-chat-modal {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 520px;
    max-height: calc(100vh - 150px);
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), 0 4px 16px rgba(78, 0, 141, 0.15);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.stg-chat-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* 모달 헤더 */
.stg-chat-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(78, 0, 141, 0.03), rgba(147, 121, 188, 0.05));
    border-bottom: 1px solid rgba(78, 0, 141, 0.1);
    flex-shrink: 0;
}

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

.stg-chat-modal-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-lavender), var(--electric-violet));
    display: flex;
    align-items: center;
    justify-content: center;
}

.stg-chat-modal-avatar .material-symbols-outlined {
    font-size: 20px;
    color: #FFFFFF;
}

.stg-chat-modal-title-text {
    display: flex;
    flex-direction: column;
}

.stg-chat-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0;
}

.stg-chat-modal-status {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}

.stg-chat-modal-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4CAF50;
    animation: statusPulse 2s infinite;
}

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

.stg-chat-modal-status-text {
    font-size: 12px;
    color: #4CAF50;
    font-weight: 500;
}

.stg-chat-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(78, 0, 141, 0.08);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.stg-chat-modal-close:hover {
    background: rgba(78, 0, 141, 0.15);
}

.stg-chat-modal-close .material-symbols-outlined {
    font-size: 20px;
    color: #6C757D;
}

/* 메시지 영역 */
.stg-chat-modal-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stg-chat-message {
    display: flex;
    animation: messageIn 0.3s ease;
}

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

.stg-chat-message.user {
    justify-content: flex-end;
}

.stg-chat-message.bot {
    justify-content: flex-start;
}

.stg-chat-message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-lavender), var(--electric-violet));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    flex-shrink: 0;
}

.stg-chat-message-avatar .material-symbols-outlined {
    font-size: 18px;
    color: #FFFFFF;
}

.stg-chat-message-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
}

.stg-chat-message.user .stg-chat-message-bubble {
    background: linear-gradient(135deg, var(--neon-lavender), var(--electric-violet));
    color: #FFFFFF;
    border-bottom-right-radius: 4px;
}

.stg-chat-message.bot .stg-chat-message-bubble {
    background: #F5F3FA;
    border: 1px solid rgba(78, 0, 141, 0.1);
    border-bottom-left-radius: 4px;
}

.stg-chat-message-text {
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.stg-chat-message.bot .stg-chat-message-text {
    color: #1A1A1A;
}

.stg-chat-message-time {
    font-size: 10px;
    margin-top: 4px;
    opacity: 0.7;
}

.stg-chat-message.user .stg-chat-message-time {
    text-align: right;
    color: rgba(255, 255, 255, 0.8);
}

.stg-chat-message.bot .stg-chat-message-time {
    color: #A1A1A6;
}

/* 타이핑 인디케이터 */
.stg-chat-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
}

.stg-chat-typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #A1A1A6;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.stg-chat-typing-dot:nth-child(1) { animation-delay: 0s; }
.stg-chat-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.stg-chat-typing-dot:nth-child(3) { animation-delay: 0.4s; }

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

/* 빠른 질문 */
.stg-chat-quick-questions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(78, 0, 141, 0.1);
}

.stg-chat-quick-title {
    font-size: 12px;
    color: #6C757D;
    margin-bottom: 10px;
}

.stg-chat-quick-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stg-chat-quick-btn {
    background: rgba(78, 0, 141, 0.06);
    border: 1px solid rgba(78, 0, 141, 0.15);
    padding: 8px 12px;
    border-radius: 16px;
    font-size: 12px;
    color: var(--neon-lavender);
    cursor: pointer;
    transition: all 0.2s ease;
}

.stg-chat-quick-btn:hover {
    background: rgba(78, 0, 141, 0.12);
    border-color: rgba(78, 0, 141, 0.25);
}

/* 입력 영역 */
.stg-chat-modal-input-area {
    padding: 12px 16px;
    background: #FAFAFA;
    border-top: 1px solid rgba(78, 0, 141, 0.1);
    flex-shrink: 0;
}

.stg-chat-modal-input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    background: #FFFFFF;
    border-radius: 22px;
    border: 1px solid rgba(78, 0, 141, 0.15);
    padding: 6px 6px 6px 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.stg-chat-modal-input-wrapper:focus-within {
    border-color: rgba(78, 0, 141, 0.4);
    box-shadow: 0 0 0 3px rgba(78, 0, 141, 0.08);
}

.stg-chat-modal-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    font-family: inherit;
    color: #1A1A1A;
    resize: none;
    max-height: 80px;
    outline: none;
    padding: 8px 0;
    line-height: 1.4;
}

.stg-chat-modal-input::placeholder {
    color: #A1A1A6;
}

.stg-chat-modal-send {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-lavender), var(--electric-violet));
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.stg-chat-modal-send:hover:not(:disabled) {
    transform: scale(1.05);
}

.stg-chat-modal-send:disabled {
    background: #E0E0E0;
    cursor: not-allowed;
}

.stg-chat-modal-send .material-symbols-outlined {
    font-size: 18px;
    color: #FFFFFF;
}

.stg-chat-modal-send:disabled .material-symbols-outlined {
    color: #A1A1A6;
}

/* 태블릿/중간 화면 반응형 */
@media (max-width: 480px) {
    .stg-chat-modal {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        height: 85vh;
        max-height: 85vh;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
    }
    
    .stg-chat-modal.active {
        transform: translateY(0);
    }
    
    .stg-chat-modal-header {
        padding: 12px 16px;
    }
    
    .stg-chat-modal-title {
        font-size: 15px;
    }
    
    .stg-chat-modal-avatar {
        width: 32px;
        height: 32px;
    }
    
    .stg-chat-modal-avatar .material-symbols-outlined {
        font-size: 18px;
    }
    
    .stg-chat-modal-messages {
        padding: 12px;
    }
    
    .stg-chat-message-bubble {
        max-width: 85%;
        padding: 10px 14px;
    }
    
    .stg-chat-message-text {
        font-size: 14px;
    }
    
    .stg-chat-quick-questions {
        padding: 12px;
    }
    
    .stg-chat-quick-btn {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .stg-chat-modal-input-area {
        padding: 10px 12px;
    }
    
    .stg-chat-modal-input {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .stg-chat-modal-send {
        width: 34px;
        height: 34px;
    }
}

/* 중간 화면 반응형 (768px ~ 481px) */
@media (min-width: 481px) and (max-width: 768px) {
    .stg-chat-modal {
        right: 16px;
        bottom: 80px;
        width: min(calc(100vw - 32px), 400px);
        height: calc(100vh - 120px);
        max-height: 550px;
    }
    
    .stg-chat-message-bubble {
        max-width: 80%;
    }
}

/* 작은 화면 반응형 (520px ~ 481px) */
@media (min-width: 481px) and (max-width: 520px) {
    .stg-chat-modal {
        right: 12px;
        width: calc(100vw - 24px);
    }
}

