:root {
    --hot-pink: #FF4FBE;
    --neon-cyan: #00F0FF;
    --electric-purple: #9B5BFF;
    --soft-magenta: #FF7AD9;
    --sunset-orange: #FF6A3D;
    --dark-navy: #0C0E23;
    --deep-navy: #161833;
    --card-bg: #1a1d3a;
    
    --text-light: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    
    --glow-pink: 0px 0px 12px rgba(255, 79, 190, 0.45);
    --glow-cyan: 0px 0px 12px rgba(0, 240, 255, 0.45);
    --glow-purple: 0px 0px 12px rgba(155, 91, 255, 0.45);
    
    --wood-color: #4CAF50;
    --fire-color: #F44336;
    --earth-color: #FFC107;
    --metal-color: #E0E0E0;
    --water-color: #2196F3;
}

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

body {
    font-family: 'Noto Sans KR', sans-serif;
    min-height: 100vh;
    color: var(--text-light);
    line-height: 1.6;
    background: linear-gradient(135deg, #1a0a2e 0%, #16213e 50%, #0f0c29 100%);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 2.5rem;
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Ctext x='10' y='30' font-size='24' opacity='0.25'%3E🦌%3C/text%3E%3Ctext x='70' y='30' font-size='24' opacity='0.2'%3E🐢%3C/text%3E%3Ctext x='40' y='60' font-size='24' opacity='0.22'%3E🌲%3C/text%3E%3Ctext x='10' y='90' font-size='24' opacity='0.18'%3E🏔️%3C/text%3E%3Ctext x='70' y='90' font-size='24' opacity='0.23'%3E☁️%3C/text%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150' viewBox='0 0 150 150'%3E%3Ctext x='20' y='40' font-size='28' opacity='0.2'%3E🌊%3C/text%3E%3Ctext x='90' y='40' font-size='28' opacity='0.18'%3E🌞%3C/text%3E%3Ctext x='55' y='85' font-size='28' opacity='0.22'%3E🍄%3C/text%3E%3Ctext x='20' y='130' font-size='28' opacity='0.2'%3E🌿%3C/text%3E%3Ctext x='90' y='130' font-size='28' opacity='0.18'%3E🦢%3C/text%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Ctext x='30' y='50' font-size='32' opacity='0.15'%3E🐦%3C/text%3E%3Ctext x='110' y='50' font-size='32' opacity='0.2'%3E🌸%3C/text%3E%3Ctext x='70' y='110' font-size='32' opacity='0.18'%3E🎋%3C/text%3E%3Ctext x='30' y='160' font-size='32' opacity='0.22'%3E🍃%3C/text%3E%3Ctext x='110' y='160' font-size='32' opacity='0.15'%3E🌙%3C/text%3E%3C/svg%3E");
    background-size: 120px 120px, 150px 150px, 180px 180px;
    background-position: 0 0, 60px 60px, 30px 30px;
    pointer-events: none;
    z-index: 0;
    animation: floatBackground 60s linear infinite;
}

@keyframes floatBackground {
    0% { background-position: 0 0, 60px 60px, 30px 30px; }
    100% { background-position: 120px 120px, 210px 210px, 210px 210px; }
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 0%, rgba(155, 91, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(255, 79, 190, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 240, 255, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(155, 91, 255, 0.2) 0%, rgba(255, 79, 190, 0.15) 100%);
    border-radius: 16px;
    margin-bottom: 30px;
    border: 1px solid rgba(155, 91, 255, 0.3);
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--hot-pink) 50%, var(--electric-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

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

.input-section {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(155, 91, 255, 0.2);
}

.input-section h2 {
    color: var(--neon-cyan);
    margin-bottom: 25px;
    font-size: 1.3rem;
    text-align: center;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 100px;
}

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background: var(--deep-navy);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-light);
    transition: all 0.3s;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
}

.form-group select option {
    background: var(--dark-navy);
    color: white;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--hot-pink);
}

.checkbox-group label {
    margin-bottom: 0;
    color: var(--text-secondary);
}

.calendar-options {
    justify-content: flex-start;
}

.mbti-group {
    flex: 1;
    max-width: 100%;
}

.mbti-group select {
    width: 100%;
}

.mbti-help {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.mbti-analysis {
    background: linear-gradient(135deg, rgba(155, 91, 255, 0.15) 0%, rgba(255, 79, 190, 0.1) 100%);
    border: 1px solid rgba(155, 91, 255, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.mbti-analysis h4 {
    color: var(--electric-purple);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.mbti-analysis .mbti-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--electric-purple) 0%, var(--hot-pink) 100%);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.mbti-analysis p {
    line-height: 1.8;
    color: var(--text-secondary);
}

.mbti-combined {
    margin-top: 15px;
    padding: 15px;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 10px;
    border-left: 3px solid var(--neon-cyan);
}

.mbti-combined h5 {
    color: var(--neon-cyan);
    margin-bottom: 10px;
}

.mbti-section {
    margin-bottom: 15px;
}

.mbti-section h5 {
    color: var(--soft-magenta);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--hot-pink) 0%, var(--electric-purple) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    box-shadow: var(--glow-pink);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0px 0px 20px rgba(255, 79, 190, 0.6);
}

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

.result-section {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(155, 91, 255, 0.2);
}

.hidden {
    display: none !important;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(155, 91, 255, 0.2);
    padding-bottom: 15px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: var(--deep-navy);
    border: 1px solid rgba(155, 91, 255, 0.3);
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    color: var(--text-secondary);
}

.tab-btn:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--hot-pink) 0%, var(--electric-purple) 100%);
    border-color: transparent;
    color: white;
    box-shadow: var(--glow-pink);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

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

.pillar {
    background: var(--deep-navy);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 14px;
    padding: 15px;
    text-align: center;
}

.pillar-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 500;
}

.pillar-gan,
.pillar-ji {
    font-size: 2rem;
    font-weight: 700;
    margin: 5px 0;
    padding: 10px;
    border-radius: 10px;
    color: var(--text-light);
}

.pillar-gan {
    background: linear-gradient(135deg, rgba(255, 79, 190, 0.25) 0%, rgba(155, 91, 255, 0.25) 100%);
    border: 1px solid rgba(255, 79, 190, 0.3);
}

.pillar-ji {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2) 0%, rgba(155, 91, 255, 0.2) 100%);
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.pillar-sipsin {
    font-size: 0.8rem;
    color: var(--soft-magenta);
    margin-top: 8px;
    font-weight: 500;
}

.saju-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.summary-item {
    background: var(--deep-navy);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(155, 91, 255, 0.2);
}

.summary-item .label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.summary-item .value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--neon-cyan);
}

.ohang-chart h3 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-light);
}

.chart-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 150px;
    padding: 20px;
    background: var(--deep-navy);
    border-radius: 12px;
    border: 1px solid rgba(155, 91, 255, 0.2);
}

.ohang-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50px;
}

.bar {
    width: 40px;
    border-radius: 6px 6px 0 0;
    transition: height 0.5s ease;
    min-height: 10px;
}

.bar-label {
    margin-top: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
}

.bar-count {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.fortune-header {
    text-align: center;
    margin-bottom: 25px;
}

.fortune-date {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.fortune-level {
    display: inline-block;
    padding: 12px 35px;
    border-radius: 25px;
    font-size: 1.5rem;
    font-weight: 700;
}

.fortune-level.level-대길 {
    background: linear-gradient(135deg, #FFD700 0%, var(--sunset-orange) 100%);
    color: var(--dark-navy);
    box-shadow: 0px 0px 15px rgba(255, 215, 0, 0.5);
}

.fortune-level.level-길 {
    background: linear-gradient(135deg, #00F0FF 0%, #00D4AA 100%);
    color: var(--dark-navy);
    box-shadow: var(--glow-cyan);
}

.fortune-level.level-평 {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.fortune-level.level-소흉 {
    background: linear-gradient(135deg, var(--sunset-orange) 0%, var(--hot-pink) 100%);
    color: white;
    box-shadow: 0px 0px 15px rgba(255, 106, 61, 0.5);
}

.fortune-level.level-흉 {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: white;
    box-shadow: 0px 0px 15px rgba(239, 68, 68, 0.5);
}

.fortune-main {
    background: var(--deep-navy);
    padding: 25px;
    border-radius: 14px;
    margin-bottom: 25px;
    border-left: 4px solid var(--hot-pink);
    border: 1px solid rgba(255, 79, 190, 0.2);
    border-left: 4px solid var(--hot-pink);
}

.fortune-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.fortune-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.category-card {
    background: var(--deep-navy);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s;
    border: 1px solid rgba(155, 91, 255, 0.2);
}

.category-card:hover {
    transform: translateY(-2px);
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.category-comment {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.category {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: var(--deep-navy);
    border-radius: 10px;
}

.category-icon {
    font-size: 1.5rem;
}

.category-label {
    flex: 1;
    font-weight: 500;
    color: var(--text-light);
}

.category-value {
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
}

.category-value[data-level="매우 좋음"] {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.3) 0%, rgba(0, 212, 170, 0.3) 100%);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 240, 255, 0.4);
}

.category-value[data-level="좋음"] {
    background: rgba(0, 240, 255, 0.15);
    color: #5eead4;
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.category-value[data-level="보통"] {
    background: rgba(155, 91, 255, 0.2);
    color: #c4b5fd;
    border: 1px solid rgba(155, 91, 255, 0.3);
}

.category-value[data-level="주의"] {
    background: rgba(255, 106, 61, 0.2);
    color: #fdba74;
    border: 1px solid rgba(255, 106, 61, 0.4);
}

.category-value[data-level="신중"] {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.lucky-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
}

.lucky-item {
    text-align: center;
    background: var(--deep-navy);
    padding: 15px 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 79, 190, 0.2);
}

.lucky-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.lucky-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--hot-pink);
    text-shadow: var(--glow-pink);
}

.advice-box {
    background: linear-gradient(135deg, rgba(155, 91, 255, 0.25) 0%, rgba(255, 79, 190, 0.2) 100%);
    color: white;
    padding: 25px;
    border-radius: 14px;
    border: 1px solid rgba(155, 91, 255, 0.3);
}

.advice-box h4 {
    color: var(--neon-cyan);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.advice-box p {
    line-height: 1.8;
    color: var(--text-light);
}

.interpretation-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(155, 91, 255, 0.15);
}

.interpretation-section:last-child {
    border-bottom: none;
}

.interpretation-section h3 {
    color: var(--neon-cyan);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.interpretation-section p,
.interpretation-section div {
    color: var(--text-light);
    line-height: 1.8;
}

#sipsin-analysis {
    white-space: pre-line;
}

.highlight-section {
    background: linear-gradient(135deg, rgba(155, 91, 255, 0.15) 0%, rgba(255, 79, 190, 0.1) 100%);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(155, 91, 255, 0.25);
    margin-bottom: 25px;
}

.highlight-section h3 {
    color: var(--hot-pink);
    text-shadow: var(--glow-pink);
}

.ohang-analysis-item,
.sipsin-item {
    background: rgba(22, 24, 51, 0.6);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 12px;
    border-left: 3px solid var(--electric-purple);
    white-space: pre-line;
}

.ohang-analysis-item:last-child,
.sipsin-item:last-child {
    margin-bottom: 0;
}

#ohang-balance-analysis,
#sipsin-analysis {
    white-space: normal;
}

#lucky-items {
    background: rgba(255, 215, 0, 0.1);
    padding: 15px;
    border-radius: 10px;
    border: 1px dashed rgba(255, 215, 0, 0.4);
}

.pillars-detail-section {
    margin-top: 30px;
}

.pillars-detail-section h3 {
    color: var(--neon-cyan);
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-align: center;
}

.pillar-detail-card {
    background: var(--deep-navy);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(155, 91, 255, 0.25);
}

.pillar-detail-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(155, 91, 255, 0.2);
}

.pillar-detail-header h4 {
    color: var(--hot-pink);
    font-size: 1.2rem;
    margin: 0;
}

.pillar-represents {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pillar-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.ganji-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.ganji-box {
    background: rgba(12, 14, 35, 0.6);
    border-radius: 12px;
    padding: 15px;
}

.gan-box {
    border-left: 3px solid var(--electric-purple);
}

.ji-box {
    border-left: 3px solid var(--neon-cyan);
}

.ganji-title {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.ganji-symbol {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.ganji-name {
    color: var(--hot-pink);
    font-weight: 600;
    margin-bottom: 5px;
}

.ganji-ohang {
    color: var(--neon-cyan);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.ganji-meaning {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}

.harmony-box {
    background: linear-gradient(135deg, rgba(155, 91, 255, 0.15) 0%, rgba(0, 240, 255, 0.1) 100%);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.harmony-title {
    color: var(--neon-cyan);
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.harmony-box p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

.combined-meaning {
    background: rgba(255, 79, 190, 0.1);
    border-radius: 10px;
    padding: 15px;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    border-left: 3px solid var(--hot-pink);
}

@media (max-width: 500px) {
    .ganji-container {
        grid-template-columns: 1fr;
    }
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 14, 35, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(155, 91, 255, 0.3);
    border-top-color: var(--neon-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: var(--glow-cyan);
}

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

.loading p {
    color: white;
    margin-top: 15px;
    font-size: 1.1rem;
}

footer {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .saju-pillars {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .saju-summary {
        grid-template-columns: 1fr;
    }
    
    .fortune-categories {
        grid-template-columns: 1fr;
    }
    
    .tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1 1 45%;
    }
    
    .lucky-info {
        flex-direction: column;
        gap: 15px;
    }
}

/* 십이장생 Traditional Korean Background */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.08;
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ctext y='20' font-size='16' fill='%23FFD700'%3E🌲%3C/text%3E%3Ctext x='50' y='20' font-size='16' fill='%23FFD700'%3E🌊%3C/text%3E%3Ctext x='25' y='45' font-size='16' fill='%23FFD700'%3E🦌%3C/text%3E%3Ctext x='75' y='45' font-size='16' fill='%23FFD700'%3E🐢%3C/text%3E%3Ctext y='70' font-size='16' fill='%23FFD700'%3E🏔️%3C/text%3E%3Ctext x='50' y='70' font-size='16' fill='%23FFD700'%3E☀️%3C/text%3E%3Ctext x='25' y='95' font-size='16' fill='%23FFD700'%3E🍄%3C/text%3E%3Ctext x='75' y='95' font-size='16' fill='%23FFD700'%3E🌿%3C/text%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* Detailed Fortunes Section */
.detailed-fortunes-section {
    margin-top: 30px;
}

.detailed-fortunes-section h3 {
    color: var(--neon-cyan);
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-align: center;
    border-bottom: 2px solid rgba(0, 240, 255, 0.3);
    padding-bottom: 10px;
}

#detailed-fortunes {
    display: grid;
    gap: 20px;
}

.fortune-card {
    background: linear-gradient(135deg, rgba(26, 29, 58, 0.9) 0%, rgba(22, 24, 51, 0.9) 100%);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(155, 91, 255, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fortune-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-purple);
}

.fortune-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.fortune-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fortune-emoji {
    font-size: 1.8rem;
}

.fortune-card h4 {
    font-size: 1.3rem;
    color: var(--text-light);
    margin: 0;
}

.fortune-level-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(155, 91, 255, 0.2);
    color: var(--electric-purple);
}

.fortune-level-badge[data-level="매우 좋음"] {
    background: rgba(76, 175, 80, 0.25);
    color: #4CAF50;
}

.fortune-level-badge[data-level="좋음"] {
    background: rgba(33, 150, 243, 0.25);
    color: #2196F3;
}

.fortune-level-badge[data-level="보통"] {
    background: rgba(255, 193, 7, 0.25);
    color: #FFC107;
}

.fortune-level-badge[data-level="주의 필요"],
.fortune-level-badge[data-level="노력 필요"],
.fortune-level-badge[data-level="개발 필요"],
.fortune-level-badge[data-level="관심 필요"],
.fortune-level-badge[data-level="개선 필요"] {
    background: rgba(255, 152, 0, 0.25);
    color: #FF9800;
}

.fortune-summary {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.fortune-analysis {
    background: rgba(0, 240, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 15px;
    border-left: 3px solid var(--neon-cyan);
}

.fortune-analysis p {
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.fortune-analysis p:last-child {
    margin-bottom: 0;
}

.fortune-advice {
    background: rgba(255, 79, 190, 0.08);
    border-radius: 12px;
    padding: 16px;
    border-left: 3px solid var(--hot-pink);
}

.fortune-advice strong {
    color: var(--hot-pink);
    display: block;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.fortune-advice ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fortune-advice li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 6px;
    padding-left: 18px;
    position: relative;
}

.fortune-advice li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--soft-magenta);
    font-size: 0.75rem;
}

.fortune-advice li:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .fortune-card {
        padding: 18px;
    }
    
    .fortune-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .fortune-level-badge {
        align-self: flex-end;
    }
}

/* User Authentication Styles */
.header-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.user-auth {
    display: flex;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--neon-cyan);
}

.user-name {
    color: var(--text-light);
    font-size: 0.95rem;
}

.btn-login, .btn-logout {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-login {
    background: linear-gradient(135deg, var(--electric-purple) 0%, var(--hot-pink) 100%);
    color: white;
}

.btn-login:hover {
    box-shadow: var(--glow-purple);
    transform: translateY(-2px);
}

.btn-logout {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
}

/* Chat Container Styles */
.chat-container {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 500px;
    border: 1px solid rgba(155, 91, 255, 0.2);
}

.chat-header {
    padding: 20px;
    background: linear-gradient(135deg, rgba(155, 91, 255, 0.2) 0%, rgba(255, 79, 190, 0.15) 100%);
    border-bottom: 1px solid rgba(155, 91, 255, 0.2);
    text-align: center;
}

.chat-header h3 {
    color: var(--neon-cyan);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.chat-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.chat-message {
    display: flex;
    gap: 12px;
    max-width: 85%;
}

.chat-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-message.bot {
    align-self: flex-start;
}

.message-content {
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.chat-message.user .message-content {
    background: linear-gradient(135deg, var(--electric-purple) 0%, var(--hot-pink) 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message.bot .message-content {
    background: rgba(0, 240, 255, 0.1);
    color: var(--text-light);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-bottom-left-radius: 4px;
}

.chat-input-area {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(155, 91, 255, 0.2);
}

#chat-input {
    flex: 1;
    padding: 12px 18px;
    border-radius: 24px;
    border: 1px solid rgba(155, 91, 255, 0.3);
    background: rgba(26, 29, 58, 0.8);
    color: var(--text-light);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
}

#chat-input:focus {
    border-color: var(--neon-cyan);
}

#chat-input::placeholder {
    color: var(--text-secondary);
}

.btn-send {
    padding: 12px 24px;
    border-radius: 24px;
    border: none;
    background: linear-gradient(135deg, var(--electric-purple) 0%, var(--hot-pink) 100%);
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-send:hover {
    box-shadow: var(--glow-purple);
    transform: translateY(-2px);
}

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

.chat-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.chat-loading .dots {
    display: flex;
    gap: 4px;
}

.chat-loading .dot {
    width: 6px;
    height: 6px;
    background: var(--neon-cyan);
    border-radius: 50%;
    animation: chatDotPulse 1.4s infinite ease-in-out;
}

.chat-loading .dot:nth-child(1) { animation-delay: 0s; }
.chat-loading .dot:nth-child(2) { animation-delay: 0.2s; }
.chat-loading .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes chatDotPulse {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1.2); opacity: 1; }
}

@media (max-width: 600px) {
    .chat-container {
        height: 400px;
    }
    
    .chat-message {
        max-width: 95%;
    }
    
    .user-info {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 8px;
    }
    
    .user-name {
        width: 100%;
        text-align: right;
        font-size: 0.85rem;
    }
}
