:root {
    --primary-color: #FF6B9D;
    --secondary-color: #C06C84;
    --accent-color: #F67280;
    --bg-gradient-start: #FFF0F5;
    --bg-gradient-end: #FFE4E9;
    --text-color: #2D3436;
    --text-light: #636E72;
    --card-bg: #FFFFFF;
    --border-radius: 20px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(255, 107, 157, 0.15);
}

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

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #FFFFFF;
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px;
}

/* Ads */
.ad-container {
    margin: 1.5rem auto;
    min-height: 100px;
    text-align: center;
    overflow: hidden;
}

.top-ad {
    margin-bottom: 1.5rem;
}

.bottom-ad {
    margin-top: 2rem;
}

/* Header */
.main-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.main-header h1 {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.subtitle {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.btn-share-header {
    background: #FFFFFF;
    color: var(--text-color);
    border: 2px solid #E0E0E0;
    padding: 0.7rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Noto Sans KR', sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-top: 0.5rem;
}

.btn-share-header:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.15);
}

/* Question Container */
.question-container {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.question-step {
    display: none;
}

.question-step.active {
    display: block;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: -0.3px;
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.option-card {
    background: #FAFAFA;
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Noto Sans KR', sans-serif;
}

.option-card:hover {
    transform: translateY(-4px);
    background: #FFFFFF;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.option-card:active {
    transform: translateY(-2px);
}

.option-card .icon {
    font-size: 2.5rem;
    filter: grayscale(0.2);
}

.option-card .label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Result Section */
.result-section {
    display: none;
}

.result-section.active {
    display: block;
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.result-card {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.result-title {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 500;
}

.result-amount {
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #FFF5F8 0%, #FFE8F0 100%);
    border-radius: 16px;
}

.amount-range {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.result-note {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 1.5rem 0;
    line-height: 1.6;
}

.result-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

.result-actions .btn {
    flex: 1;
    min-width: 150px;
}

.btn-share {
    background: var(--card-bg);
    color: var(--text-color);
    border: 2px solid var(--border-color, #E0E0E0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-share:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.15);
}

.old-result-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Noto Sans KR', sans-serif;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 157, 0.35);
}

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

.btn-share {
    background: #FFFFFF;
    color: var(--text-color);
    border: 2px solid #E0E0E0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-share:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.15);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Footer */
.main-footer {
    text-align: center;
    margin-top: 3rem;
    padding: 1rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Info Section */
.info-section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.info-section h2 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
}

.info-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.info-card {
    background: linear-gradient(135deg, #FFF5F8 0%, #FFE8F0 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.info-card h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.info-card p {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 900px) {
    .container {
        padding: 16px;
    }

    .main-header h1 {
        font-size: 1.8rem;
    }

    .question-container {
        padding: 1.5rem;
    }

    .question-title {
        font-size: 1.2rem;
    }

    .option-card {
        padding: 1.2rem 0.8rem;
    }

    .option-card .icon {
        font-size: 2rem;
    }

    .amount-range {
        font-size: 2rem;
    }

    .result-card {
        padding: 2rem 1.5rem;
    }

    .info-section {
        padding: 1.5rem;
    }

    .info-content {
        grid-template-columns: 1fr;
    }
}

/* Standardized Sidebar & Layout Layout */
.layout-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.main-column {
    flex: 3;
    min-width: 0;
}

.app-sidebar {
    flex: 1;
    min-width: 280px;
    position: sticky;
    top: 2rem;
}

/* Sidebar Styles */
.sidebar-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
}

.sidebar-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    border-left: 4px solid var(--primary-color);
    padding-left: 8px;
    color: var(--text-color);
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    margin-bottom: 10px;
}

.sidebar-list a {
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    color: var(--text-color);
    padding: 8px;
    border-radius: 12px;
    transition: background-color 0.2s;
}

.sidebar-list a:hover {
    background-color: var(--bg-gradient-start);
}

.link-icon {
    margin-right: 8px;
    font-size: 1.1rem;
}

.link-content {
    flex: 1;
}

.link-title {
    display: block;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 2px;
    color: var(--primary-color);
}

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

@media (max-width: 900px) {
    .layout-container {
        flex-direction: column;
    }

    .main-column,
    .app-sidebar {
        width: 100%;
        flex: none;
    }

    .app-sidebar {
        margin-top: 2rem;
    }
}