/* See Your AI World — standalone page styles (no framework, ~zero dependencies) */
:root {
    --bg: #070b1a;
    --bg2: #0c1430;
    --ink: #e6ebff;
    --muted: #94a3c4;
    --line: rgba(148, 163, 255, 0.16);
    --glass: rgba(20, 30, 66, 0.55);
    --brand: #6366f1;
    --brand2: #22d3ee;
    --radius: 18px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.5;
    overflow-x: hidden;
}
h1, h2, h3, .aiw-count, .aiw-result-big, .aiw-result-level, .aiw-btn, .aiw-level-chip {
    font-family: 'Space Grotesk', 'Hind Siliguri', system-ui, sans-serif;
}
.bn { font-family: 'Hind Siliguri', system-ui, sans-serif; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.aiw-bg {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(60% 50% at 15% 0%, rgba(99, 102, 241, 0.28), transparent 70%),
        radial-gradient(50% 45% at 100% 30%, rgba(34, 211, 238, 0.16), transparent 70%),
        radial-gradient(60% 50% at 50% 100%, rgba(236, 72, 153, 0.12), transparent 70%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}

/* Top bar */
.aiw-top {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1280px; margin: 0 auto; padding: 14px 16px;
}
.aiw-brand { font-weight: 700; text-decoration: none; display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.aiw-brand-dot {
    width: 14px; height: 14px; border-radius: 50%;
    background: conic-gradient(from 0deg, var(--brand), var(--brand2), #f472b6, var(--brand));
    box-shadow: 0 0 14px rgba(99, 102, 241, 0.9);
}
.aiw-top-links { display: flex; gap: 18px; font-size: 0.95rem; }
.aiw-top-links a { text-decoration: none; color: var(--muted); }
.aiw-top-links a:hover { color: var(--ink); }

.aiw-wrap { max-width: 1280px; margin: 0 auto; padding: 0 16px 40px; }

/* Intro */
.aiw-intro { text-align: center; padding: 18px 0 22px; }
.aiw-intro h1 {
    margin: 0 0 8px; font-size: clamp(1.9rem, 5vw, 3.1rem); line-height: 1.1; letter-spacing: -0.02em;
    background: linear-gradient(90deg, #fff 0%, #c7d2fe 45%, #67e8f9 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.aiw-globe { -webkit-text-fill-color: initial; color: initial; display: inline-block; animation: aiw-spin 12s linear infinite; }
@keyframes aiw-spin { to { transform: rotate(360deg); } }
.aiw-sub { margin: 0 auto 4px; font-size: 1.15rem; font-weight: 600; max-width: 760px; }
.aiw-hint { margin: 0 auto; color: var(--muted); max-width: 760px; }

.aiw-banner {
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center;
    padding: 10px 14px; margin-bottom: 14px; border-radius: 14px;
    background: rgba(34, 211, 238, 0.12); border: 1px solid rgba(34, 211, 238, 0.35);
}

/* Layout */
.aiw-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.aiw-glass {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Map panel */
.aiw-map-panel { padding: 14px; }
.aiw-map-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.aiw-eyebrow { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.aiw-count { font-size: 1.05rem; }
.aiw-count b { font-size: 1.5rem; color: #fff; }
.aiw-level-chip {
    padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 0.92rem; white-space: nowrap;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.35), rgba(34, 211, 238, 0.3));
    border: 1px solid rgba(165, 180, 252, 0.4);
    transition: transform 0.3s;
}
.aiw-level-chip.bump { animation: aiw-bump 0.6s ease; }
@keyframes aiw-bump { 40% { transform: scale(1.12); } }
.aiw-progress { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); margin: 10px 0 6px; overflow: hidden; }
.aiw-progress span {
    display: block; height: 100%; width: 0;
    background: linear-gradient(90deg, var(--brand), var(--brand2), #f472b6);
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.7);
    transition: width 0.5s cubic-bezier(.2, .8, .2, 1);
}
.aiw-progress-label { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--muted); }
.aiw-progress-label b { color: var(--ink); }

.aiw-map-wrap { position: relative; margin-top: 8px; }
.aiw-map { width: 100%; aspect-ratio: 1123 / 860; max-height: calc(100vh - 230px); }
.aiw-map svg { width: 100%; height: 100%; display: block; }
.aiw-expand {
    display: none; position: absolute; right: 6px; bottom: 6px; z-index: 2;
    padding: 6px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; cursor: pointer;
    background: rgba(15, 24, 56, 0.9); border: 1px solid rgba(165, 180, 252, 0.45);
}

/* Bangladesh map (SVG) */
.aiw-land { fill: #0f1838; }
.aiw-land-glow { fill: none; stroke: rgba(34, 211, 238, 0.22); stroke-width: 10; pointer-events: none; }
.aiw-land-edge { fill: none; stroke: rgba(103, 232, 249, 0.35); stroke-width: 2; pointer-events: none; }
/* Unselected = neutral, dim and colourless; selected = solid world colour + glow. */
.aiw-reg { cursor: pointer; outline: none; }
.aiw-reg path {
    fill: #161d38; stroke: rgba(148, 163, 196, 0.16); stroke-width: 1; stroke-linejoin: round;
    transition: fill 0.45s ease, stroke 0.45s, filter 0.45s;
}
.aiw-reg:hover path, .aiw-reg:focus-visible path { fill: #222b52; stroke: rgba(255, 255, 255, 0.45); }
.aiw-reg.on path { fill: var(--wc); stroke: rgba(255, 255, 255, 0.9); stroke-width: 1.6; filter: drop-shadow(0 0 10px var(--wc)); }
.aiw-reg.on:hover path { fill: var(--wc); filter: drop-shadow(0 0 14px var(--wc)) brightness(1.08); }
.aiw-reg.pulse path { animation: aiw-pop 0.9s ease-out; }
@keyframes aiw-pop { 0% { stroke-width: 5; stroke: #fff; filter: drop-shadow(0 0 18px var(--wc)) brightness(1.3); } 100% { stroke-width: 1.6; } }
.aiw-stem { fill: #121933; stroke: rgba(103, 232, 249, 0.18); stroke-width: 2; }
.aiw-gyri { fill: none !important; stroke: rgba(148, 163, 196, 0.07) !important; stroke-width: 2 !important; stroke-linecap: round; pointer-events: none; filter: none !important; }
.aiw-reg.on .aiw-gyri { stroke: rgba(7, 11, 26, 0.22) !important; }
.aiw-lobe { fill: none; stroke: rgba(165, 180, 252, 0.28); stroke-width: 3; stroke-linejoin: round; pointer-events: none; }
.aiw-syn { stroke: rgba(255, 255, 255, 0.85); stroke-width: 2.5; stroke-dasharray: 6 6; stroke-linecap: round; opacity: 0; filter: drop-shadow(0 0 4px #67e8f9); transition: opacity 0.4s; pointer-events: none; }
.aiw-syn.on { opacity: 1; animation: aiw-flow 1.4s linear infinite; }
@keyframes aiw-flow { to { stroke-dashoffset: -24; } }
.aiw-wl { font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 700; font-size: 24px; letter-spacing: 0.08em; text-anchor: middle; dominant-baseline: central; fill: rgba(148, 163, 196, 0.35); transition: fill 0.4s; pointer-events: none; }
.aiw-wl.on { fill: var(--wc); }
.aiw-labels { pointer-events: none; }
.aiw-lab text { text-anchor: middle; dominant-baseline: central; }
.aiw-lab-emoji { opacity: 0.22; filter: grayscale(1); transition: opacity 0.4s, filter 0.4s; }
.aiw-lab-name {
    font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 600; fill: #4f5a7c;
    paint-order: stroke; stroke: rgba(7, 11, 26, 0.5); stroke-width: 3.2px; stroke-linejoin: round; transition: fill 0.4s;
}
.aiw-lab.on .aiw-lab-emoji { opacity: 1; filter: none; }
.aiw-lab.on .aiw-lab-name { fill: #fff; font-weight: 700; stroke: rgba(7, 11, 26, 0.9); }

.aiw-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; font-size: 0.82rem; color: var(--muted); }
.aiw-legend-item { display: inline-flex; align-items: center; gap: 5px; }
.aiw-legend-item i { width: 10px; height: 10px; border-radius: 3px; background: var(--wc); opacity: 0.35; }
.aiw-legend-item.on { color: var(--ink); }
.aiw-legend-item.on i { opacity: 1; box-shadow: 0 0 8px var(--wc); }
.aiw-legend-item b { font-weight: 600; }

/* Skills panel */
.aiw-skills { padding: 16px; }
.aiw-skills-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.aiw-skills-head h2 { margin: 0; font-size: 1.3rem; }
.aiw-skills-head p { margin: 2px 0 0; color: var(--muted); }
.aiw-link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 4px; font-size: 0.9rem; }
.aiw-name { margin: 12px 0 4px; padding: 12px; border-radius: 14px; background: rgba(99, 102, 241, 0.1); border: 1px solid rgba(165, 180, 252, 0.25); }
.aiw-name label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 6px; color: #c7d2fe; }
.aiw-name label .bn { font-weight: 500; color: var(--muted); }
.aiw-name input {
    width: 100%; padding: 11px 14px; border-radius: 12px; font: inherit; font-size: 1rem; color: var(--ink);
    background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.aiw-name input:focus { border-color: var(--brand2); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2); }
.aiw-name small { display: block; margin-top: 6px; color: var(--muted); font-size: 0.8rem; }
.aiw-name small b { color: var(--ink); letter-spacing: 0.04em; }
.aiw-cat { border: 0; margin: 14px 0 0; padding: 0; min-width: 0; }
.aiw-cat legend { font-weight: 700; font-size: 0.95rem; margin-bottom: 8px; padding: 0; color: #c7d2fe; display: flex; gap: 8px; align-items: center; }
.aiw-cat-count { font-size: 0.78rem; font-weight: 600; color: var(--muted); background: rgba(255, 255, 255, 0.07); padding: 1px 8px; border-radius: 999px; }
.aiw-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.aiw-chip {
    position: relative; display: flex; align-items: center; gap: 10px;
    padding: 10px 38px 10px 12px; border-radius: 12px; cursor: pointer; user-select: none;
    background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
    transition: background 0.25s, border-color 0.25s, transform 0.15s, box-shadow 0.25s;
    -webkit-tap-highlight-color: transparent;
}
.aiw-chip:hover { background: rgba(255, 255, 255, 0.08); }
.aiw-chip:active { transform: scale(0.98); }
.aiw-chip input { position: absolute; opacity: 0; pointer-events: none; }
.aiw-chip-icon { font-size: 1.25rem; line-height: 1; filter: grayscale(0.6); transition: filter 0.25s; }
.aiw-chip-name { font-size: 0.95rem; line-height: 1.25; }
.aiw-chip-tick {
    position: absolute; right: 12px; top: 50%; width: 20px; height: 20px; margin-top: -10px;
    border-radius: 6px; border: 1.5px solid rgba(148, 163, 255, 0.45); transition: all 0.25s;
}
.aiw-chip:has(input:checked), .aiw-chip.on {
    background: color-mix(in srgb, var(--wc) 18%, transparent);
    border-color: color-mix(in srgb, var(--wc) 70%, transparent);
    box-shadow: 0 0 18px color-mix(in srgb, var(--wc) 25%, transparent);
}
.aiw-chip.on .aiw-chip-icon { filter: none; }
.aiw-chip.on .aiw-chip-tick { background: var(--wc); border-color: var(--wc); }
.aiw-chip.on .aiw-chip-tick::after {
    content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px;
    border: solid #0b1024; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.aiw-chip input:focus-visible ~ .aiw-chip-tick { outline: 2px solid var(--brand2); outline-offset: 2px; }

/* Buttons */
.aiw-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
    font-weight: 700; color: #fff;
    background: linear-gradient(90deg, #6366f1, #8b5cf6 50%, #06b6d4);
    background-size: 200% 100%;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: background-position 0.4s, transform 0.15s, box-shadow 0.3s;
}
.aiw-btn:hover { background-position: 100% 0; box-shadow: 0 10px 30px rgba(34, 211, 238, 0.45); }
.aiw-btn:active { transform: scale(0.97); }
.aiw-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.aiw-btn-sm { padding: 7px 14px; font-size: 0.9rem; }
.aiw-btn-xl { padding: 14px 26px; font-size: 1.05rem; }
.aiw-btn-ghost { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(165, 180, 252, 0.4); box-shadow: none; }
.aiw-btn-ghost:hover { background: rgba(255, 255, 255, 0.12); box-shadow: none; }
.aiw-generate { width: 100%; margin-top: 18px; }

/* Result */
.aiw-result { margin-top: 22px; scroll-margin-top: 12px; }
.aiw-result h2 { margin: 0 0 10px; font-size: 1.45rem; }
.aiw-result-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.aiw-result-card, .aiw-ready, .aiw-courses { padding: 20px; }
.aiw-result-label { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 12px; }
.aiw-result-big { font-size: 2.2rem; font-weight: 700; line-height: 1.1; }
.aiw-result-level {
    font-size: 2rem; font-weight: 700; line-height: 1.15;
    background: linear-gradient(90deg, #fde68a, #f472b6, #a78bfa);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.aiw-result-bn { margin: 4px 0 0; font-size: 1.05rem; }
.aiw-strong { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; }
.aiw-strong li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); border-left: 3px solid var(--wc); }
.aiw-strong small { margin-left: auto; color: var(--muted); }
.aiw-note { color: var(--muted); font-size: 0.82rem; margin: 16px 0 0; }
.aiw-preview { margin: 12px 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #0a0f24; aspect-ratio: 1; }
.aiw-preview img { width: 100%; height: 100%; display: block; }
.aiw-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.aiw-actions .aiw-btn { flex: 1 1 220px; }
.aiw-share-label { display: block; margin: 16px 0 6px; font-size: 0.9rem; color: var(--muted); }
#aiwShareText {
    width: 100%; resize: vertical; padding: 12px; border-radius: 12px; font: inherit; font-size: 0.95rem;
    color: var(--ink); background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line);
}
.aiw-share-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.aiw-share {
    padding: 10px 12px; border-radius: 12px; cursor: pointer; font-weight: 600; font-size: 0.92rem;
    background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); transition: background 0.2s;
}
.aiw-share:hover { background: rgba(255, 255, 255, 0.12); }
.aiw-fb:hover { background: rgba(24, 119, 242, 0.35); }
.aiw-li:hover { background: rgba(10, 102, 194, 0.35); }
.aiw-wa:hover { background: rgba(37, 211, 102, 0.3); }
.aiw-tip { color: var(--muted); font-size: 0.82rem; margin: 10px 0 0; }

.aiw-courses { margin-top: 16px; }
.aiw-courses h3 { margin: 0 0 12px; font-size: 1rem; color: var(--muted); font-weight: 600; }
.aiw-course-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-bottom: 16px; }
.aiw-course {
    display: block; padding: 16px; border-radius: 14px; text-decoration: none;
    background: linear-gradient(160deg, rgba(99, 102, 241, 0.18), rgba(34, 211, 238, 0.06));
    border: 1px solid var(--line); transition: transform 0.2s, border-color 0.2s;
}
.aiw-course:hover { transform: translateY(-3px); border-color: rgba(165, 180, 252, 0.6); }
.aiw-course b { display: block; font-size: 1.02rem; margin-bottom: 4px; }
.aiw-course span { color: var(--muted); font-size: 0.9rem; }
.aiw-course em { display: block; margin-top: 8px; font-style: normal; font-size: 0.8rem; color: #67e8f9; }

.aiw-account {
    display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; text-align: center;
    margin-top: 16px; padding: 16px; border-radius: var(--radius); border: 1px dashed rgba(165, 180, 252, 0.35);
}

.aiw-mobile-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, transparent, rgba(7, 11, 26, 0.95) 35%);
}
.aiw-mobile-cta .aiw-btn { width: 100%; padding: 13px; }
.aiw-toast {
    position: fixed; left: 50%; bottom: 84px; z-index: 30; transform: translate(-50%, 20px);
    padding: 10px 18px; border-radius: 999px; background: #1e293b; border: 1px solid rgba(165, 180, 252, 0.4);
    font-size: 0.92rem; opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s; max-width: calc(100% - 32px); text-align: center;
}
.aiw-toast.show { opacity: 1; transform: translate(-50%, 0); }
.aiw-foot { text-align: center; color: var(--muted); font-size: 0.85rem; padding: 10px 16px 90px; }
.aiw-foot a { color: var(--ink); }

/* Mobile: map stays visible (sticky, compact) above the checklist */
@media (max-width: 899.98px) {
    .aiw-map-panel { position: sticky; top: 0; z-index: 10; padding: 10px 12px; border-radius: 0 0 var(--radius) var(--radius); margin: 0 -16px; background: rgba(9, 14, 34, 0.92); }
    .aiw-map { max-height: 34vh; margin: 0 auto; }
    .aiw-expand { display: inline-flex; gap: 4px; }
    .aiw-legend { display: none; }
    /* compact sticky map: emoji only (names are unreadable at this size) */
    .aiw-map-panel:not(.is-full) .aiw-lab-name { display: none; }
    .aiw-map-panel:not(.is-full) .aiw-lab-emoji { font-size: 34px; }
    .aiw-map-panel:not(.is-full) .aiw-lab:not(.on) { display: none; }
    .aiw-map-panel:not(.is-full) .aiw-wl { display: none; }
    .aiw-map-panel.is-full {
        position: fixed; inset: 0; margin: 0; z-index: 50; border-radius: 0;
        display: flex; flex-direction: column; background: #070b1a;
        padding-top: calc(10px + env(safe-area-inset-top));
    }
    .aiw-map-panel.is-full .aiw-map-wrap { flex: 1; min-height: 0; }
    .aiw-map-panel.is-full .aiw-map { height: 100%; max-height: none; aspect-ratio: auto; overflow: auto; -webkit-overflow-scrolling: touch; }
    .aiw-map-panel.is-full .aiw-map svg { width: 900px; height: auto; max-width: none; }
    .aiw-map-panel.is-full .aiw-expand { position: fixed; top: calc(12px + env(safe-area-inset-top)); bottom: auto; right: 12px; }
    .aiw-map-panel.is-full .aiw-legend { display: flex; padding-bottom: env(safe-area-inset-bottom); }
    .aiw-map-panel.is-full .aiw-level-chip { display: none; }
    .aiw-progress { margin: 6px 0 4px; }
    .aiw-progress-label { font-size: 0.78rem; }
    .aiw-count b { font-size: 1.25rem; }
    .aiw-level-chip { font-size: 0.82rem; padding: 4px 10px; }
    .aiw-chips { grid-template-columns: minmax(0, 1fr); }
    .aiw-generate { display: none; }
    .aiw-intro { padding: 6px 0 14px; }
}
@media (min-width: 900px) {
    .aiw-mobile-cta { display: none !important; }
    .aiw-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr); align-items: start; }
    .aiw-skills { order: 1; }
    .aiw-map-panel { order: 2; position: sticky; top: 16px; }
    .aiw-result-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
    .aiw-share-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .aiw-foot { padding-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
.aiw-ic { -webkit-text-fill-color: initial; color: initial; }
html.aiw-noscroll, html.aiw-noscroll body { overflow: hidden; }
