/* Free Evaluation — admin form + student graphical report.
   Reuses --primary, --accent, --shadow tokens from style.css. */

/* ---------- Shared band tokens ---------- */
:root {
    --fe-band-emerging:    #94a3b8;
    --fe-band-developing:  #f59e0b;
    --fe-band-strong:      #6c63ff;
    --fe-band-exceptional: #10b981;
}

/* ---------- Admin: structured evaluation form ---------- */
.fe-form-page {
    padding: 24px;
}

.fe-form-header {
    background: linear-gradient(135deg, #6c63ff 0%, #8b80ff 100%);
    color: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md, 0 6px 18px rgba(0,0,0,0.08));
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.fe-form-header .fe-header-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.fe-form-header h1 {
    margin: 0 0 4px 0;
    font-size: 1.4rem;
}

.fe-form-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.92rem;
}

.fe-form-header .fe-badge-pill {
    background: var(--accent, #c8ff00);
    color: #1a1830;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.fe-meta-row {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 12px;
    font-size: 0.88rem;
    opacity: 0.95;
}

.fe-meta-row > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fe-cat-card {
    background: #fff;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.fe-cat-card:hover {
    box-shadow: 0 6px 18px rgba(108,99,255,0.10);
}

.fe-cat-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.fe-cat-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: rgba(108,99,255,0.12);
    color: var(--primary, #6c63ff);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
}

.fe-cat-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text, #1a1a2e);
}

.fe-cat-rubric {
    margin: 2px 0 0 0;
    font-size: 0.82rem;
    color: var(--text-muted, #64748b);
}

.fe-prompts {
    background: #f8f9fc;
    border-left: 3px solid var(--primary, #6c63ff);
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.fe-prompts-label {
    display: block;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--primary, #6c63ff);
    font-weight: 700;
    margin-bottom: 6px;
}

.fe-prompts ul {
    margin: 0;
    padding-left: 18px;
    font-size: 0.88rem;
    color: var(--text, #1a1a2e);
    line-height: 1.6;
}

.fe-score-row {
    display: grid;
    grid-template-columns: 1fr 80px;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.fe-score-row label {
    font-weight: 600;
    color: var(--text, #1a1a2e);
    font-size: 0.92rem;
}

.fe-slider-wrap {
    position: relative;
    padding-top: 4px;
}

.fe-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    outline: none;
    cursor: pointer;
    background-image: linear-gradient(var(--primary, #6c63ff), var(--primary, #6c63ff));
    background-repeat: no-repeat;
    background-size: 0% 100%;
    transition: background-size 0.15s ease;
}

.fe-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--primary, #6c63ff);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(108,99,255,0.3);
}

.fe-slider::-moz-range-thumb {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--primary, #6c63ff);
    cursor: pointer;
}

.fe-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted, #94a3b8);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fe-score-display {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.fe-score-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary, #6c63ff);
    line-height: 1;
}

.fe-score-band {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 999px;
    color: #fff;
    background: var(--fe-band-developing);
}

.fe-score-band.band-emerging    { background: var(--fe-band-emerging); }
.fe-score-band.band-developing  { background: var(--fe-band-developing); }
.fe-score-band.band-strong      { background: var(--fe-band-strong); }
.fe-score-band.band-exceptional { background: var(--fe-band-exceptional); }

.fe-notes-textarea {
    width: 100%;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 10px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 70px;
    transition: border-color 0.2s ease;
}

.fe-notes-textarea:focus {
    outline: none;
    border-color: var(--primary, #6c63ff);
    box-shadow: 0 0 0 3px rgba(108,99,255,0.12);
}

.fe-special-card {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 14px;
}

.fe-special-card .fe-cat-icon {
    background: rgba(245,158,11,0.18);
    color: #b45309;
}

.fe-actions-bar {
    position: sticky;
    bottom: 0;
    background: #fff;
    border-top: 1px solid var(--border, #e5e7eb);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.04);
    z-index: 5;
}

.fe-actions-status {
    font-size: 0.86rem;
    color: var(--text-muted, #64748b);
}

/* ---------- Student: graphical report ---------- */
.fe-report-page {
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.fe-hero {
    background: linear-gradient(135deg, #1a1830 0%, #3d2c8f 60%, #6c63ff 100%);
    color: #fff;
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    align-items: center;
    overflow: hidden;
    position: relative;
    box-shadow: 0 12px 32px rgba(108,99,255,0.25);
}

.fe-hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(200,255,0,0.20) 0%, transparent 70%);
    border-radius: 50%;
}

.fe-gauge-wrap {
    position: relative;
    width: 240px; height: 200px;
    z-index: 1;
}

.fe-gauge-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 20px;
    pointer-events: none;
}

.fe-gauge-score {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(180deg, #fff, #c8ff00);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fe-gauge-out-of {
    font-size: 0.88rem;
    opacity: 0.7;
    margin-top: 4px;
}

.fe-hero-info {
    z-index: 1;
    position: relative;
}

.fe-hero-eyebrow {
    display: inline-block;
    background: var(--accent, #c8ff00);
    color: #1a1830;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
}

.fe-hero-archetype {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    line-height: 1.15;
}

.fe-hero-band-pill {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.86rem;
    color: #fff;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.3);
    margin-bottom: 14px;
}

.fe-hero-meta {
    font-size: 0.92rem;
    opacity: 0.9;
    line-height: 1.6;
}

.fe-hero-meta strong {
    color: var(--accent, #c8ff00);
    font-weight: 600;
}

.fe-radar-card,
.fe-cards-grid-wrap,
.fe-strengths-grid,
.fe-casestudy-card,
.fe-recommendation-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
    border: 1px solid var(--border, #e5e7eb);
}

.fe-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.fe-section-head h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text, #1a1a2e);
}

.fe-section-head i {
    color: var(--primary, #6c63ff);
}

.fe-radar-wrap {
    position: relative;
    height: 380px;
    max-width: 540px;
    margin: 0 auto;
}

.fe-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.fe-cat-result {
    background: #f8f9fc;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    padding: 14px 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fe-cat-result:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(108,99,255,0.10);
}

.fe-cat-result-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.fe-cat-result-icon {
    width: 36px; height: 36px;
    border-radius: 9px;
    background: rgba(108,99,255,0.14);
    color: var(--primary, #6c63ff);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
}

.fe-cat-result-name {
    flex: 1;
    font-weight: 600;
    color: var(--text, #1a1a2e);
    font-size: 0.92rem;
}

.fe-cat-result-score {
    font-weight: 800;
    color: var(--primary, #6c63ff);
    font-size: 1.05rem;
}

.fe-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin: 6px 0 10px;
}

.fe-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary, #6c63ff), var(--accent, #c8ff00));
    transition: width 0.7s ease;
}

.fe-cat-result-band {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    margin-bottom: 8px;
}

.fe-cat-result-band.band-emerging    { background: var(--fe-band-emerging); }
.fe-cat-result-band.band-developing  { background: var(--fe-band-developing); }
.fe-cat-result-band.band-strong      { background: var(--fe-band-strong); }
.fe-cat-result-band.band-exceptional { background: var(--fe-band-exceptional); }

.fe-cat-result-tip {
    font-size: 0.84rem;
    color: var(--text-muted, #64748b);
    line-height: 1.5;
    margin: 0 0 8px 0;
}

.fe-cat-result-notes {
    background: #fff;
    border-left: 3px solid var(--primary, #6c63ff);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.84rem;
    color: var(--text, #1a1a2e);
    line-height: 1.5;
}

.fe-cat-result-notes strong {
    display: block;
    color: var(--primary, #6c63ff);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.fe-strengths-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.fe-strengths-col h3 {
    margin: 0 0 10px;
    font-size: 1rem;
    color: var(--text, #1a1a2e);
    display: flex;
    align-items: center;
    gap: 8px;
}

.fe-strengths-col h3 i { font-size: 0.9rem; }

.fe-strengths-col.strengths h3 i { color: var(--fe-band-exceptional); }
.fe-strengths-col.growth    h3 i { color: var(--fe-band-developing); }

.fe-strengths-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fe-strengths-list li {
    background: #f8f9fc;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.fe-strengths-list strong {
    color: var(--text, #1a1a2e);
    font-size: 0.9rem;
}

.fe-strengths-list .fe-mini-score {
    font-weight: 700;
    color: var(--primary, #6c63ff);
}

.fe-casestudy-card .fe-cs-prompt,
.fe-casestudy-card .fe-cs-response,
.fe-casestudy-card .fe-cs-coach {
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 10px;
    line-height: 1.55;
    font-size: 0.92rem;
}

.fe-cs-prompt {
    background: #f1f5f9;
    border-left: 3px solid #94a3b8;
}

.fe-cs-response {
    background: rgba(108,99,255,0.08);
    border-left: 3px solid var(--primary, #6c63ff);
}

.fe-cs-coach {
    background: rgba(200,255,0,0.18);
    border-left: 3px solid var(--accent, #c8ff00);
}

.fe-cs-prompt strong, .fe-cs-response strong, .fe-cs-coach strong {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    color: var(--text-muted, #64748b);
}

.fe-recommendation-card {
    background: linear-gradient(135deg, #fffbeb, #fff);
    border-color: #fde68a;
}

.fe-recommendation-card p {
    line-height: 1.7;
    font-size: 0.95rem;
    color: var(--text, #1a1a2e);
    margin: 0;
}

.fe-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.fe-empty-card {
    text-align: center;
    padding: 60px 24px;
    background: #fff;
    border-radius: 16px;
    border: 1px dashed var(--border, #e5e7eb);
}

.fe-empty-card i {
    font-size: 3rem;
    color: var(--primary, #6c63ff);
    margin-bottom: 12px;
    opacity: 0.6;
}

.fe-empty-card h2 {
    margin: 0 0 8px;
    color: var(--text, #1a1a2e);
}

.fe-empty-card p {
    color: var(--text-muted, #64748b);
    max-width: 480px;
    margin: 0 auto;
}

/* ---------- Dashboard banner — toned-down, in-app feel (less marketing) ---------- */
.fe-dashboard-banner {
    background: linear-gradient(135deg, #6c63ff 0%, #8b80ff 50%, #c8ff00 130%);
    color: #fff;
    border-radius: 16px;
    padding: 18px 22px;
    margin-bottom: 18px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    box-shadow: 0 6px 18px -8px rgba(108,99,255,0.30);
}

.fe-dashboard-banner .fe-db-icon {
    width: 48px; height: 48px;
    background: rgba(255,255,255,0.20);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
}

.fe-dashboard-banner h2 {
    margin: 0 0 4px;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
}

.fe-dashboard-banner p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.94;
    max-width: 560px;
    line-height: 1.5;
}

.fe-dashboard-banner .btn { padding: 9px 16px; font-size: 0.88rem; }
.fe-dashboard-banner .btn-lg { padding: 10px 18px; font-size: 0.92rem; }

.fe-dashboard-banner .fe-db-tag {
    display: inline-block;
    background: var(--accent, #c8ff00);
    color: #1a1830;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: var(--fs-floor-chip, 12px);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
}

/* ---------- Booking modal: Free Evaluation pill ---------- */
.fe-modal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(200,255,0,0.18);
    color: #4d4400;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

/* ---------- Homepage tile ---------- */
.fe-homepage-tile {
    background: linear-gradient(135deg, #fff 0%, #fafbff 100%);
    border: 1px solid #e0e0ff;
    border-radius: 18px;
    padding: 32px 28px;
    text-align: left;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(108,99,255,0.08);
}

.fe-homepage-tile .fe-tile-tag {
    display: inline-block;
    background: linear-gradient(90deg, var(--primary, #6c63ff), var(--accent, #c8ff00));
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
}

.fe-homepage-tile h3 {
    font-size: 1.5rem;
    margin: 0 0 10px;
    color: var(--text, #1a1a2e);
}

.fe-homepage-tile p {
    color: var(--text-muted, #64748b);
    line-height: 1.6;
    margin: 0 0 14px;
    max-width: 520px;
}

.fe-homepage-tile .fe-tile-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.fe-homepage-tile .fe-tile-features span {
    background: rgba(108,99,255,0.10);
    color: var(--primary, #6c63ff);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
}

/* ---------- Certificate ---------- */
.fe-cert-page {
    background: #f1f0fa;
    min-height: 100vh;
    padding: 30px 20px;
}

.fe-cert-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.fe-cert-frame {
    max-width: 920px;
    margin: 0 auto;
    background:
        radial-gradient(circle at top right, rgba(200,255,0,0.12), transparent 50%),
        radial-gradient(circle at bottom left, rgba(108,99,255,0.15), transparent 55%),
        #fff;
    border: 12px double #6c63ff;
    border-radius: 14px;
    padding: 56px 56px 42px;
    position: relative;
    box-shadow: 0 20px 60px rgba(108,99,255,0.20);
    text-align: center;
    overflow: hidden;
}

.fe-cert-frame::before {
    content: '';
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(108,99,255,0.25);
    border-radius: 6px;
    pointer-events: none;
}

.fe-cert-corner {
    position: absolute;
    width: 100px;
    height: 100px;
    pointer-events: none;
    opacity: 0.7;
}

.fe-cert-corner.tl { top: 18px; left: 18px;
    background: radial-gradient(circle at top left, #c8ff00 0%, transparent 50%); }
.fe-cert-corner.tr { top: 18px; right: 18px;
    background: radial-gradient(circle at top right, #6c63ff 0%, transparent 55%); }
.fe-cert-corner.bl { bottom: 18px; left: 18px;
    background: radial-gradient(circle at bottom left, #6c63ff 0%, transparent 55%); }
.fe-cert-corner.br { bottom: 18px; right: 18px;
    background: radial-gradient(circle at bottom right, #c8ff00 0%, transparent 50%); }

.fe-cert-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary, #6c63ff);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.fe-cert-logo i { font-size: 1.4rem; }

.fe-cert-eyebrow {
    text-transform: uppercase;
    letter-spacing: 6px;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.fe-cert-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.6rem;
    color: var(--text, #1a1a2e);
    margin: 0 0 10px;
    background: linear-gradient(90deg, #6c63ff, #1a1830);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fe-cert-presented {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0 0 12px;
}

.fe-cert-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.2rem;
    color: #1a1a2e;
    border-bottom: 2px solid rgba(108,99,255,0.4);
    display: inline-block;
    padding: 4px 24px 8px;
    margin-bottom: 18px;
}

.fe-cert-body {
    font-size: 1rem;
    color: #1a1a2e;
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto 18px;
}

.fe-cert-archetype {
    background: linear-gradient(135deg, rgba(108,99,255,0.10), rgba(200,255,0,0.16));
    border: 1px solid rgba(108,99,255,0.20);
    border-radius: 12px;
    padding: 14px 22px;
    display: inline-block;
    margin: 6px 0 18px;
}

.fe-cert-archetype-tag {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #64748b;
    margin-bottom: 4px;
}

.fe-cert-archetype-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary, #6c63ff);
}

.fe-cert-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin: 6px 0 24px;
    flex-wrap: wrap;
}

.fe-cert-stat {
    text-align: center;
}

.fe-cert-stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1;
}

.fe-cert-stat-label {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #94a3b8;
    margin-top: 4px;
}

.fe-cert-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 32px;
    align-items: end;
}

.fe-cert-sig {
    text-align: center;
}

.fe-cert-sig-line {
    border-top: 1.5px solid #1a1a2e;
    padding-top: 6px;
    font-size: 0.86rem;
    color: #1a1a2e;
}

.fe-cert-sig-name {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--primary, #6c63ff);
    font-size: 1.2rem;
    margin-bottom: -4px;
}

.fe-cert-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    font-size: 0.78rem;
    color: #64748b;
    border-top: 1px solid rgba(108,99,255,0.15);
    padding-top: 10px;
}

.fe-cert-code {
    font-family: 'Courier New', monospace;
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 4px;
    color: #1a1a2e;
    font-weight: 600;
}

.fe-cert-seal {
    position: absolute;
    bottom: 38px;
    right: 56px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 25%, rgba(200,255,0,0.5) 60%, var(--primary, #6c63ff) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1830;
    font-weight: 800;
    font-size: 0.78rem;
    text-align: center;
    line-height: 1.2;
    border: 4px double rgba(108,99,255,0.7);
    box-shadow: 0 6px 18px rgba(108,99,255,0.30);
    transform: rotate(-12deg);
}

/* ---------- Badges ---------- */
.fe-badges-page {
    /* When wrapped inside .admin-content, the parent already provides padding;
       this just adds inner rhythm. No max-width/margin auto since .admin-content
       already centers/constrains. */
    padding: 0;
}

.fe-badges-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
@media (max-width: 992px) {
    .fe-badges-summary { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .fe-badges-summary { grid-template-columns: 1fr; }
}

.fe-badges-stat {
    background: #fff;
    border-radius: 14px;
    padding: 16px 18px;
    border: 1px solid var(--border, #e5e7eb);
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.fe-badges-stat-icon {
    width: 42px; height: 42px;
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}

.fe-badges-stat-icon.b-points    { background: linear-gradient(135deg, #6c63ff, #8b80ff); }
.fe-badges-stat-icon.b-earned    { background: linear-gradient(135deg, #10b981, #34d399); }
.fe-badges-stat-icon.b-pending   { background: linear-gradient(135deg, #94a3b8, #cbd5e1); }
.fe-badges-stat-icon.b-tier      { background: linear-gradient(135deg, #f59e0b, #fbbf24); }

.fe-badges-stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.1;
    letter-spacing: -0.3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fe-badges-stat-label {
    font-size: var(--fs-floor-chip, 12px);
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
    font-weight: 600;
}

.fe-badges-section {
    background: #fff;
    border-radius: 16px;
    padding: 22px 24px;
    margin-bottom: 18px;
    border: 1px solid var(--border, #e5e7eb);
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.fe-badges-section h2 {
    margin: 0 0 16px;
    font-size: 1.1rem;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fe-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.fe-badge-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px 16px;
    border: 1px solid var(--border, #e5e7eb);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.fe-badge-card.locked {
    background: #f8f9fc;
    border-color: #e5e7eb;
    opacity: 0.7;
}

.fe-badge-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(108,99,255,0.14);
}

.fe-badge-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    background: linear-gradient(135deg, #6c63ff, #8b80ff);
    box-shadow: 0 6px 14px rgba(108,99,255,0.25);
    position: relative;
}

.fe-badge-card.locked .fe-badge-icon {
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
    box-shadow: none;
    color: #64748b;
}

.fe-badge-icon.tier-bronze   { background: linear-gradient(135deg, #c2682c, #e89668); }
.fe-badge-icon.tier-silver   { background: linear-gradient(135deg, #94a3b8, #cbd5e1); }
.fe-badge-icon.tier-gold     { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.fe-badge-icon.tier-platinum { background: linear-gradient(135deg, #06b6d4, #67e8f9); }

.fe-badge-tier-pill {
    position: absolute;
    top: -6px;
    right: 50%;
    transform: translateX(50%);
    background: #1a1a2e;
    color: #fff;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 2px 10px;
    border-radius: 999px;
    font-weight: 700;
}

.fe-badge-name {
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px;
    font-size: 0.96rem;
}

.fe-badge-desc {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 10px;
}

.fe-badge-meta {
    font-size: 0.74rem;
    color: #94a3b8;
    display: flex;
    justify-content: space-between;
    border-top: 1px dashed #e5e7eb;
    padding-top: 8px;
    margin-top: 6px;
}

.fe-badge-meta .fe-badge-points {
    color: var(--primary, #6c63ff);
    font-weight: 700;
}

.fe-badges-empty {
    background: #fff;
    border: 1px dashed var(--border, #e5e7eb);
    padding: 30px;
    border-radius: 14px;
    text-align: center;
    color: #64748b;
}

/* Compact badges showcase on dashboard */
.fe-dashboard-badges {
    background: #fff;
    border-radius: 16px;
    padding: 18px 22px;
    margin-bottom: 18px;
    border: 1px solid var(--border, #e5e7eb);
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.fe-db-badges-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.fe-db-badges-head h3 {
    margin: 0;
    font-size: 1rem;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fe-db-badges-head h3 i {
    color: var(--primary, #6c63ff);
}

.fe-db-badges-strip {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.fe-db-badge-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fc;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.86rem;
    color: #1a1a2e;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease;
}

.fe-db-badge-chip:hover {
    transform: translateY(-2px);
}

.fe-db-badge-chip i {
    color: var(--primary, #6c63ff);
}

.fe-db-badges-empty {
    color: #94a3b8;
    font-size: 0.88rem;
    font-style: italic;
}

/* ---------- LIVE NOW pulse (admin/cg-reports.php) ---------- */
@keyframes fe-pulse {
    0%   { opacity: 1; transform: scale(1); }
    50%  { opacity: 0.65; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

/* ---------- Print rules ---------- */
@media print {
    body {
        background: #fff !important;
    }
    .admin-sidebar,
    .admin-topbar,
    .fe-cta-row,
    .fe-actions-bar {
        display: none !important;
    }
    .admin-main {
        margin-left: 0 !important;
        padding: 0 !important;
    }
    .admin-layout {
        display: block !important;
    }
    .fe-report-page {
        max-width: 100%;
        padding: 0;
    }
    .fe-hero,
    .fe-radar-card,
    .fe-cards-grid-wrap,
    .fe-strengths-grid,
    .fe-casestudy-card,
    .fe-recommendation-card {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none !important;
    }
    .fe-cards-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    .fe-radar-wrap {
        height: 320px;
    }
    .fe-hero {
        background: linear-gradient(135deg, #3d2c8f, #6c63ff) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        color: #fff !important;
    }
    @page {
        size: A4;
        margin: 14mm;
    }

    /* Certificate print rules — landscape sizing is set inline on the
       certificate page only (see student/free-evaluation-certificate.php),
       so it does NOT affect the report's printed pages. */
    .fe-cert-page {
        background: #fff !important;
        padding: 0;
    }
    .fe-cert-actions {
        display: none !important;
    }
    .fe-cert-frame {
        box-shadow: none !important;
        border: 12px double #6c63ff !important;
        page-break-inside: avoid;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
    .fe-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .fe-gauge-wrap {
        margin: 0 auto;
    }
    .fe-strengths-grid {
        grid-template-columns: 1fr;
    }
    .fe-dashboard-banner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .fe-cards-grid {
        grid-template-columns: 1fr;
    }
    .fe-actions-bar {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ============================================================
   State-aware empty pages — Free Evaluation Report
   Three states: not_booked, pre_session, awaiting_scoring
   Plus universal "What's in your report" preview + sample card.
   ============================================================ */

.fe-state-page {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* ---------- Hero shell ---------- */
.fe-state-hero {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    color: #fff;
    isolation: isolate;
}

.fe-state-hero--unlock {
    background:
        radial-gradient(900px 500px at 110% -10%, rgba(200,255,0,0.32) 0%, transparent 60%),
        radial-gradient(700px 500px at -10% 110%, rgba(255,255,255,0.10) 0%, transparent 55%),
        linear-gradient(135deg, #4f46e5 0%, #6c63ff 45%, #8b5cf6 100%);
}

.fe-state-hero--scheduled {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 50%, #c8ff00 130%);
}

.fe-state-hero--pending {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 60%, #fbbf24 100%);
    color: #1a1830;
}

.fe-state-hero-body {
    position: relative;
    z-index: 1;
    padding: 38px 40px;
    max-width: 760px;
}

.fe-state-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.fe-state-radar-preview {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 360px;
    opacity: 0.85;
}

.fe-state-radar-preview svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 6px 18px rgba(0,0,0,0.18));
    animation: fe-radar-pulse 4s ease-in-out infinite;
}

@keyframes fe-radar-pulse {
    0%, 100% { opacity: 0.85; transform: translateY(0) scale(1); }
    50%      { opacity: 1; transform: translateY(-3px) scale(1.02); }
}

.fe-state-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.22);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.fe-state-eyebrow--pending {
    background: rgba(26, 24, 48, 0.18);
    color: #1a1830;
}

.fe-state-hero-body h1 {
    margin: 0 0 12px;
    font-size: 2.1rem;
    line-height: 1.18;
    letter-spacing: -0.01em;
}

.fe-state-hero-body p {
    margin: 0 0 22px;
    font-size: 1.02rem;
    line-height: 1.6;
    opacity: 0.95;
    max-width: 600px;
}

.fe-state-hero--pending .fe-state-hero-body p {
    opacity: 0.85;
}

/* ---------- Stats triplet (not_booked) ---------- */
.fe-state-stats {
    display: flex;
    gap: 36px;
    margin: 8px 0 26px;
    flex-wrap: wrap;
}

.fe-state-stats > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fe-state-stats strong {
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
}

.fe-state-stats span {
    font-size: 0.8rem;
    opacity: 0.85;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* ---------- CTA row ---------- */
.fe-state-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.fe-state-cta-primary {
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

.fe-state-cta-primary.is-future {
    opacity: 0.55;
    pointer-events: none;
    cursor: not-allowed;
}

.btn-outline-light {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.45);
    color: #fff;
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.22);
    color: #fff;
}

/* ---------- Meeting card (pre_session) ---------- */
.fe-state-meeting-card {
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 18px;
    backdrop-filter: blur(6px);
}

.fe-state-meeting-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 14px;
}

.fe-state-meeting-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fe-state-meeting-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    opacity: 0.85;
}

.fe-state-meeting-cell strong {
    font-size: 1.05rem;
    font-weight: 700;
}

.fe-state-meeting-note {
    margin: 8px 0 0;
    font-size: 0.82rem;
    opacity: 0.85;
}

/* ---------- Prep checklist ---------- */
.fe-state-prep {
    background: rgba(255,255,255,0.10);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.fe-state-prep h3 {
    margin: 0 0 10px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.fe-state-prep ul {
    margin: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fe-state-prep li {
    font-size: 0.92rem;
    line-height: 1.5;
    opacity: 0.95;
}

/* ---------- Stepper (awaiting_scoring) ---------- */
.fe-state-stepper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    background: rgba(255,255,255,0.20);
    border-radius: 16px;
    padding: 18px 16px;
    margin-bottom: 20px;
    position: relative;
}

.fe-state-step {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    padding: 6px 4px;
}

.fe-state-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -10px;
    width: 12px;
    height: 2px;
    background: rgba(26,24,48,0.25);
}

.fe-state-step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    color: rgba(26,24,48,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.6);
}

.fe-state-step.is-done .fe-state-step-dot {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
}

.fe-state-step.is-active .fe-state-step-dot {
    background: #1a1830;
    color: #c8ff00;
    border-color: #1a1830;
    animation: fe-step-pulse 1.6s ease-in-out infinite;
}

@keyframes fe-step-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(26,24,48,0.45); }
    50%      { box-shadow: 0 0 0 8px rgba(26,24,48,0); }
}

.fe-state-step-body {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.fe-state-step-body strong {
    font-size: 0.92rem;
    font-weight: 700;
}

.fe-state-step-body span {
    font-size: 0.76rem;
    opacity: 0.7;
}

/* ---------- Universal preview card: "What's in your report" ---------- */
.fe-state-preview-card {
    background: #fff;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 20px;
    padding: 24px 26px;
    box-shadow: 0 4px 14px rgba(15,23,42,0.05);
}

.fe-state-preview-card .fe-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.fe-state-preview-card .fe-section-head h2 {
    margin: 0;
    font-size: 1.15rem;
}

.fe-state-preview-card .fe-section-head i {
    color: var(--primary, #6c63ff);
}

.fe-state-preview-sub {
    margin-left: auto;
    font-size: 0.82rem;
    color: var(--text-muted, #64748b);
}

.fe-state-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.fe-state-preview-cell {
    background: linear-gradient(135deg, #faf9ff 0%, #fff 100%);
    border: 1px solid #eef0fb;
    border-radius: 14px;
    padding: 14px 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    animation: fe-preview-fade 0.5s ease both;
    animation-delay: calc(var(--idx, 0) * 40ms);
}

.fe-state-preview-cell:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(108,99,255,0.12);
    border-color: #c4c0ff;
}

@keyframes fe-preview-fade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fe-state-preview-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(108,99,255,0.10);
    color: var(--primary, #6c63ff);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.fe-state-preview-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text, #1a1a2e);
    margin-bottom: 4px;
}

.fe-state-preview-rubric {
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--text-muted, #64748b);
}

/* ---------- Sample archetype card ---------- */
.fe-state-sample-card {
    background: #fff;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 20px;
    padding: 24px 26px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 24px;
    align-items: center;
    box-shadow: 0 4px 14px rgba(15,23,42,0.05);
}

.fe-state-sample-tag {
    display: inline-block;
    background: rgba(108,99,255,0.10);
    color: var(--primary, #6c63ff);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 10px;
}

.fe-state-sample-card h3 {
    margin: 0 0 14px;
    font-size: 1.15rem;
    color: var(--text, #1a1a2e);
}

.fe-state-archetype-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #6c63ff 0%, #8b80ff 100%);
    color: #fff;
    border-radius: 14px;
    margin-bottom: 12px;
}

.fe-state-archetype-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.fe-state-archetype-name {
    font-size: 1.1rem;
    font-weight: 700;
}

.fe-state-archetype-band {
    font-size: 0.82rem;
    opacity: 0.92;
    margin-top: 2px;
}

.fe-state-sample-note {
    margin: 0;
    font-size: 0.86rem;
    color: var(--text-muted, #64748b);
    line-height: 1.55;
}

.fe-state-sample-note em {
    color: var(--primary, #6c63ff);
    font-style: normal;
    font-weight: 600;
}

.fe-state-sample-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fe-state-faux-bar {
    display: grid;
    grid-template-columns: 130px 1fr 36px;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
}

.fe-state-faux-bar > span {
    color: var(--text-muted, #64748b);
    font-weight: 600;
}

.fe-state-faux-bar > div {
    background: #eef0fb;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
}

.fe-state-faux-bar > div > div {
    height: 100%;
    background: linear-gradient(90deg, #6c63ff 0%, #8b5cf6 100%);
    border-radius: 999px;
    animation: fe-faux-grow 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fe-faux-grow {
    from { width: 0% !important; }
}

.fe-state-faux-bar > strong {
    text-align: right;
    color: var(--text, #1a1a2e);
    font-weight: 700;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .fe-state-hero-body {
        padding: 28px 24px;
        max-width: 100%;
    }
    .fe-state-radar-preview {
        display: none;
    }
    .fe-state-hero-body h1 {
        font-size: 1.55rem;
    }
    .fe-state-meeting-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .fe-state-stepper {
        grid-template-columns: 1fr;
    }
    .fe-state-step:not(:last-child)::after {
        display: none;
    }
    .fe-state-sample-card {
        grid-template-columns: 1fr;
    }
    .fe-state-stats {
        gap: 22px;
    }
}
