/* MBTI 궁합 & 팁 - 틸/그린 소셜 테마 */
:root {
    --primary: #1abc9c;
    --primary-dark: #16a085;
    --primary-light: #48c9b0;
    --secondary: #3498db;
    --bg-dark: #0d1f1c;
    --bg-card: rgba(26, 188, 156, 0.08);
    --text-primary: #ecf0f1;
    --text-secondary: #95a5a6;
    --analyst: #88619a;
    --diplomat: #33a474;
    --sentinel: #4298b4;
    --explorer: #e4ae3a;
    --glass: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* 터치 최적화 */
button, a, input, [role="button"], [role="link"] {
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

input[type="text"], textarea {
    -webkit-user-select: text;
    user-select: text;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    background-image: 
        radial-gradient(ellipse at 20% 20%, rgba(26, 188, 156, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(52, 152, 219, 0.1) 0%, transparent 50%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* App Loader */
.app-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.app-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.loader-emoji {
    font-size: 48px;
    animation: loader-bounce 1s ease-in-out infinite;
}
.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: loader-spin 0.8s linear infinite;
}
.loader-text {
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: 1px;
    font-weight: 500;
}
@keyframes loader-spin {
    to { transform: rotate(360deg); }
}
@keyframes loader-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 15px;
    min-height: 100vh;
}

/* 광고 배너 */
.ad-banner {
    height: 60px;
    background: var(--glass);
    border: 1px dashed var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.ad-banner::before {
    content: '광고 영역';
}

.bottom-ad {
    margin-top: 15px;
    margin-bottom: 0;
}

/* 헤더 */
.app-header {
    text-align: center;
    padding: 25px 0;
}

.app-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* MBTI 선택 그리드 */
.mbti-selector {
    margin-bottom: 25px;
}

.mbti-selector h2 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-secondary);
    text-align: center;
}

.mbti-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.mbti-btn {
    padding: 15px 8px;
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    background: var(--glass);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.mbti-btn:hover {
    transform: translateY(-3px) scale(0.98);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.mbti-btn:active {
    transform: scale(0.95);
}

.mbti-btn.selected {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(26, 188, 156, 0.5);
}

/* 그룹별 색상 */
.mbti-btn.analyst {
    border-color: var(--analyst);
    background: rgba(136, 97, 154, 0.2);
}
.mbti-btn.analyst:hover, .mbti-btn.analyst.selected {
    background: var(--analyst);
}

.mbti-btn.diplomat {
    border-color: var(--diplomat);
    background: rgba(51, 164, 116, 0.2);
}
.mbti-btn.diplomat:hover, .mbti-btn.diplomat.selected {
    background: var(--diplomat);
}

.mbti-btn.sentinel {
    border-color: var(--sentinel);
    background: rgba(66, 152, 180, 0.2);
}
.mbti-btn.sentinel:hover, .mbti-btn.sentinel.selected {
    background: var(--sentinel);
}

.mbti-btn.explorer {
    border-color: var(--explorer);
    background: rgba(228, 174, 58, 0.2);
}
.mbti-btn.explorer:hover, .mbti-btn.explorer.selected {
    background: var(--explorer);
}

/* 그룹 범례 */
.group-legend {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 결과 섹션 */
.result-section {
    animation: fadeIn 0.5s ease;
}

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

.hidden {
    display: none !important;
}

/* 결과 카드 */
.result-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 15px;
    backdrop-filter: blur(20px);
}

/* 타입 헤더 */
.type-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.type-icon {
    font-size: 3rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass);
    border-radius: 50%;
}

.type-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.type-title {
    color: var(--text-secondary);
    font-size: 1rem;
}

.type-description {
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* 특성 그리드 */
.traits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.trait-item {
    background: var(--glass);
    padding: 12px;
    border-radius: 12px;
    text-align: center;
}

.trait-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.trait-value {
    font-weight: 600;
    color: var(--primary);
}

/* 궁합 카드 */
.compat-card h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.compat-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.compat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-radius: 12px;
    background: var(--glass);
}

.compat-item.best {
    border-left: 4px solid #e91e63;
}

.compat-item.good {
    border-left: 4px solid #f1c40f;
}

.compat-item.bad {
    border-left: 4px solid #95a5a6;
}

.compat-label {
    font-size: 0.9rem;
}

.compat-types {
    font-weight: 700;
    color: var(--primary);
}

/* 팁 카드 */
.tips-card h3 {
    margin-bottom: 15px;
}

.tips-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.tip-tab {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: var(--glass);
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.tip-tab.active {
    background: var(--primary);
    color: white;
}

.tips-content ul {
    list-style: none;
}

.tips-content li {
    padding: 10px 0;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.tips-content li:last-child {
    border-bottom: none;
}

.tips-content li::before {
    content: '✓ ';
    color: var(--primary);
}

/* 프리미엄 버튼 */
.premium-section {
    text-align: center;
    margin: 20px 0;
}

.premium-btn {
    padding: 16px 30px;
    min-height: 56px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(135deg, #f39c12, #e74c3c);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(243, 156, 18, 0.4);
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.premium-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.premium-btn:hover {
    transform: scale(0.97) translateY(-2px);
    box-shadow: 0 8px 30px rgba(243, 156, 18, 0.5);
}

.premium-btn:active {
    transform: scale(0.95);
}

.ad-tag {
    background: rgba(0, 0, 0, 0.3);
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 700;
}

/* 프리미엄 결과 */
.premium-result {
    border: 2px solid #f39c12;
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.1), rgba(231, 76, 60, 0.1));
}

.premium-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f39c12, #e74c3c);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 15px;
}

#premium-content {
    white-space: pre-wrap;
    line-height: 1.8;
}

/* 공유 버튼 */
.share-btn {
    width: 100%;
    padding: 16px;
    min-height: 56px;
    border: 2px solid var(--primary);
    border-radius: 12px;
    background: transparent;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.share-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 188, 156, 0.3);
}

.share-btn:active {
    transform: scale(0.97);
}

/* 전면 광고 */
.interstitial-ad {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.ad-content {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 350px;
}

.ad-placeholder {
    width: 280px;
    height: 200px;
    background: var(--glass);
    border: 1px dashed var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    color: var(--text-secondary);
}

#close-ad {
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

#close-ad:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
}

/* 친구 비교 섹션 */
.compare-section {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px 20px;
    margin-bottom: 20px;
}

.compare-section h2 {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 18px;
    color: var(--primary-light);
    font-weight: 600;
}

.compare-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.compare-slot {
    flex: 1;
    text-align: center;
    padding: 15px 10px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.compare-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.compare-type {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.compare-vs {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.compare-select {
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.compare-select:focus {
    outline: none;
    border-color: var(--primary);
}

.compare-select option {
    background: #1a2a25;
    color: var(--text-primary);
}

.compare-result {
    margin-top: 18px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    animation: fadeIn 0.3s ease;
}

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

.compare-match-level {
    text-align: center;
    margin-bottom: 12px;
}

.compare-match-emoji {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 6px;
}

.compare-match-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-light);
}

.compare-match-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: center;
    margin-top: 8px;
}

/* Recommendations Section */
.recommendations-section { margin: 24px 0 0; padding: 0 16px; }
.rec-title { font-size: 15px; font-weight: 700; color: rgba(255,255,255,0.65); margin-bottom: 16px; text-align: center; letter-spacing: 0.5px; }
.rec-grid { display: flex; flex-direction: column; gap: 12px; }
.rec-card { display: flex; align-items: center; gap: 14px; padding: 16px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; text-decoration: none; color: #fff; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); min-height: 60px; }
.rec-card:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(26, 188, 156, 0.2); }
.rec-card:active { transform: scale(0.98); }
.rec-icon { font-size: 32px; flex-shrink: 0; }
.rec-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rec-name { font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.9); }
.rec-desc { font-size: 12px; color: rgba(255,255,255,0.7); }

/* 반응형 */
@media (max-width: 400px) {
    .mbti-grid {
        gap: 8px;
    }

    .mbti-btn {
        padding: 12px 5px;
        font-size: 0.8rem;
    }

    .type-header h2 {
        font-size: 1.6rem;
    }

    .group-legend {
        font-size: 0.7rem;
    }
}

/* 언어 선택기 - Language Selector */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.lang-btn {
    background: rgba(26, 188, 156, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(26, 188, 156, 0.4);
    color: #fff;
    font-size: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn:hover {
    background: rgba(26, 188, 156, 0.5);
    transform: scale(1.05);
}

.lang-menu {
    position: absolute;
    top: 52px;
    right: 0;
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(26, 188, 156, 0.3);
    border-radius: 12px;
    padding: 8px;
    min-width: 150px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.lang-menu.hidden {
    display: none;
}

.lang-option {
    width: 100%;
    padding: 10px 14px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    font-size: 14px;
    color: #c8e8e0;
    transition: background 0.2s;
    font-family: inherit;
}

.lang-option:hover {
    background: rgba(26, 188, 156, 0.2);
}

.lang-option.active {
    background: rgba(26, 188, 156, 0.3);
    font-weight: 600;
}

/* === FOOTER === */
.game-footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 13px;
    padding: 12px 0;
    transition: color 0.2s;
}

.back-link:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* === Accessibility Improvements === */
button:focus-visible,a:focus-visible,input:focus-visible,[role="button"]:focus-visible{outline:3px solid #1abc9c;outline-offset:2px;}
button,a[href],input[type="button"],input[type="submit"],[role="button"]{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;}
.skip-link{position:absolute;top:-40px;left:0;background:#1abc9c;color:white;padding:8px;text-decoration:none;z-index:100;}
.skip-link:focus{top:0;}
[role="dialog"]{z-index:1000;}
@media (prefers-reduced-motion: reduce){*{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important;}}
/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark, var(--bg-primary, var(--background, #0f0f23)));
}

::-webkit-scrollbar-thumb {
    background: #1abc9c;
    border-radius: 5px;
    border: 2px solid var(--bg-dark, var(--bg-primary, var(--background, #0f0f23)));
}

::-webkit-scrollbar-thumb:hover {
    background: #47c9af;
    opacity: 0.8;
}

/* Selection Color */
::selection {
    background: #1abc9c;
    color: white;
}

::-moz-selection {
    background: #1abc9c;
    color: white;
}

@media (prefers-contrast: more){button{border:2px solid #1abc9c;}}
.type-card:focus-visible{outline:3px solid #1abc9c;outline-offset:4px;}

/* === LIGHT MODE === */
[data-theme="light"] {
    --bg-dark: #f5f5fa;
    --bg-card: rgba(255, 255, 255, 0.9);
    --text-primary: #1a1a2e;
    --text-secondary: #5a5a70;
    --glass: rgba(0, 0, 0, 0.04);
    --glass-border: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] body {
    background: var(--bg-dark);
    background-image: 
        radial-gradient(ellipse at 20% 20%, rgba(26, 188, 156, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(52, 152, 219, 0.05) 0%, transparent 50%);
    color: var(--text-primary);
}

[data-theme="light"] .app-loader {
    background: var(--bg-dark);
}

[data-theme="light"] .ad-banner {
    background: var(--glass);
    border-color: var(--glass-border);
    color: var(--text-secondary);
}

[data-theme="light"] .app-header h1 {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .subtitle {
    color: var(--text-secondary);
}

[data-theme="light"] .mbti-selector h2 {
    color: var(--text-secondary);
}

[data-theme="light"] .mbti-btn {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--glass-border);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .mbti-btn:hover {
    background: rgba(26, 188, 156, 0.1);
    box-shadow: 0 4px 16px rgba(26, 188, 156, 0.15);
}

[data-theme="light"] .mbti-btn.selected {
    box-shadow: 0 0 20px rgba(26, 188, 156, 0.3);
}

[data-theme="light"] .mbti-btn.analyst {
    background: rgba(136, 97, 154, 0.08);
}

[data-theme="light"] .mbti-btn.analyst:hover,
[data-theme="light"] .mbti-btn.analyst.selected {
    background: rgba(136, 97, 154, 0.15);
}

[data-theme="light"] .mbti-btn.diplomat {
    background: rgba(51, 164, 116, 0.08);
}

[data-theme="light"] .mbti-btn.diplomat:hover,
[data-theme="light"] .mbti-btn.diplomat.selected {
    background: rgba(51, 164, 116, 0.15);
}

[data-theme="light"] .mbti-btn.sentinel {
    background: rgba(66, 152, 180, 0.08);
}

[data-theme="light"] .mbti-btn.sentinel:hover,
[data-theme="light"] .mbti-btn.sentinel.selected {
    background: rgba(66, 152, 180, 0.15);
}

[data-theme="light"] .mbti-btn.explorer {
    background: rgba(228, 174, 58, 0.08);
}

[data-theme="light"] .mbti-btn.explorer:hover,
[data-theme="light"] .mbti-btn.explorer.selected {
    background: rgba(228, 174, 58, 0.15);
}

[data-theme="light"] .group-legend {
    color: var(--text-secondary);
}

[data-theme="light"] .result-card {
    background: var(--bg-card);
    border-color: var(--glass-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .type-icon {
    background: rgba(26, 188, 156, 0.1);
}

[data-theme="light"] .type-header h2 {
    color: var(--primary);
}

[data-theme="light"] .type-title {
    color: var(--text-secondary);
}

[data-theme="light"] .type-description {
    color: var(--text-primary);
}

[data-theme="light"] .trait-item {
    background: rgba(26, 188, 156, 0.06);
    border: 1px solid rgba(26, 188, 156, 0.1);
}

[data-theme="light"] .trait-label {
    color: var(--text-secondary);
}

[data-theme="light"] .trait-value {
    color: var(--primary);
}

[data-theme="light"] .compat-item {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--glass-border);
}

[data-theme="light"] .compat-label {
    color: var(--text-primary);
}

[data-theme="light"] .tip-tab {
    background: rgba(255, 255, 255, 0.6);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}

[data-theme="light"] .tip-tab.active {
    background: var(--primary);
    color: white;
}

[data-theme="light"] .tips-content li {
    color: var(--text-primary);
    border-bottom-color: var(--glass-border);
}

[data-theme="light"] .share-btn {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .share-btn:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 25px rgba(26, 188, 156, 0.25);
}

[data-theme="light"] .interstitial-ad {
    background: rgba(0, 0, 0, 0.85);
}

[data-theme="light"] .ad-content {
    background: var(--bg-card);
    border-color: var(--glass-border);
}

[data-theme="light"] .ad-placeholder {
    background: var(--glass);
    border-color: var(--glass-border);
    color: var(--text-secondary);
}

[data-theme="light"] .compare-section {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--glass-border);
}

[data-theme="light"] .compare-section h2 {
    color: var(--primary-light);
}

[data-theme="light"] .compare-slot {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--glass-border);
}

[data-theme="light"] .compare-label {
    color: var(--text-secondary);
}

[data-theme="light"] .compare-type {
    color: var(--primary);
}

[data-theme="light"] .compare-vs {
    color: var(--text-secondary);
}

[data-theme="light"] .compare-select {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--glass-border);
    color: var(--text-primary);
}

[data-theme="light"] .compare-select:focus {
    border-color: var(--primary);
}

[data-theme="light"] .compare-select option {
    background: #ffffff;
    color: var(--text-primary);
}

[data-theme="light"] .compare-result {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--glass-border);
}

[data-theme="light"] .compare-match-text {
    color: var(--primary-light);
}

[data-theme="light"] .compare-match-desc {
    color: var(--text-secondary);
}

[data-theme="light"] .rec-title {
    color: var(--text-secondary);
}

[data-theme="light"] .rec-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--glass-border);
    color: var(--text-primary);
}

[data-theme="light"] .rec-card:hover {
    background: rgba(26, 188, 156, 0.1);
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(26, 188, 156, 0.15);
}

[data-theme="light"] .rec-name {
    color: var(--text-primary);
}

[data-theme="light"] .rec-desc {
    color: var(--text-secondary);
}

[data-theme="light"] .back-link {
    color: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .back-link:hover {
    color: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .lang-menu {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(26, 188, 156, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .lang-option {
    color: #2c3e50;
}

[data-theme="light"] .lang-option:hover {
    background: rgba(26, 188, 156, 0.1);
}

[data-theme="light"] .lang-option.active {
    background: rgba(26, 188, 156, 0.15);
}

[data-theme="light"] ::-webkit-scrollbar-track {
    background: #f5f5fa;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: #1abc9c;
    border-color: #f5f5fa;
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: #16a085;
}

[data-theme="light"] ::selection {
    background: #1abc9c;
    color: white;
}

[data-theme="light"] ::-moz-selection {
    background: #1abc9c;
    color: white;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 12px;
    right: 56px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

[data-theme="light"] .theme-toggle {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
}
