/* Valentine Compatibility Test - DopaBrain */
* {
    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;
}

:root {
    --pink: #ff4b91;
    --pink-dark: #d63384;
    --pink-light: #ff6ba8;
    --red: #ff2d55;
    --bg: #1a0011;
    --bg2: #2d0024;
    --card: rgba(255, 75, 145, 0.08);
    --border: rgba(255, 75, 145, 0.15);
    --text: #fff;
    --text-sub: rgba(255, 255, 255, 0.6);
    --radius: 20px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans KR', sans-serif;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg2) 50%, #0d001a 100%);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* App Loader */
.app-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    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(--pink);
    border-radius: 50%;
    animation: loader-spin 0.8s linear infinite;
}
.loader-text {
    font-size: 14px;
    color: var(--text-sub);
    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); }
}

/* Floating Hearts */
.floating-hearts { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.float-heart {
    position: absolute;
    bottom: -50px;
    animation: floatUp linear infinite;
}
@keyframes floatUp {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.15; }
    100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}

/* App Container */
.app-container {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 0 16px;
}

/* Screens */
.screen { display: none; flex-direction: column; align-items: center; padding: 20px 0; min-height: 100vh; }
.screen.active { display: flex; }
.screen.hidden { display: none; }

/* Ad Banners */
.ad-banner { width: 100%; padding: 12px; text-align: center; margin: 8px 0; }
.ad-placeholder { color: rgba(255,255,255,0.2); font-size: 12px; }
.ad-top { margin-top: 0; }
.ad-bottom { margin-bottom: 0; }

/* === INTRO === */
.intro-content { text-align: center; flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px; padding: 20px 0; }
.intro-icon { font-size: 72px; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }

.intro-content h1 { font-size: 36px; font-weight: 800; line-height: 1.3; background: linear-gradient(135deg, var(--pink), var(--red)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.intro-sub { font-size: 18px; color: var(--text-sub); }
.intro-desc { font-size: 15px; color: var(--text-sub); line-height: 1.6; }
.intro-meta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; font-size: 13px; color: rgba(255,255,255,0.5); }
.intro-badges { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 12px 0 8px; }
.intro-badge { padding: 6px 14px; background: rgba(255, 75, 145, 0.15); border-radius: 20px; font-size: 12px; color: var(--pink-light); font-weight: 500; }
.intro-count { font-size: 12px; color: rgba(255,255,255,0.4); }

.btn-start {
    padding: 16px 48px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--red));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(255, 45, 85, 0.4);
    margin-top: 8px;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-start:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(255, 45, 85, 0.5); }
.btn-start:active { transform: scale(0.97); }

/* === INPUT === */
.input-screen { justify-content: center; }
.input-card {
    width: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    text-align: center;
}
.input-step-badge {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(255, 75, 145, 0.2);
    border-radius: 20px;
    font-size: 13px;
    color: var(--pink-light);
    margin-bottom: 16px;
}
.input-card h2 { font-size: 22px; margin-bottom: 24px; }
.input-fields { display: flex; flex-direction: column; gap: 16px; }
.input-group { text-align: left; }
.input-group label { display: block; font-size: 13px; color: var(--text-sub); margin-bottom: 6px; }
.input-group input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}
.input-group input:focus { border-color: var(--pink); }
.input-group input::placeholder { color: rgba(255,255,255,0.3); }
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.btn-next {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--red));
    border: none;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-next:hover { transform: translateY(-1px); }

.shake { animation: shake 0.4s ease; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* === QUESTION === */
.progress-area { width: 100%; display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.progress-bar { flex: 1; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--pink), var(--red)); border-radius: 3px; transition: width 0.4s ease; width: 0; }
.progress-text { font-size: 13px; color: var(--text-sub); white-space: nowrap; }

.q-who-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 75, 145, 0.15);
    border: 1px solid rgba(255, 75, 145, 0.2);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.question-card {
    width: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.q-text { font-size: 18px; font-weight: 600; text-align: center; margin-bottom: 24px; line-height: 1.5; }
.q-options { display: flex; flex-direction: column; gap: 10px; }
.q-option {
    width: 100%;
    padding: 16px 18px;
    font-size: 15px;
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 48px;
    display: flex;
    align-items: center;
}
.q-option:hover { background: rgba(255, 75, 145, 0.15); border-color: var(--pink); }
.q-option.selected { background: rgba(255, 75, 145, 0.25); border-color: var(--pink); }
.q-option:disabled { pointer-events: none; }

/* === LOADING === */
.loading-screen { justify-content: center; }
.loading-content { text-align: center; }
.loading-heart { font-size: 64px; animation: pulse 1.2s ease-in-out infinite; }
.loading-text { font-size: 16px; color: var(--text-sub); margin: 20px 0; }
.loading-bar { width: 200px; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; margin: 0 auto; overflow: hidden; }
.loading-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--pink), var(--red)); border-radius: 3px; transition: width 0.3s; }

/* === RESULT === */
.result-screen { padding-bottom: 40px; }
.result-card {
    width: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    text-align: center;
}

.result-names { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.name-tag { padding: 6px 16px; background: rgba(255, 75, 145, 0.2); border-radius: 20px; font-size: 16px; font-weight: 600; }
.heart-between { font-size: 20px; animation: pulse 1.5s ease-in-out infinite; }

.result-heart-area { display: flex; flex-direction: column; align-items: center; margin-bottom: 20px; }

.heart-meter {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.heart-bg { font-size: 100px; color: rgba(255, 75, 145, 0.15); }
.heart-fill-wrap {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    height: 100px;
    overflow: hidden;
    border-radius: 50%;
}
.heart-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(0deg, var(--red) 0%, var(--pink) 100%);
    transition: height 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.3;
    border-radius: 50%;
}

.result-score { font-size: 56px; font-weight: 800; background: linear-gradient(135deg, var(--pink), var(--red)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-top: 8px; }
.result-emoji { font-size: 48px; margin: 12px 0 8px; }
.result-title { font-size: 26px; font-weight: 800; margin-bottom: 12px; }
.result-desc { font-size: 14px; color: var(--text-sub); line-height: 1.7; padding: 0 8px; }

/* Details */
.result-details { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); text-align: left; }
.result-details h3 { font-size: 16px; text-align: center; margin-bottom: 16px; }
.detail-item { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.detail-label { font-size: 13px; color: var(--text-sub); min-width: 90px; white-space: nowrap; }
.detail-bar-wrap { flex: 1; height: 8px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; }
.detail-bar { height: 100%; background: linear-gradient(90deg, var(--pink), var(--red)); border-radius: 4px; width: 0; transition: width 1s ease 0.5s; }
.detail-score { font-size: 14px; font-weight: 700; min-width: 40px; text-align: right; color: var(--pink-light); }
.zodiac-info { text-align: center; font-size: 13px; color: var(--text-sub); margin-top: 12px; }

/* Love Types */
.love-types { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.love-types h3 { font-size: 16px; text-align: center; margin-bottom: 16px; }
.love-type-row { display: flex; align-items: center; justify-content: center; gap: 12px; }
.love-type-card {
    flex: 1;
    max-width: 140px;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    text-align: center;
}
.lt-emoji { font-size: 32px; margin-bottom: 4px; }
.lt-name { font-size: 14px; font-weight: 600; }
.lt-type { font-size: 12px; color: var(--pink-light); margin-top: 2px; }
.love-type-vs { font-size: 20px; color: var(--text-sub); }
.love-style { font-size: 13px; color: var(--text-sub); text-align: center; margin-top: 12px; font-style: italic; }

/* Tips */
.result-tips { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.result-tips h3 { font-size: 16px; text-align: center; margin-bottom: 12px; }
.result-tips ul { list-style: none; padding: 0; }
.result-tips li { padding: 8px 0; font-size: 14px; color: var(--text-sub); border-bottom: 1px solid rgba(255,255,255,0.05); }
.result-tips li::before { content: '💝 '; }

/* Premium */
.btn-premium {
    width: 100%;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(255,165,0,0.1));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    color: #ffd700;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.3s;
    min-height: 48px;
    justify-content: center;
}
.btn-premium:hover { background: linear-gradient(135deg, rgba(255,215,0,0.25), rgba(255,165,0,0.15)); transform: translateY(-1px); }
.premium-icon { font-size: 20px; }
.premium-badge { margin-left: auto; padding: 3px 10px; background: rgba(255,215,0,0.2); border-radius: 10px; font-size: 11px; }

.premium-result { margin-top: 16px; }
.premium-card {
    background: rgba(255,215,0,0.05);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: var(--radius);
    padding: 24px 20px;
}
.premium-card h3 { font-size: 18px; margin-bottom: 16px; text-align: center; color: #ffd700; }
.premium-section { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.premium-section:last-child { margin-bottom: 0; border-bottom: none; }
.premium-section h4 { font-size: 15px; margin-bottom: 8px; color: #ffd700; }
.premium-section p { font-size: 14px; color: var(--text-sub); line-height: 1.6; }

/* Actions */
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.result-actions button {
    flex: 1;
    min-width: 100px;
    padding: 14px 8px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.result-actions button:hover { background: rgba(255, 75, 145, 0.15); }

/* Recommendations */
.recommendations-section { margin: 24px 0; }
.rec-title { font-size: 15px; font-weight: 700; color: rgba(255,255,255,0.5); margin-bottom: 12px; text-align: center; letter-spacing: 0.5px; }
.rec-grid { display: flex; flex-direction: column; gap: 10px; }
.rec-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; text-decoration: none; color: #fff; transition: all 0.2s ease; }
.rec-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-1px); }
.rec-icon { font-size: 28px; flex-shrink: 0; }
.rec-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rec-name { font-size: 14px; font-weight: 600; }
.rec-desc { font-size: 12px; color: rgba(255,255,255,0.5); }

/* Ad Overlay */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 100; display: flex; align-items: center; justify-content: center; }
.overlay.hidden { display: none; }
.ad-modal { background: var(--bg2); border-radius: var(--radius); padding: 32px 24px; text-align: center; max-width: 320px; width: 90%; }
.ad-label { font-size: 13px; color: var(--text-sub); }
.ad-placeholder-lg { height: 200px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.05); border-radius: 12px; margin: 16px 0; color: var(--text-sub); font-size: 14px; }
.ad-timer { font-size: 14px; color: var(--text-sub); }
.btn-close-ad { padding: 10px 24px; font-size: 14px; background: var(--pink); border: none; border-radius: 10px; color: #fff; cursor: pointer; margin-top: 12px; }

/* Toast */
.toast {
    position: fixed;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    color: #fff;
    font-size: 14px;
    transition: bottom 0.3s;
    z-index: 200;
}
.toast.show { bottom: 40px; }

/* Responsive */
@media (max-width: 380px) {
    .intro-content h1 { font-size: 30px; }
    .result-score { font-size: 44px; }
    .love-type-card { padding: 12px 8px; }
}

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

.lang-btn {
  background: rgba(220, 38, 38, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(220, 38, 38, 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(220, 38, 38, 0.5);
  transform: scale(1.05);
}

.lang-menu {
  position: absolute;
  top: 52px;
  right: 0;
  background: rgba(20, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(220, 38, 38, 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: #e8c8c8;
  transition: background 0.2s;
}

.lang-option:hover {
  background: rgba(220, 38, 38, 0.2);
}

.lang-option.active {
  background: rgba(220, 38, 38, 0.3);
  font-weight: 600;
}

/* Game Footer & Back Link */
.game-footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

.back-link, .home-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;
    min-height: 44px;
}

.back-link:hover, .home-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 #f472b6;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:#f472b6;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: #e91e63;
    border-radius: 5px;
    border: 2px solid var(--bg-dark, var(--bg-primary, var(--background, #0f0f23)));
}

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

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

::-moz-selection {
    background: #e91e63;
    color: white;
}

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

/* ===================== LIGHT MODE ===================== */
[data-theme="light"] {
    --pink: #ff4b91;
    --pink-dark: #d63384;
    --pink-light: #ff6ba8;
    --red: #ff2d55;
    --bg: #f5f5fa;
    --bg2: #ffffff;
    --card: rgba(255, 255, 255, 0.9);
    --border: rgba(0, 0, 0, 0.08);
    --text: #1a1a2e;
    --text-sub: #4a4a6e;
    --radius: 20px;
}

[data-theme="light"] body {
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg2) 50%, #f0f0f5 100%);
    color: var(--text);
}

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

[data-theme="light"] .lang-btn {
    background: rgba(255, 75, 145, 0.15);
    border-color: rgba(255, 75, 145, 0.25);
    color: var(--pink);
}

[data-theme="light"] .lang-btn:hover {
    background: rgba(255, 75, 145, 0.25);
}

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

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

[data-theme="light"] .lang-option:hover {
    background: rgba(255, 75, 145, 0.1);
}

[data-theme="light"] .lang-option.active {
    background: rgba(255, 75, 145, 0.15);
    color: var(--pink);
}

[data-theme="light"] .intro-sub,
[data-theme="light"] .intro-desc,
[data-theme="light"] .intro-meta,
[data-theme="light"] .intro-count {
    color: var(--text-sub);
}

[data-theme="light"] .intro-badge {
    background: rgba(255, 75, 145, 0.12);
    color: var(--pink);
}

[data-theme="light"] .ad-placeholder {
    color: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .input-card {
    background: var(--card);
    border-color: var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .input-step-badge {
    background: rgba(255, 75, 145, 0.15);
    color: var(--pink);
}

[data-theme="light"] .input-group label {
    color: var(--text-sub);
}

[data-theme="light"] .input-group input {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--text);
}

[data-theme="light"] .input-group input:focus {
    border-color: var(--pink);
}

[data-theme="light"] .input-group input::placeholder {
    color: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .progress-bar {
    background: rgba(0, 0, 0, 0.06);
}

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

[data-theme="light"] .q-who-badge {
    background: rgba(255, 75, 145, 0.12);
    border-color: rgba(255, 75, 145, 0.2);
    color: var(--pink);
}

[data-theme="light"] .question-card {
    background: var(--card);
    border-color: var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

[data-theme="light"] .q-option {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text);
}

[data-theme="light"] .q-option:hover {
    background: rgba(255, 75, 145, 0.12);
    border-color: var(--pink);
}

[data-theme="light"] .q-option.selected {
    background: rgba(255, 75, 145, 0.2);
    border-color: var(--pink);
}

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

[data-theme="light"] .loading-bar {
    background: rgba(0, 0, 0, 0.06);
}

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

[data-theme="light"] .name-tag {
    background: rgba(255, 75, 145, 0.15);
    color: var(--pink);
}

[data-theme="light"] .heart-bg {
    color: rgba(255, 75, 145, 0.2);
}

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

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

[data-theme="light"] .result-details {
    border-top-color: var(--border);
}

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

[data-theme="light"] .detail-bar-wrap {
    background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .detail-score {
    color: var(--pink-light);
}

[data-theme="light"] .zodiac-info {
    color: var(--text-sub);
}

[data-theme="light"] .love-types {
    border-top-color: var(--border);
}

[data-theme="light"] .love-type-card {
    background: rgba(255, 255, 255, 0.9);
}

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

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

[data-theme="light"] .love-type-vs {
    color: var(--text-sub);
}

[data-theme="light"] .love-style {
    color: var(--text-sub);
}

[data-theme="light"] .result-tips {
    border-top-color: var(--border);
}

[data-theme="light"] .result-tips li {
    color: var(--text-sub);
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .btn-premium {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.15));
    border-color: rgba(255, 215, 0, 0.4);
    color: #d4a017;
}

[data-theme="light"] .btn-premium:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.2));
}

[data-theme="light"] .premium-badge {
    background: rgba(255, 215, 0, 0.3);
}

[data-theme="light"] .premium-card {
    background: rgba(255, 215, 0, 0.08);
    border-color: rgba(255, 215, 0, 0.2);
}

[data-theme="light"] .premium-card h3 {
    color: #d4a017;
}

[data-theme="light"] .premium-section {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .premium-section h4 {
    color: #d4a017;
}

[data-theme="light"] .premium-section p {
    color: var(--text-sub);
}

[data-theme="light"] .result-actions button {
    background: var(--card);
    border-color: var(--border);
    color: var(--text);
}

[data-theme="light"] .result-actions button:hover {
    background: rgba(255, 75, 145, 0.12);
}

[data-theme="light"] .rec-title {
    color: rgba(0, 0, 0, 0.5);
}

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

[data-theme="light"] .rec-card:hover {
    background: rgba(255, 255, 255, 1);
}

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

[data-theme="light"] .rec-desc {
    color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .overlay {
    background: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .ad-modal {
    background: var(--bg2);
}

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

[data-theme="light"] .ad-placeholder-lg {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-sub);
}

[data-theme="light"] .ad-timer {
    color: var(--text-sub);
}

[data-theme="light"] .toast {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

[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);
}

/* 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;
}

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

[data-theme="light"] .theme-toggle {
    background: rgba(255, 75, 145, 0.1);
    border-color: rgba(255, 75, 145, 0.2);
}

[data-theme="light"] .theme-toggle:hover {
    background: rgba(255, 75, 145, 0.2);
}

/* Scrollbar for light mode */
[data-theme="light"] ::-webkit-scrollbar-track {
    background: #f5f5fa;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: rgba(255, 75, 145, 0.3);
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 75, 145, 0.5);
}

[data-theme="light"] * {
    scrollbar-color: rgba(255, 75, 145, 0.3) #f5f5fa;
}

/* Selection color for light mode */
[data-theme="light"] ::selection {
    background: #ff4b91;
    color: white;
}

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