:root {
      --bg: #09090b;
      --surface: rgba(255, 255, 255, 0.03);
      --surface2: rgba(255, 255, 255, 0.05);
      --border: rgba(255, 255, 255, 0.08);
      --text: #fafafa;
      --muted: #a1a1aa;
      --accent1: #8b5cf6;
      --accent2: #3b82f6;
      --radius: 20px;
      --t: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      font-family: 'Inter', sans-serif;
      background-color: var(--bg);
      color: var(--text);
      min-height: 100vh;
      line-height: 1.6;
      overflow-x: hidden;
      position: relative;
    }
    body::before, body::after {
      content: '';
      position: fixed;
      width: 60vw;
      height: 60vw;
      border-radius: 50%;
      filter: blur(120px);
      z-index: 0;
      pointer-events: none;
      opacity: 0.4;
      animation: float 20s ease-in-out infinite alternate;
    }
    body::before { top: -20%; left: -10%; background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%); }
    body::after { bottom: -20%; right: -10%; background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%); animation-delay: -10s; }
    #app { position: relative; z-index: 1; }

    /* LANDING HERO */
    #landing { display: block; }
    #hero { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 80vh; padding: 64px 24px; text-align: center; }
    .badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(139, 92, 246, 0.1); border: 1px solid rgba(139, 92, 246, 0.3); border-radius: 999px; padding: 6px 16px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #c4b5fd; margin-bottom: 32px; animation: fadeDown 0.6s ease both; box-shadow: 0 0 16px rgba(139, 92, 246, 0.2); }
    .hero-title { font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 24px; animation: fadeDown 0.7s 0.1s ease both; }
    .hero-title span { background: linear-gradient(135deg, #a78bfa, #60a5fa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 24px rgba(139, 92, 246, 0.4)); }
    .hero-sub { color: var(--muted); font-size: 1.15rem; max-width: 580px; margin-bottom: 48px; animation: fadeDown 0.7s 0.2s ease both; line-height: 1.7; }
    .hero-btn { animation: fadeDown 0.7s 0.3s ease both; background: linear-gradient(135deg, #a78bfa, #60a5fa); color: #fff; font-size: 1.15rem; font-weight: 700; padding: 18px 40px; border-radius: 99px; border: none; cursor: pointer; transition: 0.3s; box-shadow: 0 10px 30px rgba(139,92,246,0.3); margin-bottom: 40px; }
    .hero-btn:hover { transform: translateY(-4px); box-shadow: 0 15px 40px rgba(139,92,246,0.5); filter: brightness(1.1); }
    
    /* TEST CATEGORIES */
    #test-categories { max-width: 1040px; margin: 0 auto; padding: 40px 24px 100px; }
    .category-title { font-size: 1.75rem; font-weight: 800; border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 24px; margin-top: 64px; color: #fff; text-align: left; animation: fadeUp 0.8s 0.2s ease both; }
    .category-title:first-child { margin-top: 0; }
    .test-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; width: 100%; animation: fadeUp 0.8s 0.3s ease both; }
    .test-card { background: var(--surface); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; cursor: pointer; transition: var(--t); position: relative; overflow: hidden; text-align: left; display: flex; flex-direction: column; }
    .test-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.06), transparent 40%); opacity: 0; transition: opacity 0.3s; z-index: 0; pointer-events: none; }
    .test-card:hover::before { opacity: 1; }
    .test-card > * { position: relative; z-index: 1; }
    
    .test-card:hover { border-color: var(--card-accent, var(--accent1)); transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 24px var(--card-accent-glow, rgba(139, 92, 246, 0.15)); }
    .card-icon { font-size: 2.5rem; margin-bottom: 18px; display: inline-block; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3)); }
    .card-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; color: #fff; }
    .card-meta { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
    .card-desc { font-size: 0.95rem; color: var(--muted); line-height: 1.5; flex-grow: 1; margin-bottom: 24px; }
    .card-footer { font-size: 0.8rem; color: var(--muted); display: flex; align-items: center; justify-content: space-between; font-weight: 500; }
    .card-arrow { font-size: 1.2rem; opacity: 0; transform: translateX(-10px); transition: var(--t); color: var(--card-accent, var(--accent1)); }
    .test-card:hover .card-arrow { opacity: 1; transform: none; }

    /* QUIZ SCREEN */
    #quiz-screen { display: none; min-height: 100vh; padding: 40px 20px 100px; }
    #quiz-screen.active { display: block; }
    .quiz-top-bar { position: sticky; top: 0; background: rgba(9,9,11,0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); z-index: 50; padding: 16px 0; border-bottom: 1px solid var(--border); margin: -40px -20px 48px; padding-left: 20px; padding-right: 20px; }
    .quiz-top-inner { max-width: 800px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
    .quiz-header-info { display: flex; flex-direction: column; flex: 1; text-align: center; }
    .quiz-name-small { font-weight: 700; font-size: 1.1rem; color: #fff; }
    .btn-back { background: var(--surface); border: 1px solid var(--border); border-radius: 99px; color: var(--text); font-size: 0.9rem; font-weight: 600; padding: 8px 16px; cursor: pointer; transition: var(--t); flex-shrink: 0; }
    .btn-back:hover { background: var(--surface2); border-color: var(--text); }
    .progress-bar-wrap { display: flex; align-items: center; gap: 12px; flex: 1; justify-content: flex-end; }
    .progress-info { font-size: 0.9rem; font-weight: 700; color: var(--text); min-width: 40px; text-align: right; }
    .progress-track { width: 100%; max-width: 200px; height: 8px; background: rgba(255,255,255,0.1); border-radius: 99px; overflow: hidden; box-shadow: inset 0 1px 3px rgba(0,0,0,0.2); }
    .progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent1), var(--accent2)); border-radius: 99px; transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 0 10px rgba(139, 92, 246, 0.5); }
    
    .questions-wrap { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 48px; }
    .question-card { background: var(--surface); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: var(--radius); padding: 48px 36px; animation: fadeUp 0.4s ease both; box-shadow: 0 8px 32px rgba(0,0,0,0.2); text-align: center; }
    .section-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent2); margin-bottom: 12px; display: inline-block; background: rgba(59, 130, 246, 0.1); padding: 4px 12px; border-radius: 99px; }
    .q-number { font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
    .q-text { font-size: 1.4rem; font-weight: 600; margin-bottom: 48px; line-height: 1.5; color: #fff; }

    /* LIKERT BUBBLES */
    .likert-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 0 auto; max-width: 500px; }
    .likert-bubbles { display: flex; align-items: center; justify-content: space-between; width: 100%; position: relative; }
    .likert-bubbles::before { content:''; position: absolute; top: 50%; left: 5%; right: 5%; height: 2px; background: rgba(255,255,255,0.1); z-index: 0; transform: translateY(-50%); }
    .likert-bubbles label { cursor: pointer; position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; }
    .likert-bubbles input[type=radio] { display: none; }
    .bubble { border-radius: 50%; border: 3px solid var(--border); background: var(--bg); transition: var(--t); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
    
    /* 1: Strongly Disagree, 2: Disagree, 3: Neutral, 4: Agree, 5: Strongly Agree */
    .bubble-1 { width: 64px; height: 64px; border-color: #ec4899; }
    .bubble-2 { width: 48px; height: 48px; border-color: rgba(236, 72, 153, 0.6); }
    .bubble-3 { width: 36px; height: 36px; border-color: rgba(161, 161, 170, 0.6); }
    .bubble-4 { width: 48px; height: 48px; border-color: rgba(139, 92, 246, 0.6); }
    .bubble-5 { width: 64px; height: 64px; border-color: #8b5cf6; }
    
    .likert-bubbles label:hover .bubble { transform: scale(1.15); filter: brightness(1.2); }
    .likert-bubbles input:checked + .bubble-1 { background: #ec4899; box-shadow: 0 0 20px rgba(236,72,153,0.6); }
    .likert-bubbles input:checked + .bubble-2 { background: #f472b6; border-color: #f472b6; box-shadow: 0 0 15px rgba(244,114,182,0.6); }
    .likert-bubbles input:checked + .bubble-3 { background: #a1a1aa; border-color: #a1a1aa; box-shadow: 0 0 10px rgba(161,161,170,0.6); }
    .likert-bubbles input:checked + .bubble-4 { background: #a78bfa; border-color: #a78bfa; box-shadow: 0 0 15px rgba(167,139,250,0.6); }
    .likert-bubbles input:checked + .bubble-5 { background: #8b5cf6; box-shadow: 0 0 20px rgba(139,92,246,0.6); }
    
    .likert-labels { display: flex; justify-content: space-between; width: 100%; font-size: 0.9rem; font-weight: 600; }
    .lbl-agree { color: #a78bfa; }
    .lbl-disagree { color: #f472b6; }

    /* FORCED CHOICE */
    .choice-wrap { display: flex; flex-direction: column; gap: 12px; }
    .choice-wrap label { cursor: pointer; }
    .choice-wrap input[type=radio] { display: none; }
    .choice-btn { display: flex; align-items: center; gap: 16px; padding: 18px 24px; background: rgba(255,255,255,0.03); border: 1.5px solid var(--border); border-radius: 14px; transition: var(--t); font-size: 1.05rem; font-weight: 500; }
    .choice-letter { flex-shrink: 0; width: 32px; height: 32px; border-radius: 10px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; transition: var(--t); }
    .choice-wrap input:checked + .choice-btn { background: rgba(139, 92, 246, 0.15); border-color: var(--accent1); box-shadow: 0 0 20px rgba(139, 92, 246, 0.2); transform: translateX(4px); }
    .choice-wrap input:checked + .choice-btn .choice-letter { background: var(--accent1); color: #fff; box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4); }
    .choice-wrap label:hover input:not(:checked) + .choice-btn { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); }

    /* SUBMIT */
    .submit-wrap { max-width: 800px; margin: 48px auto 0; }
    .btn-submit { width: 100%; padding: 20px; background: linear-gradient(135deg, var(--accent1), #6d28d9); border: none; border-radius: 16px; color: #fff; font-size: 1.15rem; font-weight: 700; cursor: pointer; transition: var(--t); letter-spacing: 0.03em; box-shadow: 0 10px 30px rgba(109, 40, 217, 0.3); }
    .btn-submit:hover { transform: translateY(-4px); box-shadow: 0 15px 40px rgba(109, 40, 217, 0.5); filter: brightness(1.1); }

    /* RESULT */
    #result-screen { display: none; min-height: 100vh; padding: 64px 20px 100px; }
    #result-screen.active { display: block; }
    .result-wrap { max-width: 800px; margin: 0 auto; }
    .result-header { text-align: center; margin-bottom: 56px; background: var(--surface); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: var(--radius); padding: 48px 32px; box-shadow: 0 16px 40px rgba(0,0,0,0.3); position: relative; overflow: hidden; }
    .result-header::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--accent1), var(--accent2)); }
    .result-icon { font-size: 5rem; display: block; margin-bottom: 24px; animation: pop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both; filter: drop-shadow(0 8px 16px rgba(0,0,0,0.4)); }
    .result-type-label { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
    .result-type-name { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; margin-bottom: 16px; background: linear-gradient(135deg, #a78bfa, #60a5fa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 16px rgba(139, 92, 246, 0.3)); }
    .result-type-desc { color: var(--text); font-size: 1.1rem; max-width: 600px; margin: 0 auto; line-height: 1.7; }
    
    .scores-grid { display: grid; gap: 16px; margin-bottom: 48px; }
    .score-row { background: var(--surface); backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: 16px; padding: 24px; transition: var(--t); }
    .score-row:hover { background: var(--surface2); border-color: rgba(255,255,255,0.15); transform: translateX(4px); }
    .score-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
    .score-label { font-weight: 700; font-size: 1.05rem; letter-spacing: 0.01em; }
    .score-val { font-weight: 800; font-size: 1.15rem; color: #a78bfa; text-shadow: 0 0 12px rgba(139, 92, 246, 0.5); }
    .score-bar-bg { width: 100%; height: 8px; background: rgba(255,255,255,0.06); border-radius: 99px; overflow: hidden; }
    .score-bar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent1), var(--accent2)); transition: width 1.2s cubic-bezier(0.34, 1.56, 0.64, 1); box-shadow: 0 0 10px rgba(139, 92, 246, 0.4); }
    
    .result-actions { display: flex; gap: 16px; flex-wrap: wrap; }
    .btn-restart, .btn-home { flex: 1; padding: 18px; border-radius: 16px; font-size: 1.05rem; font-weight: 700; cursor: pointer; transition: var(--t); display: flex; align-items: center; justify-content: center; gap: 10px; }
    .btn-restart { border: 1.5px solid var(--border); background: var(--surface); backdrop-filter: blur(10px); color: var(--text); }
    .btn-restart:hover { border-color: var(--accent1); color: #a78bfa; background: rgba(139, 92, 246, 0.05); transform: translateY(-2px); }
    .btn-home { border: none; background: linear-gradient(135deg, var(--accent1), #6d28d9); color: #fff; box-shadow: 0 8px 24px rgba(109, 40, 217, 0.3); }
    .btn-home:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(109, 40, 217, 0.4); filter: brightness(1.1); }

    @keyframes fadeDown { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: none; } }
    @keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
    @keyframes pop { 0% { transform: scale(0.5); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
    @keyframes float { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(20px, -30px) scale(1.1); } }
    
    @media (max-width: 600px) { .likert-bubbles { padding: 0 12px; } .bubble-1, .bubble-5 { width: 48px; height: 48px; } .bubble-2, .bubble-4 { width: 36px; height: 36px; } .bubble-3 { width: 28px; height: 28px; } .likert-labels { font-size: 0.8rem; } .hero-title { font-size: 2.5rem; } .test-grid { grid-template-columns: 1fr; } .result-actions { flex-direction: column; } .quiz-top-inner { gap: 12px; } .progress-bar-wrap { display: none; } }