:root {
    /* Pastel Theme Colors */
    --primary-color: #7BC5AE; /* Mint */
    --primary-hover: #65A791;
    --secondary-color: #92B4F2; /* Soft Blue */
    --secondary-hover: #7A9AD6;
    --tertiary-color: #F4C476; /* Soft Orange/Yellow */
    --bg-color: #F7F9FA; /* Off-white warm gray */
    --sidebar-bg: #FFFFFF;
    --text-main: #333333;
    --text-muted: #777777;
    --border-color: #E2E8F0;
    --card-bg: #FFFFFF;
    --success: #68D391;
}

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

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;   /* C6: 모바일 주소창 보정 (vh 는 폴백으로 남긴다) */
}

/* Layout */
.app-container {
    display: flex;
    width: 100%;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    position: fixed;
    height: 100vh;
    height: 100dvh;   /* C6 */
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.02);
    z-index: 10;
}

.logo {
    padding: 30px 20px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
}

.menu {
    list-style: none;
    padding: 20px 0;
}

.menu li {
    padding: 15px 25px;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu li:hover {
    background-color: #F0F7F4;
    color: var(--primary-color);
}

.menu li.active {
    background-color: #E6F4EF;
    color: var(--primary-color);
    border-right: 4px solid var(--primary-color);
}

/* Main Content */
.main-content {
    margin-left: 250px;
    padding: 40px;
    width: calc(100% - 250px);
}

.page-section {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.page-section.active {
    display: block;
}

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

header {
    margin-bottom: 30px;
}

header h1 {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.9rem;
    border-radius: 6px;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1.1rem;
}

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

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

.btn-tertiary { background-color: var(--tertiary-color); color: white; }
.btn-tertiary:hover { background-color: #E2B467; }

.btn-success { background-color: var(--success); color: white; }
.btn-success:hover { background-color: #55B57A; }

.button-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 580px;
    width: 100%;
}

/* Survey Info Block */
.survey-info {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.survey-info h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.survey-info ul {
    list-style: none;
    padding-left: 5px;
}

.survey-info li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.survey-info li strong {
    color: var(--text-main);
    display: inline-block;
    width: 90px;
}

/* Guide Steps */
.guide-steps {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.step-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    flex: 1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    text-align: center;
    border: 1px solid var(--border-color);
}

.step-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.step-card h3 {
    margin-bottom: 10px;
    color: var(--text-main);
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Inputs and Forms */
.input-area textarea {
    width: 100%;
    height: 200px;
    padding: 15px;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    margin-top: 10px;
    background-color: var(--card-bg);
}

.input-area textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.action-bar {
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
}

/* Tables */
.table-container {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    overflow: hidden;
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: #F8FAFC;
    font-weight: 600;
    color: var(--text-muted);
}

tr:hover {
    background-color: #F1F5F9;
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
}

/* Charts Layout Updates */
.charts-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.charts-grid-small {
    display: contents;
}

.canvas-wrapper {
    position: relative;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

.chart-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
}

.chart-card h3 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-main);
    text-align: center;
}

/* Profile Card */
.form-select {
    padding: 10px 15px;
    font-size: 1.1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    width: 300px;
    margin-top: 15px;
}

.profile-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-top: 20px;
    border: 1px solid var(--border-color);
}

.profile-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
}

.avatar {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.profile-header h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.profile-header .badges {
    margin-top: 10px;
}

.badge {
    background: rgba(255,255,255,0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.profile-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
}

.summary-text h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.summary-box {
    background: #F8FAFC;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid var(--secondary-color);
}

.summary-box h4 {
    margin-bottom: 5px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        display: flex;
        flex-direction: column;
    }
    .menu {
        display: flex;
        overflow-x: auto;
        padding: 10px;
    }
    .menu li {
        white-space: nowrap;
    }
    .main-content {
        margin-left: 0;
    }
    .charts-grid-small, .profile-content {
        flex-direction: column;
        grid-template-columns: 1fr;
    }
}

/* Outline Buttons */
.btn-outline-primary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-outline-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}
.btn-outline-secondary:hover {
    background-color: var(--secondary-color);
    color: white;
}

.btn-outline-tertiary {
    background-color: transparent;
    color: var(--tertiary-color);
    border: 2px solid var(--tertiary-color);
}
.btn-outline-tertiary:hover {
    background-color: var(--tertiary-color);
    color: white;
}

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

.modal-content {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.survey-section-header {
    background-color: #F8FAFC;
    padding: 10px 15px;
    margin-top: 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-weight: bold;
    color: var(--text-main);
    border-left: 4px solid var(--primary-color);
}

.survey-question-item {
    padding: 8px 10px;
    border-bottom: 1px dashed var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}
.survey-question-item:last-child {
    border-bottom: none;
}
.eval-badge {
    background-color: #E6F4EF;
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Tabs UI */
.profile-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #E2E8F0;
    margin-bottom: 20px;
    overflow-x: auto;
}
.tab-btn {
    background: transparent;
    border: none;
    padding: 10px 15px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px; /* Overlap border */
    transition: all 0.2s;
    white-space: nowrap;
}
.tab-btn:hover {
    color: var(--primary-color);
}
.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* AI Keyword Badges */
.keyword-badge {
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    display: inline-block;
    margin: 3px;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid transparent;
}
.keyword-badge.strength.active {
    background-color: #E6F4EF;
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.keyword-badge.weakness.active {
    background-color: #FEF3C7;
    color: #B45309;
    border-color: #F59E0B;
}
.keyword-badge.req.active {
    background-color: #F3E8FF;
    color: #7E22CE;
    border-color: #A855F7;
}
.keyword-badge:not(.active):not(.add-btn) {
    background-color: #F1F5F9;
    color: #94A3B8;
    border-color: #CBD5E1;
    text-decoration: line-through;
}
.keyword-badge.add-btn {
    background-color: #fff;
    color: #666;
    border-color: #ccc;
    text-decoration: none !important;
    border-style: dashed;
    cursor: pointer;
}
.keyword-badge.add-btn:hover {
    background-color: #F1F5F9;
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.keyword-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Risk Dropdown */
.risk-dropdown-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}
.risk-dropdown-item:last-child {
    border-bottom: none;
}
.risk-dropdown-item:hover {
    background-color: #F8FAFC;
}
.risk-dropdown-item strong {
    color: #E53E3E;
    display: block;
    margin-bottom: 4px;
}
.risk-dropdown-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* MBTI Bar Chart */
.mbti-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.mbti-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mbti-label {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--text-main);
    width: 20px;
    text-align: center;
}

.mbti-bar-wrapper {
    flex: 1;
    display: flex;
    height: 80px; /* Much thicker bar */
    background-color: var(--border-color);
    border-radius: 40px;
    overflow: hidden;
}

.mbti-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: white;
    font-weight: 600;
    transition: width 0.6s ease;
    white-space: normal;
    text-align: center;
    overflow: hidden;
    padding: 0 5px;
    box-sizing: border-box;
}

.mbti-segment div {
    margin-bottom: 4px;
}

.mbti-segment span {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.9;
    max-width: 100%;
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: keep-all;
}

.mbti-segment.left-side {
    background-color: var(--primary-color);
}

.mbti-segment.right-side {
    background-color: var(--secondary-color);
}

/* Custom Tooltip */
.mbti-custom-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    max-width: 200px;
    line-height: 1.5;
    text-align: center;
}
.mbti-custom-tooltip.show {
    opacity: 1;
}

/* MI Full Screen Modal */
.mi-fullscreen-modal {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    height: 100dvh;   /* C6 */
    background: rgba(0,0,0,0.85);
    z-index: 10002;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
}
.mi-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 20px;
}
.mi-modal-header h2 { font-size: 1.8rem; margin: 0; }
.mi-modal-close {
    background: none; border: none; font-size: 2rem; color: #fff; cursor: pointer;
}
.mi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
    flex: 1;
    overflow-y: auto;
}
.mi-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.mi-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}
.mi-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    color: #fff;
}
.mi-card-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-main);
}
.mi-students-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-content: flex-start;
}
.mi-student-badge {
    background: #F1F5F9;
    color: var(--text-main);
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #CBD5E1;
}
@media (max-width: 1024px) {
    .mi-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(4, 1fr); }
}
@media (max-width: 600px) {
    .mi-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
}

/* Chat Overlay Interface (Center Modal Style) */
.chat-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 650px;
    height: 75vh;
    max-height: 800px;
    z-index: 10000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    border-radius: 16px;
    overflow: hidden;
    background-color: #b2c7d9; /* 카카오톡 배경색과 유사한 색상 */
    display: flex;
    flex-direction: column;
    animation: fadeInModal 0.3s ease-out;
}

@keyframes fadeInModal {
    from { opacity: 0; transform: translate(-50%, -45%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-header {
    background-color: #ffffff;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    z-index: 2;
}

.chat-title-area {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.chat-action-btn {
    padding: 4px 8px;
    font-size: 0.8rem;
    border-radius: 4px;
}

.close-chat-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #777;
    margin-left: 10px;
}

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

.chat-bubble {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    word-break: break-word;
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.bot-bubble {
    align-self: flex-start;
    background-color: #ffffff;
    color: #333;
    border-top-left-radius: 2px;
}

.user-bubble {
    align-self: flex-end;
    background-color: #FEE500; /* 카카오톡 노란색 */
    color: #333;
    border-top-right-radius: 2px;
}

.bot-bubble p, .user-bubble p {
    margin-bottom: 8px;
}
.bot-bubble p:last-child, .user-bubble p:last-child {
    margin-bottom: 0;
}
.bot-bubble ul, .bot-bubble ol {
    margin-left: 20px;
    margin-bottom: 8px;
}
.bot-bubble strong {
    color: #111;
}

.chat-footer {
    background-color: #ffffff;
    padding: 15px;
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

#chatInput {
    flex: 1;
    resize: none;
    border: none;
    border-radius: 8px;
    background-color: #F8FAFC;
    padding: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    max-height: 100px;
    overflow-y: auto;
}

#chatInput:focus {
    outline: none;
    background-color: #F1F5F9;
}

#chatSendBtn {
    width: 45px;
    height: 45px;
    background-color: #FEE500;
    border: none;
    border-radius: 50%;
    color: #333;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s;
    flex-shrink: 0;
}

#chatSendBtn:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .chat-overlay {
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
}

/* Print Styles for PDF Download */
@media print {
    /* 기본 여백/배경 제거 및 A4 사이즈에 맞춤 */
    @page {
        size: A4 portrait;
        margin: 10mm;
    }
    html, body {
        background-color: white !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        height: auto !important;
        font-size: 11pt !important;
    }
    .app-container {
        display: block !important;
    }
    
    /* 불필요 UI 요소 숨김 */
    .sidebar, .btn, .risk-nav-wrapper, #aiSiteModal, #chatOverlay, #apiSetupModal, header p, .ai-setup-card, .controls-bar {
        display: none !important;
    }
    
    /* 컨텐츠 영역 전체 너비 사용 */
    .main-content {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
    
    /* 활성화된 섹션만 출력 (페이지 잘림 방지) */
    .page-section {
        display: none !important;
    }
    .page-section.active {
        display: block !important;
        page-break-after: avoid;
    }
    
    /* 학급 전체 리포트를 한 페이지에 맞추기 위한 그리드 및 크기 조정 */
    #class-stats .charts-wrap {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 15px !important;
    }
    
    /* 개인 리포트 탭 내용 모두 표시 및 레이아웃 재구성 */
    #personal-stats .tab-content-container .tab-pane {
        display: block !important; 
        page-break-inside: avoid;
        margin-bottom: 20px !important;
    }
    
    /* 개인 리포트 - 총평 영역 강제 표시 및 그리드 조정 */
    #tab-summary {
        display: block !important;
    }
    #tab-summary .charts-wrap {
        display: block !important;
    }
    
    .chart-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        page-break-inside: avoid;
        padding: 15px !important;
        margin-bottom: 15px !important;
    }
    
    .chart-card h3 {
        margin-bottom: 10px !important;
        font-size: 1rem !important;
    }

    .canvas-wrapper {
        max-width: 250px !important;
    }
    
    /* 프로필 카드 표시 영역 간소화 */
    .profile-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        margin-top: 10px !important;
        break-inside: avoid;
    }
    .profile-tabs, .ai-consult-card {
        display: none !important;
    }
    
    /* 헤더 텍스트 사이즈 조정 */
    header h1 {
        font-size: 1.5rem !important;
        margin-bottom: 5px !important;
    }
    
    .mbti-container {
        gap: 8px !important;
    }
    .mbti-bar-wrapper {
        height: 20px !important;
    }
}

/* AI 행동발달 생성기 핵심 버튼 강조 스타일 */
.btn-highlight {
    background: linear-gradient(135deg, #FF9F43, #FF5252);
    color: white !important;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 82, 82, 0.3);
    font-weight: 700;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 82, 82, 0.5);
    background: linear-gradient(135deg, #FFAA5A, #FF6666);
    color: white !important;
}

.btn-highlight:active {
    transform: translateY(0);
}

.recommend-badge {
    color: #FF5252;
    font-weight: 800;
    font-size: 1.05rem;
    animation: bounceHorizontal 1.5s infinite;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 5px;
    user-select: none;
}

@keyframes bounceHorizontal {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(6px); }
}
