/* ============================================
   USER QUIZ BUILDER — Gamified Redesign v3
   Playful, modern, mobile-first creation flow.
   2–3 answers, user-chosen difficulty, rich animations.
   ============================================ */

/* ── Screen Container ─────────────────────── */

#quizBuilderScreen {
    display: none;
    flex-direction: column;
    background: var(--app-bg, #0D0A0F);
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: auto !important;
    opacity: 1 !important;
    font-family: 'Figtree', system-ui, -apple-system, sans-serif;
    overflow: hidden;
}

#quizBuilderScreen .qb-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: var(--app-bg, #0D0A0F);
    flex-shrink: 0;
    z-index: 2;
}

#quizBuilderScreen .qb-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--app-text, #fff);
    margin: 0;
    flex: 1;
    letter-spacing: -0.3px;
}

.qb-back-link {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.qb-back-link:active { background: rgba(255,255,255,0.06); }

#quizBuilderContent {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0;
    position: relative;
}

/* Animations intentionally removed: the quiz builder is a data-entry flow,
   and entrance/float/glow motion was pulling attention away from the
   fields. Only lightweight transitions remain (active/hover state
   changes). */

/* ── Welcome / Empty State ────────────────── */

.qb-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 28px 40px;
    position: relative;
    min-height: 100%;
}

.qb-welcome-icon {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.qb-welcome-icon-inner {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(233,30,99,0.12), rgba(192,132,252,0.1));
    border: 1.5px solid rgba(233,30,99,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    line-height: 1;
    box-shadow: 0 12px 40px rgba(233,30,99,0.15);
}

.qb-welcome-title {
    font-family: 'Bricolage Grotesque', Georgia, serif;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.qb-welcome-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin: 0 0 28px;
    line-height: 1.6;
    max-width: 300px;
    position: relative;
    z-index: 1;
}

/* Feature pills */
.qb-welcome-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.qb-feature-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 100px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 12px;
    color: rgba(255,255,255,0.55);
}

.qb-feature-icon {
    font-size: 14px;
}

/* Single primary CTA on the welcome screen. */
.qb-cta-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 320px;
    padding: 16px 28px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #E91E63, #c084fc);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.25s;
    box-shadow: 0 8px 32px rgba(233,30,99,0.3);
    -webkit-tap-highlight-color: transparent;
}
.qb-cta-primary:active { transform: scale(0.97); }

.qb-welcome-hint {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    margin-top: 16px;
    position: relative;
    z-index: 1;
}

/* ── Difficulty Selection Screen ─────────── */

.qb-difficulty-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 24px 140px;
}

.qb-diff-header {
    text-align: center;
    margin-bottom: 32px;
}

.qb-diff-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(233,30,99,0.1), rgba(192,132,252,0.08));
    border: 1px solid rgba(233,30,99,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px;
}

.qb-diff-title {
    font-family: 'Bricolage Grotesque', Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    letter-spacing: -0.3px;
}

.qb-diff-subtitle {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    margin: 0;
    line-height: 1.5;
}

.qb-diff-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 400px;
}

.qb-diff-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 20px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.03);
    border: 1.5px solid rgba(255,255,255,0.08);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    -webkit-tap-highlight-color: transparent;
    text-align: center;
    font-family: inherit;
    color: #fff;
    width: 100%;
}

.qb-diff-card:active { transform: scale(0.98); }

.qb-diff-card--active {
    border-color: var(--diff-color);
    background: var(--diff-bg);
    box-shadow: 0 0 0 1px var(--diff-color), 0 8px 28px rgba(0,0,0,0.2);
}

.qb-diff-card-icon {
    font-size: 32px;
    line-height: 1;
    margin-bottom: 2px;
    transition: transform 0.25s;
}
.qb-diff-card--active .qb-diff-card-icon {
    transform: scale(1.1);
}

.qb-diff-card-label {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.2px;
    transition: color 0.2s;
}
.qb-diff-card--active .qb-diff-card-label {
    color: var(--diff-color);
}

.qb-diff-card-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    line-height: 1.4;
    max-width: 240px;
}

.qb-diff-card-check {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--diff-color);
    color: #0D0A0F;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Overview (quiz exists) ──────────────── */

.qb-overview {
    padding: 24px 20px 24px;
    min-height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.qb-overview-header {
    text-align: center;
    margin-bottom: 24px;
}

.qb-overview-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

.qb-overview-status--ready {
    background: rgba(94,238,173,0.1);
    color: #5EEEAD;
}
.qb-overview-status--draft {
    background: rgba(255,183,77,0.1);
    color: #FFB74D;
}

.qb-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.qb-overview-title {
    font-family: 'Bricolage Grotesque', Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    letter-spacing: -0.3px;
}

.qb-overview-subtitle {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    margin: 0 0 16px;
    line-height: 1.5;
}

/* Difficulty badge in overview */
.qb-diff-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all 0.2s;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}
.qb-diff-badge:active { transform: scale(0.97); }

.qb-diff-badge--easy {
    background: rgba(94,238,173,0.08);
    color: #5EEEAD;
    border-color: rgba(94,238,173,0.15);
}
.qb-diff-badge--medium {
    background: rgba(255,183,77,0.08);
    color: #FFB74D;
    border-color: rgba(255,183,77,0.15);
}
.qb-diff-badge--hard {
    background: rgba(239,83,80,0.08);
    color: #EF5350;
    border-color: rgba(239,83,80,0.15);
}

.qb-diff-badge-icon {
    font-size: 15px;
}

.qb-diff-badge-hint {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.7;
}

.qb-diff-badge-edit {
    opacity: 0.5;
    margin-left: 2px;
}

/* ── Question Cards in Overview ──────────── */

.qb-question-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.qb-question-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.qb-question-card:active {
    background: rgba(255,255,255,0.06);
    transform: scale(0.98);
}

.qb-question-card--issue {
    border-color: rgba(255,183,77,0.2);
}

.qb-question-card-num {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(233,30,99,0.12), rgba(192,132,252,0.08));
    color: #E91E63;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.qb-question-card:active .qb-question-card-num { transform: scale(0.9); }

.qb-question-card-body {
    flex: 1;
    min-width: 0;
}

.qb-question-card-text {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 3px;
    line-height: 1.3;
}

.qb-question-card-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: rgba(255,255,255,0.35);
}

.qb-meta-dot { opacity: 0.4; }
.qb-meta-warning {
    color: #FFB74D;
    margin-left: 4px;
    font-size: 12px;
}

.qb-question-card-arrow {
    color: rgba(255,255,255,0.2);
    flex-shrink: 0;
    transition: transform 0.2s;
}
.qb-question-card:active .qb-question-card-arrow { transform: translateX(2px); }

/* Empty question slots */
.qb-question-slot {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 14px;
    border: 1.5px dashed rgba(255,255,255,0.06);
    border-radius: 16px;
}

.qb-question-slot-num {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.15);
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qb-question-slot-label {
    font-size: 13px;
    color: rgba(255,255,255,0.2);
}

/* Add question buttons. Stacked vertically so the primary (templates)
   button can carry a recommended badge without colliding with the
   secondary row, and so the order of prominence is unambiguous. */
.qb-add-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.qb-add-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1.5px solid rgba(233,30,99,0.2);
    background: linear-gradient(135deg, rgba(233,30,99,0.06), rgba(192,132,252,0.04));
    color: #E91E63;
    font-size: 13.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.qb-add-btn:active { transform: scale(0.97); background: rgba(233,30,99,0.1); }

/* Primary add button (templates). Uses the same gradient as the main
   save/CTA buttons so the user reads it as "do this one first". */
.qb-add-btn--primary {
    background: linear-gradient(135deg, #E91E63, #c084fc);
    border-color: transparent;
    color: #fff;
    font-size: 14.5px;
    padding: 16px 18px;
    box-shadow: 0 6px 24px rgba(233,30,99,0.25);
}
.qb-add-btn--primary:active { background: linear-gradient(135deg, #D91556, #a66be0); }

.qb-add-btn-icon {
    font-size: 16px;
    font-weight: 700;
}

.qb-max-hint {
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.25);
    margin-bottom: 20px;
}

/* Sticky-pinned so the save button stays in a reliable tap zone on
   short mobile viewports instead of sitting flush against the bottom
   gesture area, which was swallowing taps. */
.qb-overview-actions {
    position: sticky;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    padding: 16px 0;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    background: linear-gradient(to top, var(--app-bg, #0D0A0F) 70%, transparent);
    z-index: 5;
}

/* .qb-btn sets flex:1 for the horizontal .qb-step-actions row; in this
   column container that would stretch buttons vertically. */
.qb-overview-actions > .qb-btn {
    flex: 0 0 auto;
}

/* ── Shared Button Styles ────────────────── */

.qb-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 20px;
    border-radius: 14px;
    border: none;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
    flex: 1;
}
.qb-btn:active { transform: scale(0.97); }

.qb-btn--primary {
    background: linear-gradient(135deg, #E91E63, #c084fc);
    color: #fff;
    box-shadow: 0 6px 24px rgba(233,30,99,0.25);
}

.qb-btn--ghost {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.6);
}

.qb-btn--save {
    background: linear-gradient(135deg, #5EEEAD, #4CAF50);
    color: #0D0A0F;
    box-shadow: 0 6px 24px rgba(94,238,173,0.2);
}

.qb-btn--danger-ghost {
    background: transparent;
    border: 1px solid rgba(239,83,80,0.15);
    color: rgba(239,83,80,0.7);
    font-size: 13px;
    font-weight: 600;
    padding: 12px;
}

/* ── Step Navigation (fixed bottom) ──────── */

.qb-step-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    background: linear-gradient(to top, var(--app-bg, #0D0A0F) 75%, transparent);
    z-index: 10;
}

/* ── Question Editor ─────────────────────── */

.qb-editor {
    padding: 24px 20px 140px;
}

/* Progress dots */
.qb-editor-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.qb-progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.qb-progress-dot--active {
    background: #E91E63;
    box-shadow: 0 0 10px rgba(233,30,99,0.5);
    width: 12px;
    height: 12px;
}

.qb-progress-dot--done {
    background: #5EEEAD;
    box-shadow: 0 0 6px rgba(94,238,173,0.3);
}

.qb-editor-step-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

/* Compact "pick template" pill that sits next to the Frage label. Acts
   as the inline entry point to the preset picker without stealing focus
   from the editor itself. */
.qb-template-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid rgba(233, 30, 99, 0.3);
    border-radius: 999px;
    background: rgba(233, 30, 99, 0.1);
    color: #ff7aa6;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.qb-template-pill:hover {
    background: rgba(233, 30, 99, 0.18);
    border-color: rgba(233, 30, 99, 0.5);
    color: #ffb0c9;
}
.qb-template-pill-icon {
    font-size: 13px;
    line-height: 1;
}

/* Small footer below the question textarea that only holds the char
   counter. Kept as its own row so the counter stays aligned right
   regardless of the textarea height. */
.qb-field-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
}

/* Suggested answer chips panel. Only rendered when the current question
   is attached to a preset key that has i18n-registered suggestions. */
.qb-suggestions {
    margin-top: 12px;
    padding: 12px 14px;
    background: rgba(233, 30, 99, 0.06);
    border: 1px solid rgba(233, 30, 99, 0.18);
    border-radius: 14px;
}
.qb-suggestions-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}
.qb-suggestions-icon {
    font-size: 14px;
}
.qb-suggestions-title {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.02em;
}
.qb-suggestions-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.qb-suggestions-chip {
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.85);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.qb-suggestions-chip:hover {
    background: rgba(233, 30, 99, 0.15);
    border-color: rgba(233, 30, 99, 0.4);
    color: #fff;
}
.qb-suggestions-chip:active {
    transform: scale(0.97);
}

/* Editor card */
.qb-editor-card {
    position: relative;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 24px 20px;
    overflow: hidden;
}

/* Field layout */
.qb-field {
    margin-bottom: 20px;
}
.qb-field:last-child { margin-bottom: 0; }

.qb-field-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.qb-field-label > span:first-child {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.qb-field-counter {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.25);
    font-variant-numeric: tabular-nums;
}

.qb-field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qb-answers-count {
    font-size: 11px;
    font-weight: 600;
    color: rgba(233,30,99,0.6);
    background: rgba(233,30,99,0.08);
    padding: 2px 8px;
    border-radius: 100px;
}

.qb-field-hint {
    font-size: 12px;
    color: rgba(94,238,173,0.6);
    margin: 4px 0 12px;
    line-height: 1.4;
}

/* Textarea */
.qb-textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1.5px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: #fff;
    font-size: 16px;
    font-family: 'Bricolage Grotesque', Georgia, serif;
    font-weight: 600;
    resize: none;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
    box-sizing: border-box;
    line-height: 1.4;
}
.qb-textarea:focus {
    border-color: rgba(233,30,99,0.4);
    box-shadow: 0 0 0 3px rgba(233,30,99,0.08);
}
.qb-textarea::placeholder {
    color: rgba(255,255,255,0.2);
    font-weight: 400;
}

/* ── Choice Rows ─────────────────────────── */

.qb-choices {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.qb-choice-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qb-choice-check {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.1);
    background: transparent;
    color: rgba(255,255,255,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.qb-choice-check:active { transform: scale(0.9); }

.qb-choice-check--on {
    border-color: #5EEEAD;
    background: rgba(94,238,173,0.15);
    color: #5EEEAD;
    box-shadow: 0 0 12px rgba(94,238,173,0.15);
}

.qb-choice-input {
    flex: 1;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1.5px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
    min-width: 0;
}
.qb-choice-input:focus {
    border-color: rgba(233,30,99,0.3);
    box-shadow: 0 0 0 3px rgba(233,30,99,0.06);
}
.qb-choice-input::placeholder { color: rgba(255,255,255,0.2); }

.qb-choice-remove {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.qb-choice-remove:active { color: #EF5350; background: rgba(239,83,80,0.1); transform: scale(0.9); }

.qb-choice-remove--hidden {
    opacity: 0;
    pointer-events: none;
    width: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Add choice button */
.qb-add-choice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    border-radius: 12px;
    border: 1.5px dashed rgba(233,30,99,0.15);
    background: rgba(233,30,99,0.03);
    color: rgba(233,30,99,0.6);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    -webkit-tap-highlight-color: transparent;
}
.qb-add-choice:active {
    border-color: rgba(233,30,99,0.3);
    background: rgba(233,30,99,0.06);
    transform: scale(0.98);
}

.qb-add-choice-icon {
    font-size: 16px;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(233,30,99,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Delete question button */
.qb-delete-question {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 12px;
    margin-top: 16px;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: rgba(239,83,80,0.5);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.qb-delete-question:active {
    color: #EF5350;
    background: rgba(239,83,80,0.06);
}

/* ── Presets View ────────────────────────── */

.qb-presets {
    padding: 24px 20px 140px;
}

.qb-presets-header {
    margin-bottom: 24px;
}

.qb-presets-title {
    font-family: 'Bricolage Grotesque', Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
}

.qb-presets-subtitle {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    margin: 0;
    line-height: 1.5;
}

.qb-preset-category {
    margin-bottom: 20px;
}

.qb-preset-cat-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #c084fc;
    background: rgba(192,132,252,0.08);
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.qb-preset-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.qb-preset-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.025);
    color: #fff;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    line-height: 1.4;
}
.qb-preset-item:active:not(:disabled) {
    background: rgba(255,255,255,0.06);
    transform: scale(0.98);
}
.qb-preset-item--used {
    opacity: 0.3;
    cursor: not-allowed;
}

.qb-preset-text {
    flex: 1;
    min-width: 0;
}

.qb-preset-badge {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    white-space: nowrap;
    flex-shrink: 0;
}

.qb-preset-badge--add {
    color: #E91E63;
    font-weight: 600;
}

/* ── Prompt Banner ───────────────────────── */

.uqp-banner {
    position: fixed;
    bottom: 80px;
    left: 12px;
    right: 12px;
    z-index: 9000;
    transform: translateY(120%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}
.uqp-banner--visible { transform: translateY(0); pointer-events: auto; }

.uqp-banner-inner {
    background: var(--app-bg, #1a1a1a);
    border: 1px solid rgba(233,30,99,0.2);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.uqp-banner-icon { font-size: 28px; text-align: center; margin-bottom: 8px; }
.uqp-banner-text { text-align: center; margin-bottom: 14px; }
.uqp-banner-text strong { display: block; font-size: 15px; color: #fff; margin-bottom: 4px; }
.uqp-banner-text p { font-size: 12.5px; color: rgba(255,255,255,0.5); margin: 0; line-height: 1.5; }
.uqp-banner-actions { display: flex; gap: 8px; }
.uqp-btn-create {
    flex: 1; padding: 12px; border-radius: 10px; border: none;
    background: linear-gradient(135deg, #E91E63, #c084fc);
    color: #fff; font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer;
}
.uqp-btn-dismiss {
    padding: 12px 20px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1);
    background: transparent; color: rgba(255,255,255,0.5); font-size: 13px; font-weight: 600;
    font-family: inherit; cursor: pointer;
}

/* ── Profile CTA ─────────────────────────── */

.pv2-quiz-cta {
    display: flex !important;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(233,30,99,0.10), rgba(192,132,252,0.08));
    border: 1.5px solid rgba(233,30,99,0.2);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    margin-bottom: 4px;
}
.pv2-quiz-cta:active { transform: scale(0.98); }
.pv2-quiz-cta-icon { font-size: 28px; flex-shrink: 0; line-height: 1; }
.pv2-quiz-cta-text { flex: 1; min-width: 0; }

/* ── Accessibility ───────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .qb-welcome, .qb-editor, .qb-overview, .qb-presets,
    .qb-difficulty-screen, .qb-choice-row, .qb-question-card,
    .qb-question-slot, .qb-diff-card, .qb-feature-pill,
    .qb-editor-card, .qb-welcome-icon, .qb-diff-card-check,
    .qb-choice-check--on, .qb-cta-glow, .qb-status-dot {
        animation: none !important;
    }
    .qb-cta-primary, .qb-btn, .qb-choice-check, .qb-diff-card,
    .qb-question-card, .qb-preset-item, .qb-add-btn {
        transition-duration: 0.01ms !important;
    }
}
