/* Advanced ExamPro v2.3 SaaS Portal Design */
.aep-wrapper { max-width: 1180px; margin: 30px auto; padding: 0 15px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif; color: #0f172a; box-sizing: border-box; }
.aep-hero-banner { background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #2563eb 100%); color: #fff; padding: 45px 30px; border-radius: 16px; margin-bottom: 35px; text-align: center; box-shadow: 0 10px 25px -5px rgba(30, 58, 138, 0.25); }
.aep-hero-pill { display: inline-block; background: rgba(255,255,255,0.15); padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 12px; }
.aep-hero-banner h2 { margin: 0 0 10px; color: #fff; font-size: 30px; font-weight: 800; }
.aep-hero-banner p { margin: 0 auto; max-width: 600px; color: #cbd5e1; font-size: 15px; }
.aep-auth-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.aep-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 28px; box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04); transition: transform 0.2s, box-shadow 0.2s; }
.aep-test-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -8px rgba(15, 23, 42, 0.1); }
.aep-auth-card h3 { margin: 0 0 6px; font-size: 20px; font-weight: 700; }
.aep-card-sub { color: #64748b; font-size: 13px; margin: 0 0 20px; }
.aep-form-group { margin-bottom: 16px; }
.aep-form-group label, .aep-auth-card label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 13px; color: #334155; }
.aep-form-group input, .aep-auth-card input[type="text"], .aep-auth-card input[type="password"] { width: 100%; padding: 11px 14px; border: 1px solid #cbd5e1; border-radius: 8px; box-sizing: border-box; font-size: 14px; background: #f8fafc; }
.aep-form-group input:focus, .aep-auth-card input:focus { outline: none; border-color: #2563eb; background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,0.12); }
.aep-auth-card input[type="submit"] { width: 100%; padding: 12px; background: #0f172a; color: #fff; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 14px; }
.aep-forgot-link { margin-top: 14px; font-size: 13px; text-align: center; }
.aep-alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.aep-btn { display: inline-block; padding: 11px 20px; border-radius: 8px; font-weight: 600; text-decoration: none !important; cursor: pointer; border: none; font-size: 14px; text-align: center; transition: 0.2s; }
.aep-btn-primary { background: #2563eb; color: #fff !important; }
.aep-btn-primary:hover { background: #1d4ed8; }
.aep-btn-buy { background: linear-gradient(135deg, #16a34a, #15803d); color: #fff !important; box-shadow: 0 4px 10px rgba(22, 163, 74, 0.25); }
.aep-btn-buy:hover { filter: brightness(1.05); }
.aep-btn-danger { background: #dc2626; color: #fff !important; }
.aep-btn-warning { background: #f59e0b; color: #fff !important; }
.aep-btn-outline { background: #fff; border: 1px solid #cbd5e1; color: #334155 !important; }
.aep-btn-outline:hover { background: #f8fafc; border-color: #94a3b8; }
.aep-btn-disabled { background: #f1f5f9; color: #94a3b8 !important; cursor: not-allowed; width: 100%; }
.aep-btn-block { display: block; width: 100%; box-sizing: border-box; }
.aep-btn-sm { padding: 7px 14px; font-size: 13px; background: #eff6ff; color: #2563eb !important; border-radius: 6px; }
.aep-topbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; background: #fff; padding: 22px 28px; border-radius: 14px; border: 1px solid #e2e8f0; margin-bottom: 24px; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03); }
.aep-user-info { display: flex; align-items: center; gap: 15px; }
.aep-avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #2563eb, #1e40af); color: #fff; font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.aep-topbar h2 { margin: 0 0 3px; font-size: 20px; font-weight: 700; }
.aep-subtitle { color: #64748b; font-size: 13px; }
.aep-topbar-actions { display: flex; gap: 10px; }
.aep-stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 30px; }
.aep-stat-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px 24px; }
.aep-stat-label { display: block; font-size: 13px; color: #64748b; font-weight: 500; margin-bottom: 6px; }
.aep-stat-val { font-size: 26px; font-weight: 800; color: #0f172a; }
.aep-section-title { font-size: 20px; font-weight: 700; margin: 32px 0 18px; border-left: 4px solid #2563eb; padding-left: 12px; }
.aep-test-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 24px; }
.aep-test-card { display: flex; flex-direction: column; justify-content: space-between; }
.aep-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.aep-badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; letter-spacing: 0.3px; text-transform: uppercase; }
.aep-badge-unlocked { background: #dcfce7; color: #166534; }
.aep-badge-locked { background: #fef3c7; color: #92400e; }
.aep-price-tag { font-weight: 800; font-size: 19px; color: #0f172a; }
.aep-test-card h4 { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: #0f172a; }
.aep-desc { color: #475569; font-size: 14px; line-height: 1.55; margin-bottom: 18px; }
.aep-meta-box { display: grid; grid-template-columns: repeat(3, 1fr); background: #f8fafc; border: 1px solid #f1f5f9; padding: 12px; border-radius: 10px; text-align: center; margin-bottom: 12px; }
.aep-meta-box strong { display: block; font-size: 16px; color: #0f172a; }
.aep-meta-box span { font-size: 11px; color: #64748b; text-transform: uppercase; font-weight: 600; }
.aep-validity { font-size: 12px; color: #64748b; margin-bottom: 16px; text-align: center; }
.aep-table-responsive { overflow-x: auto; }
.aep-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #e2e8f0; }
.aep-table th, .aep-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid #e2e8f0; font-size: 14px; }
.aep-table th { background: #f8fafc; font-weight: 600; color: #475569; text-transform: uppercase; font-size: 12px; letter-spacing: 0.4px; }
.aep-status-pill { padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.aep-status-pill.pass { background: #dcfce7; color: #166534; }
.aep-status-pill.fail { background: #fee2e2; color: #991b1b; }

/* Full-Screen Exam Interface */
.aep-exam-fullscreen { background: #f1f5f9; border-radius: 14px; overflow: hidden; border: 1px solid #cbd5e1; margin: 20px auto; max-width: 1220px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.aep-exam-navbar { background: #0f172a; color: #fff; padding: 18px 28px; display: flex; justify-content: space-between; align-items: center; }
.aep-exam-title { font-size: 18px; font-weight: 700; }
.aep-exam-timer { background: #dc2626; padding: 7px 16px; border-radius: 8px; font-weight: 700; font-size: 16px; letter-spacing: 0.5px; }
.aep-exam-body { display: flex; gap: 24px; padding: 24px; flex-wrap: wrap; }
.aep-exam-main { flex: 3; min-width: 300px; }
.aep-exam-sidebar { flex: 1; min-width: 250px; background: #fff; padding: 22px; border-radius: 12px; border: 1px solid #e2e8f0; height: fit-content; }
.aep-q-card { background: #fff; padding: 28px; border-radius: 12px; border: 1px solid #e2e8f0; margin-bottom: 20px; }
.aep-q-header { display: flex; justify-content: space-between; border-bottom: 1px solid #e2e8f0; padding-bottom: 14px; margin-bottom: 20px; font-weight: 600; color: #475569; font-size: 14px; }
.aep-q-text { font-size: 17px; line-height: 1.65; margin-bottom: 22px; color: #0f172a; }
.aep-q-img img { max-width: 100%; max-height: 340px; border-radius: 8px; border: 1px solid #cbd5e1; margin-bottom: 22px; }
.aep-option-item { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid #cbd5e1; border-radius: 10px; margin-bottom: 12px; cursor: pointer; transition: 0.15s; background: #fff; }
.aep-option-item:hover { background: #eff6ff; border-color: #2563eb; }
.aep-exam-controls { display: flex; gap: 12px; justify-content: space-between; }
.aep-palette-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 16px; }
.aep-palette-btn { padding: 10px 0; border: 1px solid #cbd5e1; background: #fff; border-radius: 8px; font-weight: 700; cursor: pointer; font-size: 13px; }
.aep-palette-btn.active { border: 2px solid #0f172a; }
.aep-palette-btn.answered { background: #16a34a; color: #fff; border-color: #16a34a; }
.aep-palette-btn.review { background: #f59e0b; color: #fff; border-color: #f59e0b; }
.aep-legend { font-size: 12px; color: #475569; display: flex; flex-direction: column; gap: 7px; padding-top: 10px; border-top: 1px solid #f1f5f9; }
.aep-legend .dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.aep-legend .dot.answered { background: #16a34a; }
.aep-legend .dot.review { background: #f59e0b; }
.aep-legend .dot.unanswered { background: #fff; border: 1px solid #cbd5e1; }
.aep-score-boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 22px 0; }
.aep-score-box { background: #f8fafc; padding: 22px; border-radius: 12px; text-align: center; border: 1px solid #e2e8f0; }
.aep-score-box span { display: block; font-size: 13px; color: #64748b; margin-bottom: 6px; font-weight: 600; }
.aep-score-box strong { font-size: 26px; font-weight: 800; }
.aep-review-card { margin-bottom: 16px; border-left: 5px solid #cbd5e1; }
.aep-review-card.correct { border-left-color: #16a34a; }
.aep-review-card.incorrect { border-left-color: #dc2626; }
.aep-explanation { background: #f8fafc; padding: 14px; border-radius: 8px; margin-top: 12px; font-size: 14px; color: #334155; border: 1px solid #e2e8f0; }