#flmt-wrapper { max-width: 900px; margin: 0 auto; font-family: 'Segoe UI', sans-serif; color: #1a1a1a; }
.flmt-card { background: #fff; border-radius: 12px; padding: 30px; box-shadow: 0 8px 25px rgba(0,0,0,0.06); border: 1px solid #e2e8f0; border-top: 4px solid #1a1a1a; margin-bottom: 30px;}
.flmt-heading { text-align: center; color: #1a1a1a; font-weight: 800; text-transform: uppercase; margin-bottom: 25px; }

/* Dropdowns */
.flmt-input { width: 100%; padding: 12px; background: #f8fafc; border: 1px solid #cbd5e0; border-radius: 6px; font-size: 16px; box-sizing: border-box; height: auto !important; min-height: 48px !important;}
.flmt-input option { white-space: normal; word-wrap: break-word; }
.flmt-input:focus { border-color: #D4AF37; outline: none; box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2); background: #fff; }

.flmt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.flmt-test-box { border: 1px solid #e2e8f0; border-radius: 8px; padding: 20px; background: #fdfdfd; transition: 0.3s; text-align: center; }
.flmt-test-box:hover { box-shadow: 0 5px 15px rgba(212,175,55,0.2); border-color: #D4AF37; transform: translateY(-3px); }
.flmt-test-box h3 { color: #1a1a1a; margin: 0 0 10px 0; font-size: 18px; }
.flmt-test-box p { color: #718096; font-size: 14px; margin: 5px 0; }

/* Modals */
.flmt-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); justify-content: center; align-items: center; z-index: 99999; }
.flmt-modal-box { background: #fff; padding: 30px; border-radius: 12px; max-width: 400px; width: 90%; border-top: 4px solid #D4AF37; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }

/* Buttons */
.flmt-btn { padding: 12px 20px; font-size: 15px; font-weight: bold; border-radius: 6px; cursor: pointer; border: none; text-transform: uppercase; transition: 0.3s; }
.flmt-btn-primary { background: #1a1a1a; color: #D4AF37; border: 1px solid #1a1a1a; }
.flmt-btn-primary:hover { background: #D4AF37; color: #1a1a1a; border-color: #D4AF37; }
.flmt-btn-outline { background: transparent; border: 2px solid #1a1a1a; color: #1a1a1a; }
.flmt-btn-outline:hover { background: #1a1a1a; color: #D4AF37; }
.flmt-btn-warning { background: #cbd5e0; color: #1a1a1a; }
.flmt-btn-success { background: #27ae60; color: #fff; }

/* Test Interface */
.flmt-test-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #e2e8f0; padding-bottom: 15px; margin-bottom: 25px; }
.flmt-q-tracker { font-size: 18px; font-weight: bold; color: #1a1a1a; }
.flmt-timer-box { font-size: 18px; font-weight: bold; background: #1a1a1a; color: #D4AF37; padding: 5px 15px; border-radius: 20px; }
.flmt-question { font-size: 19px; font-weight: 600; margin-bottom: 25px; color: #1a1a1a; word-break: break-word; white-space: normal; }

.flmt-options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.flmt-option-label { padding: 15px; border: 2px solid #e2e8f0; border-radius: 8px; cursor: pointer; background: #f8fafc; font-size: 16px; transition: 0.2s; word-break: break-word; white-space: normal;}
.flmt-option-label:hover { border-color: #D4AF37; }
.flmt-option-label input { display: none; }
.flmt-option-label.selected { border-color: #D4AF37; background: #fdfbf2; font-weight: 700; color: #1a1a1a; }
.MathJax { outline: 0; display: inline-block !important; }

.flmt-navigation { display: flex; justify-content: space-between; gap: 10px; }

/* Result Grid */
.flmt-result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 15px; margin-bottom: 30px; }
.flmt-stat-box { background: #1a1a1a; padding: 20px 10px; border-radius: 10px; text-align: center; border: 1px solid #D4AF37; }
.flmt-stat-box h3 { margin: 0 0 10px 0; font-size: 14px; text-transform: uppercase; color: #e2e8f0; }
.flmt-stat-box p { margin: 0; font-size: 26px; font-weight: 800; color: #D4AF37; }

/* Public Leaderboard Table */
.flmt-leaderboard-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
.flmt-leaderboard-table th { background: #1a1a1a; color: #D4AF37; padding: 12px; text-align: left; }
.flmt-leaderboard-table td { padding: 12px; border-bottom: 1px solid #e2e8f0; color: #1a1a1a; font-weight: 500; }
.flmt-leaderboard-table tr:nth-child(even) { background: #f8fafc; }
.flmt-leaderboard-table tr:hover { background: #fdfbf2; }
.flmt-rank-badge { background: #D4AF37; color: #1a1a1a; padding: 4px 10px; border-radius: 4px; font-weight: bold; font-size: 14px;}

/* Solutions */
.flmt-report-item { border: 1px solid #e2e8f0; padding: 20px; border-radius: 8px; margin-bottom: 20px; background: #f8fafc; }
.flmt-badge { display: inline-block; padding: 5px 12px; border-radius: 20px; font-size: 13px; font-weight: bold; margin-top: 15px; margin-right: 10px; color: #fff; }
.bg-correct { background: #2ecc71; } .bg-wrong { background: #e74c3c; } .bg-skip { background: #718096; }
.flmt-explanation { background: #fff; padding: 15px; margin-top: 15px; border-radius: 6px; border-left: 4px solid #D4AF37; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }