@import url('https://fonts.googleapis.com/css2?family=East+Sea+Dokdo&family=Nanum+Brush+Script&family=Song+Myung:wght@400;700&family=Yeon+Sung&display=swap');

:root {
    --bg-main: #120D0A; /* Dark aged ink & charred Hanji paper background */
    --bg-secondary: #1E1611; /* Deep hanji parchment tone */
    --accent-gold: #D4A359; /* Antique Joseon Gold */
    --accent-gold-light: #F0C987; /* Light Aged Gold */
    --accent-red: #FF2E43; /* Eerie Joseon Vermilion Ink Red */
    --text-main: #F5EBE1; /* Aged Hanji Paper White/Ivory */
    --text-dim: #C2B3A3; /* Muted Hanji Ink Text */
    --lock-bg: rgba(18, 13, 10, 0.92);
    --font-heading: 'Gungsuh', 'GungsuhChe', '궁서', 'Batang', 'Noto Serif KR', serif;
    --font-body: 'Gungsuh', '궁서', 'Pretendard', sans-serif;
}

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

body {
    background-color: #000000;
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

#app-container {
    width: 100%;
    max-width: 480px; /* Mobile first, center on desktop */
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    background: #120D0A url('./assets/hanji_bg.webp') repeat;
    background-size: 512px 512px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.95), 0 0 20px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.funnel-step {
    flex: 1;
    display: none;
    flex-direction: column;
    animation: fadeIn 0.4s ease-out forwards;
    position: relative;
}

.funnel-step.active {
    display: flex;
    z-index: 10;
}

.content-wrapper {
    flex: 1;
    padding: 24px;
    position: relative;
    z-index: 2;
}

.scrollable {
    /* Native body scrolling enabled */
}

.scrollable::-webkit-scrollbar {
    display: none;
}

.pb-padding {
    padding-bottom: 100px; /* Space for sticky bottom */
}

.centered {
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes flicker {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.03); }
}

/* Typography */
h1, h2, h3, .pre-title, .ch-label {
    font-family: var(--font-heading);
}

.gold-text {
    color: var(--accent-gold-light);
}

/* Landing Step */
.header-area {
    text-align: center;
    margin-top: 40px;
}

.pre-title {
    color: var(--accent-gold);
    font-size: clamp(12px, 3.5vw, 14px);
    letter-spacing: 2px;
    margin-bottom: 8px;
    white-space: nowrap;
    word-break: keep-all;
}

.main-title {
    font-size: clamp(22px, 6.5vw, 36px);
    font-weight: 700;
    text-shadow: 0 0 20px rgba(218, 165, 32, 0.4);
    white-space: nowrap;
    word-break: keep-all;
}

.hero-image-container {
    position: relative;
    height: 300px;
    margin: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.goblin-img {
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--accent-gold);
    box-shadow: 0 0 30px rgba(218, 165, 32, 0.6), inset 0 0 20px rgba(218, 165, 32, 0.3);
    background: var(--bg-main);
}

.floating-anim {
    animation: float 4s ease-in-out infinite;
}

.floating-item {
    position: absolute;
    width: 60px;
    filter: drop-shadow(0 0 15px rgba(218, 165, 32, 0.4));
    animation: float-rotate 6s ease-in-out infinite;
    border: 2px solid var(--accent-gold);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.8);
}

.item-anim-1 { top: 20%; left: 10%; animation-delay: 0s; }
.item-anim-2 { bottom: 20%; right: 5%; width: 50px; animation-delay: 1.5s; }
.item-anim-3 { bottom: 10%; left: 15%; width: 55px; animation-delay: 3s; }

@keyframes float-rotate {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.loading-images-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
}

.loading-item {
    position: absolute;
    width: 80px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    animation: cycleLoading 3s infinite;
    border: 2px solid var(--accent-gold);
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(218, 165, 32, 0.8);
}

.load-anim-1 { animation-delay: 0s; }
.load-anim-2 { animation-delay: 1s; }
.load-anim-3 { animation-delay: 2s; }

@keyframes cycleLoading {
    0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8) rotate(-10deg); }
    10%, 23% { opacity: 1; transform: translate(-50%, -50%) scale(1.1) rotate(0deg); }
    33% { opacity: 0; transform: translate(-50%, -50%) scale(0.8) rotate(10deg); }
}

.copy-area {
    text-align: center;
    margin-bottom: 40px;
}

.sub-headline {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--accent-gold-light);
    line-height: 1.4;
}

.desc {
    color: var(--text-dim);
    font-size: 15px;
}

/* Buttons */
.action-area {
    margin-top: auto;
    padding-bottom: 24px;
}

.fixed-bottom-btn-container {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    padding: 16px 24px 24px 24px;
    background: transparent !important;
    z-index: 100;
    pointer-events: none;
}

.fixed-bottom-btn-container > * {
    pointer-events: auto;
}

button {
    border: none;
    outline: none;
    font-family: var(--font-body);
    cursor: pointer;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
}

.btn-primary {
    background: linear-gradient(145deg, #DAA520 0%, #B8860B 50%, #7A5807 100%) !important;
    color: #FFF8EE !important;
    padding: 18px 24px;
    font-family: var(--font-heading);
    font-size: 18px !important;
    font-weight: 900 !important;
    letter-spacing: -0.3px;
    border: 1.5px solid #FFE485 !important;
    border-radius: 16px !important;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.85),
        0 4px 0 #4D3704,
        0 0 25px rgba(218, 165, 32, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
    text-shadow: 
        0 1px 0 #4D3704,
        0 2px 4px rgba(0, 0, 0, 0.95),
        0 0 10px rgba(0, 0, 0, 0.8) !important;
    transform: perspective(600px) rotateX(2deg);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    cursor: pointer;
}

.btn-primary:hover {
    transform: perspective(600px) rotateX(0deg) translateY(-2deg) !important;
    box-shadow: 
        0 14px 32px rgba(0, 0, 0, 0.95),
        0 5px 0 #4D3704,
        0 0 35px rgba(255, 215, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
    background: linear-gradient(145deg, #E8B832 0%, #C9961A 50%, #8C650A 100%) !important;
}

.btn-primary:active {
    transform: perspective(600px) translateY(3deg) scale(0.98) !important;
    box-shadow: 
        0 4px 14px rgba(0, 0, 0, 0.8),
        0 1px 0 #4D3704,
        0 0 15px rgba(218, 165, 32, 0.3) !important;
}

.btn-primary.gold-glow {
    opacity: 1 !important;
    box-shadow: 
        0 10px 28px rgba(0, 0, 0, 0.9),
        0 4px 0 #4D3704,
        0 0 30px rgba(255, 215, 0, 0.75),
        inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    animation: goldGlowFlicker 2.5s infinite ease-in-out;
}

@keyframes goldGlowFlicker {
    0%, 100% {
        box-shadow: 
            0 10px 28px rgba(0, 0, 0, 0.9),
            0 4px 0 #4D3704,
            0 0 25px rgba(255, 215, 0, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.35);
    }
    50% {
        box-shadow: 
            0 12px 35px rgba(0, 0, 0, 0.95),
            0 5px 0 #4D3704,
            0 0 45px rgba(255, 220, 50, 0.9),
            inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-dim);
    padding: 16px 24px;
    margin-bottom: 12px;
}

/* Form Styles */
.form-layout {
    height: 100%;
}

.step-content-area {
    flex: 1;
    padding: 24px 20px 48px;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.4s ease-out;
}

/* Goblin Profile Header in Step */
.step-goblin-profile {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 40px;
}

.step-goblin-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--accent-gold);
    background: var(--bg-main);
    box-shadow: 0 0 15px rgba(218, 165, 32, 0.2);
    flex-shrink: 0;
}

.step-goblin-bubble {
    background-color: rgba(38, 28, 20, 0.95);
    background-image: url('./assets/hanji_card.webp');
    background-size: 400px 400px;
    border: 1px solid rgba(212, 163, 89, 0.4);
    padding: 16px 20px;
    border-radius: 0 16px 16px 16px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.6), 0 4px 15px rgba(0,0,0,0.5);
    font-family: var(--font-heading);
}

.step-goblin-bubble strong {
    color: var(--accent-gold-light);
    font-size: 18px;
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.step-goblin-bubble .sub-text {
    font-size: 13px;
    color: var(--text-dim);
    display: block;
    margin-top: 8px;
}

/* User Input Area in Step */
.step-user-input {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-large-input {
    width: 100%;
    padding: 20px;
    font-size: 18px;
    background: linear-gradient(135deg, rgba(32, 23, 17, 0.9), rgba(20, 14, 10, 0.95));
    border: 1px solid rgba(212, 163, 89, 0.4);
    border-radius: 12px;
    color: #F5EBE1;
    text-align: center;
    transition: all 0.3s;
    outline: none;
    font-family: var(--font-heading);
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.6);
}

.form-large-input:focus {
    border-color: var(--accent-gold);
    background: rgba(45, 33, 23, 0.95);
    box-shadow: 0 0 15px rgba(212, 163, 89, 0.35), inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.form-option-btn {
    width: 100%;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(38, 28, 20, 0.9), rgba(24, 18, 13, 0.95));
    border: 1px solid rgba(212, 163, 89, 0.3);
    border-radius: 12px;
    color: #F5EBE1;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-heading);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.5), 0 4px 10px rgba(0, 0, 0, 0.4);
}

.form-option-btn:hover, .form-option-btn:active {
    background: linear-gradient(135deg, rgba(60, 44, 30, 0.95), rgba(40, 28, 19, 0.95));
    border-color: var(--accent-gold);
    color: var(--accent-gold-light);
    box-shadow: 0 0 15px rgba(212, 163, 89, 0.35);
}

.calendar-toggle {
    display: flex;
    flex-direction: row;
    gap: 12px;
    width: 100%;
    margin-bottom: 8px;
}

.cal-toggle-btn {
    flex: 1;
    padding: 14px;
    background: linear-gradient(135deg, rgba(34, 25, 18, 0.9), rgba(22, 16, 11, 0.95));
    border: 1px solid rgba(212, 163, 89, 0.3);
    color: var(--text-dim);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.cal-toggle-btn.active {
    background: linear-gradient(135deg, rgba(60, 44, 30, 0.95), rgba(40, 28, 19, 0.95));
    border-color: var(--accent-gold);
    color: var(--accent-gold-light);
    box-shadow: 0 0 12px rgba(212, 163, 89, 0.3);
}

.form-mbti-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 8px;
    width: 100%;
    max-height: none;
    overflow: visible;
}

.form-mbti-btn {
    background: linear-gradient(135deg, rgba(34, 25, 18, 0.9), rgba(22, 16, 11, 0.95));
    border: 1px solid rgba(212, 163, 89, 0.25);
    padding: 10px 2px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transition: all 0.2s;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.5);
    font-family: var(--font-heading);
    width: 100%;
}

.form-mbti-btn:hover, .form-mbti-btn:active {
    background: rgba(212, 163, 89, 0.2);
    border-color: var(--accent-gold);
}

/* Preset Cards */
.preset-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.preset-card {
    padding: 10px 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    white-space: nowrap;
}

.preset-card:active {
    background: rgba(218, 165, 32, 0.2);
    border-color: var(--accent-gold);
}

.step-header {
    margin: 32px 0;
    text-align: left;
}

.step-header.center {
    text-align: center;
}

.step-header h2 {
    font-size: 24px;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 8px;
}

input[type="text"], input[type="date"], select, textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 16px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 16px;
    transition: border-color 0.3s;
    margin: 0;
}

input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    position: relative;
}

select option {
    background: var(--bg-main);
    color: var(--text-main);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--accent-gold);
    outline: none;
}

.radio-group {
    display: flex;
    gap: 12px;
}

.radio-group input[type="radio"] {
    display: none;
}

.radio-group label {
    flex: 1;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px;
    border-radius: 8px;
    margin: 0;
    cursor: pointer;
}

.radio-group input[type="radio"]:checked + label {
    background: rgba(218, 165, 32, 0.1);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* Loading */
.loading-spinner {
    width: 100px;
    animation: float 2s infinite, flicker 1s infinite;
    margin-bottom: 24px;
}

.loading-text {
    font-size: clamp(12px, 4.2vw, 20px);
    color: var(--accent-gold);
    margin-bottom: 8px;
    white-space: nowrap;
    text-align: center;
    width: 100%;
}

/* Teaser / Results */
.teaser-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
    margin-top: 24px;
}

.small-goblin {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-gold);
    background: var(--bg-main);
}

.speech-bubble {
    background-color: rgba(38, 28, 20, 0.95);
    background-image: url('./assets/hanji_card.webp');
    background-size: 400px 400px;
    border: 1.5px solid rgba(212, 163, 89, 0.4);
    border-radius: 0 16px 16px 16px;
    padding: 16px;
    font-size: 15px;
    line-height: 1.6;
    position: relative;
    font-family: var(--font-heading);
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.5), 0 4px 15px rgba(0, 0, 0, 0.5);
    color: #F5EBE1;
}

.teaser-card {
    background-color: rgba(36, 26, 18, 0.95);
    background-image: url('./assets/hanji_card.webp');
    background-size: 400px 400px;
    border: 1.5px solid rgba(212, 163, 89, 0.35);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 16px;
    position: relative;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.6), 0 6px 20px rgba(0, 0, 0, 0.6);
}

.tag {
    display: inline-block;
    font-size: 12px;
    color: var(--bg-main);
    background: var(--accent-gold);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    margin-bottom: 12px;
}

.teaser-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.teaser-card p {
    color: var(--text-dim);
    font-size: 14px;
}

.lock-card {
    overflow: hidden;
    min-height: 230px;
}

.blur-text {
    filter: blur(4px);
    opacity: 0.5;
    user-select: none;
}

.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(32, 23, 16, 0.75);
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 24px;
    backdrop-filter: blur(2px);
}

.lock-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.lock-overlay h3 {
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.sticky-bottom {
    margin-top: 32px;
    margin-bottom: 32px;
    text-align: center;
    position: relative;
    z-index: 20;
}

/* Paywall */
.package-preview {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--accent-gold);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    margin-bottom: 32px;
}

.package-preview img {
    width: 120px;
    margin-bottom: 16px;
    animation: float 3s infinite;
}

.price-box {
    margin-bottom: 24px;
}

.price-label {
    font-size: 12px;
    color: var(--text-dim);
}

.price {
    font-size: 32px;
    color: var(--accent-gold-light);
}

.benefit-list {
    list-style: none;
    text-align: left;
    font-size: 14px;
}

.benefit-list li {
    margin-bottom: 8px;
    color: var(--text-main);
}

.payment-methods h3 {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--text-dim);
}

.btn-pay {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 600;
    padding: 16px;
}

.btn-pay.kakaopay { background: #FEE500; color: #000; }
.btn-pay.naverpay { background: #03C75A; color: #FFF; }
.btn-pay.tosspay { background: #0050FF; color: #FFF; }
.btn-pay.creditcard { background: #333; color: #FFF; }

/* Full Results */
.result-view .chapter {
    margin-bottom: 60px;
    padding-top: 24px;
}

.ch-label {
    color: var(--text-dim);
    font-size: clamp(12px, 3.5vw, 14px);
    margin-bottom: 8px;
    white-space: nowrap;
    word-break: keep-all;
}

.result-view h2 {
    font-size: 24px;
    color: var(--accent-gold-light);
    margin-bottom: 24px;
}

.ch-image {
    width: 100%;
    max-width: 200px;
    display: block;
    margin: 32px auto;
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 24px;
    border-radius: 12px;
    margin: 24px 0;
}

.info-card.gold-border {
    border: 1px solid var(--accent-gold);
}

.card-title {
    font-weight: 700;
    margin-bottom: 16px;
}

.thermometer-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    background: rgba(0,0,0,0.3);
    padding: 12px;
    border-radius: 20px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}

.thermo-bulb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ff8b8b, #ff4b4b);
    box-shadow: 0 0 10px rgba(255, 75, 75, 0.6);
    flex-shrink: 0;
}

.gauge-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.gauge-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.temp-fill {
    background: linear-gradient(90deg, #ffb347, #ff4b4b);
    box-shadow: 0 0 10px rgba(255, 75, 75, 0.5);
}

.vault-container {
    width: 140px;
    height: 180px;
    margin: 24px auto;
    border-radius: 12px;
    background: linear-gradient(135deg, #111 0%, #2a2a2a 100%);
    position: relative;
    overflow: hidden;
    border: 6px solid #222;
    box-shadow: inset 0 20px 40px rgba(0,0,0,0.9), 0 0 20px rgba(218,165,32,0.2);
}

.vault-container::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    border: 2px solid var(--accent-gold);
    border-radius: 6px;
    z-index: 10;
    pointer-events: none;
}

.vault-coins {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 20%, transparent 40%),
        linear-gradient(0deg, #d4af37 0%, #ffd700 50%, #b8860b 100%);
    background-size: 40px 10px, 100% 10px;
    border-top: 2px solid #ffeba1;
    transition: height 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 -10px 20px rgba(218,165,32,0.5);
}

.vault-coins::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: repeating-linear-gradient(0deg, transparent, transparent 8px, rgba(0,0,0,0.3) 9px, rgba(0,0,0,0.3) 10px);
}

.timeline {
    position: relative;
    padding-left: 20px;
    margin-top: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.t-item {
    position: relative;
    margin-bottom: 24px;
}

.t-dot {
    position: absolute;
    left: -20px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-dim);
    top: 6px;
}

.t-item.info .t-dot { background: #00E5FF; box-shadow: 0 0 10px rgba(0, 229, 255, 0.5); }
.t-item.warning .t-dot { background: #FF4B4B; box-shadow: 0 0 10px rgba(255, 75, 75, 0.5); }
.t-item.success .t-dot { background: var(--accent-gold); box-shadow: 0 0 10px rgba(218, 165, 32, 0.5); }

.t-text {
    font-size: 15px;
}



/* Floating Kakao */
.floating-kakao {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #FEE500;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 100;
    transition: transform 0.2s;
}

.floating-kakao:active {
    transform: scale(0.9);
}

.floating-kakao img {
    width: 30px;
}

/* Updated Thermometer UI */
.thermometer-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 16px 0;
}

.thermo-bulb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold), #FF4B4B);
    z-index: 2;
    box-shadow: 0 0 10px rgba(255, 75, 75, 0.5);
    border: 2px solid rgba(255,255,255,0.1);
}

.thermometer-wrapper .gauge-bar {
    margin-bottom: 0;
    flex: 1;
    margin-left: -8px;
    height: 12px;
    border-radius: 0 6px 6px 0;
    z-index: 1;
}

/* Updated Timeline UI */
.t-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    margin-left: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.t-month {
    font-size: 13px;
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: 4px;
}

.t-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.t-desc {
    font-size: 14px;
    color: var(--text-dim);
}

.t-item.warning .t-card { border-left: 3px solid #FF4B4B; }
.t-item.success .t-card { border-left: 3px solid var(--accent-gold); }
.t-item:not(.warning):not(.success) .t-card { border-left: 3px solid #4B8BFF; }

/* Updated Relationship Map UI */
.node-title { font-weight: 700; font-size: 14px; }
.node-desc { font-size: 12px; color: var(--text-dim); }
.map-node.warning .node-desc { color: #FFbaba; }


/* Visualization Components */
.intro-images {
    position: relative;
    height: auto;
    padding: 20px 0;
    margin: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.intro-images .ch-image {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--accent-gold);
    box-shadow: 0 0 30px rgba(218, 165, 32, 0.6), inset 0 0 20px rgba(218, 165, 32, 0.3);
    background: var(--bg-main);
}

.ch-image-small {
    position: absolute;
    width: 60px;
    border: 2px solid var(--accent-gold);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.8);
}

.ch-image-small:nth-child(2) { top: 10%; right: 10%; }
.ch-image-small:nth-child(3) { bottom: 10%; left: 10%; }
.ch-image-small:nth-child(4) { top: 10%; left: 10%; }

.delay-1 { animation-delay: 1s; }
.delay-2 { animation-delay: 2s; }
.delay-3 { animation-delay: 3s; }

.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.badge.positive { background: rgba(218, 165, 32, 0.2); color: var(--accent-gold-light); border: 1px solid var(--accent-gold); }
.badge.negative { background: rgba(255, 75, 75, 0.1); color: #FF6B6B; border: 1px solid #FF6B6B; }

.temp-fill { background: linear-gradient(90deg, var(--accent-gold), #FF4B4B) !important; }

.goblin-step {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 24 24" fill="%23DAA520"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-1-13h2v6h-2zm0 8h2v2h-2z"/></svg>');
    background-color: transparent !important;
    width: 14px;
    height: 14px;
    left: -22px;
}

.wave-graph {
    height: 120px;
    width: 100%;
    margin-bottom: 16px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.graph-path {
    fill: none;
    stroke: var(--accent-gold);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0px 0px 4px rgba(218, 165, 32, 0.5));
    animation: drawPath 2s ease-out forwards;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

@keyframes drawPath {
    to { stroke-dashoffset: 0; }
}

.relationship-types {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
}

.r-card {
    padding: 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--text-dim);
}

.r-card h4 { font-size: 15px; margin-bottom: 4px; }
.r-card.good { border-left-color: var(--accent-gold); }
.r-card.good h4 { color: var(--accent-gold); }
.r-card.bad { border-left-color: #FF4B4B; }
.r-card.bad h4 { color: #FF4B4B; }

.cash-flow {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.cf-item {
    flex: 1;
    padding: 16px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    text-align: center;
}

.cf-item.in strong { color: var(--accent-gold-light); display: block; margin-bottom: 8px; }
.cf-item.out strong { color: #FF6B6B; display: block; margin-bottom: 8px; }

.relationship-map {
    position: relative;
    height: 250px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 50%;
    margin: 64px auto;
    width: 250px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.relationship-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0;
}

.rel-node {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(11,15,25,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.rel-node.good { border-left: 4px solid var(--accent-gold); }
.rel-node.bad { border-left: 4px solid #FF6B6B; background: rgba(255,75,75,0.05); }

.silhouette {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--bg-main); border: 2px solid var(--accent-gold);
    display: flex; justify-content: center; align-items: center;
    font-size: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    flex-shrink: 0;
}
.rel-node.bad .silhouette { border-color: #FF6B6B; color: #FF6B6B; }

.node-text { display: flex; flex-direction: column; text-align: left; flex: 1; }
.node-title { font-weight: 800; font-size: 16px; margin-bottom: 4px; color: var(--text-main); }
.node-desc { font-size: 14px; color: var(--text-dim); line-height: 1.4; }

.mt-2 { margin-top: 16px; }

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 24px 0;
}

.cal-month {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 4px;
    text-align: center;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.cal-month.red-bul {
    background: rgba(255, 75, 75, 0.15);
    border: 1px solid #FF4B4B;
    color: #FFbaba;
}

.cal-month.gold-bul {
    background: rgba(218, 165, 32, 0.2);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold-light);
    font-weight: bold;
    animation: flicker 2s infinite;
}

.action-list {
    padding-left: 20px;
    list-style-type: none;
}

.action-list li {
    margin-bottom: 12px;
    position: relative;
}

.action-list li::before {
    content: '•';
    color: var(--accent-gold);
    position: absolute;
    left: -15px;
    font-weight: bold;
}

/* Footer Styles - Clean Ultra-Luxury Joseon Dark Lacquer Theme */
.app-footer {
    position: relative;
    margin-top: 48px;
    padding: 32px 24px 32px 24px;
    background: linear-gradient(180deg, #140A0D 0%, #080405 100%);
    border-top: 1px solid #8C6A3C;
    box-shadow: 
        0 -8px 30px rgba(0, 0, 0, 0.95),
        inset 0 1px 0 rgba(255, 220, 100, 0.25);
    text-align: center;
}

.app-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 8%;
    right: 8%;
    height: 1.5px;
    background: linear-gradient(90deg, transparent 0%, #FFD700 30%, #FFE485 50%, #FFD700 70%, transparent 100%);
    opacity: 0.85;
}

.footer-content {
    font-size: 11px;
    color: var(--text-dim);
    line-height: 1.8;
    opacity: 0.85;
}

.footer-content strong {
    color: var(--text-main);
    font-weight: 600;
}

/* ========================================================= */
/* New Styles Added for Refactoring */
/* ========================================================= */

/* Top Navigation - Clean Joseon Dark Lacquer with Scalloped Kiwa Tile Eaves (UUUUUU) Bottom Border */
.top-nav {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background: linear-gradient(180deg, #1A0F12 0%, #0E0709 100%);
    border-bottom: 2px solid #8C6A3C;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(16px);
    z-index: 100;
}

/* Scalloped Kiwa Roof Tile Eaves (UUUUUU) Bottom Border Element */
.top-nav::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='10' viewBox='0 0 24 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 0,0 C 4,8 20,8 24,0 H 24 V 3 C 20,10 4,10 0,3 Z' fill='%238C6A3C'/%3E%3Cpath d='M 1,0 C 4,7 20,7 23,0 H 23 V 2.2 C 20,8.5 4,8.5 1,2.2 Z' fill='%23D4AF37'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: bottom left;
    pointer-events: none;
    z-index: 101;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.8));
}
.pt-nav { padding-top: 80px; }
.nav-logo { height: 50px; object-fit: contain; }
.nav-right { display: flex; gap: 12px; }
.icon-btn { background: transparent; border: none; color: var(--text-main); padding: 4px; border-radius: 50%; display: flex; justify-content: center; align-items: center; width: 40px; height: 40px; }

/* Profile Modal */
.modal { display: none; position: fixed; z-index: 200; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.6); align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.modal-content { background-color: var(--bg-secondary); border: 1px solid var(--accent-gold); border-radius: 16px; padding: 24px; width: 90%; max-width: 400px; position: relative; color: var(--text-main); }
.close-btn { color: var(--text-dim); position: absolute; right: 20px; top: 16px; font-size: 28px; font-weight: bold; cursor: pointer; }
.close-btn:hover { color: var(--accent-gold); }
.modal h3 { color: var(--accent-gold); margin-bottom: 12px; font-size: 18px; }
.profile-info p { margin-bottom: 8px; font-size: 15px; }
.modal-divider { border: 0; height: 1px; background: rgba(255,255,255,0.1); margin: 20px 0; }
.purchase-list { list-style: none; padding: 0; font-size: 14px; }
.purchase-list li { padding: 12px; background: rgba(255,255,255,0.05); border-radius: 8px; margin-bottom: 8px; }
.empty-list { text-align: center; color: var(--text-dim); }

/* Utilities */
.center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.w-full { width: 100%; }
.column { flex-direction: column; }

.traditional-divider, .mystic-divider {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 80% !important;
    max-width: 600px !important;
    height: 32px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    border: none !important;
    position: relative !important;
    box-sizing: border-box !important;
    /* Draw a single gold line that fades out on both ends (html2canvas rendering safe) */
    background: linear-gradient(to right, transparent, rgba(218, 165, 32, 0.65) 20%, rgba(218, 165, 32, 0.65) 80%, transparent) no-repeat center center / 100% 1px !important;
}

.traditional-divider {
    margin-top: 64px !important;
    margin-bottom: 64px !important;
}

.mystic-divider {
    margin-top: 48px !important;
    margin-bottom: 48px !important;
}

/* Remove pseudo-elements for complete html2canvas compatibility */
.traditional-divider::before, .mystic-divider::before,
.traditional-divider::after, .mystic-divider::after {
    display: none !important;
    content: none !important;
}

.preview-scroll-container {
    animation: scrollVerticalPreview 40s linear infinite;
    display: flex;
    flex-direction: column;
}
@keyframes scrollVerticalPreview {
    0% { transform: translateY(0); }
    100% { transform: translateY(calc(-50% - 16px)); }
}

/* Onboarding */
.onboarding-logo { width: 220px; margin: 0 auto; display: block; filter: drop-shadow(0 0 25px rgba(218, 165, 32, 0.4)); }
.section-title { 
    font-size: clamp(14px, 5.2vw, 28px) !important; 
    font-weight: 900 !important; 
    color: #FFFFFF !important; 
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 16px !important; 
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    white-space: nowrap !important; 
    word-break: keep-all !important; 
    text-shadow: 
        2px 2px 0px #8B6508,
        4px 4px 0px #4A3500,
        6px 6px 0px #000000,
        8px 8px 18px rgba(0, 0, 0, 0.95),
        0 0 25px rgba(255, 215, 0, 0.75),
        0 0 45px rgba(218, 165, 32, 0.5) !important;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.95)) !important;
    transform: perspective(600px) rotateX(2deg) !important;
    transform-origin: center center !important;
    letter-spacing: -0.5px !important;
}

.empathy-topic .section-title {
    color: #FFF8E7 !important;
    font-size: clamp(13px, 4.8vw, 26px) !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    white-space: nowrap !important;
    text-shadow: 
        2px 2px 0px #9A6A00,
        4px 4px 0px #503500,
        6px 6px 0px #000000,
        8px 8px 18px rgba(0, 0, 0, 0.95),
        0 0 25px rgba(255, 215, 0, 0.85),
        0 0 50px rgba(255, 175, 0, 0.6) !important;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.95)) !important;
}

.sub-desc { font-size: 16px; line-height: 1.6; text-align: center; }
.tags-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tag.outline {
    background: linear-gradient(145deg, #FAF4E8 0%, #F1E5CF 50%, #E5D4B6 100%) !important;
    border: 1.5px solid #8C6A3C !important;
    color: #26170E !important;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 800;
    font-family: var(--font-heading);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: inset 0 0 10px rgba(160, 120, 60, 0.25), 0 4px 14px rgba(0,0,0,0.5) !important;
    transition: all 0.3s;
    text-shadow: none !important;
}
.tag.outline:hover { background: #FAF4E8 !important; border-color: #A88754 !important; }
.photo-cards { display: flex; justify-content: center; width: 100%; }
.photo-wrapper { 
    width: 240px; 
    height: 240px; 
    max-width: 80vw;
    max-height: 80vw;
    aspect-ratio: 1 / 1;
    overflow: hidden; 
    border-radius: 20px; 
    border: 1.5px solid rgba(218, 165, 32, 0.5); 
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.85), 0 0 20px rgba(218, 165, 32, 0.2); 
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.photo-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.9), 0 0 25px rgba(218, 165, 32, 0.35);
}
.photo-card { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.speech-bubble.dark {
    background: linear-gradient(145deg, #FAF4E8 0%, #F1E5CF 50%, #E6D5B8 100%) !important;
    border: 1.5px solid #8C6A3C !important;
    border-radius: 18px !important;
    padding: 18px 20px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1F120A !important;
    font-family: var(--font-heading) !important;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.7),
        inset 0 0 12px rgba(180, 140, 70, 0.25) !important;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8) !important;
    transform: perspective(600px) rotateX(1deg);
}

.stats-card { 
    background: linear-gradient(145deg, rgba(35, 20, 10, 0.95) 0%, rgba(15, 5, 10, 0.95) 100%); 
    border: 1.5px solid rgba(218, 165, 32, 0.5); 
    padding: 22px 24px; 
    border-radius: 20px; 
    font-size: 18px; 
    font-weight: 700;
    color: #FFFFFF;
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.85),
        0 0 25px rgba(218, 165, 32, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.9),
        0 0 15px rgba(0, 0, 0, 0.8);
    transform: perspective(600px) rotateX(2deg);
    margin: 12px auto 20px;
}
.stats-card .highlight { 
    color: #FFD700 !important; 
    font-size: 30px !important; 
    font-weight: 900 !important; 
    display: block; 
    margin-bottom: 4px; 
    text-shadow: 
        0 1px 0 #B8860B,
        0 2px 0 #8B6508,
        0 3px 6px rgba(0, 0, 0, 0.95),
        0 0 20px rgba(255, 215, 0, 0.7) !important;
}
.stats-card .highlight.inline { display: inline-block; margin-bottom: 0; margin-right: 4px; }
.review-cards { display: flex; flex-direction: column; gap: 12px; }
.review-card { background: rgba(255,255,255,0.05); padding: 16px; border-radius: 12px; border-left: 3px solid var(--accent-gold); text-align: left;}
.review-card .stars { color: #FFD700; font-size: 16px; margin-bottom: 4px; letter-spacing: 2px; }
.review-card .review-title { font-size: 19px; font-weight: 700; margin-bottom: 8px; color: #ffffff; text-shadow: 0 2px 10px rgba(255,255,255,0.1); }
.review-card .review-text { font-size: 14px; color: var(--text-dim); margin-bottom: 8px; line-height: 1.4; }
.review-card .reviewer { font-size: 12px; color: rgba(255,255,255,0.4); text-align: right; }

.photo-slider-container { width: 100%; position: relative; height: 275px; overflow: hidden; margin: 0 auto; }
.empathy-topic { animation: fadeIn 0.6s ease-out; }
#onboarding-photo-slider { position: relative; width: 100%; height: 100%; }
.photo-slide { position: absolute; top: 0; left: 0; width: 100%; transition: opacity 0.5s ease-in-out; }

.onboarding-review-slider-container { 
    width: 100%; 
    position: relative; 
    height: 178px; /* 가로 스크롤 카드 높이(160px) + 그림자 여유 공간 고려 */
    overflow: hidden; /* Pure CSS animation only needs hidden */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.onboarding-review-slider-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 28px;
    height: 100%;
    background: linear-gradient(to right, var(--bg-main, #0B0F19), transparent);
    z-index: 5;
    pointer-events: none;
}
.onboarding-review-slider-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 28px;
    height: 100%;
    background: linear-gradient(to left, var(--bg-main, #0B0F19), transparent);
    z-index: 5;
    pointer-events: none;
}
.onboarding-review-slider-container::-webkit-scrollbar {
    display: none;
}
.review-marquee {
    display: flex;
    flex-direction: row; /* 가로 스크롤 방향 */
    gap: 16px;
    width: max-content;
    animation: marqueeScroll 25s linear infinite !important; /* Pure CSS animation */
}
.review-marquee .review-card {
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}
.review-marquee .review-card .review-header {
    display: flex;
    justify-content: center;
    align-items: center;
    width: max-content;
    margin: 0 auto 18px auto;
    border: 1px solid rgba(218, 165, 32, 0.5);
    background: rgba(218, 165, 32, 0.08);
    padding: 3px 12px;
    border-radius: 20px;
}
.review-marquee .review-card .stars {
    font-size: 24px;
    margin-bottom: 0;
}
.review-marquee .review-card .reviewer {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    text-align: right;
    display: block;
    margin-top: 12px;
}
.review-marquee .review-card .review-text {
    font-size: 16.5px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.55;
    margin-bottom: 0;
}

/* Service Cards */
.service-cards-area { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.service-card { display: flex; align-items: center; gap: 16px; background-color: rgba(36, 26, 18, 0.95); background-image: url('./assets/hanji_card.webp'); background-size: 400px 400px; border: 1.5px solid rgba(212, 163, 89, 0.35); border-radius: 12px; padding: 16px 20px; }
.s-icon { font-size: 32px; background: rgba(218,165,32,0.1); width: 60px; height: 60px; display: flex; justify-content: center; align-items: center; border-radius: 50%; }
.s-content h3 { font-size: 18px; color: var(--accent-gold); margin-bottom: 4px; }
.s-content p { font-size: 14px; color: var(--text-dim); }

/* Chat Layout */
.chat-layout { overflow: hidden; }
.progress-container { padding: 16px; background: rgba(11,15,25,0.9); z-index: 10; border-bottom: 1px solid rgba(255,255,255,0.05); }
.progress-text { font-size: 14px; color: var(--accent-gold); margin-bottom: 8px; font-weight: 600; }
.progress-bar-bg { height: 6px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent-gold), #FFD700); width: 0%; transition: width 0.5s ease; }
.chat-wrapper { flex: 1; padding: 20px; overflow-y: auto; scroll-behavior: smooth; display: flex; flex-direction: column; }
.chat-history { display: flex; flex-direction: column; gap: 16px; padding-bottom: 20px; }
.chat-msg { display: flex; margin-bottom: 8px; width: 100%; animation: fadeIn 0.4s ease-out; }
.goblin-msg-container { justify-content: flex-start; }
.user-msg-container { justify-content: flex-end; }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--accent-gold); background: var(--bg-main); margin-right: 12px; align-self: flex-start; }
.msg-content { max-width: 75%; }
.msg-bubble { padding: 12px 16px; border-radius: 16px; font-size: 15px; line-height: 1.5; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.goblin-bubble { background: rgba(255,255,255,0.1); color: var(--text-main); border-top-left-radius: 4px; border: 1px solid rgba(255,255,255,0.05); }
.goblin-bubble strong { color: var(--accent-gold); }
.sub-text { font-size: 13px; color: var(--text-dim); display: block; margin-top: 4px; }
.user-bubble { background: var(--accent-gold); color: #000; border-top-right-radius: 4px; font-weight: 600; }

.chat-input-area { padding: 16px; background: var(--bg-secondary); border-top: 1px solid rgba(255,255,255,0.05); }
.chat-input-row { display: flex; gap: 12px; width: 100%; }
.chat-input-row input[type="text"], .chat-input-row input[type="date"], .chat-input-row select, .chat-input-row textarea { flex: 1; border: 1px solid rgba(218,165,32,0.3); background: rgba(11,15,25,0.5); padding: 12px 16px; border-radius: 8px; color: white; font-family: var(--font-body); }
textarea.form-large-input::-webkit-scrollbar { width: 6px; }
textarea.form-large-input::-webkit-scrollbar-track { background: transparent; }
textarea.form-large-input::-webkit-scrollbar-thumb { background: rgba(218,165,32,0.3); border-radius: 4px; }
textarea.form-large-input::-webkit-scrollbar-thumb:hover { background: rgba(218,165,32,0.6); }
.chat-send-btn { background: var(--accent-gold); color: #000; border: none; padding: 0 20px; border-radius: 8px; font-weight: 700; cursor: pointer; min-width: 80px; width: auto; flex-shrink: 0; }

.chat-options { display: flex; gap: 12px; flex-wrap: wrap; }
.chat-opt-btn { flex: 1; min-width: calc(50% - 6px); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 16px; border-radius: 8px; color: var(--text-main); font-weight: 600; transition: all 0.2s; }
.chat-opt-btn:active { background: rgba(218,165,32,0.2); border-color: var(--accent-gold); }

/* MBTI Grid */
.mbti-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-height: 250px; overflow-y: auto; padding-right: 4px; }
.mbti-grid::-webkit-scrollbar { width: 4px; }
.mbti-grid::-webkit-scrollbar-thumb { background: rgba(218,165,32,0.5); border-radius: 4px; }
.mbti-btn { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 12px; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; transition: all 0.2s; cursor: pointer; }
.mbti-btn:active { background: rgba(218,165,32,0.2); border-color: var(--accent-gold); }
.mbti-label { font-size: 18px; font-weight: 800; color: var(--accent-gold-light); }

/* PDF Export Styles */
.pdf-export-mode {
    background: #f4e4bc; /* 고서 느낌의 탁한 양피지 베이스 색상 */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(139,69,19,0.03) 0%, transparent 20%),
        radial-gradient(circle at 80% 90%, rgba(139,69,19,0.04) 0%, transparent 30%),
        url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
    color: #2b1d14 !important; /* 짙은 갈색/검은색 텍스트 */
    font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif !important; /* 고딕체 */
}

.pdf-export-mode * {
    color: #2b1d14 !important;
    text-shadow: none !important;
}

.pdf-export-mode .chapter {
    page-break-inside: avoid;
    padding: 60px 40px !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.pdf-export-mode .speech-bubble {
    background: rgba(139, 69, 19, 0.08) !important;
    border: 1px solid rgba(139, 69, 19, 0.2) !important;
}

.pdf-export-mode .info-card {
    background: rgba(255, 255, 255, 0.4) !important;
    border: 1px solid rgba(139, 69, 19, 0.3) !important;
}

.pdf-export-mode h2 {
    color: #5c3a21 !important;
    font-weight: 800 !important;
}

.pdf-export-mode .ch-label {
    color: #8b5a2b !important;
    font-weight: bold;
}

.pdf-export-mode .vault-container {
    background: rgba(139,69,19,0.2) !important;
    border-color: #8b5a2b !important;
    box-shadow: none !important;
}
.pdf-export-mode .vault-coins {
    background-color: #d4af37 !important; /* 금색 */
}

.pdf-export-mode .rel-node {
    background: rgba(255,255,255,0.7) !important;
    border-color: #8b5a2b !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}

.pdf-export-mode .graph-path {
    stroke: #8b5a2b !important;
}

.pdf-cover-page {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    page-break-after: always;
}

.pdf-cover-page img {
    width: 200px;
    margin-bottom: 40px;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.2));
}

.pdf-cover-title {
    font-size: 48px;
    font-weight: 900;
    color: #2b1d14;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.pdf-cover-subtitle {
    font-size: 24px;
    color: #5c3a21;
}
.mbti-desc { font-size: 12px; color: var(--text-dim); }

/* Loading Reviews */
.loading-review-container { width: 100%; max-width: 300px; margin: 32px auto 0; position: relative; height: 120px; }
.loading-review-slider { position: relative; width: 100%; height: 100%; }
.loading-r-card { position: absolute; top: 0; left: 0; width: 100%; transition: opacity 0.5s ease-in-out; }
.loading-r-card .review-header {
    display: flex;
    justify-content: center;
    align-items: center;
    width: max-content;
    margin: 0 auto 10px auto;
    border: 1px solid rgba(218, 165, 32, 0.5);
    background: rgba(218, 165, 32, 0.08);
    padding: 2px 8px;
    border-radius: 20px;
}
.loading-r-card .stars {
    font-size: 13px;
    margin-bottom: 0;
}
.loading-r-card .reviewer {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    text-align: right;
    display: block;
    margin-top: 8px;
}
.loading-r-card .review-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0;
    line-height: 1.4;
    text-align: center;
}

/* Mini Lock Cards Row */
.lock-cards-row {
    display: flex;
    gap: 8px;
    width: 100%;
}

.mini-lock-card {
    flex: 1;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(218, 165, 32, 0.3);
    border-radius: 12px;
    padding: 16px 6px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(5px);
}

.mini-lock-icon {
    font-size: 24px;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(218, 165, 32, 0.5);
}

.mini-lock-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
    margin-bottom: 12px;
    word-break: keep-all;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-lock-desc {
    font-size: 11px;
    color: var(--accent-gold);
    background: rgba(218, 165, 32, 0.1);
    border: 1px solid rgba(218, 165, 32, 0.2);
    padding: 6px 2px;
    border-radius: 6px;
    font-weight: 600;
    width: 100%;
    line-height: 1.2;
}

.mini-lock-desc .sub-txt {
    font-size: 9px;
    color: var(--text-dim);
    font-weight: 400;
}

/* Smoke Logo Animation */
.smoke-logo-container {
    position: relative;
    width: 260px;
    height: auto;
    margin: 0 auto 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-logo {
    width: 100%;
    z-index: 2;
    position: relative;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.15));
}

/* 3D Curled Edge Photo Card */
.curled-photo-wrapper {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 8px auto 16px;
    perspective: 1000px;
    z-index: 2;
}

/* Bottom Left Curled Corner Shadow */
.curled-photo-wrapper::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 10px;
    width: 44%;
    height: 24px;
    box-shadow: -10px 18px 22px rgba(0, 0, 0, 0.95);
    transform: rotate(-7deg) skew(-12deg);
    border-radius: 12px / 70px;
    z-index: 1;
    pointer-events: none;
}

/* Bottom Right Curled Corner Shadow */
.curled-photo-wrapper::after {
    content: '';
    position: absolute;
    bottom: 8px;
    right: 10px;
    width: 44%;
    height: 24px;
    box-shadow: 10px 18px 22px rgba(0, 0, 0, 0.95);
    transform: rotate(7deg) skew(12deg);
    border-radius: 12px / 70px;
    z-index: 1;
    pointer-events: none;
}

.curled-photo-card {
    position: relative;
    z-index: 2;
    width: 220px;
    height: 260px;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 14px 35px rgba(0, 0, 0, 0.85),
        inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    transform: perspective(900px) rotateX(3deg) rotateY(-1.5deg);
    filter: contrast(1.1) brightness(0.96);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.curled-photo-card.square-card {
    width: 230px;
    height: 230px;
    max-width: 78vw;
    max-height: 78vw;
    aspect-ratio: 1 / 1;
}

.curled-photo-wrapper:hover .curled-photo-card {
    transform: perspective(900px) rotateX(0deg) rotateY(0deg) scale(1.02);
    box-shadow: 
        0 18px 45px rgba(0, 0, 0, 0.9),
        inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.floating-curled-anim {
    animation: floatCurled3D 4s ease-in-out infinite;
}

@keyframes floatCurled3D {
    0%, 100% {
        transform: perspective(900px) translateY(0px) rotateX(3deg) rotateY(-1.5deg);
    }
    50% {
        transform: perspective(900px) translateY(-8px) rotateX(5deg) rotateY(-1.5deg);
    }
}

/* 3D Text Depth & Shadow Typography */
.title-3d-effect {
    font-size: clamp(26px, 7vw, 42px) !important;
    font-weight: 900 !important;
    color: #FFFFFF !important;
    line-height: 1.4 !important;
    text-shadow: 
        2px 2px 0px #800010,
        4px 4px 0px #4A000A,
        6px 6px 0px #000000,
        8px 8px 20px rgba(0, 0, 0, 0.95),
        0 0 25px rgba(255, 77, 90, 0.85),
        0 0 50px rgba(218, 165, 32, 0.6) !important;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.95)) !important;
    transform: perspective(600px) rotateX(2deg);
    letter-spacing: -0.5px;
}

.witch-title-text {
    font-family: var(--font-heading) !important;
    font-size: 24px !important;
    font-weight: 900 !important;
    color: #FFFFFF !important;
    letter-spacing: -0.5px !important;
    text-shadow: 
        1.5px 1.5px 0px #800010,
        3px 3px 0px #4A000A,
        4.5px 4.5px 0px #000000,
        6px 6px 12px rgba(0, 0, 0, 0.95),
        0 0 20px rgba(255, 77, 90, 0.85),
        0 0 35px rgba(218, 165, 32, 0.6) !important;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.95)) !important;
    transform: perspective(600px) rotateX(2deg);
    display: inline-block;
}

.sub-desc-3d {
    line-height: 1.8 !important;
    font-family: var(--font-heading) !important;
    font-weight: 400 !important;
    letter-spacing: -0.3px !important;
    font-size: clamp(14px, 4vw, 18px) !important;
    color: #F8F8FF !important;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.95),
        0 4px 12px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(0, 0, 0, 0.8) !important;
}

.quote-3d-badge {
    display: inline-block !important;
    margin-top: 14px !important;
    padding: 10px 22px !important;
    background: linear-gradient(135deg, rgba(255, 46, 67, 0.2) 0%, rgba(15, 5, 10, 0.95) 50%, rgba(218, 165, 32, 0.2) 100%) !important;
    border: 1px solid rgba(255, 77, 90, 0.5) !important;
    border-radius: 30px !important;
    color: #FF5263 !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    font-size: clamp(12px, 3.9vw, 17px) !important;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.85),
        0 0 20px rgba(255, 46, 67, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    text-shadow: 
        0 1px 0 #7A000E,
        0 2px 4px rgba(0, 0, 0, 0.9),
        0 0 12px rgba(255, 82, 99, 0.8) !important;
    transform: perspective(600px) rotateX(2deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quote-3d-badge:hover {
    transform: perspective(600px) rotateX(0deg) scale(1.03);
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.95),
        0 0 28px rgba(255, 46, 67, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.smoke-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, rgba(218,165,32,0.1) 40%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    z-index: 1;
    filter: blur(14px);
    animation: riseSmoke 5s infinite ease-in;
    pointer-events: none;
}

.smoke-effect.delay-1 { animation-delay: 1.6s; left: 40%; width: 120px; animation-duration: 5.5s; }
.smoke-effect.delay-2 { animation-delay: 3.2s; left: 60%; width: 160px; animation-duration: 6s; }

@keyframes riseSmoke {
    0% {
        transform: translate(-50%, 20px) scale(0.6) rotate(0deg);
        opacity: 0;
    }
    30% {
        opacity: 0.7;
    }
    100% {
        transform: translate(calc(-50% + 40px), -160px) scale(3.5) rotate(45deg);
        opacity: 0;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.8;
    animation: fadeInOut 3s infinite;
}

.scroll-text {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--text-dim);
    margin-bottom: 4px;
    font-weight: 600;
}

.scroll-arrow-anim {
    font-size: 18px;
    color: var(--accent-gold);
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(6px); }
    60% { transform: translateY(3px); }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-dark);
    margin: auto;
    padding: 24px;
    border: 1px solid rgba(218,165,32,0.3);
    width: 90%;
    max-width: 400px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 20px rgba(218,165,32,0.05);
}

.close-btn {
    color: var(--text-dim);
    position: absolute;
    right: 20px;
    top: 16px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    z-index: 100;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--accent-gold);
    text-decoration: none;
    cursor: pointer;
}

/* ========================================== */
/* PDF Export Mode (Old Book Style) */
/* ========================================== */
.pdf-export-mode {
    background-color: #fdf5e6 !important;
    background-image: radial-gradient(#d4c3a3 1px, transparent 1px);
    background-size: 20px 20px;
    color: #3b2f2f !important;
    padding: 40px !important;
}
.pdf-export-mode .chapter {
    page-break-before: always;
    page-break-inside: avoid;
    min-height: 100vh;
    border-top: none !important;
    padding: 20px;
    border: 2px solid #8b7355;
    border-radius: 4px;
    margin-bottom: 20px;
}
.pdf-export-mode .chapter:first-child {
    page-break-before: avoid;
}
.pdf-export-mode .pdf-cover-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    page-break-after: always;
    border: 4px double #8b7355;
    padding: 40px;
}
.pdf-export-mode .pdf-cover-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 50%;
    border: 2px solid #8b7355;
}
.pdf-export-mode .pdf-cover-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 36px;
    font-weight: 700;
    color: #5c4033;
    margin: 20px 0;
    border-bottom: 2px dashed #8b7355;
    padding-bottom: 10px;
}
.pdf-export-mode .pdf-cover-subtitle {
    font-size: 18px;
    color: #8b7355;
    margin-bottom: 40px;
}
.pdf-export-mode .pdf-cover-domain {
    margin-top: auto;
    font-size: 20px;
    font-weight: bold;
    color: #5c4033;
    letter-spacing: 2px;
}
.pdf-export-mode .action-area {
    display: none !important;
}
.pdf-export-mode .speech-bubble {
    background: rgba(139, 115, 85, 0.1);
    color: #3b2f2f;
    border-color: #8b7355;
}
.pdf-export-mode h2 {
    color: #5c4033;
}
.pdf-export-mode .info-card {
    background: transparent;
    border: 1px solid #8b7355;
}


/* ========================================== */
/* Global Asset Preloader */
/* ========================================== */
#global-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 15, 25, 1);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

#global-preloader.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.mystic-text {
    color: var(--accent-gold);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 2px;
    animation: breathingText 2.5s infinite ease-in-out;
}

@keyframes breathingText {
    0%, 100% { opacity: 0.4; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1.02); text-shadow: 0 0 15px rgba(218, 165, 32, 0.8); }
}

.mystic-progress-bar {
    width: 240px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.mystic-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, transparent, var(--accent-gold), #FFF);
    box-shadow: 0 0 10px var(--accent-gold);
    transition: width 0.3s ease-out;
}

@keyframes pulseWarning {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; text-shadow: 0 0 20px #FF4B4B; }
    100% { transform: scale(1); opacity: 1; }
}

/* Small spinner for button loading state */
.spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.25);
    border-radius: 50%;
    border-top-color: currentColor;
    animation: spin-anim 0.8s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

@keyframes spin-anim {
    to { transform: rotate(360deg); }
}

/* User Auth Modal Custom Tabs & Inputs */
.login-tab {
    color: var(--text-dim);
    font-size: 15px;
    transition: all 0.3s ease;
    text-align: center;
}
.login-tab:hover {
    color: #fff;
}
.login-tab.active {
    color: var(--accent-gold) !important;
}
.input-group input:focus {
    outline: none;
    border-color: var(--accent-gold) !important;
    box-shadow: 0 0 8px rgba(218, 165, 32, 0.3);
}

/* ==========================================
   Premium Mobile Dashboard Redesign Styles
   ========================================== */

.dashboard-hero {
    position: relative;
    padding: 24px 10px 20px 10px;
    margin-bottom: 24px;
    overflow: hidden;
}

.dashboard-header-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dashboard-logo-container {
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(218, 165, 32, 0.1);
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(218, 165, 32, 0.5);
}

.dashboard-logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.dashboard-brand-text {
    display: flex;
    flex-direction: column;
}

.dashboard-title-main {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
    text-shadow: 0 0 12px rgba(218, 165, 32, 0.5);
}

.dashboard-title-sub {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    color: var(--accent-gold-light);
    letter-spacing: 2px;
    margin-top: -2px;
}

.dashboard-tagline {
    margin-top: 16px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.6;
    word-break: keep-all;
    max-width: 70%;
    z-index: 2;
    position: relative;
}

.hero-character-wrapper {
    position: absolute;
    right: -15px;
    top: -15px;
    width: 150px;
    height: 150px;
    opacity: 0.75;
    pointer-events: none;
    z-index: 1;
}

.hero-character-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mask-image: radial-gradient(circle, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle, black 30%, transparent 80%);
}

/* Promo Card ("실시간 천기문답") */
.promo-card {
    position: relative;
    background: linear-gradient(135deg, rgba(10, 24, 64, 0.95) 0%, rgba(5, 12, 36, 0.98) 100%);
    border: 1px solid rgba(218, 165, 32, 0.3);
    border-radius: 16px;
    padding: 24px 20px;
    margin-bottom: 28px;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.18), inset 0 0 15px rgba(218, 165, 32, 0.05);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.promo-card:hover {
    transform: translateY(-2px);
    border-color: rgba(218, 165, 32, 0.6);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.28), 0 0 20px rgba(218, 165, 32, 0.25);
}

.promo-badge-row {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}

.badge {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.badge-new {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold-light);
}

.badge-free {
    background: #1E3A8A;
    color: #93C5FD;
    border: 1px solid #3B82F6;
}

.promo-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.promo-info {
    flex: 1;
    z-index: 2;
    padding-right: 120px;
}

.promo-card-title {
    font-family: var(--font-heading);
    font-size: 23px;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

.promo-tag-row {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}

.tag-pill {
    font-size: 11px;
    color: #F8F8FF;
    background: rgba(255, 255, 255, 0.07);
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.promo-card-desc {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.7;
    word-break: keep-all;
}

.promo-character-side {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 140px;
    height: 100%;
    z-index: 1;
}

.promo-side-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    mask-image: linear-gradient(to left, black 35%, transparent 95%);
    -webkit-mask-image: linear-gradient(to left, black 35%, transparent 95%);
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.4));
}

.promo-btn-arrow {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 3;
}

.circle-arrow-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--accent-gold);
    background: rgba(218, 165, 32, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold-light);
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.2);
    transition: all 0.3s ease;
}

.promo-card:hover .circle-arrow-btn {
    background: var(--accent-gold);
    color: #000;
    transform: scale(1.05);
}

.arrow-symbol {
    font-size: 16px;
    font-weight: bold;
}

/* Service Section Title */
.service-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 4px;
}

.section-title-label {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--accent-gold-light);
    font-weight: 700;
}

.section-more-link {
    font-size: 13px;
    color: var(--text-dim);
    cursor: pointer;
    transition: color 0.3s ease;
}

.section-more-link:hover {
    color: var(--accent-gold);
}

/* Service Cards */
.service-cards-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.service-list-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 14, 42, 0.55);
    border: 1px solid rgba(218, 165, 32, 0.16);
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-list-card:hover {
    border-color: var(--accent-gold);
    background: rgba(10, 14, 42, 0.75);
    box-shadow: 0 0 15px rgba(218, 165, 32, 0.15);
    transform: translateY(-1px);
}

.card-content-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.card-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.card-text-block {
    display: flex;
    flex-direction: column;
}

.card-item-title {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.card-item-desc {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 2px;
}

.card-content-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-thumb-image {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(218, 165, 32, 0.2);
    background: var(--bg-main);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.card-thumb-image.scroll-thumb {
    object-position: center;
}

.card-thumb-image.tarot-thumb {
    object-position: center;
}

.card-thumb-image.pouch-thumb {
    object-position: center;
}

.card-thumb-image.couple-thumb {
    object-position: top;
}

.card-thumb-image.goblin-thumb {
    object-position: center;
}

.card-item-arrow {
    color: var(--text-dim);
    font-size: 14px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.service-list-card:hover .card-item-arrow {
    color: var(--accent-gold-light);
}

/* Service page header for Service tab */
.service-page-header {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 20px;
}

.service-page-title {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--accent-gold-light);
    text-shadow: 0 0 10px rgba(218, 165, 32, 0.3);
}

.service-page-subtitle {
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 6px;
}

/* Bottom Navigation Bar */
.bottom-nav-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 70px;
    background: #060a1e;
    border-top: 1px solid rgba(218, 165, 32, 0.25);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 10px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    cursor: pointer;
    color: var(--text-dim);
    transition: all 0.3s ease;
}

.nav-item:hover {
    color: #fff;
}

.nav-item.active {
    color: var(--accent-gold-light) !important;
}

.nav-icon {
    font-size: 20px;
    margin-bottom: 3px;
}

.nav-label {
    font-size: 11px;
    font-weight: 600;
}

.center-btn {
    position: relative;
    flex: 1.2;
    display: flex;
    justify-content: center;
    cursor: default;
}

.center-circle {
    position: absolute;
    top: -24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1A1F3C 0%, #06091F 100%);
    border: 2px solid var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 18px rgba(218, 165, 32, 0.6), inset 0 0 8px rgba(218, 165, 32, 0.3);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.center-btn:hover .center-circle {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(218, 165, 32, 0.85), inset 0 0 10px rgba(218, 165, 32, 0.5);
}

.center-logo-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(218, 165, 32, 0.6));
    transition: transform 0.3s ease;
}

.center-btn:hover .center-logo-img {
    transform: scale(1.05);
}

/* ========================================== */
/* 도깨비와의 대화 (Talk Chat) Messenger UI */
/* ========================================== */
.talk-chat-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    box-sizing: border-box;
    max-width: 600px;
    margin: 0 auto;
    background: #060a1e url('./assets/talk_background.webp') no-repeat center center;
    background-size: cover;
    border: 1px solid rgba(218, 165, 32, 0.2);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

/* Ensure talk chat always uses full 100dvh viewport without margins or borders on mobile */
#step-talk-chat .talk-chat-container {
    height: 100vh !important;
    height: 100dvh !important;
    margin: 0 auto !important;
    border-radius: 0 !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: 1px solid rgba(218, 165, 32, 0.15);
    border-right: 1px solid rgba(218, 165, 32, 0.15);
}

@media (max-width: 600px) {
    #step-talk-chat .talk-chat-container {
        border-left: none !important;
        border-right: none !important;
    }
}

/* 천기문답 채팅 화면이 활성화되었을 때, 전역 탑 헤더, 하단 바와 푸터를 숨겨서 스크롤 및 잘림 문제를 해결 */
#app-container:has(#step-talk-chat.active) .top-nav {
    display: none !important;
}

#step-talk-chat.active ~ #app-bottom-nav,
#step-talk-chat.active ~ .bottom-nav-bar,
#step-talk-chat.active ~ .app-footer {
    display: none !important;
}

/* 1. Top Brand Header Bar */
.talk-chat-brand-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 20px;
    background: transparent;
}

.talk-brand-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.talk-brand-logo {
    width: 150px !important;
    height: 150px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 0 8px rgba(218, 165, 32, 0.6)) !important;
    margin-top: -24px !important;
    margin-bottom: -24px !important;
}

/* Timer capsule style matching the screenshot */
.talk-timer-capsule {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(218, 165, 32, 0.05);
    border: 1px solid rgba(218, 165, 32, 0.25);
    border-radius: 20px;
    padding: 4px 12px;
    color: var(--accent-gold);
    transition: all 0.3s ease;
    font-family: monospace;
}

.timer-clock-icon {
    color: currentColor;
    flex-shrink: 0;
}

.talk-timer-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    font-family: var(--font-body);
}

.talk-timer-time {
    font-size: 13px;
    font-weight: 700;
    color: currentColor;
}

/* 2. Main Talk Title Card (Blueish Glassmorphism Card with Moon Background) */
.talk-main-title-card {
    background: linear-gradient(135deg, rgba(16, 24, 48, 0.85) 0%, rgba(10, 15, 30, 0.95) 100%);
    border: 1px solid rgba(218, 165, 32, 0.15);
    border-radius: 12px;
    margin: -10px 16px 12px 16px !important;
    padding: 14px 18px;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 4px 16px rgba(0, 0, 0, 0.4);
}

.talk-back-btn-v2 {
    background: none !important;
    border: none !important;
    color: #ffd700 !important;
    cursor: pointer !important;
    padding: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 2 !important;
    margin: 0 12px 0 0 !important;
    width: auto !important; /* Overriding global button 100% width rule to fix alignment */
    flex-shrink: 0 !important;
    transition: transform 0.2s;
}

.talk-back-btn-v2:active {
    transform: scale(0.9);
}

.talk-card-text-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 4px !important;
    z-index: 2 !important;
    text-align: left !important;
    flex-grow: 1 !important;
}

.talk-card-title {
    display: block !important;
    font-family: var(--font-display) !important;
    font-size: 16.5px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5) !important;
    white-space: nowrap !important;
    text-align: left !important;
}

.talk-card-subtitle {
    display: block !important;
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.45) !important;
    margin: 0 !important;
    white-space: nowrap !important;
    text-align: left !important;
}

/* Decorative Moon & Cloud Graphic inside Card */
.talk-card-bg-graphic {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 140px;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.talk-card-moon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: radial-gradient(circle, #fffdf0 0%, #fef08a 60%, #facc15 100%);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(254, 240, 138, 0.8), 0 0 30px rgba(250, 204, 21, 0.4);
    opacity: 0.85;
}

.talk-card-clouds {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='60' viewBox='0 0 140 60' fill='none'%3E%3Cpath d='M30 60l30-27 20 15 35-21 25 26v7z' fill='rgba%288%2C12%2C24%2C0.95%29'/%3E%3Cpath d='M30 60l30-27 20 15 35-21 25 26' stroke='rgba%28218%2C165%2C32%2C0.25%29' stroke-width='1'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px bottom;
    background-size: 130px 60px;
    opacity: 0.95;
    filter: drop-shadow(0 0 4px rgba(218, 165, 32, 0.15)) !important;
}

.talk-chat-messages {
    flex: 1;
    padding: 20px 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    scroll-behavior: smooth;
}

.talk-chat-messages::-webkit-scrollbar {
    width: 6px;
}
.talk-chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}
.talk-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(218, 165, 32, 0.25);
    border-radius: 3px;
}

@keyframes talkTextRevealLeft {
    0% {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
        transform: translateX(-10px);
    }
    15% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
        transform: translateX(0);
    }
}

.talk-msg-row {
    display: flex;
    width: 100%;
    margin-bottom: 12px;
}

.talk-msg-row.user {
    justify-content: flex-start;
}

.talk-msg-row.goblin {
    justify-content: flex-start;
    animation: none; /* Static container so speaker label doesn't move */
}

.talk-avatar {
    display: none;
}

.talk-msg-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
}

.talk-sender-name {
    display: none;
}

.talk-bubble-wrapper {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
}

.talk-bubble {
    padding: 4px 0;
    border-radius: 0;
    font-size: 15.5px;
    line-height: 1.85;
    letter-spacing: -0.3px;
    word-break: keep-all;
    overflow-wrap: break-word;
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.95);
}

.talk-msg-row.user .talk-bubble {
    background: transparent !important;
    color: #ffffff;
    font-weight: 400;
    border-radius: 0;
}

.talk-msg-row.goblin .talk-bubble {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.95);
    border-radius: 0;
}

.talk-speaker-goblin {
    font-weight: 700;
    color: #ffffff;
    font-size: 16px;
    margin-right: 6px;
    letter-spacing: -0.2px;
    display: inline;
}

.talk-speaker-user {
    font-weight: 700;
    color: #facc15;
    font-size: 16px;
    margin-right: 6px;
    letter-spacing: -0.2px;
    display: inline;
}

.talk-body-text {
    display: inline;
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* 2.4초간 왼쪽에서부터 쫘아악 서서히 나타나는 본문 애니메이션 */
.talk-body-text.talk-stream-anim {
    display: inline-block;
    vertical-align: top;
    max-width: 100%;
    animation: talkTextRevealLeft 2.4s cubic-bezier(0.1, 0.85, 0.25, 1) forwards;
}

/* 순수 글자만 깔끔한 노란색 칠 (형광펜 박스 및 배경 제거) */
.talk-text-highlight {
    color: #ffe600 !important;
    font-weight: 700 !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    text-shadow: none !important;
    display: inline !important;
}

.talk-msg-row.goblin[data-msg-locked="true"] .talk-bubble-wrapper {
    width: 100%;
}

.talk-msg-row.goblin[data-msg-locked="true"] .talk-bubble {
    width: 100%;
    min-height: 120px;
}

.talk-bubble.blurred {
    filter: blur(6px);
    user-select: none;
    pointer-events: none;
    opacity: 0.45;
}

/* Talk Chat Image Card Styles (Hero Image Display) */
.talk-chat-card {
    margin-top: 8px;
    margin-bottom: 16px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(18, 22, 36, 0.95);
    border: 1px solid rgba(218, 165, 32, 0.4);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
    width: 100%;
    max-width: 100%;
}

.talk-chat-card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: 380px;
    overflow: hidden;
    background: #000;
}

.talk-chat-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.talk-chat-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(10, 12, 20, 0.9) 100%);
    pointer-events: none;
}

.talk-chat-card-info {
    padding: 12px 14px;
}

.talk-chat-card-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: bold;
    color: var(--accent-gold);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.talk-chat-card-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    line-height: 1.35;
}

.talk-chat-card-desc {
    font-size: 11.5px;
    color: var(--text-dim);
    line-height: 1.45;
}

/* Paywall Overlay inside bubble */
.talk-paywall-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 290px;
    background: linear-gradient(135deg, rgba(22, 17, 9, 0.98), rgba(43, 29, 6, 0.98));
    border: 1.5px solid var(--accent-gold);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7), 0 0 15px rgba(218, 165, 32, 0.2);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: fadeIn 0.3s ease-out;
}

.talk-paywall-lock-icon {
    font-size: 20px;
    color: var(--accent-gold);
    animation: pulse 2s infinite;
}

.talk-paywall-text {
    font-size: 13px;
    color: #fff;
    font-weight: bold;
    line-height: 1.4;
}

.talk-paywall-price-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 4px 0;
}

.talk-paywall-orig-price {
    text-decoration: line-through;
    color: var(--text-dim);
    font-size: 11px;
}

.talk-paywall-sale-price {
    color: #ff6b6b;
    font-weight: 700;
    font-size: 15px;
}

.talk-paywall-buttons {
    display: flex;
    gap: 8px;
    width: 100%;
}

.talk-paywall-btn {
    flex: 1;
    padding: 8px 10px;
    border-radius: 6px;
    border: none;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    transition: transform 0.15s ease;
    outline: none;
}

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

.talk-paywall-btn.kakaopay {
    background: #FEE500;
    color: #3C1E1E;
}

.talk-paywall-btn.tosspay {
    background: #0050FF;
    color: #fff;
}

.talk-suggested-queries {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(11, 15, 42, 0.98);
    border-top: 1px solid rgba(218, 165, 32, 0.15);
    overflow-x: auto;
    white-space: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.talk-suggested-queries::-webkit-scrollbar {
    display: none;
}

.suggested-query-btn {
    background: rgba(218, 165, 32, 0.08);
    border: 1px solid rgba(218, 165, 32, 0.25);
    border-radius: 16px;
    color: var(--accent-gold-light);
    padding: 6px 12px;
    font-size: 12px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.suggested-query-btn:hover {
    background: rgba(218, 165, 32, 0.2);
    border-color: var(--accent-gold);
    color: #fff;
    transform: translateY(-1px);
}

.suggested-query-btn:active {
    transform: translateY(0) scale(0.97);
}

.talk-input-area {
    padding: 12px 16px;
    background: rgba(11, 15, 42, 0.98);
    border-top: 1px solid rgba(218, 165, 32, 0.15);
    display: flex;
    gap: 8px;
    align-items: center;
}

.talk-input-field {
    flex: 1;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(218, 165, 32, 0.25);
    border-radius: 20px;
    padding: 8px 16px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.talk-input-field:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 8px rgba(218, 165, 32, 0.2);
}

.talk-input-field:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.talk-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-gold);
    border: none;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    outline: none;
}

.talk-send-btn:active {
    transform: scale(0.9);
}

.talk-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

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

/* Redesigned Messenger Header Styles */
.talk-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.talk-header-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.talk-avatar-wrapper {
    position: relative;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.talk-header-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(218, 165, 32, 0.3);
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
}

.talk-active-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 9px;
    height: 9px;
    background-color: #4caf50;
    border: 1.5px solid rgba(11, 15, 42, 0.95);
    border-radius: 50%;
    box-shadow: 0 0 6px #4caf50;
    animation: statusPulse 1.5s infinite;
}

@keyframes statusPulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

.talk-header-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 8px rgba(218, 165, 32, 0.3);
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.talk-header-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.talk-header-badge {
    font-size: 9px;
    font-weight: 800;
    background: linear-gradient(135deg, #da1e28, #ff3b30);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(218, 30, 40, 0.4);
    letter-spacing: 0.5px;
}

/* ==========================================================
   Premium Paid Report Visualization Dashboard Styles
   ========================================================== */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.love-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.visual-card {
    background: rgba(18, 24, 41, 0.95);
    border: 1px solid rgba(218, 165, 32, 0.15);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(218, 165, 32, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.visual-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(218, 165, 32, 0.08);
}

.card-title-mini {
    font-family: var(--font-heading);
    color: var(--accent-gold-light);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    border-left: 3px solid var(--accent-gold);
    padding-left: 10px;
    letter-spacing: 0.5px;
}

/* 1. Score Card Components */
.score-circle-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 16px;
}

.score-svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.score-bg-circle {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 8;
}

.score-fill-circle {
    fill: none;
    stroke: #00f2fe; /* cyan */
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease-out;
    filter: drop-shadow(0 0 4px #00f2fe);
}

.score-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-num {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.score-grade {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-gold-light);
    margin-top: 4px;
    background: rgba(218, 165, 32, 0.15);
    padding: 2px 8px;
    border-radius: 10px;
}

.mini-scores-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.mini-score-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.mini-score-item span {
    color: var(--text-dim);
}

.mini-score-item .val {
    font-weight: 800;
    color: var(--accent-gold);
}

/* 2. Radar Charts */
.radar-chart-container {
    width: 100%;
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.radar-grid-line {
    stroke: rgba(218, 165, 32, 0.15);
    stroke-width: 0.5;
}

.radar-axis-line {
    stroke: rgba(218, 165, 32, 0.25);
    stroke-width: 0.8;
}

.radar-polygon {
    fill: rgba(0, 242, 254, 0.2);
    stroke: #00f2fe;
    stroke-width: 1.5;
    filter: drop-shadow(0 0 2px #00f2fe);
}

.radar-label {
    fill: var(--text-dim);
    font-size: 10px;
    font-weight: 700;
}

.radar-dot {
    fill: var(--accent-gold);
    stroke: #fff;
    stroke-width: 1;
}

/* 13. Calendar V2 */
.calendar-grid-v2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@media (max-width: 480px) {
    .calendar-grid-v2 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cal-month-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px 4px;
    text-align: center;
    transition: all 0.2s ease;
}

.cal-month-card.success {
    border-color: rgba(218, 165, 32, 0.4);
    background: rgba(218, 165, 32, 0.04);
}

.cal-month-card.warning {
    border-color: rgba(255, 77, 77, 0.3);
    background: rgba(255, 77, 77, 0.04);
}

.cal-month-card .month-lbl {
    font-size: 11px;
    color: var(--text-dim);
    display: block;
}

.cal-month-card.success .month-lbl {
    color: var(--accent-gold-light);
    font-weight: bold;
}

.cal-month-card.warning .month-lbl {
    color: #ff6b6b;
    font-weight: bold;
}

.cal-month-card .month-kw {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-top: 4px;
    display: block;
}

/* 3 & 11. Line Charts */
.line-chart-container {
    width: 100%;
    height: 140px;
    margin-bottom: 10px;
}

.line-chart-container .graph-path {
    fill: none;
    stroke: #00f2fe;
    stroke-width: 2.5;
    stroke-linecap: round;
    filter: drop-shadow(0 2px 4px rgba(0, 242, 254, 0.3));
    animation: none !important;
    stroke-dasharray: none !important;
    stroke-dashoffset: 0 !important;
}

.chart-indicators {
    display: flex;
    justify-content: space-around;
    font-size: 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 10px;
    margin-top: 10px;
}

.ind-item.in { color: var(--accent-gold-light); font-weight: bold; }
.ind-item.out { color: #ff6b6b; font-weight: bold; }

/* 4. Matrix list */
.matrix-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.matrix-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.matrix-lbl-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
}

.matrix-lbl { color: var(--text-main); }
.matrix-val { color: var(--accent-gold); }

.matrix-bar-bg {
    height: 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    overflow: hidden;
}

.matrix-bar-fill {
    height: 100%;
    background: var(--accent-gold);
    border-radius: 4px;
    transition: width 1s ease-out;
}

.matrix-item.high .matrix-bar-fill {
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light));
    box-shadow: 0 0 8px var(--accent-gold-light);
}

.matrix-item.low .matrix-bar-fill {
    background: #ff4d4d;
}

/* 5. Recommended Jobs TOP 7 */
.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.job-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 8px 12px;
}

.job-rank-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-gold);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 11px;
}

.job-info {
    flex: 1;
}

.job-name-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
}

.job-reason {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 2px;
}

/* 7. Red Thread Timeline */
.red-thread-timeline-container {
    position: relative;
    padding-left: 24px;
    margin: 10px 0;
}

.timeline-line-svg {
    position: absolute;
    top: 0;
    left: 8px;
    width: 20px;
    height: 100%;
    pointer-events: none;
}

.red-thread-path {
    fill: none;
    stroke: #ff4d4d;
    stroke-width: 2;
    stroke-dasharray: 4 2;
    animation: weaveThread 4s linear infinite;
}

@keyframes weaveThread {
    to { stroke-dashoffset: -20; }
}

.t-item-v2 {
    position: relative;
    margin-bottom: 20px;
}

.t-dot-v2 {
    position: absolute;
    left: -20px;
    top: 6px;
    width: 10px;
    height: 100%;
}

.t-icon-v2 {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ff4d4d;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    border: 1px solid #fff;
    box-shadow: 0 0 6px #ff4d4d;
}

.t-card-v2 {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 10px 14px;
}

.t-month-v2 {
    font-size: 11px;
    font-weight: bold;
    color: #ff6b6b;
}

.t-title-v2 {
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    margin-top: 2px;
}

.t-desc-v2 {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 4px;
}

/* 8. Spouse Card */
.spouse-inner {
    display: flex;
    gap: 16px;
    align-items: center;
}

@media (max-width: 480px) {
    .spouse-inner {
        flex-direction: column;
    }
}

.spouse-silhouette-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.spouse-photo-container {
    width: 135px;
    height: 180px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: rgba(255, 255, 255, 0.2);
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
    transition: all 0.3s ease;
}

.spouse-photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.spouse-photo-container.loading {
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: shimmerSpouse 1.5s infinite;
    font-size: 0; /* hide silhouette icon */
}

@keyframes shimmerSpouse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.spouse-photo-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(218, 165, 32, 0.15);
    border-radius: 50%;
    border-top-color: var(--accent-gold);
    animation: spin-anim 1s linear infinite;
    display: inline-block;
}

.vibe-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    max-width: 140px;
}

.vibe-tag {
    font-size: 9px;
    background: rgba(218, 165, 32, 0.15);
    color: var(--accent-gold-light);
    padding: 2px 6px;
    border-radius: 10px;
    white-space: nowrap;
}

.spouse-details-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.sp-detail {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    padding-bottom: 4px;
}

.sp-detail span { color: var(--text-dim); }
.sp-detail strong { color: #fff; text-align: right; }

/* 9. Marriage Card */
.marriage-body {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 10px;
}

@media (max-width: 480px) {
    .marriage-body {
        flex-direction: column;
    }
}

.marriage-radial {
    flex-shrink: 0;
}

.radial-gauge {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.radial-inner {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.radial-val {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--accent-gold-light);
}

.radial-lbl {
    font-size: 9px;
    color: var(--text-dim);
}

.marriage-sub-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

/* 10. Helpers Card */
.helpers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.helper-box {
    border-radius: 12px;
    padding: 14px;
    background: rgba(255,255,255,0.01);
}

.helper-box.good { border: 1px solid rgba(0, 242, 254, 0.2); }
.helper-box.bad { border: 1px solid rgba(255, 77, 77, 0.2); }

.helper-box h4 {
    font-size: 13px;
    margin-bottom: 10px;
}

.helper-box ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
}

.helper-box li {
    font-size: 11px;
    line-height: 1.4;
}

.helper-box li strong {
    display: block;
    color: #fff;
}

.helper-box.good li strong { color: var(--accent-gold-light); }
.helper-box.bad li strong { color: #ff6b6b; }

.helper-box li span {
    color: var(--text-dim);
}

/* 12. Caution Warnings */
.caution-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.caution-item-card {
    background: rgba(255, 77, 77, 0.02);
    border: 1px solid rgba(255, 77, 77, 0.15);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    transition: all 0.2s ease;
}

.caution-item-card:hover {
    border-color: rgba(255, 77, 77, 0.4);
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.1);
}

.caution-item-card .warn-icon {
    font-size: 16px;
    color: #ff4d4d;
    flex-shrink: 0;
    margin-top: 1px;
}

.caution-item-card h4 {
    font-size: 12px;
    color: #ff6b6b;
    font-weight: 700;
}

.caution-item-card p {
    font-size: 10.5px;
    color: var(--text-dim);
    margin-top: 2px;
    line-height: 1.4;
}

/* 15. Summary Save Card */
.summary-save-card {
    background: linear-gradient(135deg, #0f1526, #060912);
    border: 2px solid var(--accent-gold);
    border-radius: 20px;
    padding: 24px;
    margin: 30px auto;
    max-width: 420px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5), 0 0 20px rgba(218, 165, 32, 0.2);
}

.summary-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(218, 165, 32, 0.2);
    padding-bottom: 14px;
    margin-bottom: 16px;
}

.summary-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--accent-gold);
}

.summary-header-text h3 {
    font-family: var(--font-heading);
    font-size: 17px;
    color: var(--accent-gold-light);
}

.summary-header-text p {
    font-size: 10px;
    color: var(--text-dim);
}

.summary-scores-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-bottom: 16px;
}

.sum-score-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 6px 2px;
    text-align: center;
}

.sum-score-item .lbl {
    font-size: 10px;
    color: var(--text-dim);
    display: block;
}

.sum-score-item strong {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--accent-gold);
    margin-top: 2px;
    display: block;
}

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

.sum-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sum-detail-item strong {
    font-size: 11px;
    color: var(--accent-gold-light);
}

.sum-detail-item span {
    font-size: 12px;
    color: #fff;
}

.sum-badge-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.sum-kw-badge {
    background: rgba(218, 165, 32, 0.12);
    color: var(--accent-gold-light);
    border: 1px solid rgba(218, 165, 32, 0.2);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 10px;
}

.sum-comment-box {
    background: rgba(0, 0, 0, 0.2);
    border-left: 2px solid var(--accent-gold);
    padding: 10px;
    border-radius: 0 8px 8px 0;
    margin-top: 4px;
}

.sum-comment-box strong {
    font-size: 10.5px;
    color: var(--accent-gold-light);
    display: block;
}

.sum-comment-box p {
    font-size: 11.5px;
    color: #dfd8cb;
    margin-top: 4px;
    line-height: 1.4;
    font-style: italic;
}

.goblin-comment-bubble {
    margin-top: 24px;
    background: rgba(11, 15, 42, 0.85);
    border: 1px solid rgba(218, 165, 32, 0.15);
    border-radius: 12px;
    padding: 14px 18px;
    position: relative;
    font-size: 13.5px;
    line-height: 1.6;
    color: #e2d9c8;
    box-sizing: border-box;
}

.goblin-comment-bubble::before {
    content: "👹 도깨비 왈:";
    display: block;
    font-family: var(--font-heading);
    font-size: 11.5px;
    font-weight: bold;
    color: var(--accent-gold-light);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

/* Hide empty speech/comment bubbles to prevent displaying empty gray boxes */
.speech-bubble:empty,
.goblin-comment-bubble:empty {
    display: none !important;
}

/* ========================================== */
/* 실시간 천기문답 랜딩 페이지 및 목업 애니메이션 */
/* ========================================== */
#step-talk-landing {
    background: radial-gradient(circle at center 20vh, var(--bg-secondary) 0%, var(--bg-main) 100vh);
}

.talk-landing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(218, 165, 32, 0.1);
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
}

.talk-landing-back-btn {
    background: none;
    border: none;
    color: var(--accent-gold);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    outline: none;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}

.talk-landing-back-btn:active {
    transform: scale(0.9);
}

.talk-landing-header-title {
    font-size: 15px;
    color: var(--text-dim);
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    flex: 1;
}

.talk-landing-header-spacer {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

/* Mockup CSS */
.chat-mockup-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.mockup-phone {
    width: 100%;
    max-width: 320px;
    height: 330px;
    background: rgba(6, 10, 30, 0.95);
    border: 1.5px solid rgba(218, 165, 32, 0.25);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.mockup-header {
    background: rgba(11, 15, 42, 0.98);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(218, 165, 32, 0.15);
}

.mockup-avatar {
    width: 24px;
    height: 24px;
    background: var(--bg-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 1px solid var(--accent-gold);
}

.mockup-name {
    font-size: 12px;
    font-weight: bold;
    color: #fff;
}

.mockup-chat-area {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    position: relative;
}

.mockup-msg {
    display: flex;
    width: 100%;
    opacity: 0;
    transform: translateY(10px);
}

.mockup-msg.user-msg {
    justify-content: flex-end;
    animation: slideInUp 0.5s cubic-bezier(0.1, 1, 0.1, 1) 0.5s forwards, fadeOut 0.5s ease-in 10.5s forwards;
}

.mockup-bubble {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 11.5px;
    line-height: 1.4;
}

.user-msg .mockup-bubble {
    background: linear-gradient(135deg, #d4af37, #aa7c11);
    color: #000;
    font-weight: bold;
    border-top-right-radius: 2px;
}

.goblin-msg .mockup-bubble {
    background: rgba(255,255,255,0.06);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.08);
    border-top-left-radius: 2px;
}

/* Typing Dots Animation */
.typing-dots {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--accent-gold);
    border-radius: 50%;
    animation: typingBounce 1s infinite ease-in-out;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

.typing-msg {
    animation: fadeIn 0.3s ease-out 1.5s forwards, fadeOut 0.2s ease-in 3.5s forwards;
}

.response-msg {
    animation: slideInUp 0.6s cubic-bezier(0.1, 1, 0.1, 1) 3.7s forwards, fadeOut 0.5s ease-in 10.5s forwards;
}

.mockup-presets, .mockup-presets-js {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.mockup-presets {
    opacity: 0;
    transform: translateY(5px);
    animation: slideInUp 0.5s cubic-bezier(0.1, 1, 0.1, 1) 5.5s forwards, fadeOut 0.5s ease-in 10.5s forwards;
}

.mockup-presets-js {
    opacity: 1;
    transform: translateY(0);
}

.mockup-preset-btn {
    background: rgba(218, 165, 32, 0.08);
    border: 1px solid rgba(218, 165, 32, 0.25);
    border-radius: 12px;
    color: var(--accent-gold-light);
    padding: 4px 8px;
    font-size: 9.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.mockup-preset-btn:hover {
    background: rgba(218, 165, 32, 0.2);
    border-color: var(--accent-gold);
    color: #fff;
    transform: translateY(-1px);
}

.mockup-preset-btn:active {
    transform: translateY(0) scale(0.97);
}

/* Animations definition */
@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Virtual Mouse Cursor & Click Simulation */
.virtual-cursor {
    position: absolute;
    width: 24px;
    height: 24px;
    pointer-events: none;
    z-index: 100;
    opacity: 0;
    background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iI0RBQTUyMCIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIxLjUiPjxwb2x5Z29uIHBvaW50cz0iNCwyIDExLDIwIDE0LDEzIDIxLDExIi8+PC9zdmc+") no-repeat;
    background-size: contain;
    transition: left 0.8s ease-in-out, top 0.8s ease-in-out, transform 0.2s ease-in-out, opacity 0.4s ease-in-out;
}

.mockup-preset-btn.mockup-active {
    background: rgba(218, 165, 32, 0.4) !important;
    border-color: var(--accent-gold) !important;
    color: #fff !important;
    transform: scale(0.95);
}

/* ==========================================================================
   Premium Dashboard Onboarding Redesign Style
   ========================================================================== */

.new-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px; /* 1.2x scaled up */
    padding: 0 24px;
    background: rgba(10, 16, 45, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-brand-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.new-brand-logo {
    width: 38px; /* 1.2x scaled up */
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 215, 0, 0.3);
    object-fit: cover;
}

.new-brand-text {
    display: flex;
    flex-direction: column;
}

.new-brand-title {
    font-size: 18px; /* 1.2x scaled up */
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.01em;
}

.new-brand-subtitle {
    font-size: 11px; /* 1.2x scaled up */
    color: var(--text-dim);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.header-elements-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.new-hero-section {
    position: relative;
    background-color: #0B0F19;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;
    padding: 44px 24px;
    min-height: 200px;
    border-radius: 16px;
    margin: 16px 20px 24px 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.new-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 55%;
    background: url('./assets/onboarding_hero_image.webp') center/cover no-repeat;
    z-index: 0;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to left, black 40%, transparent 100%);
    mask-image: linear-gradient(to left, black 40%, transparent 100%);
}

.hero-particles-container {
    position: absolute;
    left: 0;
    top: 0;
    width: 45%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.hanja-particle {
    position: absolute;
    bottom: -30px;
    font-weight: 700;
    pointer-events: none;
    user-select: none;
    animation: floatUp 8s linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-240px) rotate(15deg);
        opacity: 0;
    }
}

.new-hero-tagline {
    font-family: var(--font-heading);
    font-size: clamp(16px, 5.2vw, 23px);
    font-weight: 700;
    color: #ffffff;
    line-height: 2.2;
    letter-spacing: 1px;
    margin: 0;
    text-align: left;
    width: 100%;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 1;
}

.new-hero-cta {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #B8860B 100%);
    color: #000;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(218, 165, 32, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    width: auto;
    max-width: fit-content;
    position: relative;
    z-index: 1;
}

.new-hero-cta:active {
    transform: scale(0.96);
    box-shadow: 0 3px 8px rgba(218, 165, 32, 0.2);
    position: relative;
    z-index: 1;
}

/* 2-Column Services Grid */
.new-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 20px 28px 20px;
}

.new-service-card {
    position: relative;
    background: rgba(10, 16, 45, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 20px;
    padding: 16px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.new-service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.15);
}

.new-card-badge {
    font-size: 12px; /* 1.2x scaled up */
    font-weight: 800;
    color: #FFD700;
    background: rgba(255, 215, 0, 0.12);
    padding: 4px 10px; /* 1.2x scaled up */
    border-radius: 10px;
    align-self: flex-start;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 215, 0, 0.15);
}

.new-card-image-wrapper {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    position: relative;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.new-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.new-card-tags {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 5px;
    margin-bottom: 12px;
    width: 100%;
    overflow: hidden;
}

.new-card-tags span {
    font-size: 9.5px;
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5px 6px;
    border-radius: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.new-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 12px 0;
}

.new-card-action {
    font-size: 12.5px;
    font-weight: 700;
    color: #000000;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #B8860B 100%);
    padding: 10px 12px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(218, 165, 32, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.new-card-action .arrow-icon {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.new-service-card:hover .new-card-action {
    background: linear-gradient(135deg, #FFF 0%, var(--accent-gold) 100%);
    box-shadow: 0 6px 16px rgba(218, 165, 32, 0.35);
}

.new-service-card:hover .new-card-action .arrow-icon {
    transform: translateX(3px);
}

/* Chat Card Simulated Bubble Overlay */
.chat-card-wrapper {
    position: relative;
}

.chat-overlay-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(10, 16, 45, 0.85) 30%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px;
    gap: 8px;
    pointer-events: none;
}

.chat-bubble-mini {
    font-size: 11px; /* 1.2x scaled up */
    padding: 6px 10px; /* 1.2x scaled up */
    border-radius: 12px;
    max-width: 85%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    animation: floatMiniBubble 4s infinite ease-in-out;
}

.chat-bubble-mini.user-mini {
    align-self: flex-end;
    background: var(--accent-gold);
    color: #0c0f24;
    border-bottom-right-radius: 2px;
    transform-origin: right bottom;
}

.chat-bubble-mini.goblin-mini {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    border-bottom-left-radius: 2px;
    transform-origin: left bottom;
    animation-delay: 2s;
}

.dots-mini {
    display: flex;
    gap: 4px;
    align-items: center;
    height: 10px;
}

.dots-mini span {
    width: 4px;
    height: 4px;
    background: #FFFFFF;
    border-radius: 50%;
    animation: bounceMiniDots 1.4s infinite ease-in-out both;
}

.dots-mini span:nth-child(1) { animation-delay: -0.32s; }
.dots-mini span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounceMiniDots {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@keyframes floatMiniBubble {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-3px) scale(1.02); }
}

/* Mobile Optimization for 2-Column Services Grid */
@media (max-width: 480px) {
    .new-services-grid {
        gap: 8px;
        padding: 0 20px 28px 20px;
    }
    .new-service-card {
        padding: 10px;
        border-radius: 14px;
    }
    .new-card-badge {
        font-size: 11px;
        padding: 3px 8px;
        margin-bottom: 8px;
        border-radius: 8px;
    }
    .new-card-image-wrapper {
        margin-bottom: 8px;
        border-radius: 10px;
    }
    .new-card-tags {
        gap: 3px;
        margin-bottom: 8px;
    }
    .new-card-tags span {
        font-size: 8.5px;
        padding: 1.5px 4px;
        border-radius: 4px;
    }
    .new-card-title {
        font-size: 14px;
        margin-bottom: 8px;
    }
    .new-card-action {
        font-size: 11px;
        padding: 8px 6px;
        border-radius: 8px;
    }
}

/* Reviews Section */
.new-reviews-section {
    padding: 28px 20px 36px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.01);
}

.new-reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    width: 100%;
}

.new-reviews-title {
    font-size: 15px; /* 1.2x scaled up from 13px */
    color: #FFFFFF;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.new-reviews-title .divider {
    color: rgba(255, 255, 255, 0.15);
    font-weight: 300;
}

.new-reviews-title .reviews-count {
    font-size: 12.5px; /* 1.2x scaled up from 11px */
    color: var(--accent-gold);
    font-weight: 500;
}

.review-refresh-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(218, 165, 32, 0.45);
    color: var(--accent-gold);
    font-size: 11.5px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    flex-shrink: 0;
}
.review-refresh-btn:hover, .review-refresh-btn:active {
    background: rgba(218, 165, 32, 0.2);
    border-color: #FFD700;
    color: #ffffff;
    transform: scale(0.96);
}
.review-refresh-btn svg {
    transition: transform 0.4s ease;
}
.review-refresh-btn.spinning svg {
    animation: rotateRefresh 0.8s linear infinite;
}
@keyframes rotateRefresh {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Infinite Marquee Scroll for Reviews */
.new-reviews-marquee-container {
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    position: relative;
    padding: 10px 0;
}
.new-reviews-marquee-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 28px;
    height: 100%;
    background: linear-gradient(to right, var(--bg-main, #0B0F19), transparent);
    z-index: 5;
    pointer-events: none;
}
.new-reviews-marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 28px;
    height: 100%;
    background: linear-gradient(to left, var(--bg-main, #0B0F19), transparent);
    z-index: 5;
    pointer-events: none;
}
.new-reviews-marquee-container::-webkit-scrollbar {
    display: none;
}

.new-reviews-marquee-track {
    display: flex;
    flex-direction: row; /* Horizontal layout */
    width: max-content;
    gap: 16px;
    animation: marqueeScroll 35s linear infinite !important;
}

.new-review-card {
    flex: 0 0 160px; /* Square width */
    height: 160px;   /* Square height */
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(218, 165, 32, 0.3);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.new-review-card .review-header {
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: center;
    border: 1px solid rgba(218, 165, 32, 0.5);
    background: rgba(218, 165, 32, 0.08);
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 4px;
}

.new-review-card .review-stars {
    color: #FFD700;
    font-size: 11px;
    letter-spacing: -0.5px;
}

.new-review-card .reviewer-name {
    font-size: 10px;
    color: var(--text-dim);
    text-align: right;
    display: block;
}

.new-review-card .review-text {
    font-size: 11.5px;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.45;
    margin: 0;
    word-break: keep-all;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 8px)); /* Scrolls exactly half the track width */
    }
}

@keyframes marqueeScrollVertical {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(calc(-50% - 6px)); /* Translate exactly half height */
    }
}

/* Payment Toast Animation styles */
.payment-toast {
    background: rgba(11, 15, 25, 0.96);
    border: 1px solid var(--accent-gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 10px rgba(218, 165, 32, 0.2);
    border-radius: 30px;
    padding: 10px 20px;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.payment-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.payment-toast.hide {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Saju Scroll Card Container */
/* Saju Dokkaebi Bronze Mirror Container */
/* Antique Dokkaebi Mirror Container */
/* Saju Widescreen Card Style */
/* Saju Widescreen Card 3D Flip Layout */
.saju-card-wrapper {
    position: relative;
    margin: 32px -10px; /* Negative margin pulls the card outward to reduce visual padding to half */
    width: calc(100% + 20px); /* Adjust width to fit the negative margins */
    max-width: calc(100% + 20px);
    box-sizing: border-box;
    perspective: 1000px; /* Enable 3D depth */
    display: flex;
    flex-direction: column;
    align-items: stretch;
    pointer-events: auto;
}

.saju-card-inner {
    position: relative;
    width: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Snap/elastic rotation effect */
    cursor: pointer;
}

/* Flipped state toggled on wrapper click */
.saju-card-wrapper.flipped .saju-card-inner {
    transform: rotateY(180deg);
}

/* Common Card Face Styles */
.saju-card-front, .saju-card-back {
    border-radius: 16px;
    border: 1.5px solid rgba(218, 165, 32, 0.25);
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(218, 165, 32, 0.05);
    backface-visibility: hidden; /* Hide elements when rotated facing back */
    overflow: hidden;
}

/* Card Front: The actual result, starts rotated out of view */
.saju-card-front {
    position: relative; /* Acts as the height driver for the entire card structure */
    z-index: 2;
    transform: rotateY(180deg); /* Hidden initially, shown when parent is flipped */
    background: #0d121d; /* Deep slate theme background */
    display: flex;
    flex-direction: column;
}

/* Card Back: The mysterious cover, shown initially */
.saju-card-back {
    position: absolute; /* Absolute covers the front exactly, keeping sizes consistent */
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
    transform: rotateY(0deg); /* Visible initially */
    background: radial-gradient(circle at 50% 50%, #151924 0%, #080a0f 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* Space top, middle, bottom elements perfectly */
    padding: 48px 24px 44px 24px; /* Balanced interior margins to isolate elements */
    box-sizing: border-box;
    text-align: center;
}

/* Premium Diagonal Gold Checkered Mesh Pattern for Card Back */
.card-back-pattern {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #080a0f;
    background-image: 
        repeating-linear-gradient(135deg, transparent, transparent 18px, rgba(218, 165, 32, 0.12) 18px, rgba(218, 165, 32, 0.12) 20px),
        repeating-linear-gradient(45deg, transparent, transparent 18px, rgba(218, 165, 32, 0.12) 18px, rgba(218, 165, 32, 0.12) 20px);
    border-radius: 14px;
    pointer-events: none;
    z-index: 1;
}

/* Card Back Title (Static, 2x Larger, Placed at the Top) */
.card-back-title {
    color: #fff;
    font-size: clamp(28px, 7.5vw, 36px); /* 2x larger than previous size, scales on mobile */
    font-family: 'Noto Serif KR', serif;
    font-weight: 900;
    letter-spacing: 1.5px;
    z-index: 2;
    /* Luxury multi-layered gold/black 3D chiseled text shadow */
    text-shadow: 
        0 2px 0 #b38e3b, 
        0 4px 0 #70541d, 
        0 6px 8px rgba(0, 0, 0, 0.85), 
        0 0 10px rgba(255, 215, 0, 0.25);
    margin: 0;
}

/* Official Golden Logo Image on Card Back (Static, Placed at the Bottom) */
.card-back-logo-img {
    width: 125px;
    height: auto;
    z-index: 2;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6)) brightness(1.05);
    margin: 0;
}

/* Prompt Button on Card Back */
.card-back-prompt {
    color: #ffd700;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    background: rgba(218, 165, 32, 0.1);
    border: 1px solid rgba(218, 165, 32, 0.3);
    padding: 6px 16px;
    border-radius: 20px;
    z-index: 2;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
    animation: pulseBackPrompt 1.5s infinite alternate ease-in-out;
}

@keyframes pulseBackPrompt {
    0% { transform: scale(1); opacity: 0.8; box-shadow: 0 0 5px rgba(218, 165, 32, 0.1); }
    100% { transform: scale(1.04); opacity: 1; box-shadow: 0 0 15px rgba(218, 165, 32, 0.3); }
}

/* Front Details: Images and typography */
.saju-card-img-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9; /* Matches native 16:9 ratio of images for absolutely ZERO crop on top/bottom */
    overflow: hidden;
    background: #000;
    border-bottom: 2px solid rgba(218, 165, 32, 0.2);
    position: relative;
    flex-shrink: 0;
}

.saju-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.saju-card-content {
    flex: 1;
    padding: 24px 20px 28px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.saju-card-label {
    color: var(--accent-gold-light);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    display: block;
}

.saju-card-title {
    color: #fff;
    font-size: clamp(17px, 5vw, 21px);
    font-family: 'Noto Serif KR', serif;
    font-weight: 900;
    line-height: 1.4;
    margin: 0 0 12px 0;
    word-break: keep-all;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.saju-card-desc {
    color: #a0aec0;
    font-size: 14.5px;
    line-height: 1.65;
    margin: 0;
    word-break: keep-all;
    text-align: center;
}



.mystic-divider-icon {
    width: 28px !important;
    height: 28px !important;
    z-index: 2 !important;
    position: relative !important;
    background-color: var(--bg-main, #0a0d14) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    margin: 0 10px !important;
}

.mystic-divider-icon svg {
    filter: drop-shadow(0 0 4px rgba(218, 165, 32, 0.45)) !important;
}

/* On step-result (which uses result-view), the background color is #0B0F19. */
.result-view .mystic-divider-icon {
    background-color: #120D0A !important;
}

/* ==========================================
   도깨비 대화 시간제 과금 추가 스타일
   ========================================== */
.duration-selector {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
    width: 100%;
}

.duration-btn {
    flex: 1;
    padding: 10px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    color: var(--text-dim) !important;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    outline: none;
}

.duration-btn:hover {
    border-color: rgba(218, 165, 32, 0.5) !important;
    background: rgba(218, 165, 32, 0.05) !important;
    color: var(--accent-gold-light) !important;
}

.duration-btn.active {
    border-color: var(--accent-gold) !important;
    background: rgba(218, 165, 32, 0.15) !important;
    color: var(--accent-gold) !important;
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.2) !important;
}

#talk-timer-display {
    animation: pulse-glow 2s infinite alternate;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 4px rgba(218, 165, 32, 0.2);
    }
    100% {
        box-shadow: 0 0 12px rgba(218, 165, 32, 0.4);
    }
}

/* 글로벌 스크롤바 디자인 통일 (어두운 골드 테마) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(18, 18, 24, 0.6);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-gold, #daa520), rgba(218, 165, 32, 0.4));
    border-radius: 10px;
    border: 2px solid rgba(18, 18, 24, 0.6);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ffd700, rgba(218, 165, 32, 0.7));
}

/* Firefox 표준 지원 */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(218, 165, 32, 0.5) rgba(18, 18, 24, 0.6);
}

/* Capture Mode Override for html2canvas (Forcing flat layout) */
.capturing .saju-card-inner {
    transform: none !important;
    transform-style: flat !important;
    perspective: none !important;
}

.premium-preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    background: linear-gradient(145deg, #FAF4E8 0%, #F1E5CF 50%, #E5D4B6 100%) !important;
    border: 2px solid #8C6A3C !important;
    border-radius: 20px;
    padding: 28px 20px;
    box-sizing: border-box;
    margin-bottom: 32px;
    box-shadow: inset 0 0 20px rgba(180, 140, 70, 0.3), 0 10px 35px rgba(0, 0, 0, 0.75) !important;
}

.preview-info-panel {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.preview-info-panel h3 {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
    line-height: 1.4 !important;
    font-family: var(--font-heading);
    color: #1F120A !important;
    text-shadow: none !important;
}

.preview-info-panel h3 .gold-text {
    color: #8C2318 !important; /* Deep Vermilion Calligraphy Red on Hanji */
    text-shadow: none !important;
}

.preview-info-panel p {
    margin-top: 4px !important;
    margin-bottom: 12px !important;
    color: #4A3728 !important;
    font-weight: 600 !important;
}

.feature-grid {
    display: flex;
    flex-direction: column; /* Stack horizontal blocks vertically */
    gap: 12px;
    width: 100%;
    margin-top: 16px;
}

.feature-card {
    background: linear-gradient(145deg, #FFFBF5 0%, #F6ECDA 100%) !important;
    border: 1.5px solid #A88754 !important;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    box-shadow: inset 0 0 8px rgba(180, 140, 70, 0.2), 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    border-color: #8C6A3C !important;
}

.feature-icon {
    font-size: 28px;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.feature-title {
    color: #1F120A !important;
    font-size: 15px;
    font-weight: 800;
    margin: 0;
    text-align: left;
    font-family: var(--font-heading);
}

.feature-desc {
    color: #4A3728 !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
    word-break: keep-all;
}: 28px;
    flex-shrink: 0;
    margin-top: 2px; /* Align with first line of text */
}

.feature-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.feature-title {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    text-align: left;
}

.feature-desc {
    color: var(--text-dim);
    font-size: 12.5px;
    line-height: 1.6;
    margin: 0;
    word-break: keep-all;
    text-align: left;
}

/* Smartphone Mockup */
.preview-phone-mockup {
    width: 100%;
    max-width: 320px;
    height: 480px;
    background: #000;
    border: 8px solid #1a1a24;
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(218, 165, 32, 0.15);
    display: flex;
    flex-direction: column;
    margin: 12px auto;
}

.phone-notch {
    width: 120px;
    height: 20px;
    background: #1a1a24;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.phone-screen-viewport {
    flex: 1;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #0b0f19;
    padding-top: 24px; /* Space for notch */
}

/* ==========================================
   Mock Saju Table & Preview Mockup Spacing & Dividers
   ========================================== */
.mock-saju-table {
    display: flex;
    gap: 6px;
    justify-content: center;
    width: 100%;
    margin-top: 12px;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.mock-saju-pillar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.mock-pillar-label {
    color: #cbd5e1;
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 2px;
    text-align: center;
}

.mock-pillar-card {
    border-radius: 6px;
    padding: 8px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.mock-pillar-star {
    font-size: 9px;
    font-weight: 600;
    margin-bottom: 2px;
    text-align: center;
}

.mock-pillar-char {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    text-align: center;
}

.mock-pillar-element {
    font-size: 9px;
    margin-top: 2px;
    text-align: center;
}

/* Chapter Dividers & Inner Spacing inside the Mockup Viewport */
.preview-scroll-content > div {
    border-bottom: 1px dashed rgba(218, 165, 32, 0.25);
    padding-bottom: 24px;
    margin-bottom: 24px;
    width: 100%;
    box-sizing: border-box;
}

.preview-scroll-content > div:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.mock-ch-label {
    font-size: 11px;
    color: var(--accent-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    text-align: center;
}

.mock-ch-title {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    margin-top: 0;
    margin-bottom: 12px;
    text-align: center;
    line-height: 1.35;
    word-break: keep-all;
}

.mock-tarot-card {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(218, 165, 32, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin-bottom: 12px;
    background: #0b0f19;
}

.mock-tarot-card svg {
    width: 100%;
    height: auto;
    display: block;
}

.mock-bubble {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
    font-size: 11.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    word-break: keep-all;
    text-align: left;
}

/* ==========================================
   Result Premium Header Style
   ========================================== */
.result-premium-header {
    position: relative;
    width: 100%;
    margin-bottom: 32px;
    padding-top: 16px;
    box-sizing: border-box;
}

.result-header-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 24px;
    padding: 0 16px;
}

.result-header-logo {
    display: none;
}

.result-header-title-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.result-header-title-main {
    color: var(--accent-gold);
    font-family: 'Noto Serif KR', serif;
    font-weight: 800;
    font-size: clamp(17px, 5vw, 21px);
    letter-spacing: 2px;
    line-height: 1.3;
}

.result-header-title-sub {
    color: #fff;
    font-family: 'Noto Serif KR', serif;
    font-weight: 900;
    font-size: clamp(26px, 8vw, 34px);
    letter-spacing: 1px;
    line-height: 1.3;
    margin-top: 6px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.result-header-banner {
    position: relative;
    width: 100%;
    margin-bottom: 24px;
    background: transparent;
}

.result-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    /* Softly fade all four edges of the image into black background */
    mask-image: radial-gradient(ellipse 65% 55% at 50% 50%, black 45%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 50%, black 45%, transparent 100%);
}

.result-banner-overlay {
    display: none;
}

.result-header-message {
    text-align: center;
    padding: 0 16px;
}

.result-msg-line1 {
    color: var(--text-main, #fff);
    font-family: 'Noto Serif KR', serif;
    font-weight: 700;
    font-size: clamp(16px, 5vw, 21px);
    line-height: 1.4;
    margin: 0 0 6px 0;
    word-break: keep-all;
}

.result-msg-line2 {
    color: var(--accent-gold-light);
    font-family: 'Noto Serif KR', serif;
    font-weight: 800;
    font-size: clamp(14px, 4.5vw, 18px);
    line-height: 1.4;
    margin: 0;
    word-break: keep-all;
}

/* ==========================================
   Loading Reviews Style Overrides
   ========================================== */
.loading-review-container {
    width: 100%;
    max-width: 320px;
    margin: 32px auto 0;
    position: relative;
    height: 180px;
}

.loading-r-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    background: rgba(13, 18, 29, 0.96) !important;
    border: 1px solid rgba(218, 165, 32, 0.35) !important;
    border-left: 1px solid rgba(218, 165, 32, 0.35) !important;
    border-radius: 16px !important;
    padding: 20px !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6), 0 0 15px rgba(218, 165, 32, 0.05);
    transition: opacity 0.5s ease-in-out;
}

.loading-r-card .review-header {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 0 14px 0 !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.loading-r-card .stars {
    font-size: 16px !important;
    color: #fbbf24 !important;
    letter-spacing: 2px;
}

.loading-r-card .review-title {
    font-size: 14.5px !important;
    font-weight: 400 !important;
    color: #ffffff !important;
    line-height: 1.65 !important;
    text-align: left !important;
    word-break: keep-all;
    margin-bottom: 12px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.loading-r-card .review-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
}

.loading-r-card .reviewer {
    font-size: 11.5px !important;
    color: rgba(255, 255, 255, 0.45) !important;
    margin: 0 !important;
    text-align: right !important;
    display: inline-block !important;
}

.highlight-yellow {
    color: #ffd700 !important;
    font-weight: 700 !important;
    display: inline !important;
}

/* Step Teaser (Free Preview) Hanji Background Override */
#step-teaser, .spooky-bg {
    background: #120D0A url('./assets/hanji_bg.webp') repeat !important;
    background-size: 512px 512px !important;
}

/* ── NEW LAYOUT (REFERENCE) ── */
:root {
    --ref-border-gold: rgba(212, 163, 89, 0.35);
    --ref-border-blue: rgba(212, 163, 89, 0.35);
    --ref-blue: #D4A359;
    --ref-blue2: #F0C987;
}

/* Animations */
.s {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    animation: tw var(--d) var(--dl) ease-in-out infinite;
}
@keyframes tw {
    0%, 100% { opacity: 0; }
    50% { opacity: var(--op); }
}
@keyframes hflk {
    0%, 100% { transform: scaleX(1) scaleY(1); }
    30% { transform: scaleX(0.96) scaleY(1.04); }
    60% { transform: scaleX(1.03) scaleY(0.96); }
}
@keyframes shine {
    0%, 100% { left: -60%; }
    50% { left: 130%; }
}
@keyframes pulse-live {
    0%, 100% { opacity: 0.6; box-shadow: 0 0 0 0 rgba(76, 255, 145, 0.5); }
    50% { opacity: 1; box-shadow: 0 0 0 4px rgba(76, 255, 145, 0); }
}
@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(218, 165, 32, 0.5); }
    60% { box-shadow: 0 0 0 5px rgba(218, 165, 32, 0); }
}
@keyframes card-glow {
    0%, 100% { box-shadow: 0 0 0 1px var(--ref-border-gold); }
    50% { box-shadow: 0 0 16px rgba(218, 165, 32, 0.15), 0 0 0 1px rgba(218, 165, 32, 0.35); }
}

/* Hero Section */
.hero-ref {
    position: relative;
    min-height: 360px; /* 단락 자체의 세로 높이를 360px로 대폭 늘림 */
    overflow: hidden;
    padding: 24px 20px 24px 20px;
    background: transparent;
    display: flex;
    align-items: center; /* 늘어난 높이에 맞춰 내부 텍스트 콘텐츠를 세로 중앙 정렬 */
}
.hero-ref-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 75% 25%, rgba(60, 44, 30, 0.25) 0%, transparent 60%),
                radial-gradient(circle at 15% 85%, rgba(40, 28, 19, 0.2) 0%, transparent 65%);
    z-index: 0;
}
.hero-ref-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}
.hero-ref-char {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%; /* 가로 100%를 다시 가득 채움 */
    z-index: 1;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.08) 12%, black 60%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.08) 12%, black 60%);
}
.hero-ref-char-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 가로 100%를 채우며 늘어난 세로 높이만큼 아래까지 잘 보이도록 함 */
    object-position: right top;
    filter: brightness(0.8) saturate(1.15);
    -webkit-mask-image: linear-gradient(to bottom, black 72%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 72%, transparent 100%);
}
.hero-ref-char-ph {
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #050a12, #0a1630, #061024);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ph-flame {
    font-size: 60px;
    filter: hue-rotate(200deg) saturate(1.8) brightness(0.85);
    opacity: 0.55;
    animation: hflk 2.2s ease-in-out infinite;
}
.hero-ref-content {
    position: relative;
    z-index: 2;
    width: 58%;
}
.logo-img-ref {
    display: block;
    width: 180px;
    max-width: 100%;
    margin-bottom: 12px;
    mix-blend-mode: screen;
    filter: brightness(1.05) contrast(1.1);
}
.hero-ref-desc {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 16px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.7);
}
.hero-ref-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 12px; /* 다른 두 버튼과 동일한 세로 높이(패딩) 적용 */
    background: linear-gradient(135deg, #8a6200, var(--accent-gold), var(--accent-gold-light));
    border: none;
    border-radius: 12px;
    font-size: 14px; /* 글씨 크기를 다른 두 버튼과 동일하게 맞춤 (기존 12px) */
    font-weight: 900;
    font-family: var(--font-body);
    color: #060400;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255, 230, 120, 0.25), 0 4px 15px rgba(218, 165, 32, 0.4);
    max-width: 178px; /* 글씨 및 패딩 증가에 맞춰 최대 너비 조정 */
    width: 100%;
    text-align: center;
    white-space: nowrap; /* 무조건 한 줄 표시 */
}
.hero-ref-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 35%;
    height: 200%;
    background: rgba(255, 255, 255, 0.28);
    transform: skewX(-20deg);
    animation: shine 2.2s ease-in-out infinite;
}

/* Gold Divider */
.gold-divider-ref {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    margin: 4px 0 16px 0;
}
.gd-ref-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(218, 165, 32, 0.25), transparent);
}
.gd-ref-gem {
    width: 6px;
    height: 6px;
    background: var(--accent-gold);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(218, 165, 32, 0.5);
}

/* Stats Bar */
.stats-bar-ref {
    display: flex;
    background: rgba(8, 15, 28, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    margin-bottom: 16px;
}
.stat-ref-item {
    flex: 1;
    padding: 12px 8px;
    position: relative;
    text-align: center;
}
.stat-ref-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.06);
}
.stat-ref-num {
    font-size: 15px;
    font-weight: 900;
    color: var(--accent-gold-light);
    display: block;
    font-family: var(--font-body);
}
.stat-ref-label {
    font-size: 9.5px;
    color: var(--text-dim);
    display: block;
    margin-top: 2px;
    font-family: var(--font-body);
}

/* Live Bar */
.live-bar-ref {
    margin: 0 20px 20px 20px;
    background: rgba(74, 158, 255, 0.04);
    border: 1px solid rgba(74, 158, 255, 0.12);
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 9px;
}
.live-ref-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4cff91;
    flex-shrink: 0;
    animation: pulse-live 1.2s ease-in-out infinite;
}
.live-ref-txt {
    font-size: 11px;
    color: rgba(248, 248, 255, 0.6);
    flex: 1;
    font-family: var(--font-body);
}
.live-ref-txt strong {
    color: var(--accent-gold-light);
    font-weight: 700;
}
.live-ref-badge {
    font-size: 9px;
    font-weight: bold;
    color: rgba(74, 158, 255, 0.8);
    background: rgba(74, 158, 255, 0.08);
    border: 1px solid rgba(74, 158, 255, 0.2);
    padding: 2px 6px;
    border-radius: 5px;
    letter-spacing: 0.5px;
}

/* Service Section */
.svc-ref-section {
    padding: 0 20px 20px 20px;
}
.svc-ref-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.svc-ref-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    font-family: var(--font-body);
}

/* Cards */
.big-ref-card {
    border-radius: 16px;
    border: 1.5px solid #8C6A3C !important;
    background: linear-gradient(145deg, #FAF4E8 0%, #F1E5CF 50%, #E5D4B6 100%) !important;
    color: #1F120A !important;
    box-shadow: inset 0 0 10px rgba(180, 140, 70, 0.25), 0 6px 20px rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    position: relative;
    display: flex;
    margin-bottom: 16px;
    cursor: pointer;
    min-height: 152px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.big-ref-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.big-ref-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 16px 0 0 16px;
}

.card-ref-cheongi {
    border-color: rgba(212, 163, 89, 0.4);
    animation: card-glow 3s ease-in-out infinite;
}
.card-ref-cheongi::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 55%, rgba(212, 163, 89, 0.08), transparent 55%);
    pointer-events: none;
}
.card-ref-cheongi::after {
    background: linear-gradient(to bottom, #D4A359, rgba(212, 163, 89, 0.3));
}

.card-ref-saju {
    border-color: var(--ref-border-gold);
}
.card-ref-saju::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 55%, rgba(218, 165, 32, 0.04), transparent 55%);
    pointer-events: none;
}
.card-ref-saju::after {
    background: linear-gradient(to bottom, var(--accent-gold), rgba(218, 165, 32, 0.3));
}

.big-ref-card-content {
    width: 55%; /* 가로 너비를 55%로 늘려 버튼 및 글씨 확장 공간 확보 */
    flex-shrink: 0;
    padding: 16px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.big-ref-card-badges {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}
.badge-ref {
    font-size: 9px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-body);
}
.badge-ref-gold {
    background: #8C6A3C;
    color: #FFF8EE;
}
.badge-ref-blue {
    background: #8C6A3C;
    color: #FFF8EE;
}
.badge-ref-outline-pop {
    background: rgba(218, 165, 32, 0.08);
    border: 1px solid rgba(218, 165, 32, 0.25);
    color: var(--accent-gold-light);
}

.big-ref-card-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.big-ref-card-icon {
    font-size: 20px;
}
.big-ref-card-title {
    font-size: 15px;
    font-weight: 800;
    color: #1F120A !important;
    font-family: var(--font-heading);
    white-space: nowrap;
}
.big-ref-card-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.tag-ref {
    font-size: 9.5px;
    padding: 1px 6px;
    border-radius: 4px;
    font-family: var(--font-body);
}
.tag-ref-gold {
    color: #4A3728;
    background: rgba(140, 106, 60, 0.1);
    border: 1px solid rgba(140, 106, 60, 0.25);
}
.tag-ref-blue {
    color: #4A3728;
    background: rgba(140, 106, 60, 0.1);
    border: 1px solid rgba(140, 106, 60, 0.25);
}
.big-ref-card-desc {
    font-size: 11.5px;
    color: #4A3728 !important;
    line-height: 1.6;
    margin-bottom: 12px;
    font-family: var(--font-body);
}

.big-ref-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 12px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 900;
    font-family: var(--font-body);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    align-self: flex-start;
    max-width: 148px;
    width: 100%;
    text-align: center;
    white-space: nowrap;
}
.btn-ref-gold {
    background: linear-gradient(135deg, #8a6200, var(--accent-gold), var(--accent-gold-light));
    color: #080300;
    box-shadow: 0 2px 8px rgba(218, 165, 32, 0.25);
}
.btn-ref-gold::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: rgba(255, 255, 255, 0.18);
    transform: skewX(-20deg);
    animation: shine 2.5s ease-in-out infinite;
}
.btn-ref-blue {
    background: #8C6A3C;
    color: #FFF8EE;
    border: 1px solid #A88754;
}
.btn-ref-blue::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: rgba(255, 255, 255, 0.08);
    transform: skewX(-20deg);
    animation: shine 2.8s ease-in-out infinite;
}

/* Card Image Area */
.big-ref-card-img {
    width: 45%; /* 가로 너비를 45%로 축소하여 콘텐츠 영역 확보 */
    flex-shrink: 0;
    position: relative;
}
.img-ref-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.img-ref-ph-saju {
    background: linear-gradient(to right, transparent 0%, #080e1a 45%, #08101e 100%);
}
.img-ref-ph-saju::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 55% 40%, rgba(218, 165, 32, 0.15), transparent 55%);
}
.img-ref-ph-cheongi {
    background: linear-gradient(to right, transparent 0%, #060c1a 45%, #0d1c3a 100%);
}
.img-ref-ph-cheongi::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 45% 35%, rgba(74, 158, 255, 0.2), transparent 55%);
}
.img-ref-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transform: scale(1.1) translateX(-10px); /* 가로 50% 분할 상자에 맞춰 적절한 1.1배 크기 조절 및 이동 */
    transform-origin: center;
}
.img-ref-emoji {
    position: relative;
    left: -11px; /* 축소된 문양 이동폭에 맞춰 이모지도 11px 이동으로 조정 */
    z-index: 2;
    font-size: 36px;
    opacity: 0.55;
    animation: hflk 2s ease-in-out infinite;
}

/* ==========================================
   Unified Review Card Design (Yellowish Aged Hanji Parchment Theme)
   ========================================== */
.new-review-card,
.review-marquee .review-card,
.loading-r-card,
.review-card {
    box-sizing: border-box !important;
    background: linear-gradient(145deg, #FAF4E8 0%, #F1E5CF 50%, #E5D4B6 100%) !important;
    border: 1.5px solid #8C6A3C !important;
    border-radius: 16px !important;
    padding: 14px 16px !important;
    box-shadow: inset 0 0 10px rgba(180, 140, 70, 0.25), 0 8px 24px rgba(0, 0, 0, 0.5) !important;
    transition: opacity 0.5s ease-in-out;
}

/* Horizontal card dimensions for marquees */
.new-review-card {
    flex: 0 0 220px !important;
    height: 160px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    gap: 6px !important;
}
.review-marquee .review-card {
    flex: 0 0 220px !important;
    height: 160px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    gap: 6px !important;
}

/* Header inside unified cards */
.new-review-card .review-header,
.review-marquee .review-card .review-header,
.loading-r-card .review-header {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 0 8px 0 !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* Stars */
.new-review-card .review-stars,
.review-marquee .review-card .stars,
.loading-r-card .stars,
.review-card .stars {
    font-size: 14px !important;
    color: #B86B00 !important; /* Bronze Gold Stars on Hanji */
    letter-spacing: 2px !important;
}

/* Review Text */
.new-review-card .review-text,
.review-marquee .review-card .review-text,
.loading-r-card .review-title,
.review-card .review-text,
.review-card .review-title {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #1F120A !important; /* Dark Calligraphy Ink text on yellowish Hanji! */
    line-height: 1.55 !important;
    text-align: left !important;
    margin: 0 0 8px 0 !important;
    word-break: keep-all;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-height: calc(12.5px * 1.55 * 3) !important;
    -webkit-text-size-adjust: 100%;
    font-family: var(--font-heading) !important;
}

/* Reviewer name/info alignment to bottom right */
.new-review-card .reviewer-name,
.review-marquee .review-card .reviewer,
.loading-r-card .reviewer,
.review-card .reviewer {
    font-size: 11.5px !important;
    color: #5C4636 !important; /* Dark Sepia Ink reviewer text */
    font-weight: 600 !important;
    margin: 0 !important;
    text-align: right !important;
    display: block !important;
    width: 100% !important;
}


