/* ═══════════════════════════════════════════════════════════
   Frontier Readiness Assessment — Blazor App Styles
   Faithfully adapted from the approved prototype design
   Fonts: Impact / Arial Nova Condensed (not Bebas Neue / Barlow)
   ═══════════════════════════════════════════════════════════ */

:root {
    --dark-blue: #242a58;
    --light-blue: #5abdd9;
    --orange: #ff6200;
    --yellow: #fecd10;
    --red: #e41b1a;
    --white: #ffffff;
    --light-grey: #f5f5f7;
    --mid-grey: #6b7280;
    --dark-text: #1f2937;
    --font-headline: Impact, 'Arial Black', sans-serif;
    --font-body: 'Arial Nova Condensed', 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
    --blue-gradient: linear-gradient(135deg, #242a58, #5abdd9);
    --orange-gradient: radial-gradient(ellipse at bottom right, #ff6200, #fecd10);
    --master-gradient: linear-gradient(135deg, #242a58 0%, #3a4a7a 20%, #5abdd9 40%, #ff6200 70%, #fecd10 100%);
    --lvl-foundational: #E8734A;
    --lvl-modernising: #F59E0B;
    --lvl-ai-assisted: #00C9DB;
    --lvl-agent-enabled: #34D399;
    --lvl-frontier: #00E5F7;
}

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

/* Remove focus outline from non-interactive text elements */
h1:focus-visible, h2:focus-visible, h3:focus-visible,
h4:focus-visible, h5:focus-visible, h6:focus-visible,
p:focus-visible, div:focus-visible, section:focus-visible { outline: none; }

body {
    font-family: var(--font-body);
    color: var(--dark-text);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
}
/* Impact is inherently heavy — prevent synthetic bold doubling */
h1, h2, h3, h4, h5, h6 { font-weight: normal; }

/* ═══ BLAZOR LOADING SPINNER ═══ */
.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}
.loading-progress circle {
    fill: none;
    stroke: #ddd;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}
.loading-progress circle:last-child {
    stroke: var(--light-blue);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}
.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
    color: var(--mid-grey);
}
.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

/* ═══ BLAZOR ERROR UI ═══ */
#blazor-error-ui {
    background: var(--red);
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0,0,0,0.4);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: white;
}
#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
.blazor-error-boundary {
    background: var(--red);
    padding: 1rem;
    color: white;
}
.blazor-error-boundary::after {
    content: "An error has occurred.";
}

/* ═══ NAVBAR ═══ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: var(--dark-blue);
    padding: 0 40px;
    height: 64px;
    display: flex; align-items: center; justify-content: space-between;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.navbar-brand {
    display: flex; align-items: center;
    text-decoration: none;
}
.navbar-brand img {
    height: 40px; width: auto;
    filter: brightness(0) invert(1);
}
.navbar-logo {
    font-family: var(--font-headline);
    font-size: 1.4rem;
    letter-spacing: 4px;
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
}
.navbar-progress {
    display: flex; align-items: center; gap: 16px;
    opacity: 0; transition: opacity 0.3s;
}
.navbar-progress.visible { opacity: 1; }
.navbar-user {
    display: flex; align-items: center; gap: 12px;
    margin-left: auto;
}
.navbar-user-name {
    font-size: 0.85rem; color: rgba(255,255,255,0.7);
}
.navbar-logout {
    background: transparent; border: 1px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.8); padding: 6px 14px;
    border-radius: 6px; font-size: 0.8rem; cursor: pointer;
    transition: all 0.2s;
}
.navbar-logout:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
    color: var(--white);
}
.progress-bar-container {
    width: 200px; height: 6px;
    background: rgba(255,255,255,0.15);
    border-radius: 3px; overflow: hidden;
}
.progress-bar-fill {
    height: 100%; width: 0%;
    background: var(--orange-gradient);
    border-radius: 3px;
    transition: width 0.4s ease;
}
.progress-text {
    font-size: 13px; color: rgba(255,255,255,0.7);
    letter-spacing: 0.5px; min-width: 80px;
}

/* ═══ APP CONTENT ═══ */
.app-content {
    min-height: 100vh;
    padding-top: 64px;
}

/* ═══ ANIMATIONS ═══ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-in {
    animation: fadeInUp 0.5s ease forwards;
}

/* ═══ HERO / LANDING ═══ */
.hero {
    min-height: calc(100vh - 64px);
    background:
        radial-gradient(ellipse at 30% 50%, rgba(90,189,217,0.35) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(255,98,0,0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 90%, rgba(254,205,16,0.3) 0%, transparent 40%),
        linear-gradient(160deg, #1a2048 0%, #242a58 25%, #3a6a8a 45%, #5abdd9 55%, #e07020 75%, #ff6200 85%, #fecd10 100%);
    display: flex; align-items: center; justify-content: center;
    padding: 60px 40px;
}
.hero-content {
    max-width: 720px; text-align: center;
}
.hero-logo img {
    height: 52px; width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    margin-bottom: 24px;
}
.hero-content h1 {
    font-family: var(--font-headline);
    font-size: clamp(48px, 7vw, 80px);
    color: var(--white); text-transform: uppercase;
    line-height: 0.92; letter-spacing: -1px;
    margin-bottom: 16px;
}
.hero-content .subtitle {
    font-family: var(--font-headline);
    font-size: clamp(20px, 3vw, 30px);
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    margin-bottom: 32px;
}
.hero-content p {
    font-size: 17px; color: rgba(255,255,255,0.85);
    line-height: 1.7; margin-bottom: 24px;
    max-width: 560px; margin-left: auto; margin-right: auto;
}
.hero-stats {
    display: flex; justify-content: center; gap: 32px;
    margin: 32px 0 40px; flex-wrap: wrap;
}
.hero-stat {
    text-align: center; color: var(--white);
}
.hero-stat-val {
    font-family: var(--font-headline);
    font-size: 36px; line-height: 1;
}
.hero-stat-label {
    font-size: 11px; text-transform: uppercase;
    letter-spacing: 1.5px; opacity: 0.7; margin-top: 4px;
}

/* ═══ BUTTONS ═══ */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 16px 40px;
    font-family: var(--font-headline);
    font-size: 20px; letter-spacing: 1px;
    text-transform: uppercase;
    border: none; border-radius: 8px;
    cursor: pointer; text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.btn-primary {
    background: var(--orange);
    color: var(--white);
}
.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
}
.btn-secondary:hover { border-color: var(--white); }
.btn-dark {
    background: var(--dark-blue);
    color: var(--white);
}
.btn:disabled {
    opacity: 0.3; cursor: not-allowed;
    transform: none !important; box-shadow: none !important;
}

/* ═══ ACCESS KEY FORM ═══ */
.access-key-form {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}
.form-input {
    padding: 12px 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-size: 1rem;
    font-family: var(--font-body);
    width: 280px;
}
.form-input::placeholder {
    color: rgba(255,255,255,0.5);
}
.form-input:focus {
    outline: none;
    border-color: var(--white);
}

/* Admin area overrides — form-input sits on a white card background */
.admin-page .form-input,
.admin-content .form-input {
    color: var(--dark-blue);
    background: #fff;
    border-color: #d1d5db;
}
.admin-page .form-input::placeholder,
.admin-content .form-input::placeholder {
    color: #9ca3af;
}
.admin-page .form-input:focus,
.admin-content .form-input:focus {
    border-color: var(--dark-blue);
}

/* ═══ ASSESSMENT SCREEN ═══ */
.assessment-screen,
.assessment {
    background: var(--light-grey);
    min-height: calc(100vh - 64px);
    padding: 40px 24px 80px;
}
.assessment-container {
    max-width: 760px; margin: 0 auto;
}
.assessment-header {
    text-align: center;
    margin-bottom: 40px;
}
.assessment-header h1 {
    font-family: var(--font-headline);
    font-size: clamp(28px, 4vw, 40px);
    text-transform: uppercase;
    color: var(--dark-blue);
}
.assessment-header .subtitle {
    color: var(--mid-grey);
    margin-top: 8px;
}
.overall-progress-bar {
    width: 100%; max-width: 360px; height: 6px;
    background: #e0e4ef; border-radius: 3px;
    margin: 16px auto 6px; overflow: hidden;
}
.overall-progress-fill {
    height: 100%; border-radius: 3px;
    background: var(--blue-gradient);
    transition: width 0.4s ease;
}
.progress-label {
    font-size: 0.8rem; color: var(--mid-grey);
    letter-spacing: 0.5px;
}
.progress-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    color: var(--mid-grey);
}

/* ═══ DIMENSION GRID (Assessment Home) ═══ */
.dimension-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.axis-heading {
    font-family: var(--font-headline);
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--light-blue);
    margin-bottom: 16px;
}
.axis-heading.org {
    color: var(--orange);
}
.dimension-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--white);
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.dimension-card:hover {
    border-color: var(--light-blue);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(36,42,88,0.08);
}
.dimension-card.complete {
    border-color: var(--lvl-agent-enabled);
}
.dimension-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}
.dimension-info {
    flex: 1;
}
.dimension-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark-blue);
}
.dimension-progress {
    font-size: 0.8rem;
    color: var(--mid-grey);
}
.dimension-chevron {
    font-size: 1.5rem;
    color: var(--mid-grey);
}

/* ═══ AXIS CARDS (Assessment Home — session-level) ═══ */
.axis-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}
.axis-card {
    background: var(--white);
    border: 2px solid #e8e8e8;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    overflow: hidden;
}
.axis-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 36px rgba(36,42,88,0.12);
}
.axis-card.tech:hover { border-color: var(--light-blue); }
.axis-card.org:hover  { border-color: var(--orange); }
.axis-card.extra:hover { border-color: var(--yellow); }
.axis-card.complete   { border-color: var(--lvl-agent-enabled); }
.axis-card.complete.tech { background: linear-gradient(135deg, #f0faff 0%, var(--white) 100%); }
.axis-card.complete.org  { background: linear-gradient(135deg, #fff6f0 0%, var(--white) 100%); }
.axis-card.complete.extra { background: linear-gradient(135deg, #fffbec 0%, var(--white) 100%); }
/* Left accent bar */
.axis-card-accent {
    height: 6px;
}
.axis-card-accent.tech { background: var(--light-blue); }
.axis-card-accent.org  { background: var(--orange-gradient); }
.axis-card-accent.extra { background: var(--yellow); }
.axis-card.complete .axis-card-accent { background: var(--lvl-agent-enabled); }
/* Inner row */
.axis-card-body {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
}
.axis-card-icon {
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.axis-tick {
    width: 52px; height: 52px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}
.axis-tick.tech { background: var(--light-blue); color: var(--white); }
.axis-tick.org  { background: var(--orange); color: var(--white); }
.axis-tick.extra { background: var(--yellow); color: var(--dark-blue); }
.axis-ring { width: 56px; height: 56px; }
.axis-card-content { flex: 1; }
.axis-card-label {
    font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    margin-bottom: 2px;
}
.axis-card-label.tech { color: var(--light-blue); }
.axis-card-label.org  { color: var(--orange); }
.axis-card-label.extra { color: #a07800; }
.axis-card-content h2 {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dark-blue);
    margin: 0 0 4px;
}
.axis-card-content p {
    font-size: 0.82rem;
    color: var(--mid-grey);
    margin: 0 0 8px;
}
.axis-status {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 20px;
}
.axis-status.not-started { color: var(--mid-grey); background: #f0f0f0; }
.axis-status.in-progress.tech { color: var(--light-blue); background: rgba(90,189,217,0.12); }
.axis-status.in-progress.org  { color: var(--orange); background: rgba(255,98,0,0.1); }
.axis-status.complete { color: var(--lvl-agent-enabled); background: rgba(52,211,153,0.12); }
.axis-card-chevron {
    font-size: 2rem; color: #c8ccd8;
    flex-shrink: 0; transition: color 0.2s, transform 0.2s;
}
.axis-card:hover .axis-card-chevron {
    color: var(--dark-blue);
    transform: translateX(3px);
}

/* ═══ AXIS PROGRESS BAR (Question flow) ═══ */
.axis-progress-bar {
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    margin-top: 12px;
    overflow: hidden;
}
.axis-progress-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
}
.axis-progress-fill.tech { background: var(--light-blue); }
.axis-progress-fill.org { background: var(--orange); }

/* ═══ DIMENSION HEADER ═══ */
.dim-header {
    background: var(--dark-blue);
    border-radius: 16px 16px 0 0;
    padding: 28px 32px;
    color: var(--white);
    position: relative; overflow: hidden;
}
.dim-header.tech::before {
    content: ''; position: absolute; top: 0; right: 0;
    width: 200px; height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(90,189,217,0.2) 100%);
}
.dim-header.org::before {
    content: ''; position: absolute; top: 0; right: 0;
    width: 200px; height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(255,98,0,0.2) 100%);
}
.dim-header-axis {
    font-size: 11px; text-transform: uppercase;
    letter-spacing: 2px; opacity: 0.6; margin-bottom: 4px;
}
.dim-header h2 {
    font-family: var(--font-headline);
    font-size: 28px; text-transform: uppercase;
    letter-spacing: 0.5px; line-height: 1.1;
}
.dim-header-meta {
    font-size: 13px; opacity: 0.7; margin-top: 6px;
}
.dim-header-desc {
    font-size: 14px; opacity: 0.85; margin-top: 8px;
    font-style: italic;
}

/* ═══ QUESTION CARD ═══ */
.question-card {
    background: var(--white);
    border-radius: 0 0 16px 16px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(36,42,88,0.08);
    margin-bottom: 24px;
}
.q-number,
.question-code {
    font-family: var(--font-headline);
    font-size: 13px; text-transform: uppercase;
    letter-spacing: 1.5px; margin-bottom: 8px;
}
.q-number.tech,
.question-code.tech { color: var(--light-blue); }
.q-number.org,
.question-code.org { color: var(--orange); }
.q-text,
.question-text {
    font-size: 18px; font-weight: 600;
    color: var(--dark-blue); line-height: 1.5;
    margin-bottom: 24px;
}

/* ═══ ANSWER OPTIONS ═══ */
.options,
.options-list {
    display: flex; flex-direction: column; gap: 8px;
}
.option,
.option-card {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 14px 18px; border-radius: 10px;
    border: 2px solid #e8e8e8;
    cursor: pointer; transition: all 0.2s;
    background: var(--white);
}
.option:hover,
.option-card:hover {
    border-color: #ccdde8;
    background: #f8fbfd;
}
.option.selected,
.option-card.selected {
    border-color: var(--light-blue);
    background: rgba(90,189,217,0.06);
}
.option.selected.org-opt,
.option-card.selected.org-opt {
    border-color: var(--orange);
    background: rgba(255,98,0,0.04);
}

/* Option radio indicator */
.option-radio {
    width: 22px; height: 22px; flex-shrink: 0;
    border: 2px solid #ccc; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-top: 1px; transition: all 0.2s;
}
.option.selected .option-radio,
.option-card.selected .option-radio {
    border-color: var(--light-blue);
}
.option.selected.org-opt .option-radio,
.option-card.selected.org-opt .option-radio {
    border-color: var(--orange);
}
.option.selected .option-radio::after,
.option-card.selected .option-radio::after {
    content: ''; width: 12px; height: 12px;
    border-radius: 50%; background: var(--light-blue);
}
.option.selected.org-opt .option-radio::after,
.option-card.selected.org-opt .option-radio::after {
    background: var(--orange);
}

/* Option level indicator (circle badge) */
.option-level {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 600;
    flex-shrink: 0;
    color: var(--mid-grey);
}
.option-card.selected .option-level {
    background: var(--light-blue);
    color: var(--white);
}
.option-card.selected.org-opt .option-level {
    background: var(--orange);
}

.option-content { flex: 1; }

/* Maturity level labels */
.option-level-label {
    font-weight: 700; font-size: 12px;
    text-transform: uppercase; letter-spacing: 0.8px;
    margin-bottom: 3px;
}
.option-level-1 { color: var(--lvl-foundational); }
.option-level-2 { color: var(--lvl-modernising); }
.option-level-3 { color: var(--lvl-ai-assisted); }
.option-level-4 { color: var(--lvl-agent-enabled); }
.option-level-5 { color: var(--lvl-frontier); }

.option-text {
    font-size: 14.5px; line-height: 1.5; color: var(--dark-text);
}

/* ═══ NAVIGATION BUTTONS ═══ */
.nav-buttons,
.question-nav {
    display: flex; justify-content: space-between;
    align-items: center; margin-top: 32px;
    gap: 16px;
}
.btn-nav {
    padding: 12px 28px;
    font-family: var(--font-headline);
    font-size: 16px; letter-spacing: 1px;
    text-transform: uppercase;
    border: none; border-radius: 8px;
    cursor: pointer; transition: all 0.2s;
}
.btn-nav:disabled {
    opacity: 0.3; cursor: not-allowed;
    transform: none !important; box-shadow: none !important;
}
.btn-back {
    background: transparent;
    color: var(--dark-blue);
    border: 2px solid #ddd;
    padding: 12px 28px;
    font-family: var(--font-headline);
    font-size: 16px; letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 8px;
    cursor: pointer; transition: all 0.2s;
}
.btn-arrow {
    display: inline-block;
    position: relative;
    top: -3px;
}
.btn-back:hover:not(:disabled) { border-color: var(--dark-blue); }
.btn-next {
    background: var(--orange);
    color: var(--white);
}
.btn-next:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255,98,0,0.3);
}
.q-counter {
    font-size: 13px; color: var(--mid-grey);
    letter-spacing: 0.5px;
}

/* ═══ AXIS TRANSITION ═══ */
.axis-transition {
    min-height: calc(100vh - 64px);
    display: flex; align-items: center; justify-content: center;
    padding: 60px 40px; text-align: center;
}
.axis-transition.tech-complete {
    background: var(--blue-gradient);
}
.axis-transition h2 {
    font-family: var(--font-headline);
    font-size: clamp(36px, 5vw, 56px);
    color: var(--white); text-transform: uppercase;
    line-height: 0.95; margin-bottom: 20px;
}
.axis-transition p {
    font-size: 16px; color: rgba(255,255,255,0.85);
    max-width: 520px; margin: 0 auto 32px;
    line-height: 1.7;
}

/* ═══ RESULTS SCREEN ═══ */
.results-screen,
.results {
    background: var(--light-grey);
    padding: 48px 24px 80px;
}
.results-container {
    max-width: 900px; margin: 0 auto;
}
.results-header {
    text-align: center; margin-bottom: 48px;
}
.results-header h1 {
    font-family: var(--font-headline);
    font-size: clamp(36px, 5vw, 52px);
    color: var(--dark-blue); text-transform: uppercase;
    line-height: 0.95; margin-bottom: 12px;
}
.results-header p,
.results-header .subtitle {
    font-size: 16px; color: var(--mid-grey);
    max-width: 520px; margin: 0 auto;
}

/* ═══ SCORE CIRCLES ═══ */
.score-hero {
    display: flex; justify-content: center; gap: 48px;
    flex-wrap: wrap; margin-bottom: 48px;
}
.results-overview {
    text-align: center;
    margin-bottom: 40px;
}
.score-circle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}
.score-circle {
    width: 200px; height: 200px;
    border-radius: 50%; position: relative;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column;
}
.score-circle.overall {
    width: 240px; height: 240px;
    background: var(--dark-blue);
    box-shadow: 0 8px 40px rgba(36,42,88,0.25);
}
.score-circle.tech-score {
    background: var(--blue-gradient);
    box-shadow: 0 6px 24px rgba(90,189,217,0.25);
}
.score-circle.org-score {
    background: var(--orange-gradient);
    box-shadow: 0 6px 24px rgba(255,98,0,0.25);
}
/* SVG-based score circles */
.score-circle svg {
    width: 100%;
    height: 100%;
}
.score-circle-text {
    position: absolute;
    text-align: center;
}
.score-value {
    font-family: var(--font-headline);
    font-size: 64px; color: var(--white);
    line-height: 1;
    display: block;
}
.score-circle.overall .score-value { font-size: 80px; }
.score-label {
    font-size: 12px; color: rgba(255,255,255,0.7);
    text-transform: uppercase; letter-spacing: 1.5px;
    margin-top: 4px;
    display: block;
}
.score-sublabel {
    font-size: 11px; color: rgba(255,255,255,0.5);
    margin-top: 2px;
}
.maturity-label {
    font-family: var(--font-headline);
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--dark-blue);
}

/* ═══ MATURITY BADGE ═══ */
.maturity-badge {
    text-align: center; margin-bottom: 48px;
}
.maturity-badge-inner {
    display: inline-block; padding: 16px 40px;
    border-radius: 12px; background: var(--white);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.maturity-badge-label {
    font-size: 11px; text-transform: uppercase;
    letter-spacing: 1.5px; color: var(--mid-grey);
    margin-bottom: 4px;
}
.maturity-badge-value {
    font-family: var(--font-headline);
    font-size: 28px; text-transform: uppercase;
}

/* ═══ QUADRANT CHART ═══ */
.quadrant-wrapper,
.benchmarking-section {
    background: var(--white); border-radius: 20px;
    padding: 36px 36px 24px;
    box-shadow: 0 4px 24px rgba(36,42,88,0.08);
    margin-bottom: 48px;
}
.quadrant-title,
.benchmarking-section h2 {
    font-family: var(--font-headline);
    font-size: 22px; text-transform: uppercase;
    color: var(--dark-blue); text-align: center;
    letter-spacing: 0.5px; margin-bottom: 24px;
}
.benchmarking-section .subtitle {
    text-align: center;
    color: var(--mid-grey);
    margin-bottom: 24px;
}
.quadrant-layout {
    display: flex; align-items: center;
    justify-content: center; gap: 12px;
    max-width: 580px; margin: 0 auto;
}
.quadrant-container {
    position: relative; flex: 1; max-width: 520px;
    aspect-ratio: 1;
}
.quadrant-grid {
    position: absolute; inset: 0;
    display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
    border: 2px solid #dde0e8; border-radius: 4px;
    overflow: hidden;
}
.quadrant-cell {
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; padding: 16px;
    text-align: center; position: relative;
}
.quadrant-cell:nth-child(1) { background: rgba(90,189,217,0.06); border-right: 1px dashed #ccd3e0; border-bottom: 1px dashed #ccd3e0; }
.quadrant-cell:nth-child(2) { background: rgba(0,229,247,0.06); border-bottom: 1px dashed #ccd3e0; }
.quadrant-cell:nth-child(3) { background: rgba(228,115,74,0.04); border-right: 1px dashed #ccd3e0; }
.quadrant-cell:nth-child(4) { background: rgba(254,205,16,0.06); }
.quadrant-cell-label {
    font-family: var(--font-headline);
    font-size: 15px; text-transform: uppercase;
    letter-spacing: 0.5px; line-height: 1.2;
}
.quadrant-cell:nth-child(1) .quadrant-cell-label { color: var(--light-blue); }
.quadrant-cell:nth-child(2) .quadrant-cell-label { color: var(--lvl-frontier); }
.quadrant-cell:nth-child(3) .quadrant-cell-label { color: var(--lvl-foundational); }
.quadrant-cell:nth-child(4) .quadrant-cell-label { color: var(--orange); }
.quadrant-cell-desc {
    font-size: 11px; color: var(--mid-grey);
    margin-top: 4px; line-height: 1.4;
}
.quadrant-dot {
    position: absolute; width: 22px; height: 22px;
    border-radius: 50%; background: var(--dark-blue);
    border: 3px solid var(--white);
    box-shadow: 0 2px 12px rgba(36,42,88,0.4);
    transform: translate(-50%, 50%);
    z-index: 10; transition: all 0.8s ease;
}
.quadrant-dot-ring {
    position: absolute; width: 44px; height: 44px;
    border-radius: 50%; border: 2px solid rgba(36,42,88,0.2);
    transform: translate(-50%, 50%);
    z-index: 9;
    animation: pulse-ring 2s ease infinite;
}
@keyframes pulse-ring {
    0%, 100% { opacity: 0.6; transform: translate(-50%, 50%) scale(1); }
    50% { opacity: 0; transform: translate(-50%, 50%) scale(1.8); }
}
.quadrant-axis-y-label {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    font-size: 11px; text-transform: uppercase;
    letter-spacing: 1.5px; color: var(--mid-grey);
    font-weight: 600; white-space: nowrap;
}
.quadrant-axis-x-label {
    text-align: center;
    font-size: 11px; text-transform: uppercase;
    letter-spacing: 1.5px; color: var(--mid-grey);
    font-weight: 600; margin-top: 12px;
}
.quadrant-score-tag {
    position: absolute; background: var(--dark-blue);
    color: var(--white); padding: 4px 10px;
    border-radius: 6px; font-size: 12px;
    font-weight: 600; white-space: nowrap;
    z-index: 11;
    transform: translate(-50%, -100%);
    margin-top: -16px;
}
.quadrant-score-tag::after {
    content: ''; position: absolute;
    bottom: -5px; left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--dark-blue);
}
/* SVG-based quadrant chart */
.quadrant-chart {
    background: var(--white);
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 24px;
    max-width: 420px;
    width: 100%;
}
.quadrant-svg {
    width: 100%;
    height: auto;
}

/* ═══ DIMENSION BARS (Results) ═══ */
.dim-results,
.results-dimensions {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 16px; margin-bottom: 48px;
}
.dim-result-card {
    background: var(--white); border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.dim-result-name {
    font-family: var(--font-headline);
    font-size: 15px; text-transform: uppercase;
    color: var(--dark-blue); letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.dim-bar-bg,
.dimension-bar-track {
    height: 10px; background: #e8e8e8;
    border-radius: 5px; overflow: hidden; margin-bottom: 4px;
}
.dim-bar-fill,
.dimension-bar-fill {
    height: 100%; border-radius: 5px;
    transition: width 1s ease;
}
.dim-bar-fill.tech-bar,
.dimension-bar-fill.tech-bar { background: var(--blue-gradient); }
.dim-bar-fill.org-bar,
.dimension-bar-fill.org-bar { background: var(--orange-gradient); }
.dim-result-score {
    font-size: 13px; color: var(--mid-grey);
    display: flex; justify-content: space-between;
}
/* Alt layout for dimension bars */
.axis-results h2 {
    font-family: var(--font-headline);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dark-blue);
    margin-bottom: 16px;
}
.dimension-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.dimension-bar-label {
    flex: 0 0 140px;
    font-size: 0.85rem;
    text-align: right;
    color: var(--mid-grey);
}
.dimension-bar-score {
    flex: 0 0 40px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-blue);
}

/* ═══ RESULTS CTA ═══ */
.results-cta {
    background: var(--dark-blue);
    border-radius: 20px; padding: 48px;
    text-align: center; color: var(--white);
    position: relative; overflow: hidden;
}
.results-cta::before {
    content: ''; position: absolute; top: -50%; right: -20%;
    width: 60%; height: 200%;
    background: radial-gradient(ellipse, rgba(90,189,217,0.1) 0%, transparent 70%);
}
.results-cta h2 {
    font-family: var(--font-headline);
    font-size: 32px; text-transform: uppercase;
    margin-bottom: 16px; position: relative;
}
.results-cta p {
    font-size: 16px; color: rgba(255,255,255,0.8);
    max-width: 520px; margin: 0 auto 28px;
    line-height: 1.7; position: relative;
}
.results-actions {
    text-align: center;
    margin-top: 32px;
}

/* ═══ SIGN UP SCREEN ═══ */
.signup {
    min-height: calc(100vh - 64px);
    display: flex; align-items: center; justify-content: center;
    padding: 60px 24px;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(90,189,217,0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255,98,0,0.08) 0%, transparent 50%),
        var(--light-grey);
}
.signup-card {
    background: var(--white);
    border-radius: 20px; padding: 48px;
    max-width: 520px; width: 100%;
    box-shadow: 0 8px 40px rgba(36,42,88,0.1);
}
.signup-card h2 {
    font-family: var(--font-headline);
    font-size: 32px; text-transform: uppercase;
    color: var(--dark-blue); margin-bottom: 8px;
}
.signup-card .lead {
    font-size: 15px; color: var(--mid-grey);
    margin-bottom: 28px; line-height: 1.6;
}
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block; font-size: 12px;
    font-weight: 600; text-transform: uppercase;
    letter-spacing: 1px; color: var(--dark-blue);
    margin-bottom: 6px;
}
.form-group input, .form-group select {
    width: 100%; padding: 12px 16px;
    border: 2px solid #e0e0e0; border-radius: 8px;
    font-family: var(--font-body); font-size: 15px;
    color: var(--dark-text); transition: border-color 0.2s;
    background: var(--white);
}
.form-group input:focus, .form-group select:focus {
    outline: none; border-color: var(--light-blue);
}
.form-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.form-consent {
    font-size: 12px; color: var(--mid-grey);
    margin: 20px 0 24px; line-height: 1.6;
}
.form-consent label {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    cursor: pointer;
}
.form-consent a { color: var(--light-blue); }
.form-error {
    background: rgba(228, 27, 26, 0.08);
    border: 1px solid rgba(228, 27, 26, 0.2);
    color: var(--red);
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}
.btn-submit {
    width: 100%; padding: 16px;
    background: var(--orange); color: var(--white);
    border: none; border-radius: 8px;
    font-family: var(--font-headline);
    font-size: 18px; letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer; transition: all 0.2s;
}
.btn-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255,98,0,0.3);
}
.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ═══ SUCCESS SCREEN ═══ */
.success {
    min-height: calc(100vh - 64px);
    display: flex; align-items: center; justify-content: center;
    padding: 60px 40px; text-align: center;
    background: var(--dark-blue);
}
.success-content {
    max-width: 560px;
}
.success-check {
    width: 80px; height: 80px; border-radius: 50%;
    background: var(--orange); margin: 0 auto 24px;
    display: flex; align-items: center; justify-content: center;
    font-size: 40px; color: var(--white);
}
.success h1 {
    font-family: var(--font-headline);
    font-size: 42px; color: var(--white);
    text-transform: uppercase; margin-bottom: 16px;
}
.success p {
    font-size: 16px; color: rgba(255,255,255,0.8);
    line-height: 1.7; margin-bottom: 16px;
}
.success .tagline {
    font-family: var(--font-headline);
    font-size: 18px; color: rgba(255,255,255,0.5);
    text-transform: uppercase; margin-top: 32px;
}

/* ═══ QUESTION SCREEN (alternate layout) ═══ */
.question-screen {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 24px;
}
.question-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}
.question-header-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}
.question-header-info h2 {
    font-family: var(--font-headline);
    font-size: 1.3rem;
    text-transform: uppercase;
    color: var(--dark-blue);
}
.question-icon {
    font-size: 1.3rem;
}
.question-counter {
    color: var(--mid-grey);
    font-size: 0.9rem;
}

/* ═══ RESPONSIVE ═══ */

/* Tablet */
@media (max-width: 900px) {
    .axis-cards { flex-direction: column; }
    .axis-card { max-width: 100%; }
    .results-cta h2 { font-size: 24px; }
    .score-hero { gap: 32px; }
    .quadrant-chart { max-width: 360px; }
}

/* Large phone */
@media (max-width: 640px) {
    .navbar { padding: 0 20px; }
    .navbar-user { font-size: 0.8rem; gap: 8px; }
    .progress-bar-container { width: 120px; }
    .hero { padding: 40px 20px; }
    .hero h1 { font-size: 36px; }
    .assessment,
    .assessment-screen { padding: 24px 16px 60px; }
    .question-card { padding: 24px 20px; }
    .dim-header { padding: 20px 24px; }
    .results,
    .results-screen { padding: 32px 16px 60px; }
    .score-hero { gap: 24px; }
    .score-circle { width: 140px; height: 140px; }
    .score-circle.overall { width: 180px; height: 180px; }
    .score-value { font-size: 48px; }
    .score-circle.overall .score-value { font-size: 60px; }
    .results-cta { padding: 32px 24px; }
    .results-cta h2 { font-size: 20px; }
    .signup-card { padding: 32px 24px; }
    .form-row { grid-template-columns: 1fr; }
    .nav-buttons,
    .question-nav { flex-wrap: wrap; justify-content: center; }
    .dimension-grid { grid-template-columns: 1fr; gap: 24px; }
    .axis-card { padding: 20px 20px; gap: 14px; }
    .axis-card-content h2 { font-size: 1.1rem; }
    .dim-results,
    .results-dimensions { grid-template-columns: 1fr; }
    .dimension-bar-label { flex: 0 0 100px; font-size: 0.75rem; }
    .dimension-bar { gap: 8px; }
    .quadrant-chart { max-width: 300px; }
    .radar-chart { max-width: 320px; }
    .option,
    .option-card { padding: 12px 14px; gap: 10px; }
}

/* Small phone */
@media (max-width: 380px) {
    .hero h1 { font-size: 28px; }
    .navbar-logo img { height: 28px; }
    .score-circle { width: 110px; height: 110px; }
    .score-circle.overall { width: 150px; height: 150px; }
    .score-value { font-size: 36px; }
    .score-circle.overall .score-value { font-size: 48px; }
    .score-label { font-size: 7px; }
    .dimension-bar-label { flex: 0 0 80px; font-size: 0.7rem; }
    .results-cta { padding: 24px 16px; }
    .signup-card { padding: 24px 16px; }
    .signup-card h2 { font-size: 24px; }
}

/* ═══════════════════════════════════════════════════════════
   Admin Portal Styles
   ═══════════════════════════════════════════════════════════ */

.admin-nav-label {
    color: var(--light-blue);
    font-family: var(--font-headline);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-content {
    max-width: 1200px;
    margin: 0 auto;
}

.admin-page {
    padding: 2rem 1.5rem;
}

.admin-breadcrumb {
    margin-bottom: 1rem;
}
.admin-breadcrumb a,
.admin-breadcrumb .btn-link {
    color: var(--light-blue);
    text-decoration: none;
    font-size: 0.9rem;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}
.admin-breadcrumb a:hover,
.admin-breadcrumb .btn-link:hover {
    text-decoration: underline;
}

/* Organisation list card */
.org-list-card { margin-bottom: 0.75rem; }
.org-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.org-list-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    margin-top: 0.25rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}
.org-summary-stat strong { color: #fff; }
.org-summary-sep { opacity: 0.4; }

/* ═══════════════════════════════════════════════
   PROJECTOR / LIVE DASHBOARD
   ═══════════════════════════════════════════════ */

.projector-page {
    background: linear-gradient(180deg, var(--dark-blue) 0%, #1a2040 100%);
    min-height: calc(100vh - 56px);
    padding: 32px 40px 64px;
    color: #fff;
}

/* Header */
.projector-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.projector-event-name {
    font-family: var(--font-headline);
    text-transform: uppercase;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: #fff;
    margin: 0;
}
.projector-tagline {
    font-size: 0.9rem;
    color: var(--light-blue);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 4px;
}
.projector-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.projector-completion-stat {
    text-align: right;
}
.projector-big-num {
    font-family: var(--font-headline);
    font-size: 2.2rem;
    color: var(--yellow);
    line-height: 1;
}
.projector-big-denom {
    display: block;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}
.projector-refresh-btn {
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}
.projector-refresh-time {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    font-variant-numeric: tabular-nums;
}

/* Completion progress bar */
.projector-progress-track {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    margin-bottom: 36px;
    overflow: hidden;
}
.projector-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--light-blue), var(--yellow));
    border-radius: 3px;
    transition: width 0.6s ease;
}

/* Waiting state */
.projector-loading,
.projector-waiting {
    text-align: center;
    padding: 80px 24px;
    color: rgba(255,255,255,0.6);
}
.projector-waiting-icon { font-size: 3rem; margin-bottom: 1rem; }
.projector-waiting-msg { font-size: 1.4rem; color: rgba(255,255,255,0.8); margin-bottom: 0.5rem; }
.projector-waiting-sub { font-size: 0.95rem; color: rgba(255,255,255,0.5); }

/* Score row */
.projector-score-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.projector-maturity-badge {
    text-align: center;
    padding: 16px 28px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    min-width: 160px;
}
.projector-maturity-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 6px;
}
.projector-maturity-value {
    font-family: var(--font-headline);
    font-size: 1.4rem;
    text-transform: uppercase;
}
.projector-maturity-foundational { color: var(--lvl-foundational); }
.projector-maturity-modernising  { color: var(--lvl-modernising); }
.projector-maturity-ai-assisted  { color: var(--lvl-ai-assisted); }
.projector-maturity-agent-enabled { color: var(--lvl-agent-enabled); }
.projector-maturity-frontier     { color: var(--lvl-frontier); }

/* Charts two-column */
.projector-charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 40px;
}
.projector-chart-panel {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 24px;
}
.projector-panel-title {
    font-family: var(--font-headline);
    text-transform: uppercase;
    font-size: 1rem;
    color: var(--light-blue);
    letter-spacing: 0.06em;
    margin: 0 0 16px;
}
.projector-chart-panel .quadrant-chart {
    max-width: 100%;
}
.projector-dot-count {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    margin-top: 8px;
}

/* Section wrapper */
.projector-section {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 2rem;
}
.projector-section-title {
    font-family: var(--font-headline);
    text-transform: uppercase;
    font-size: 1rem;
    color: var(--light-blue);
    letter-spacing: 0.06em;
    margin: 0 0 16px;
}

/* Maturity distribution */
.maturity-dist { display: flex; flex-direction: column; gap: 10px; }
.maturity-dist-row {
    display: grid;
    grid-template-columns: 160px 1fr 36px;
    align-items: center;
    gap: 12px;
}
.maturity-dist-label { font-size: 0.9rem; color: rgba(255,255,255,0.8); }
.maturity-dist-track {
    height: 20px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    overflow: hidden;
}
.maturity-dist-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.6s ease;
}
.maturity-fill-foundational  { background: var(--lvl-foundational); }
.maturity-fill-modernising   { background: var(--lvl-modernising); }
.maturity-fill-ai-assisted   { background: var(--lvl-ai-assisted); }
.maturity-fill-agent-enabled { background: var(--lvl-agent-enabled); }
.maturity-fill-frontier      { background: var(--lvl-frontier); }
.maturity-dist-count {
    font-size: 0.9rem;
    font-weight: bold;
    color: rgba(255,255,255,0.8);
    text-align: right;
}

/* Dimension bars two-column */
.projector-dims-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.projector-dims-panel {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 24px;
}

@media (max-width: 900px) {
    .projector-charts-row,
    .projector-dims-row { grid-template-columns: 1fr; }
    .projector-page { padding: 24px 16px 48px; }
}


.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.admin-header h1 {
    font-family: var(--font-headline);
    text-transform: uppercase;
    color: var(--dark-blue);
    font-size: 1.8rem;
}
.admin-subtitle {
    color: var(--mid-grey);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}
.admin-subtitle code {
    background: var(--light-grey);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.85em;
}

.admin-toolbar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}
.admin-tool-btn {
    font-size: 0.85rem;
    padding: 6px 14px;
}
.admin-toolbar .btn-secondary {
    color: var(--dark-blue);
    border-color: var(--dark-blue);
}

.edit-event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.edit-event-grid .form-input { width: 100%; box-sizing: border-box; }
.edit-event-grid .form-group-check { display: flex; align-items: center; padding-top: 1.6rem; }
.edit-event-grid .form-group-check label { display: flex; align-items: center; gap: .5rem; cursor: pointer; color: var(--dark-blue); }
.edit-event-actions { display: flex; gap: .5rem; }

.join-link-row { display: flex; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.join-link-input { flex: 1; font-family: monospace; font-size: .85rem; cursor: text; }
.join-qr-wrap { display: flex; flex-direction: column; align-items: center; }
.join-qr-wrap img { border: 4px solid var(--dark-blue); border-radius: 8px; display: block; }

.admin-toolbar .btn-secondary.active {
    background: var(--dark-blue);
    color: #fff;
}

.admin-card {
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.admin-card h2 {
    font-family: var(--font-headline);
    text-transform: uppercase;
    color: var(--dark-blue);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.admin-card h3 {
    font-family: var(--font-headline);
    text-transform: uppercase;
    color: var(--dark-blue);
    font-size: 1rem;
    margin: 1.5rem 0 0.75rem;
}

/* ── Facilitator Controls ── */
.admin-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.control-card {
    background: var(--white);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}
.control-card.control-on {
    border-color: #34d399;
    background: #f0fdf4;
}
.control-card.control-off {
    border-color: #fbbf24;
    background: #fffbeb;
}
.control-label {
    font-family: var(--font-headline);
    text-transform: uppercase;
    color: var(--dark-blue);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}
.control-status {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.control-on .control-status { color: #16a34a; }
.control-off .control-status { color: #d97706; }

/* ── Progress Stats ── */
.progress-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.stat {
    text-align: center;
}
.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-blue);
    line-height: 1;
}
.stat-completed .stat-value { color: #16a34a; }
.stat-inprogress .stat-value { color: var(--orange); }
.stat-notstarted .stat-value { color: var(--mid-grey); }
.stat-label {
    font-size: 0.8rem;
    color: var(--mid-grey);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-progress-bar {
    height: 12px;
    border-radius: 6px;
    background: #e5e7eb;
    max-width: 400px;
}
.progress-pct {
    color: var(--mid-grey);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* ── Tables ── */
.admin-table-wrap {
    overflow-x: auto;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.admin-table th {
    text-align: left;
    padding: 0.6rem 0.75rem;
    border-bottom: 2px solid #e5e7eb;
    color: var(--mid-grey);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.admin-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid #f3f4f6;
    color: var(--dark-text);
}
.admin-table tbody tr:hover {
    background: var(--light-grey);
}
.admin-table a {
    color: var(--light-blue);
    text-decoration: none;
    font-weight: 600;
}
.admin-table a:hover {
    text-decoration: underline;
}
.test-event {
    opacity: 0.7;
}

/* ── Badges ── */
.badge {
    display: inline-block;
    padding: 0.2em 0.6em;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.badge-on { background: #dcfce7; color: #16a34a; }
.badge-off { background: #fef3c7; color: #d97706; }
.badge-warn { background: #fff7ed; color: var(--orange); }
.badge-test { background: #e0e7ff; color: #4f46e5; margin-left: 0.5em; }
.badge-expired { background: #fee2e2; color: #dc2626; }
.badge-active { background: #dcfce7; color: #16a34a; }

/* ── Forms ── */
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--dark-text);
    margin-bottom: 0.3rem;
}
.form-control {
    width: 100%;
    max-width: 400px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: var(--font-body);
}
.form-control:focus {
    outline: none;
    border-color: var(--light-blue);
    box-shadow: 0 0 0 3px rgba(90, 189, 217, 0.15);
}
.form-row {
    margin-bottom: 1rem;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
}
.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* ── Buttons ── */
.btn-sm {
    padding: 0.3em 0.8em;
    font-size: 0.8rem;
}
.btn-secondary {
    background: var(--light-grey);
    color: var(--dark-text);
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.5rem 1.2rem;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
}
.btn-secondary:hover {
    background: #e5e7eb;
}
.btn-warning {
    background: #fbbf24;
    color: #1f2937;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.2rem;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 700;
}
.btn-warning:hover {
    background: #f59e0b;
}
.btn-danger {
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.2rem;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 700;
}
.btn-danger:hover {
    background: #b91c1c;
}

/* ── Detail Grid ── */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}
.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--mid-grey);
    letter-spacing: 0.04em;
}
.detail-value {
    font-size: 0.95rem;
    color: var(--dark-text);
    font-weight: 500;
}

/* ── Danger Zone ── */
.admin-danger-zone {
    border-color: #fca5a5;
    background: #fef2f2;
}

/* ── Messages ── */
.admin-message {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0369a1;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.9rem;
}
.loading-text {
    color: var(--mid-grey);
    font-style: italic;
}

/* ── Progress bar fills for dimension results ── */
.tech-fill {
    background: var(--light-blue) !important;
}
.org-fill {
    background: var(--orange) !important;
}

/* ── Question Manager ── */
.qm-axis-section { margin-bottom: 1.5rem; }
.qm-axis-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: .6rem 1rem; background: var(--dark-blue); color: #fff;
    border-radius: 8px; margin-bottom: .5rem;
}
.qm-axis-title { display: flex; align-items: center; gap: .75rem; }
.qm-axis-title strong { font-size: 1rem; letter-spacing: .02em; }
.qm-axis-actions { display: flex; gap: .25rem; }
.qm-axis-actions .btn-icon { color: #fff; }
.qm-axis-actions .btn-icon:hover { background: rgba(255,255,255,.15); }
.qm-axis-edit-row { display: flex; align-items: center; gap: .5rem; flex: 1; }
.qm-axis-name-input { max-width: 280px; }
.qm-add-area-btn { margin: .25rem 0 .5rem; }

.qm-area-card { padding: 0; }
.qm-area-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.25rem; cursor: pointer; transition: background .15s;
}
.qm-area-header:hover { background: #f9fafb; }
.qm-area-title { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.qm-area-icon { font-size: 1.3rem; }
.qm-area-actions { display: flex; gap: .25rem; }
.qm-chevron { display: inline-block; transition: transform .2s; font-size: .85rem; color: var(--mid-grey); }
.qm-chevron.expanded { transform: rotate(90deg); }
.qm-count { font-size: .8rem; color: var(--mid-grey); }

.btn-icon {
    background: none; border: none; cursor: pointer; font-size: 1rem;
    padding: .25rem .4rem; border-radius: 4px; transition: background .15s;
}
.btn-icon:hover { background: #e5e7eb; }

.btn-sm { font-size: .8rem; padding: .35rem .75rem; }

.qm-questions { padding: 0 1.25rem 1.25rem; border-top: 1px solid #f0f0f0; }

.qm-question { border: 1px solid #e5e7eb; border-radius: 6px; margin-top: .5rem; overflow: hidden; }
.qm-question-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: .6rem .75rem; cursor: pointer; transition: background .15s;
}
.qm-question-header:hover { background: #f9fafb; }
.qm-question-title { display: flex; align-items: center; gap: .5rem; }
.qm-question-actions { display: flex; align-items: center; gap: .4rem; }
.qm-q-code { font-weight: 700; color: var(--dark-blue); font-size: .85rem; min-width: 3rem; }

.qm-edit-panel {
    padding: 1rem 1.25rem; background: #f9fafb; border-top: 1px solid #e5e7eb;
}
.qm-form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .75rem; margin-bottom: .75rem; }

.qm-option-row {
    display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem;
}
.qm-option-level {
    font-weight: 700; font-size: .8rem; color: var(--white); background: var(--dark-blue);
    padding: .15rem .5rem; border-radius: 4px; min-width: 2rem; text-align: center;
}

.qm-options-list { padding: .5rem .75rem; }
.qm-option-display {
    display: flex; align-items: center; gap: .5rem; padding: .3rem 0;
    font-size: .85rem; border-bottom: 1px solid #f0f0f0;
}
.qm-option-display:last-child { border-bottom: none; }
.qm-option-desc { color: var(--mid-grey); font-style: italic; }

/* ── Admin responsive ── */
.admin-header-actions {
    display: flex; gap: .5rem; flex-wrap: wrap;
}

@media (max-width: 768px) {
    .admin-controls {
        grid-template-columns: 1fr;
    }
    .progress-stats {
        gap: 1rem;
    }
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .admin-header-actions {
        width: 100%;
    }
    .admin-header-actions .btn,
    .admin-header-actions button,
    .admin-header-actions label {
        flex: 1; min-width: 0; text-align: center; font-size: .8rem; padding: .45rem .6rem;
    }
    .admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .admin-table { min-width: 500px; }
    .admin-card { padding: 1rem; }
    .qm-form-grid { grid-template-columns: 1fr 1fr; }
    .qm-area-header { padding: .75rem 1rem; }
    .qm-area-title { font-size: .9rem; }
    .qm-option-row { flex-wrap: wrap; }
    .qm-option-row input[style*="flex:2"] { min-width: 0; }
}

@media (max-width: 480px) {
    .admin-header h1 { font-size: 1.3rem; }
    .admin-header-actions { flex-direction: column; }
    .admin-header-actions .btn,
    .admin-header-actions button,
    .admin-header-actions label { width: 100%; }
    .qm-form-grid { grid-template-columns: 1fr; }
    .qm-area-title { flex-wrap: wrap; gap: .3rem; }
    .qm-question-header { flex-direction: column; align-items: flex-start; gap: .3rem; }
    .qm-question-actions { align-self: flex-end; }
}

/* ═══════════════════════════════════════════════════════════
   Radar / Spider Chart
   ═══════════════════════════════════════════════════════════ */

.radar-wrapper {
    margin: 2rem 0;
    text-align: center;
}
.radar-title {
    font-family: var(--font-headline);
    text-transform: uppercase;
    color: var(--dark-blue);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.radar-chart {
    max-width: 480px;
    margin: 0 auto;
}
.radar-svg {
    width: 100%;
    height: auto;
}
.radar-legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--dark-text);
}
.radar-legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.radar-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
}
.radar-swatch-dashed {
    background: none;
    border: 2px dashed var(--mid-grey);
    width: 14px;
    height: 14px;
    border-radius: 3px;
}
