/* ====== CSS Variables - Clean White Design ====== */
:root {
    --bg-gradient: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    --bg-dark: #1a1a2e;
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-border: rgba(0, 0, 0, 0.08);
    --primary: #ff6b9d;
    --primary-light: #ff9bc0;
    --primary-dark: #e84a7f;
    --secondary: #c44569;
    --accent-purple: #a855f7;
    --accent-blue: #3b82f6;
    --accent-yellow: #fbbf24;
    --accent-green: #10b981;
    --text-dark: #1a1a1a;
    --text-light: #6b7280;
    --text-white: #ffffff;
    --gradient-pink: linear-gradient(135deg, #fff5f7 0%, #fff 100%);
    --gradient-love: linear-gradient(135deg, #ff6b9d 0%, #ff9bc0 100%);
    --gradient-sunset: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-dream: linear-gradient(135deg, #f0fdf4 0%, #fff 100%);
    --gradient-magic: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 20px rgba(255, 107, 157, 0.15);
    --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* ====== Reset & Base ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: #ffffff;
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ====== Floating Hearts Background ====== */
.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    font-size: 16px;
    animation: floatUp 20s linear infinite;
    opacity: 0.3;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) rotate(720deg);
        opacity: 0;
    }
}

/* ====== Language Dropdown ====== */
.language-dropdown {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 10px 16px;
    cursor: pointer;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.lang-toggle:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.globe-icon {
    font-size: 1.1rem;
}

.arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.lang-toggle.active .arrow {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    min-width: 160px;
    animation: dropDown 0.2s ease;
}

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

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

.lang-option {
    display: block;
    width: 100%;
    padding: 10px 15px;
    border: none;
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-dark);
    text-align: left;
    transition: all 0.2s ease;
}

.lang-option:hover {
    background: var(--gradient-pink);
    transform: translateX(5px);
}

/* ====== Header ====== */
.header {
    text-align: center;
    padding: 80px 20px 30px;
    position: relative;
    z-index: 1;
}

.logo {
    margin-bottom: 15px;
}

.logo-hearts {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.logo-hearts .heart {
    font-size: 2rem;
    animation: bounce 2s ease-in-out infinite;
}

.logo-hearts .h1 { animation-delay: 0s; }
.logo-hearts .h2 { animation-delay: 0.2s; }
.logo-hearts .h3 { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 1px;
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-light);
    font-style: italic;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* ====== Navigation ====== */
.nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f5;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text-dark);
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background: #ebebeb;
    border-color: rgba(0, 0, 0, 0.1);
}

.nav-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.nav-icon {
    font-size: 1.2rem;
}

/* ====== Main Content ====== */
.main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.section.active {
    display: block;
}

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

/* ====== Section Backgrounds - Clean White ====== */
#name, #dateRec, #mbti, #daily, #about {
    background: #ffffff;
    border-radius: 24px;
    padding: 35px 25px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    position: relative;
}

#name::before, #dateRec::before, #mbti::before, #daily::before, #about::before {
    display: none;
}

/* Section hover effects - subtle */
#name:hover, #dateRec:hover, #mbti:hover, #daily:hover, #about:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

/* ====== Section Header ====== */
.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    font-style: italic;
}

/* ====== Glass Card - Clean ====== */
.glass-card {
    background: #fafafa;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.glass-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* ====== Form Styles ====== */
.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.input-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.heart-connector {
    font-size: 1.8rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.form-group {
    flex: 1;
}

.form-group.centered {
    max-width: 300px;
    margin: 0 auto 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.input-wrapper {
    position: relative;
}

.input-wrapper .input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

.cute-input {
    width: 100%;
    padding: 14px 14px 14px 45px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.cute-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.cute-input::placeholder {
    color: #aaa;
}

.input-wrapper.large .cute-input {
    padding: 18px 18px 18px 50px;
    font-size: 1.1rem;
}

.cute-select {
    width: 100%;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ff6b9d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.cute-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

/* ====== Buttons ====== */
.cute-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding: 16px 30px;
    border: none;
    border-radius: 30px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.primary-btn {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.primary-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

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

.btn-icon {
    font-size: 1.2rem;
}

/* ====== Daily Fortune Intro ====== */
.daily-intro {
    text-align: center;
    margin-bottom: 25px;
}

.crystal-ball {
    font-size: 4rem;
    animation: wobble 3s ease-in-out infinite;
}

@keyframes wobble {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.daily-intro p {
    color: var(--text-light);
    margin-top: 15px;
    font-size: 1rem;
}

/* ====== Result Card ====== */
.result-card {
    margin-top: 30px;
    animation: slideUp 0.6s ease;
}

.result-card.hidden {
    display: none;
}

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

/* ====== Story Card - Clean ====== */
.story-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.story-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
}

.story-header {
    margin-bottom: 25px;
}

.story-names {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.story-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ====== Score Display ====== */
.score-container {
    position: relative;
    margin: 30px auto;
    width: 180px;
    height: 180px;
}

.score-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.score-ring::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 8px;
    background: var(--gradient-love);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.score-inner {
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    border-radius: 50%;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-number {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--gradient-love);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.score-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 5px;
}

/* ====== Heart Effects ====== */
.heart-effect {
    font-size: 2rem;
    margin: 15px 0;
}

.fire-hearts {
    animation: fireGlow 0.5s ease-in-out infinite alternate;
}

@keyframes fireGlow {
    from { filter: drop-shadow(0 0 10px #ff4500); }
    to { filter: drop-shadow(0 0 20px #ff6b00); }
}

.broken-hearts {
    animation: shake 0.5s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.sparkling-hearts {
    animation: sparkle 1s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.1); filter: brightness(1.3); }
}

/* ====== Story Content ====== */
.story-verdict {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--primary-dark);
    margin: 20px 0 15px;
}

.story-message {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding: 0 10px;
}

.story-advice {
    background: var(--gradient-dream);
    border-radius: 20px;
    padding: 20px;
    margin: 20px 0;
}

.advice-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 1rem;
}

.advice-text {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
}

/* ====== Share Button ====== */
.share-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px dashed var(--primary-light);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-magic);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* ====== Calculation Animation ====== */
.calculation-animation {
    text-align: center;
    padding: 30px 20px;
    background: var(--card-bg);
    border-radius: 30px;
    border: 2px solid var(--card-border);
}

.calc-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 25px;
}

.calc-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    padding: 10px;
}

.calc-step-row {
    display: flex;
    justify-content: center;
    gap: 6px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
}

.calc-step-row.visible {
    opacity: 1;
    transform: translateY(0);
}

.calc-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 8px;
    background: white;
    border: 2px solid var(--primary-light);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.calc-cell:hover {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.calc-char {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.calc-stroke {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
}

.calc-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--primary-dark);
    font-weight: 700;
}

/* ====== Footer ====== */
.footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-content {
    max-width: 500px;
    margin: 0 auto;
}

.footer-tagline {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.footer-disclaimer {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.copyright {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ====== Responsive ====== */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2.2rem;
    }

    .tagline {
        font-size: 0.95rem;
    }

    .nav {
        gap: 8px;
    }

    .nav-btn {
        padding: 10px 15px;
        font-size: 0.8rem;
    }

    .nav-btn span:last-child {
        display: none;
    }

    .nav-icon {
        font-size: 1.4rem;
    }

    .input-row {
        flex-direction: column;
    }

    .heart-connector {
        transform: rotate(90deg);
    }

    .glass-card {
        padding: 25px 20px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .score-container {
        width: 150px;
        height: 150px;
    }

    .score-number {
        font-size: 2.8rem;
    }

    .story-verdict {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }

    .language-dropdown {
        top: 15px;
        right: 15px;
    }

    .lang-toggle {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .calc-cell {
        min-width: 32px;
        padding: 6px;
    }

    .calc-char {
        font-size: 0.9rem;
    }

    .calc-stroke, .calc-number {
        font-size: 0.8rem;
    }

    .story-card {
        padding: 30px 20px;
    }
}

/* ====== Toast Notification ====== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-magic);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: var(--shadow-card);
    z-index: 2000;
    animation: toastIn 0.5s ease;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ====== Confetti ====== */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--primary);
    animation: confettiFall 3s ease-out forwards;
    z-index: 1000;
    pointer-events: none;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ====== Trust Badges ====== */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f8f8;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.badge-icon {
    font-size: 1.1rem;
}

/* ====== About Section ====== */
.about-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.about-card {
    text-align: center;
    padding: 25px 20px;
    transition: all 0.2s ease;
}

.about-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.about-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.about-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.about-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.feature-list {
    list-style: none;
    text-align: left;
    padding: 0;
}

.feature-list li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-dark);
    border-bottom: 1px solid rgba(255, 107, 157, 0.2);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* ====== Collapsible Calculation ====== */
.calc-toggle-section {
    margin-top: 20px;
}

.calc-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: rgba(255, 107, 157, 0.1);
    border: 2px dashed var(--primary-light);
    border-radius: 15px;
    cursor: pointer;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-dark);
    transition: all 0.3s ease;
}

.calc-toggle-btn:hover {
    background: rgba(255, 107, 157, 0.2);
    border-color: var(--primary);
}

.calc-toggle-btn .toggle-arrow {
    transition: transform 0.3s ease;
}

.calc-toggle-btn.open .toggle-arrow {
    transform: rotate(180deg);
}

.calc-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
}

.calc-detail.open {
    max-height: 2000px;
    padding-top: 20px;
}

.calc-detail-inner {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 20px;
    border: 2px solid var(--card-border);
}

/* ====== Past Life Card ====== */
.past-life-card {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.1) 0%, rgba(210, 180, 140, 0.2) 100%);
    border: 2px solid rgba(139, 69, 19, 0.3);
    border-radius: 20px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.past-life-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.past-life-icon {
    font-size: 1.5rem;
}

.past-life-label {
    font-weight: 700;
    color: #8B4513;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.past-life-relation {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #5D3A1A;
    margin-bottom: 8px;
    font-style: italic;
}

.past-life-detail {
    font-size: 0.9rem;
    color: #8B6914;
    line-height: 1.5;
}

/* ====== Solution Card ====== */
.solution-card {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 152, 0, 0.15) 100%);
    border: 2px dashed #FFA500;
    border-radius: 20px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.solution-card h4 {
    font-size: 1.1rem;
    color: #E65100;
    margin-bottom: 15px;
}

.solution-item {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 15px;
}

.solution-title {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    color: #E65100;
    margin-bottom: 8px;
}

.solution-desc {
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.5;
}

/* ====== Date Planner CTA ====== */
.date-planner-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary);
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    margin: 20px 0;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.25);
}

.date-planner-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.35);
}

.cta-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.date-planner-cta:hover .cta-arrow {
    transform: translateX(5px);
}

/* ====== Menu Recommendation Card ====== */
.menu-rec-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    padding: 20px;
    margin: 20px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
}

.menu-item:first-child {
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.menu-icon {
    font-size: 2rem;
    min-width: 50px;
    text-align: center;
}

.menu-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-label {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* ====== Date Rec Intro ====== */
.date-rec-intro {
    text-align: center;
    margin-bottom: 25px;
}

.date-rec-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: pulse 2s ease-in-out infinite;
}

.date-rec-intro p {
    color: var(--text-dark);
    margin-bottom: 10px;
}

.date-rec-hint {
    font-size: 0.85rem !important;
    color: var(--primary) !important;
    background: rgba(255, 107, 157, 0.1);
    padding: 10px 15px;
    border-radius: 15px;
    display: inline-block;
}

/* ====== Score Input ====== */
.score-input-wrapper {
    position: relative;
}

.score-suffix {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.score-input-wrapper .cute-input {
    padding-right: 45px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
}

/* ====== Date Result Card ====== */
.date-result-card .past-life-card {
    margin-top: 25px;
}

/* ====== Daily Fortune Styles (네이버 스타일) ====== */
.fortune-card {
    text-align: left;
}

.fortune-card .story-header {
    text-align: center;
    margin-bottom: 20px;
}

.fortune-card .heart-effect {
    text-align: center;
    margin-bottom: 25px;
}

.fortune-section {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary);
}

.fortune-section.love-section {
    border-left-color: #e91e63;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.05) 0%, rgba(255, 255, 255, 0.7) 100%);
}

.fortune-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fortune-section-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-dark);
    text-align: justify;
    word-break: keep-all;
}

.fortune-tip {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 15px;
}

.fortune-tip-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #059669;
    margin-bottom: 10px;
}

.fortune-tip-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #065f46;
}

.fortune-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 20px;
}

.fortune-warning-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #d97706;
    margin-bottom: 10px;
}

.fortune-warning-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #92400e;
}

.fortune-lucky-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.lucky-item {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    border-radius: 16px;
    padding: 15px 10px;
    text-align: center;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.lucky-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 8px;
    white-space: nowrap;
}

.lucky-value {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-dark);
}

.lucky-value.lucky-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--accent-purple);
}

@media (max-width: 480px) {
    .fortune-lucky-grid {
        grid-template-columns: 1fr;
    }

    .lucky-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
    }

    .lucky-label {
        margin-bottom: 0;
    }
}

/* ====== MBTI Keyword Badge ====== */
.mbti-keyword {
    margin: 15px 0;
}

.keyword-badge {
    display: inline-block;
    background: var(--gradient-sunset);
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 5px 20px rgba(250, 112, 154, 0.4);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ====== MBTI Traits Comparison ====== */
.mbti-traits {
    margin: 25px 0;
    padding: 20px;
    background: rgba(168, 85, 247, 0.08);
    border-radius: 20px;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.trait-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.trait-item {
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.trait-label {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.trait-desc {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
}

.trait-vs {
    font-weight: 700;
    color: var(--accent-purple);
    font-size: 1.2rem;
    padding: 8px 15px;
    background: rgba(168, 85, 247, 0.15);
    border-radius: 50%;
}

/* ====== Calculation Toggle ====== */
.calc-toggle-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: rgba(255, 107, 157, 0.08);
    border-radius: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 107, 157, 0.2);
}

.calc-toggle-header:hover {
    background: rgba(255, 107, 157, 0.15);
    border-color: rgba(255, 107, 157, 0.3);
}

.calc-toggle-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--primary-dark);
}

.calc-toggle-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: var(--primary);
}

.calc-toggle-header.open .calc-toggle-arrow {
    transform: rotate(180deg);
}

.calc-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.calc-content.open {
    max-height: 2000px;
}

.calc-content-inner {
    padding: 20px;
    background: var(--card-bg);
    border-radius: 20px;
    border: 2px solid var(--card-border);
}

/* ====== Policy Content Styling ====== */
.policy-content {
    padding: 40px;
    line-height: 1.8;
}

.policy-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin: 25px 0 12px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.policy-content h3:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.policy-content p {
    margin-bottom: 12px;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.policy-content ul {
    margin: 12px 0;
    padding-left: 25px;
}

.policy-content li {
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* ====== Footer Links ====== */
.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.footer-links span {
    color: #ccc;
}

.footer-contact {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 10px 0;
}

/* ====== Enhanced About Card ====== */
.about-card strong {
    color: var(--primary-dark);
}

.about-card p + p {
    margin-top: 10px;
}

@media (max-width: 768px) {
    .trust-badges {
        gap: 10px;
    }

    .badge {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .trait-comparison {
        flex-direction: column;
        gap: 15px;
    }

    .trait-vs {
        margin: 10px 0;
    }

    .policy-content {
        padding: 25px 20px;
    }

    .footer-links {
        gap: 8px;
    }
}

/* ====== Result Share Card (Combined Temperature + SNS) ====== */
.result-share-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.temp-header {
    margin-bottom: 25px;
}

.temp-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 1px;
}

.temp-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.temp-gauge-mini {
    display: flex;
    align-items: flex-end;
}

.temp-thermometer {
    position: relative;
    width: 35px;
    height: 140px;
    background: #f0f0f0;
    border-radius: 18px 18px 22px 22px;
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}

.temp-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 12px 12px 18px 18px;
    transition: height 1s ease-out;
}

.temp-bulb {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.temp-info {
    text-align: center;
}

.temp-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.temp-emoji {
    font-size: 2.2rem;
    animation: pulse 1.5s ease-in-out infinite;
}

.temp-number {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
}

.temp-level {
    display: inline-block;
    padding: 8px 24px;
    border-radius: 30px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 12px;
}

.temp-names {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
    transition: all 0.3s ease;
}

.temp-names.names-hidden {
    color: var(--text-light);
    font-style: italic;
}

/* ====== Hide Names Toggle ====== */
.hide-names-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 12px;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--primary);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.toggle-label {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* ====== SNS Share Section Compact ====== */
.sns-share-compact {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.sns-share-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.sns-share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sns-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: white;
}

.sns-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.sns-btn:active {
    transform: translateY(-1px);
}

.sns-twitter {
    background: #000000;
}

.sns-facebook {
    background: #1877f2;
}

.sns-threads {
    background: linear-gradient(45deg, #000000, #333333);
}

.sns-reddit {
    background: #ff4500;
}

.sns-line {
    background: #00b900;
}

.sns-copy {
    background: #6c757d;
}

.sns-btn svg {
    width: 22px;
    height: 22px;
}

/* ====== Mobile Responsive for Temperature ====== */
@media (max-width: 480px) {
    .temp-body {
        flex-direction: column;
        gap: 25px;
    }

    .temp-gauge {
        height: 150px;
    }

    .temp-thermometer {
        height: 130px;
    }

    .temp-scale {
        height: 130px;
        font-size: 0.7rem;
    }

    .temp-number {
        font-size: 3rem;
    }

    .temp-emoji {
        font-size: 2rem;
    }

    .sns-btn {
        width: 44px;
        height: 44px;
    }

    .sns-btn svg {
        width: 20px;
        height: 20px;
    }
}
