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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    min-height: 100vh;
    color: #333;
}

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

/* Header */
.header {
    text-align: center;
    padding: 40px 0;
}

.header h1 {
    font-size: 2.5em;
    color: #ff6b9d;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    font-size: 1.2em;
}

/* Steps */
.steps {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.5);
    border-radius: 25px;
    opacity: 0.5;
    transition: all 0.3s;
}

.step.active {
    opacity: 1;
    background: #fff;
    box-shadow: 0 2px 10px rgba(255,107,157,0.3);
}

.step-num {
    width: 28px;
    height: 28px;
    background: #ff6b9d;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Step Content */
.step-content {
    display: none;
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.step-content.active {
    display: block;
}

/* MBTI Selector */
.mbti-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.person {
    text-align: center;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 15px;
    min-width: 150px;
}

.type-display {
    font-size: 1.8em;
    font-weight: bold;
    color: #ff6b9d;
    margin-top: 10px;
}

.heart {
    font-size: 2em;
    animation: pulse 1.5s infinite;
}

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

/* MBTI Grid */
.mbti-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.mbti-card {
    padding: 15px 10px;
    background: #f8f8f8;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.mbti-card:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255,107,157,0.2);
}

.mbti-card.selected {
    border-color: #ff6b9d;
    background: #fff5f8;
}

.type-code {
    font-weight: bold;
    font-size: 1.1em;
    color: #333;
}

.type-name {
    font-size: 0.85em;
    color: #888;
    margin-top: 5px;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b9d, #ff8fab);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,107,157,0.4);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-large {
    padding: 15px 50px;
    font-size: 1.1em;
}

/* Result */
.result-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.type-badge {
    padding: 10px 20px;
    background: linear-gradient(135deg, #ff6b9d, #ff8fab);
    color: #fff;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.2em;
}

.match-emoji {
    font-size: 2em;
}

.score-display {
    text-align: center;
    margin: 30px 0;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(#ff6b9d 0%, #ff6b9d var(--score), #eee var(--score));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}

.score-circle::before {
    content: '';
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
}

.score-num {
    position: relative;
    font-size: 2.5em;
    font-weight: bold;
    color: #ff6b9d;
}

.score-label {
    margin-top: 10px;
    font-size: 1.2em;
    color: #666;
}

/* Pay Section */
.pay-section {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 15px;
}

.pay-tip {
    font-size: 1.1em;
    margin-bottom: 15px;
}

.pay-features {
    list-style: none;
    margin-bottom: 20px;
}

.pay-features li {
    padding: 5px 0;
    color: #666;
}

.price-tag {
    margin: 20px 0;
}

.price {
    font-size: 2.5em;
    font-weight: bold;
    color: #ff6b9d;
}

.price-note {
    color: #888;
    margin-left: 10px;
}

.pay-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.card-input {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.card-input input {
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 1em;
    width: 250px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    color: #888;
}

.disclaimer {
    font-size: 0.9em;
    margin-top: 10px;
}

/* Full Report */
.full-report {
    line-height: 1.8;
}

.report-section {
    margin: 25px 0;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 15px;
}

.report-section h3 {
    color: #ff6b9d;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dimension-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.dimension-item:last-child {
    border-bottom: none;
}

.dimension-name {
    width: 100px;
    font-weight: bold;
}

.dimension-values {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dimension-tag {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9em;
}

.dimension-tag.same {
    background: #e8f5e9;
    color: #4caf50;
}

.dimension-tag.diff {
    background: #fff3e0;
    color: #ff9800;
}

.advice-list {
    list-style: none;
}

.advice-list li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
}

.advice-list li::before {
    content: '💡';
    position: absolute;
    left: 0;
}

/* Responsive */
@media (max-width: 600px) {
    .mbti-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mbti-selector {
        flex-direction: column;
    }

    .pay-options {
        flex-direction: column;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }
}