:root {
    --bg-color: #050505;
    --card-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-color: #00ff88;
    --accent-glow: rgba(0, 255, 136, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

.app-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background:
        radial-gradient(circle at 15% 50%, rgba(0, 255, 136, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 100, 255, 0.08), transparent 25%);
    z-index: -1;
}

/* Container & Layout */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo i {
    color: var(--accent-color);
}

.api-key-container {
    display: flex;
    gap: 8px;
}

#api-key-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 8px 12px;
    color: white;
    font-family: var(--font-main);
    width: 200px;
    outline: none;
    transition: all 0.3s ease;
}

#api-key-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
}

#save-api-key {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

#save-api-key:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

/* Glass Panel Utility */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* 📋 상세 정보 영역 - 대시보드 카드 다음에 오는 패널들 */
.dashboard-card~.glass-panel {
    margin-top: 30px;
    /* 대시보드와 간격 */
    background: rgba(255, 255, 255, 0.02);
    /* 살짝 더 어둡게 */
    border-color: rgba(255, 255, 255, 0.06);
}

/* 첫 번째 상세 패널 (요약 텍스트)에 추가 여백 */
.dashboard-card~.glass-panel:first-of-type {
    margin-top: 40px;
    position: relative;
}

/* 구분선 효과 */
.dashboard-card~.glass-panel:first-of-type::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 2px;
}

/* Upload Section */
#upload-section {
    text-align: center;
    padding: 50px 30px;
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 16px;
}

.highlight {
    background: linear-gradient(90deg, #fff, var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: var(--accent-color);
    background: rgba(0, 255, 136, 0.05);
}

.upload-icon {
    font-size: 3rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.upload-content h3 {
    margin-bottom: 8px;
}

.upload-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Buttons */
.primary-btn {
    background: var(--accent-color);
    color: #000;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 20px;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--accent-glow);
}

.secondary-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 30px;
    width: 100%;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.icon-btn {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
}

/* Video Preview */
#video-preview-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 20px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

video {
    width: 100%;
    display: block;
}

#remove-video {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Results grid */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.full-width {
    width: 100%;
}

/* Score Circle */
.score-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-circle-container {
    position: relative;
    width: 160px;
    height: 160px;
    margin-top: 20px;
}

.score-circle-container.large {
    width: 140px;
    height: 140px;
    margin-top: 0;
}

.progress-ring__circle {
    transition: stroke-dashoffset 1s ease-in-out;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    /* Ensure text centers properly within container */
}

/* Gradient Text Utility */
.gradient-text {
    background: linear-gradient(90deg, #fff, var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}


/* Score Glow Effect */
/* Score Glow Effect */
.score-glow {
    display: none;
}

.mini-stat-item {
    text-align: center;
    min-width: 50px;
}

.score-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Analysis Lists */
.analysis-list {
    list-style: none;
    margin-top: 16px;
    text-align: left;
}

.analysis-list li {
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.analysis-list li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1.2rem;
}

#cons-list li::before {
    color: #ff4757;
}

/* Pro Recommendation */
.pro-content {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 16px;
}

.pro-profile-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

#pro-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#pro-profile-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.3);
}

.pro-info {
    flex: 1;
}

.pro-info h4 {
    font-size: 1.2rem;
    margin-bottom: 4px;
    color: var(--accent-color);
}

.text-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    border-bottom: 1px solid transparent;
}

.text-link:hover {
    color: white;
    border-bottom-color: white;
}

/* Loading */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--text-secondary);
    border-bottom-color: var(--accent-color);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    margin-bottom: 20px;
}

#loading-text {
    font-size: 1.2rem;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Animations */
@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

.slide-in {
    animation: slideIn 0.8s ease-out forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

footer {
    text-align: center;
    margin-top: auto;
    padding-top: 40px;
    padding-bottom: 20px;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Support & Footer */
footer {
    text-align: center;
    margin-top: auto;
    /* Move it far down so it's not intrusive */
    padding-top: 120px;
    padding-bottom: 60px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.support-dev {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0 auto;
    width: 100%;
    text-align: center;
    backdrop-filter: none;
}

/* Specific style for landing page support to sit at bottom */
.landing-support {
    position: relative;
    /* No longer absolute */
    bottom: auto;
    left: auto;
    transform: none;
    z-index: 60;
    opacity: 0.8;
    transition: opacity 0.3s;
    margin-bottom: 20px;
    /* Space from bottom edge */
    margin-top: 20px;
    /* Minimum space from main content */
    background: rgba(0, 0, 0, 0.6);
    /* Slightly darker for legibility */
}

.landing-support:hover {
    opacity: 1;
}

.support-dev i {
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
}

.support-dev p {
    margin: 8px 0;
    line-height: 1.5;
}

.account-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px dashed var(--glass-border);
    border-radius: 12px;
    padding: 12px;
    margin: 16px 0;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
}

.account-box:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--accent-color);
}

.account-box:active {
    transform: scale(0.98);
}

#account-number {
    font-family: 'Outfit', monospace;
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 600;
}

.support-hint {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 20px !important;
}

.contact-dev {
    border-top: 1px solid var(--glass-border);
    padding-top: 16px;
    margin-top: 16px;
    font-size: 0.85rem;
}

.contact-dev a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-dev a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Practice Drills */
.drill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.drill-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.2s, background 0.2s;
    cursor: pointer;
    /* Add pointer cursor */
}

.drill-card.active {
    background: rgba(255, 255, 255, 0.08);
    /* More distinguishable active bg */
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.1);
}

@media (hover: hover) {
    .drill-card:hover {
        transform: translateY(-5px);
        background: rgba(255, 255, 255, 0.06);
        border-color: var(--accent-color);
    }
}

.drill-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 12px;
}

.drill-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.drill-title h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.drill-title span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.drill-desc {
    color: #ddd;
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

.drill-steps {
    list-style: none;
    padding: 0;
}

.drill-steps li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.drill-steps li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
}

/* Collapsible UI */
.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0;
    /* Override default margin */
}

.collapsible-header:hover {
    opacity: 0.8;
}

.toggle-icon {
    transition: transform 0.3s ease;
    color: var(--accent-color);
    margin-left: 10px;
}

.collapsible-header.active .toggle-icon {
    transform: rotate(180deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, margin 0.3s ease;
    opacity: 0;
    margin-top: 0;
}

.collapsible-content.open {
    max-height: 2000px;
    /* Large enough to fit content */
    opacity: 1;
    margin-top: 20px;
}

/* Club Selector */
.club-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-family: var(--font-main);
}

.club-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.club-btn.active {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
    font-weight: 600;
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Dashboard Layout */
.dashboard-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    /* Adjusted ratio */
    gap: 30px;
    align-items: center;
    /* Vertical Center */
    margin-top: 10px;
    padding: 10px;
}

@media (max-width: 768px) {
    .dashboard-content {
        grid-template-columns: 1fr !important;
        /* Stack vertically */
        gap: 40px;
    }
}

.score-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    margin-top: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.rank-badge i {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.dashboard-header {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

/* 🎯 핵심 대시보드 카드 - 점수 + 차트를 하나로 */
.dashboard-card {
    /* 더 강한 배경과 테두리 */
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    position: relative;
}

/* Dashboard Layout Unified */
.dashboard-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 20px;
    align-items: stretch;
    /* 카드 높이 균등 */
    margin-top: 15px;
    padding: 0;
    /* 패딩 제거하여 카드가 더 넓게 */
}

.score-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* 🎴 개별 카드 스타일 제거 - 이제 전체가 하나의 카드 */
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 20px 15px;
    box-shadow: none;
    transition: none;
}

.score-section:hover {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    transform: none;
}

.chart-section {
    /* 🎴 개별 카드 스타일 제거 */
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 20px 15px;
    box-shadow: none;
    transition: none;
}

.chart-section:hover {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    transform: none;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    margin-top: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.rank-badge i {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.skill-tab-container {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
}

.skill-tab {
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: 15px;
}

/* Mobile Stack for Dashboard */
@media (max-width: 600px) {
    .dashboard-content.grid-2-col-mobile-stack {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 40px;
        text-align: center;
    }

    .chart-container {
        height: 250px !important;
        width: 100% !important;
        max-width: 350px;
        /* Prevent too wide on mobile */
        margin: 0 auto;
    }

    .score-section,
    .chart-section {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
}

.skill-btn,
.skill-btn-chart,
.skill-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-family: var(--font-main);
}

.skill-btn:hover,
.skill-btn-chart:hover,
.skill-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.skill-btn.active,
.skill-btn-chart.active,
.skill-tab.active {
    background: rgba(0, 100, 255, 0.2);
    /* Different color for skill to distinguish */
    color: #fff;
    border-color: #4dabf7;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(77, 171, 247, 0.3);
}

/* Dashboard Layout */




/* ========================================
   📱 MOBILE OPTIMIZATION - RESULT SECTION
   ======================================== */

@media (max-width: 600px) {

    /* === 기본 타이포그래피 === */
    h1 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.1rem !important;
    }

    h4 {
        font-size: 1rem !important;
    }

    /* === 그리드 레이아웃 === */
    .grid-2-col {
        grid-template-columns: 1fr;
        gap: 25px !important;
    }

    /* === 랜딩 페이지 === */
    .landing-title {
        font-size: 2.5rem !important;
    }

    .landing-subtitle {
        font-size: 1rem !important;
        margin-bottom: 30px !important;
    }

    .landing-logo-icon {
        font-size: 3rem !important;
        margin-bottom: 15px !important;
    }

    .landing-content {
        padding: 30px 20px !important;
        width: 95% !important;
    }

    .large-btn {
        padding: 14px 32px !important;
        font-size: 1rem !important;
    }

    /* === 결과창 대시보드 헤더 === */
    #skill-evaluation-text {
        font-size: 1.3rem !important;
        margin-bottom: 10px !important;
        line-height: 1.4 !important;
    }

    #header-compare-btn {
        padding: 8px 16px !important;
        font-size: 0.85rem !important;
        min-height: 44px !important;
    }

    #peer-summary-text {
        font-size: 0.95rem !important;
        padding: 12px 15px !important;
        line-height: 1.5 !important;
    }

    /* === 점수 섹션 === */
    .score-circle-container.large {
        /* 크기를 키우는 대신 scale 사용 */
        transform: scale(1.15);
        transform-origin: center;
        margin: 20px 0 !important;
    }

    /* 🎴 카드 스타일 모바일 최적화 */
    .score-section {
        padding: 30px 20px !important;
        margin-bottom: 20px !important;
        border-radius: 18px !important;
    }

    .chart-section {
        padding: 25px 18px !important;
        border-radius: 18px !important;
    }

    /* 대시보드 콘텐츠 간격 */
    .dashboard-content.grid-2-col-mobile-stack {
        gap: 20px !important;
    }

    #score-value {
        font-size: 3.2rem !important;
        line-height: 1 !important;
    }

    .score-label {
        font-size: 0.95rem !important;
        margin-top: 5px !important;
        display: block !important;
    }

    .rank-badge {
        padding: 10px 20px !important;
        margin-top: 20px !important;
    }

    .rank-badge span {
        font-size: 1rem !important;
    }

    .rank-badge i {
        font-size: 1.3rem !important;
    }

    /* === 미니 통계 === */
    .score-mini-stats {
        gap: 20px !important;
        margin-top: 25px !important;
    }

    .mini-stat-item span:first-child {
        font-size: 0.8rem !important;
        margin-bottom: 5px !important;
    }

    .mini-stat-item span:last-child {
        font-size: 1.3rem !important;
    }

    /* === 차트 섹션 === */
    .chart-container {
        height: 280px !important;
        margin: 15px 0 !important;
    }

    .chart-controls p {
        font-size: 0.85rem !important;
        margin-bottom: 12px !important;
    }

    .skill-tab-container {
        gap: 8px !important;
        padding: 8px 0 !important;
    }

    .skill-tab {
        padding: 10px 16px !important;
        font-size: 0.9rem !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* === 요약 텍스트 === */
    #summary-text {
        font-size: 1.1rem !important;
        line-height: 1.6 !important;
        padding: 20px !important;
    }

    /* === Glass Panel 패딩 === */
    .glass-panel {
        padding: 20px !important;
        margin-bottom: 15px !important;
    }

    /* === Collapsible 헤더 === */
    .collapsible-header {
        padding: 5px 0 !important;
        margin-bottom: 0 !important;
    }

    .collapsible-header h3 {
        font-size: 1.1rem !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .collapsible-header h3 i {
        font-size: 1rem !important;
    }

    .toggle-icon {
        font-size: 1rem !important;
    }

    /* === Collapsible 콘텐츠 === */
    .collapsible-content {
        padding-top: 5px !important;
    }

    .collapsible-content.open {
        margin-top: 15px !important;
    }

    /* === 분석 리스트 === */
    .analysis-list {
        margin-top: 15px !important;
    }

    .analysis-list li {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
        margin-bottom: 15px !important;
        padding-left: 28px !important;
    }

    .analysis-list li::before {
        font-size: 1.3rem !important;
        left: 2px !important;
    }

    /* === 분석 포인트 카드 === */
    .analysis-point-card {
        padding: 15px 18px !important;
        margin-bottom: 12px !important;
        border-radius: 15px !important;
    }

    .point-text {
        font-size: 1rem !important;
        line-height: 1.7 !important;
    }

    .point-icon {
        font-size: 1.2rem !important;
    }

    /* === 액션 스텝 카드 === */
    .action-step-card {
        padding: 18px 18px 18px 50px !important;
        margin-bottom: 20px !important;
        border-radius: 0 18px 18px 0 !important;
    }

    .step-number {
        width: 32px !important;
        height: 32px !important;
        left: -16px !important;
        font-size: 1rem !important;
    }

    .step-content {
        font-size: 1rem !important;
        line-height: 1.8 !important;
    }

    /* === 텍스트 콘텐츠 === */
    .text-content {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
    }

    .text-content p {
        margin-bottom: 15px !important;
    }

    /* === 드릴 카드 === */
    .drill-card {
        padding: 20px !important;
        margin-bottom: 15px !important;
    }

    .drill-title h4 {
        font-size: 1.1rem !important;
    }

    .drill-desc {
        font-size: 1rem !important;
        line-height: 1.7 !important;
        margin-bottom: 15px !important;
    }

    .drill-steps li {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        margin-bottom: 10px !important;
        padding-left: 24px !important;
    }

    /* === 프로 추천 섹션 === */
    .pro-content {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 15px !important;
    }

    .pro-profile-wrapper {
        width: 100px !important;
        height: 100px !important;
    }

    .pro-info h4 {
        font-size: 1.3rem !important;
        margin-bottom: 10px !important;
    }

    #pro-reason {
        font-size: 1rem !important;
        line-height: 1.7 !important;
    }

    .text-link {
        font-size: 1rem !important;
        padding: 10px 0 !important;
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
    }

    /* === 버튼 개선 === */
    .primary-btn,
    .secondary-btn {
        font-size: 1rem !important;
        padding: 14px 24px !important;
        min-height: 48px !important;
        border-radius: 12px !important;
    }

    .icon-btn {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.1rem !important;
    }

    /* === 클럽/성별 선택 버튼 === */
    .club-btn,
    .gender-btn {
        padding: 14px 20px !important;
        font-size: 1rem !important;
        min-height: 48px !important;
        border-radius: 12px !important;
    }

    /* === 업로드 섹션 === */
    .upload-area {
        padding: 30px 20px !important;
        margin-bottom: 20px !important;
    }

    .upload-icon {
        font-size: 2.5rem !important;
        margin-bottom: 12px !important;
    }

    .upload-content h3 {
        font-size: 1.1rem !important;
        margin-bottom: 8px !important;
    }

    .upload-content p {
        font-size: 0.95rem !important;
    }

    /* === 모달 최적화 === */
    .modal-content {
        width: 95% !important;
        padding: 20px !important;
        max-height: 85vh !important;
    }

    .close-modal-btn {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.5rem !important;
        top: 10px !important;
        right: 10px !important;
    }

    /* === 헤더 최적화 === */
    header {
        padding: 15px 0 !important;
        margin-bottom: 20px !important;
    }

    .logo {
        font-size: 1.3rem !important;
        gap: 10px !important;
    }

    .logo i {
        font-size: 1.3rem !important;
    }

    /* === 컨테이너 패딩 === */
    .container {
        padding: 15px !important;
    }

    /* === 대시보드 카드 === */
    .dashboard-card {
        padding: 20px 15px !important;
        margin-bottom: 25px !important;
    }

    /* 📋 상세 정보 영역 구분 강화 */
    .dashboard-card~.glass-panel {
        margin-top: 35px !important;
    }

    .dashboard-card~.glass-panel:first-of-type {
        margin-top: 45px !important;
    }

    .dashboard-card~.glass-panel:first-of-type::before {
        top: -22px !important;
        width: 80px !important;
        height: 4px !important;
    }

    .dashboard-header {
        margin-bottom: 15px !important;
        padding-bottom: 12px !important;
    }

    /* === 유틸리티 === */
    .subtitle {
        font-size: 1rem !important;
        margin-bottom: 30px !important;
    }

    /* === 공유 버튼 그룹 === */
    .share-buttons {
        gap: 10px !important;
        margin-top: 20px !important;
    }

    .share-buttons button {
        padding: 12px 20px !important;
        font-size: 0.95rem !important;
        min-height: 48px !important;
    }
}

/* Landing Page */
.full-screen-center {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    /* Mobile friendly */
    /* Flexbox Layout */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Removed justify-content: flex-end, rely on margin:auto */
    z-index: 50;
    background: transparent;
    overflow-y: auto;
    padding: 20px;
}

.landing-content {
    /* Dynamic Centering via Flexbox Margins */
    position: relative;
    /* Reset absolute */
    top: auto;
    left: auto;
    transform: none;

    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    padding: 60px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 1s ease-out;

    /* Critical: pushing itself to the center of available space */
    margin-top: auto;
    margin-bottom: auto;

    width: 90%;
    max-width: 600px;
}

.landing-logo-icon {
    font-size: 5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px var(--accent-glow));
}

.landing-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.pulse-animation {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 255, 136, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0);
    }
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #1a1a1a;
    width: 90%;
    max-width: 500px;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal:not(.hidden) .modal-content {
    transform: translateY(0);
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal-btn:hover {
    color: var(--accent-color);
}

/* Toast Notification */
#toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: auto;
    max-width: 90%;
    align-items: center;
}

.toast {
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    padding: 12px 24px;
    white-space: normal;
    text-align: center;
    border-radius: 12px;
    max-width: 100%;
}

.toast i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.toast.error i {
    color: #ff4757;
}

@keyframes toastSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.toast.hiding {
    animation: toastFadeOut 0.4s ease forwards;
}

@keyframes toastFadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Injury Clinic Section */
.injury-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 30px auto;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid var(--glass-border);
}

.body-img {
    width: 100%;
    display: block;
    opacity: 0.9;
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.2));
}

.injury-hotspot {
    position: absolute;
    width: 24px;
    height: 24px;
    background: rgba(255, 71, 87, 0.6);
    border: 2px solid #ff4757;
    border-radius: 50%;
    cursor: pointer;
    transform: translate(-50%, -50%);
    /* Center on coordinate */
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.4);
}

.injury-hotspot:hover {
    background: #ff4757;
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 0 25px rgba(255, 71, 87, 0.8);
}

.injury-hotspot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #ff4757;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.8;
    }

    100% {
        width: 300%;
        height: 300%;
        opacity: 0;
    }
}

/* --------------------------------------------------------- */
/* Gamification Tiers & Effects                              */
/* --------------------------------------------------------- */

/* Tier Colors */
:root {
    --tier-bronze: #cd7f32;
    --tier-silver: #c0c0c0;
    --tier-gold: #ffd700;
    --tier-platinum: #E5E4E2;
    --tier-diamond: #b9f2ff;
    --tier-master: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
}

/* Base Badge Style */
.tier-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Specific Tier Styles */
.tier-badge.bronze {
    background: linear-gradient(135deg, #8B5A2B, #cd7f32);
    color: #fff;
    border-color: #cd7f32;
}

.tier-badge.silver {
    background: linear-gradient(135deg, #7F7F7F, #c0c0c0);
    color: #000;
    border-color: #c0c0c0;
}

.tier-badge.gold {
    background: linear-gradient(135deg, #B8860B, #ffd700);
    color: #000;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    border-color: #ffd700;
    animation: goldShimmer 2s infinite linear;
}

.tier-badge.platinum {
    background: linear-gradient(135deg, #536976, #292E49);
    background: linear-gradient(145deg, #e6e9f0 0%, #eef1f5 100%);
    color: #333;
    border: 2px solid #a3b1c6;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.tier-badge.diamond {
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    color: #fff;
    border: 1px solid #b9f2ff;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.6);
}

.tier-badge.master {
    background: #000;
    background-image: var(--tier-master);
    background-size: 400%;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 30px rgba(255, 0, 200, 0.5);
    animation: masterRainbow 5s linear infinite;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Animations */
@keyframes goldShimmer {
    0% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    }

    50% {
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
    }

    100% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    }
}

@keyframes masterRainbow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Score Circle Border Effects */
.score-circle.gold-glow {
    border-color: #ffd700 !important;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.score-circle.emerald-glow {
    border-color: #00ff88 !important;
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.4);
}

.percentile-text {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 5px;
    letter-spacing: 0.5px;
}

.percentile-text strong {
    color: #fff;
}

/* Rank Badge Container (Clean Vertical Layout) */
.rank-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent !important;
    /* Remove any grey box */
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-top: 20px !important;
    width: 100%;
}


/* --------------------------------------------------------- */
/* Global Theme Borders (Applied to .dashboard-card)         */
/* --------------------------------------------------------- */
.dashboard-card {
    transition: box-shadow 0.5s ease, border-color 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Default */
}

/* Master: Rainbow Border Animation */
.theme-border-master {
    border-color: transparent !important;
    position: relative;
    background-clip: padding-box;
    z-index: 1;
}

.theme-border-master::before {
    content: '';
    position: absolute;
    inset: -2px;
    z-index: -1;
    border-radius: 26px;
    /* slightly larger than card */
    background: var(--tier-master);
    background-size: 300% 300%;
    animation: masterRainbow 4s ease infinite;
    opacity: 0.7;
}

/* Diamond: Cyan/Blue Glow */
.theme-border-diamond {
    border: 1px solid #00d2ff !important;
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.25), inset 0 0 20px rgba(0, 210, 255, 0.05);
}

/* Platinum: Metallic Glow */
.theme-border-platinum {
    border: 1px solid #a3b1c6 !important;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.2), inset 0 0 10px rgba(255, 255, 255, 0.05);
}

/* Gold: Golden Glow */
.theme-border-gold {
    border: 1px solid #ffd700 !important;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.25), inset 0 0 10px rgba(255, 215, 0, 0.05);
}

/* Silver: Subtle Silver Glow */
.theme-border-silver {
    border: 1px solid #c0c0c0 !important;
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.2);
}

/* Bronze: Standard (No fancy border) */
.theme-border-bronze {
    border-color: #cd7f32 !important;
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.1);
}

/* --------------------------------------------------------- */
/* RPG Tier System Styles                                    */
/* --------------------------------------------------------- */



/* GOD (True RGB/Prism) */
.tier-badge.god {
    background: linear-gradient(124deg, #ff2400, #e81d1d, #e8b71d, #e3e81d, #1de840, #1ddde8, #2b1de8, #dd00f3, #dd00f3);
    background-size: 1800% 1800%;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 0, 255, 0.5);
    font-weight: 800;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
    animation: rainbowMove 6s ease infinite;
}

@keyframes rainbowMove {
    0% {
        background-position: 0% 82%
    }

    50% {
        background-position: 100% 19%
    }

    100% {
        background-position: 0% 82%
    }
}

/* GOD Tier: Clean & Visible */
.theme-border-god {
    border: 3px solid #ffffff !important;
    background-color: transparent !important;
    box-shadow:
        0 0 20px rgba(255, 0, 128, 0.6),
        0 0 40px rgba(0, 255, 255, 0.4);
    /* No animation to ensure stability first */
}

/* LEGENDARY (Gold) */
.tier-badge.legendary {
    background: linear-gradient(135deg, #B8860B, #FFD700);
    color: #000;
    border-color: #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    animation: goldShimmer 2s infinite linear;
}

.theme-border-legendary {
    border: 1px solid #FFD700 !important;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3), inset 0 0 10px rgba(255, 215, 0, 0.1);
}

/* EPIC (Purple) */
.tier-badge.epic {
    background: linear-gradient(135deg, #6b21a8, #d946ef);
    color: #fff;
    border: 1px solid #e879f9;
    box-shadow: 0 0 20px rgba(217, 70, 239, 0.5);
}

.theme-border-epic {
    border: 1px solid #d946ef !important;
    box-shadow: 0 0 25px rgba(217, 70, 239, 0.25), inset 0 0 10px rgba(217, 70, 239, 0.05);
}

/* RARE (Blue) */
.tier-badge.rare {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: #fff;
    border: 1px solid #60a5fa;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.theme-border-rare {
    border: 1px solid #3b82f6 !important;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

/* UNCOMMON (Green) */
.tier-badge.uncommon {
    background: linear-gradient(135deg, #15803d, #22c55e);
    color: #fff;
    border: 1px solid #4ade80;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}

.theme-border-uncommon {
    border: 1px solid #22c55e !important;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.2);
}

/* COMMON (Gray) */
.tier-badge.common {
    background: linear-gradient(135deg, #4b5563, #9ca3af);
    color: #fff;
    border: 1px solid #d1d5db;
}

.theme-border-common {
    border: 1px solid #9ca3af !important;
    box-shadow: none;
}

/* RUSTY (Brown) */
.tier-badge.rusty {
    background: linear-gradient(135deg, #451a03, #92400e);
    color: #e5e5e5;
    border: 1px solid #b45309;
    font-family: 'Courier New', Courier, monospace;
    /* Old feel */
}

.theme-border-rusty {
    border: 1px solid #92400e !important;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

/* BROKEN (Dark Red / Glitch) */
.tier-badge.broken {
    background: #000;
    color: #ef4444;
    border: 1px dashed #ef4444;
    text-shadow: 2px 0 #fff, -2px 0 #000;
    animation: glitch 1s infinite linear alternate-reverse;
}

.theme-border-broken {
    border: 1px dashed #ef4444 !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

@keyframes glitch {
    0% {
        transform: skew(0deg);
    }

    20% {
        transform: skew(-10deg);
    }

    40% {
        transform: skew(10deg);
    }

    60% {
        transform: skew(-5deg);
    }

    80% {
        transform: skew(5deg);
    }

    100% {
        transform: skew(0deg);
    }
}

/* --- Golf Wear Modal Styles --- */
.region-btn,
.time-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #ddd;
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    font-family: var(--font-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.region-btn:hover,
.time-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(77, 171, 247, 0.5);
    /* Blueish tint */
}

.region-btn.active,
.time-btn.active {
    background: rgba(77, 171, 247, 0.2);
    border-color: #4dabf7;
    color: #4dabf7;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(77, 171, 247, 0.3);
}

.weather-summary-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.weather-icon-large {
    font-size: 3.5rem;
    width: 60px;
    text-align: center;
}

.weather-info-text {
    text-align: left;
    flex: 1;
}

.weather-temp {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
    color: #fff;
}

.weather-desc {
    color: #ccc;
    font-size: 0.95rem;
    margin: 5px 0 2px 0;
}

.weather-location {
    color: #888;
    font-size: 0.8rem;
}

.wear-recommendation-box {
    background: rgba(77, 171, 247, 0.05);
    border: 1px solid rgba(77, 171, 247, 0.2);
    border-radius: 15px;
    padding: 20px;
    text-align: left;
    margin-bottom: 20px;
}

.wear-recommendation-box h3 {
    color: #4dabf7;
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(77, 171, 247, 0.2);
    padding-bottom: 10px;
}

.wear-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 15px;
}

.wear-list {
    list-style: none;
    padding: 0;
}

.wear-list li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #eee;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wear-list li i {
    color: #4dabf7;
    font-size: 0.9rem;
}

.wear-advice-box {
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 15px;
    text-align: left;
    margin-bottom: 25px;
}

.wear-advice-box h4 {
    color: #ffd700;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.wear-advice-box p {
    color: #ddd;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.retry-wear-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #aaa;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.retry-wear-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: #fff;
}

/* Gender Tabs */
.gender-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gender-btn.active {
    background: rgba(77, 171, 247, 0.15);
    border-color: #4dabf7;
    color: #4dabf7;
    font-weight: 600;
}

/* Hide Scrollbar but allow scrolling */
.modal-content::-webkit-scrollbar,
.glass-panel::-webkit-scrollbar {
    display: none;
}

.modal-content,
.glass-panel {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

@keyframes pulse-badge {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Skill Tab Container - Single Row Layout */
.skill-tab-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    justify-content: center;
    overflow-x: auto;
    padding: 4px 0;
}

.skill-tab {
    flex-shrink: 0;
    padding: 6px 14px;
    font-size: 0.85rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.skill-tab:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--accent-color);
}

.skill-tab.active {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
    font-weight: 600;
}

/* AI Quote Style - Added for Smart UI Layout */
.ai-quote-box {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(0, 255, 136, 0.3);
    /* Accent color border */
    border-radius: 16px;
    padding: 30px 40px;
    /* Generous padding */
    min-height: 100px;
    /* Minimum height ensures consistency */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    /* To clip decorative elements */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ai-quote-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 255, 136, 0.15);
}

/* Decorative Quote Icon */
.ai-quote-box::before {
    content: '\f10d';
    /* FontAwesome quote-left */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 1.8rem;
    color: var(--accent-color);
    opacity: 0.2;
}

.ai-quote-box::after {
    content: '\f10e';
    /* FontAwesome quote-right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    bottom: 15px;
    right: 20px;
    font-size: 1.8rem;
    color: var(--accent-color);
    opacity: 0.2;
}

#summary-text {
    font-size: 1.15rem;
    /* Slight adjustments */
    font-weight: 500;
    line-height: 1.6;
    color: #fff;
    margin: 0;
    word-break: keep-all;
    /* Keep words integral */
    z-index: 1;
    /* Above the quote icon */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 480px) {
    .ai-quote-box {
        padding: 25px 25px;
        min-height: 80px;
    }

    #summary-text {
        font-size: 1rem;
    }

    .ai-quote-box::before,
    .ai-quote-box::after {
        font-size: 1.2rem;
    }
}


/* Skill Evaluation Text Display */
.skill-evaluation-display {
    min-height: 80px;
    /* Ensures space for 2-3 lines */
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
    /* Typography */
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.5;
    color: #fff;
    text-align: center;
    word-break: keep-all;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 480px) {
    .skill-evaluation-display {
        min-height: 70px;
        font-size: 1.1rem;
        padding: 12px 15px;
    }
}


/* Skill Evaluation Text Display (Updated via Python) */
.skill-evaluation-display {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border-radius: 12px;
    padding: 15px 12px;
    /* 패딩 최적화 */
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
    /* Typography */
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.45;
    color: #fff;
    text-align: center;
    word-break: keep-all;
    text-wrap: balance;
    /* 밸런스 속성 적용 */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 480px) {
    .skill-evaluation-display {
        min-height: 70px;
        font-size: 1.05rem;
        /* 모바일에서 글자 크기 축소 */
        padding: 12px 8px;
    }
}

/* --- Premium Comment Box Upgrade --- */
.skill-evaluation-display {
    position: relative;
    min-height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px 30px;
    margin-bottom: 25px;
    border-radius: 20px;

    /* Glass & Gradient Background */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    /* Gradient Border Effect */
    border: 1px solid rgba(0, 255, 136, 0.3);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.4),
        inset 0 0 20px rgba(0, 255, 136, 0.05),
        0 0 15px rgba(0, 255, 136, 0.1);
    /* External Glow */

    /* Typography */
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.5;
    color: #fff;
    text-align: center;
    word-break: keep-all;
    text-wrap: balance;

    /* Text Glow */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-evaluation-display:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 25px rgba(0, 0, 0, 0.5),
        inset 0 0 25px rgba(0, 255, 136, 0.1),
        0 0 20px rgba(0, 255, 136, 0.2);
}

/* Quote Icons Decoration */
.skill-evaluation-display::before {
    content: '\f10d';
    /* FontAwesome Quote Left */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 1.5rem;
    color: var(--accent-color);
    opacity: 0.3;
}

.skill-evaluation-display::after {
    content: '\f10e';
    /* FontAwesome Quote Right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--accent-color);
    opacity: 0.3;
}

/* Gold Button (Ranking) */
.utility-btn.gold {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.utility-btn.gold:hover {
    background: rgba(255, 215, 0, 0.2);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .skill-evaluation-display {
        font-size: 1.1rem;
        padding: 20px 25px;
        min-height: 75px;
    }

    .skill-evaluation-display::before,
    .skill-evaluation-display::after {
        font-size: 1rem;
        opacity: 0.2;
    }
}