/* CoachX English Version Styles */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --text-dark: #2d3748;
    --text-light: #718096;
    --border-color: #e2e8f0;
    --success-color: #48bb78;
    --warning-color: #ed8936;
    --danger-color: #f56565;
    --background-light: #f7fafc;
}

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

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Main container optimized background */
.main-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    padding: 20px 0;
    position: relative;
}

/* Add background texture layer */
.main-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(1px);
    pointer-events: none;
}

/* Ensure content is above background texture */
.main-container > * {
    position: relative;
    z-index: 1;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    margin-bottom: 0;
}

.app-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.app-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

/* Value Proposition Section */
.value-prop-section {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.value-title {
    color: #2d3748 !important;
    font-size: 1.4rem;
    font-weight: 700 !important;
    margin-bottom: 1.5rem;
    text-shadow: none !important;
}

.value-description {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.highlight {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 16px;
    font-weight: 500;
    white-space: nowrap;
}

.cta-hint {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    animation: bounce 2s infinite;
}

.cta-hint i {
    margin-right: 8px;
    animation: bounceArrow 2s infinite;
}

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

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



.language-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.language-switch .btn {
    border-color: rgba(255, 255, 255, 0.6);
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 60px;
}

.language-switch .btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.8);
    color: #ffffff;
    transform: translateY(-1px);
}

.active-lang {
    color: #ffffff;
    font-weight: 700;
    padding: 6px 16px;
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Input Section */
.input-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.input-step {
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 12px;
    font-size: 0.9rem;
}

.step-header h4 {
    margin: 0;
    color: var(--text-dark);
    font-weight: 600;
}

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

.form-control {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--background-light);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

/* Form control styles */
.custom-textarea, 
.custom-select, 
.custom-input {
    border: 2px solid #e1e8f0;
    border-radius: 12px;
    padding: 15px;
    font-size: 16px; /* Prevent iOS zoom */
    transition: all 0.3s ease;
}

.custom-textarea:focus,
.custom-select:focus,
.custom-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    outline: none;
}

.custom-textarea {
    resize: none;
    min-height: 120px;
}

/* Relationship Buttons */
.relationship-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 1rem;
}

.relation-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .relation-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .relation-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.relation-btn {
    background: var(--background-light);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
    min-height: 65px;
}

.relation-btn:hover {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-2px);
}

.relation-btn.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.25);
    transform: translateY(-1px);
}

/* Multi-select selected state indicator */
.relation-btn.selected::after {
    content: "✓";
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.relation-emoji {
    font-size: 1.3rem;
    display: block;
}

.relation-text {
    font-size: 0.8rem;
    font-weight: 500;
    color: #495057;
    line-height: 1.1;
}

.relation-btn.selected .relation-text {
    color: var(--primary-color);
    font-weight: 700;
}

/* Selected relations display area */
.selected-relations-display {
    margin-top: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.selected-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(102, 126, 234, 0.2);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.selected-tag .tag-emoji {
    margin-right: 4px;
}

.selected-tag .tag-remove {
    margin-left: 6px;
    cursor: pointer;
    font-weight: bold;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.selected-tag .tag-remove:hover {
    opacity: 1;
    color: #dc3545;
}

/* Question Options */
.question-options {
    display: grid;
    gap: 8px;
    margin-bottom: 1rem;
}

.question-btn {
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    text-align: left;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
}

.question-btn:hover {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

.question-btn.selected {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    font-weight: 500;
}

.manual-input {
    margin-top: 1rem;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 25px;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #667eea;
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.2), 
                0 4px 16px rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    text-shadow: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    border-color: rgba(255, 255, 255, 1);
    color: #5a67d8;
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.3), 
                0 6px 20px rgba(102, 126, 234, 0.2);
}

/* Prevent CTA text from turning white on focus/active/visited */
.btn-primary:focus,
.btn-primary:active,
.btn-primary:visited,
.btn-primary:focus-visible {
    color: #667eea !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
}

.btn-primary:disabled {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(248, 250, 252, 0.6) 100%);
    border-color: rgba(255, 255, 255, 0.4);
    color: rgba(102, 126, 234, 0.5);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.1);
}

.btn-soft-reset {
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.2);
    color: var(--primary-color);
    border-radius: 12px;
    padding: 10px 24px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-soft-reset:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* Loading */
.loading-spinner {
    padding: 3rem 1rem;
}

.loading-text {
    color: var(--text-light);
    font-style: italic;
}

/* Results Section */
.results-section {
    margin-top: 2rem;
}

.result-card {
    background: white;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-header i {
    font-size: 1.2rem;
}

.card-body {
    padding: 1.5rem;
    color: #333;
}

/* Heat Display */
.heat-display {
    margin-bottom: 1rem;
}

.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e2e8f0;
}

.progress-bar {
    border-radius: 4px;
    transition: all 0.5s ease;
}

.heat-value {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 8px;
}

/* Risk Display */
.risk-display {
    text-align: center;
    margin-bottom: 1rem;
}

.badge {
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
}

.badge.low {
    background-color: var(--success-color);
    color: white;
}

.badge.medium {
    background-color: var(--warning-color);
    color: white;
}

.badge.high {
    background-color: var(--danger-color);
    color: white;
}

/* Explanations */
.heat-explanation, .risk-explanation {
    background: var(--background-light);
    border-radius: 8px;
    padding: 12px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.risk-explanation ul {
    margin: 8px 0 0 0;
    padding-left: 16px;
}

.risk-explanation li {
    margin-bottom: 4px;
}

/* Game Analysis Specific Styles */
.matrix-container {
    margin: 1rem 0;
    background: var(--background-light);
    border-radius: 8px;
    padding: 1rem;
}

.matrix-display {
    margin: 1rem 0;
    background: var(--background-light);
    border-radius: 8px;
    padding: 1rem;
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: white;
    margin: 0;
}

.matrix-table th,
.matrix-table td {
    border: 1px solid var(--border-color);
    padding: 12px 8px;
    vertical-align: middle;
}

.matrix-table th {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 600;
    text-align: center;
}

.matrix-cell {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--text-dark);
    background: rgba(102, 126, 234, 0.05);
    text-align: center;
}

.strategy-label {
    background: rgba(118, 75, 162, 0.1);
    color: var(--secondary-color);
    font-weight: 600;
}

.matrix-text {
    font-family: monospace;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.strategy-group, .reaction-group {
    margin: 1rem 0;
    background: var(--background-light);
    border-radius: 8px;
    padding: 1rem;
}

.strategy-item, .reaction-item {
    margin-bottom: 8px;
    padding: 8px;
    background: white;
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.nav-item:hover,
.nav-item.active {
    color: var(--primary-color);
    background-color: rgba(102, 126, 234, 0.1);
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        padding: 0 12px;
    }
    
    .input-section {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .relationship-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .app-title {
        font-size: 2rem;
    }
    
    .value-title {
        font-size: 1.2rem;
    }
    
    .value-description {
        font-size: 0.9rem;
    }
    
    .highlight {
        display: inline-block;
        margin: 2px;
    }
    
    .matrix-table {
        font-size: 0.7rem;
    }
    
    .matrix-table th,
    .matrix-table td {
        padding: 6px 4px;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Medium screen responsive for footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .relationship-buttons {
        grid-template-columns: 1fr;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .input-section {
        padding: 1rem;
    }
    
    .app-title {
        font-size: 1.8rem;
    }
    
    .value-title {
        font-size: 1.1rem;
    }
    
    .value-description {
        font-size: 0.85rem;
    }
    
    /* Footer responsive for smaller screens */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-card {
        margin-bottom: 1.5rem;
    }
    
    .about-card .card-body {
        padding: 1.5rem;
    }
}

/* Animation for step transitions */
.input-step {
    animation: slideInUp 0.5s ease;
}

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

/* Recommendation Styling */
.recommendation-content {
    line-height: 1.6;
}

.recommendation-header {
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 12px;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.recommendation-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    padding: 8px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 6px;
}

.item-number {
    color: var(--primary-color);
    font-weight: 600;
    margin-right: 8px;
    min-width: 20px;
}

.item-text {
    flex: 1;
}

.recommendation-list {
    background: var(--background-light);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.recommendation-bullet {
    margin-bottom: 0.5rem;
    padding: 4px 0;
}

.message-template {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.template-text {
    background: white;
    border-radius: 6px;
    padding: 12px;
    margin: 8px 0;
    font-style: italic;
    border-left: 4px solid var(--primary-color);
    position: relative;
}

.copy-btn {
    margin-left: 8px;
    padding: 2px 6px;
    font-size: 0.8rem;
}

/* Heat Progress Bar Animation */
.progress-bar {
    transition: width 0.8s ease-in-out, background-color 0.5s ease;
}

/* Risk Badge Styling */
.badge {
    transition: all 0.3s ease;
}

/* About Us Page Styles */
.about-section {
    max-width: 800px;
    margin: 0 auto;
}

.about-card {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.about-card .card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 16px 16px 0 0;
    padding: 1.5rem;
}

.about-card .card-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.about-card .card-body {
    padding: 2rem;
}

.about-list {
    list-style: none;
    padding: 0;
}

.about-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    line-height: 1.6;
}

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

/* Company Footer Styles */
.company-footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 3rem;
    margin-bottom: 80px; /* Space for bottom navigation */
}

/* Footer content styles moved to correct position */

.footer-brand h4 {
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
}

.footer-contact h5,
.footer-resources h5 {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.contact-address {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.contact-email {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin: 0;
}

.contact-email a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-email a:hover {
    color: white;
    text-decoration: underline;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

/* Utility Classes */
.text-highlight {
    background: linear-gradient(120deg, transparent 0%, rgba(102, 126, 234, 0.2) 50%, transparent 100%);
    padding: 2px 4px;
    border-radius: 4px;
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

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

/* Payment Unlock Styles */
.unlock-overlay {
    position: relative;
    text-align: center;
    margin-top: 20px;
}

.unlock-blur {
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.3) 30%,
        rgba(255, 255, 255, 0.8) 70%,
        rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(3px);
    border-radius: 15px;
    pointer-events: none;
}

.unlock-prompt {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px 25px;
    margin: 20px auto;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.unlock-icon {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 15px;
}

.unlock-prompt h5 {
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
}

.unlock-prompt p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.unlock-details {
    text-align: left;
    margin-bottom: 20px;
}

.unlock-section {
    margin-bottom: 12px;
}

.unlock-section strong {
    color: #333;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 6px;
}

.unlock-section ul {
    margin: 0;
    padding-left: 16px;
    list-style-type: disc;
}

.unlock-section li {
    color: #555;
    font-size: 0.75rem;
    line-height: 1.3;
    margin-bottom: 4px;
}

.unlock-section li strong {
    display: inline;
    color: #667eea;
    font-size: 0.75rem;
}

/* 移动端支付弹窗优化 */
@media (max-width: 768px) {
    .unlock-prompt {
        margin: 10px;
        padding: 25px 20px;
        max-width: 95vw;
        max-height: 85vh;
    }
    
    .unlock-section strong {
        font-size: 0.8rem;
        margin-bottom: 5px;
    }
    
    .unlock-section li {
        font-size: 0.7rem;
        line-height: 1.2;
        margin-bottom: 3px;
    }
    
    .unlock-section {
        margin-bottom: 10px;
    }
}

.unlock-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 20px;
}

.unlock-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.unlock-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

/* 锁定状态的推荐内容 */
.recommendation-locked .recommendation-content {
    position: relative;
    filter: blur(2px);
    opacity: 0.6;
    pointer-events: none;
}

/* 正常状态的推荐内容 */
.recommendation-content {
    position: relative;
}

/* Stripe Elements */
#card-element {
    padding: 15px;
    border: 2px solid #e1e8f0;
    border-radius: 12px;
    background: white;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
    max-width: 100%;
}

#card-element:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

#card-errors {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 10px;
}

.payment-form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

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

.payment-amount {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 10px;
}

.payment-description {
    color: #666;
    margin-bottom: 25px;
}

/* 解锁成功动画 */
@keyframes highlight-flash {
    0% { background-color: rgba(40, 167, 69, 0.2); }
    50% { background-color: rgba(40, 167, 69, 0.4); }
    100% { background-color: rgba(40, 167, 69, 0.2); }
}

.unlocked-highlight {
    animation: highlight-flash 2s ease-in-out;
}

/* 付费提示优化样式 */
.pricing-hint {
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 12px !important;
    padding: 15px 20px !important;
    margin-top: 15px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(102, 126, 234, 0.2) !important;
}

.pricing-hint small {
    color: #2d3748 !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
    text-shadow: none !important;
}

.pricing-hint .price-highlight {
    color: #667eea !important;
    font-weight: 700 !important;
}

.pricing-hint .free-highlight {
    color: #28a745 !important;
    font-weight: 600 !important;
}

/* 解锁成功后的内容样式 */
.recommendation-unlocked {
    position: relative;
    filter: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.recommendation-unlocked::before {
    content: "🔓 Unlocked";
    position: absolute;
    top: 8px; /* avoid clipping by overflow container */
    right: 10px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
} 

/* Brand header styles */
.brand-header {
    margin-bottom: 2rem;
}

/* Brand title optimization */
.brand-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.brand-name {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.brand-subtitle {
    display: block;
    font-size: 1.2rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.brand-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 1.5rem auto;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Language switch styles update */
.language-switch {
    margin-top: 1rem;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    text-decoration: none;
    border-radius: 20px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
}

.lang-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    color: #667eea;
}

.lang-text {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Value proposition optimization */
.value-proposition {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 20px;
    margin: 2rem 0;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.value-title {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #2d3748 !important;
    margin-bottom: 1.5rem !important;
    text-shadow: none !important;
}

.value-points {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.value-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 150px;
}

.value-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.value-text {
    font-size: 0.9rem;
    font-weight: 500 !important;
    color: #4a5568 !important;
    text-shadow: none !important;
}

/* Enhanced Value Proposition Styles - High Priority */
.value-proposition .value-title,
.hero-section .value-title {
    color: #2d3748 !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    margin-bottom: 1.5rem !important;
}

.value-proposition .value-text,
.hero-section .value-text {
    color: #4a5568 !important;
    text-shadow: none !important;
}

.value-proposition .urgency-text,
.hero-section .urgency-text {
    color: #2d3748 !important;
    text-shadow: none !important;
}

/* Enhanced Value Proposition Styles */
.urgency-text {
    font-size: 1.1rem;
    color: #2d3748 !important;
    font-style: italic;
    margin-bottom: 2rem;
    text-shadow: none !important;
    line-height: 1.4;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.value-detail {
    display: block;
    font-size: 0.8rem;
    color: #718096 !important;
    margin-top: 0.5rem;
    font-style: italic;
    text-shadow: none !important;
}

.social-proof-highlight {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 1rem 2rem;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
}

.proof-text {
    color: #2d3748 !important;
    font-weight: 500;
    text-shadow: none !important;
    font-size: 0.95rem;
}

/* Who Is This For Section */
.who-is-this-for-section {
    display: flex;
    justify-content: center;
}

.who-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 600px;
}

.who-card p {
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    color: #ffffff;
}

.who-card ul {
    padding-left: 1.2rem;
    margin-bottom: 0;
    color: #ffffff;
}

.who-card li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Value Breakdown Section */
.value-breakdown-section .section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #ffffff;
}

.tier-card {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tier-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.tier-card h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.tier-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    min-height: 45px;
}

.tier-card ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
}

.tier-card ul li {
    margin-bottom: 0.75rem;
    color: #ffffff;
    font-size: 1rem;
}

.paid-tier {
    background-color: rgba(120, 80, 228, 0.3); /* A slightly different background */
    border-color: rgba(150, 120, 255, 0.5);
}

/* Main Content Adjustments */
.main-content {
    background-color: transparent; /* Remove the white background to blend with the page */
    color: #ffffff;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: none; /* Remove shadow as sections are now distinct */
    margin-top: -20px; /* Pull the input section up slightly */
    max-width: 600px; /* Enforce max-width for consistency */
    margin-left: auto;
    margin-right: auto;
}

/* Input step styles */
.input-step {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.step-label {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.step-number {
    background: #667eea;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .brand-name {
        font-size: 3rem;
    }
    
    .brand-subtitle {
        font-size: 1rem;
    }
    
    .brand-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .value-title {
        font-size: 1.2rem;
    }
    
    .value-points {
        gap: 1rem;
    }
    
    .value-point {
        min-width: 120px;
    }
    
    .cta-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .brand-name {
        font-size: 2.5rem;
    }
    
    .value-points {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Gender selection buttons styles */ 
.gender-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}

.gender-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

/* Mobile responsive for gender buttons */
@media (max-width: 768px) {
    .gender-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .gender-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gender-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e1e8f0;
    border-radius: 12px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 65px;
    position: relative;
    overflow: hidden;
}

.gender-btn:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.gender-btn.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.25);
    transform: translateY(-1px);
}

/* Gender selection selected state special marker */
.gender-btn.selected::after {
    content: "✓";
    position: absolute;
    top: 8px;
    right: 8px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.gender-emoji {
    font-size: 1.5rem;
    margin-bottom: 4px;
    display: block;
}

.gender-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
    line-height: 1.1;
    text-align: center;
}

/* 确保所有游戏分析内容可见 */
#gameAnalysis, #gameAnalysis * {
    color: #333 !important;
}

.analysis-section {
    color: #333;
}

.analysis-text {
    color: #333;
    line-height: 1.6;
}

/* Relationship selection buttons styles */ 

/* 步骤进度显示样式 */
.progress-section {
    margin: 2rem 0;
    padding: 0 1rem;
}

.analysis-progress {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.progress-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #667eea;
}

.progress-header i {
    font-size: 1.3rem;
    animation: pulse 2s infinite;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.analysis-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    border: 1px solid rgba(103, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.analysis-step.in-progress {
    background: rgba(103, 126, 234, 0.1);
    border-color: #667eea;
    transform: scale(1.02);
}

.analysis-step.completed {
    background: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
}

.step-icon {
    font-size: 1.2rem;
    min-width: 1.5rem;
    text-align: center;
}

.analysis-step.in-progress .step-icon {
    animation: spin 1s linear infinite;
}

.step-content {
    flex: 1;
}

.step-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.step-status {
    font-size: 0.85rem;
    color: #666;
}

.analysis-step.in-progress .step-status {
    color: #667eea;
    font-weight: 500;
}

.analysis-step.completed .step-status {
    color: #22c55e;
    font-weight: 500;
}

/* 动画效果 */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .progress-section {
        margin: 1.5rem 0;
        padding: 0 0.5rem;
    }
    
    .analysis-progress {
        padding: 1rem;
    }
    
    .analysis-step {
        gap: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
    
    .step-title {
        font-size: 0.9rem;
    }
    
    .step-status {
        font-size: 0.8rem;
    }
} 
/* 付费提示优化样式 */
.pricing-hint {
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 12px !important;
    padding: 15px 20px !important;
    margin-top: 15px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(102, 126, 234, 0.2) !important;
}

.pricing-hint small {
    color: #2d3748 !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
    text-shadow: none !important;
}

.pricing-hint .price-highlight {
    color: #667eea !important;
    font-weight: 700 !important;
}

.pricing-hint .free-highlight {
    color: #28a745 !important;
    font-weight: 600 !important;
}
