:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --bg: #f8fafc;
    --card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background-color: var(--bg); color: var(--text-main); line-height: 1.6; padding: 20px; }
.container { max-width: 700px; margin: 40px auto; background: var(--card); padding: 32px; border-radius: 16px; box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1); position: relative; }

/* Language Toggle Button */
.lang-toggle { position: absolute; top: 24px; right: 24px; background: #e2e8f0; border: none; padding: 6px 12px; border-radius: 20px; font-weight: 600; cursor: pointer; transition: 0.2s; font-size: 0.85rem; }
.lang-toggle:hover { background: #cbd5e1; }

/* Menu Grid */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin-top: 24px; margin-bottom: 24px; }
.menu-card { padding: 16px; border: 2px solid #e2e8f0; border-radius: 12px; cursor: pointer; transition: all 0.2s; text-align: center; }
.menu-card:hover { border-color: var(--primary); background: #f5f3ff; transform: translateY(-2px); }
.menu-card span { font-size: 2rem; display: block; margin-bottom: 8px; }
.menu-card h3 { font-size: 0.95rem; }

.hidden { display: none !important; }
.progress-container { height: 8px; background: #e2e8f0; border-radius: 4px; margin: 24px 0; overflow: hidden; }
#progress-bar { height: 100%; background: var(--primary); width: 0%; transition: width 0.3s ease; }

.question-text { font-size: 1.1rem; font-weight: 600; margin-bottom: 24px; }
.options-grid { display: grid; gap: 12px; }
.option-btn { padding: 14px; border: 1px solid #cbd5e1; border-radius: 8px; background: white; cursor: pointer; text-align: left; transition: 0.2s; font-size: 0.95rem; }
.option-btn:hover { border-color: var(--primary); background: #f8fafc; }

.score-circle { width: 100px; height: 100px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 24px auto; font-size: 2rem; font-weight: 700; color: white; }
.dimension-summary { margin-top: 24px; text-align: left; background: #f1f5f9; padding: 16px; border-radius: 8px; }
.dimension-item { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.9rem; border-bottom: 1px solid #e2e8f0; padding-bottom: 4px; }
.recommendation-box { margin-top: 24px; padding: 20px; border-left: 5px solid var(--primary); background: #eef2ff; border-radius: 4px; text-align: left; }

.btn-primary { margin-top: 24px; padding: 12px 24px; background: var(--primary); color: white; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; width: 100%; transition: 0.2s; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { padding: 12px 24px; background: #e2e8f0; color: var(--text-main); border: none; border-radius: 8px; cursor: pointer; font-weight: 600; width: 100%; transition: 0.2s; }
.btn-secondary:hover { background: #cbd5e1; }

.history-list { margin-top: 20px; text-align: left; }
.history-item { background: #f8fafc; border: 1px solid #e2e8f0; padding: 16px; border-radius: 8px; margin-bottom: 12px; }
.history-header { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 8px; }
.history-details { font-size: 0.85rem; color: var(--text-muted); }

.disclaimer { font-size: 0.75rem; color: var(--text-muted); margin-top: 20px; text-align: center; }
.seo-section { margin-top: 40px; padding: 20px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 0.9rem; color: var(--text-muted); text-align: left;}
.seo-section h2 { font-size: 1.1rem; color: var(--text-main); margin-bottom: 12px; }
.seo-section ul { margin-left: 20px; margin-bottom: 12px; line-height: 1.6; }