@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

/* ─── Reset & Base ─── */
.nsc-wrapper,
.nsc-wrapper * {
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif;
}

/* ─── Outer Layout ─── */
.nsc-wrapper {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    padding: 40px 16px;
    max-width: 1280px;
    margin: 0 auto;
    clear: both;
    position: relative;
    z-index: 1;
}

/* ─── Cards area ─── */
.nsc-cards-area { flex: 1; min-width: 0; }

/* ─── Category grouping ─── */
.nsc-category-block { margin-bottom: 48px; }
.nsc-category-block:last-child { margin-bottom: 0; }

.nsc-category-header {
    position: relative;
    text-align: center;
    margin: 0 0 28px;
    padding-top: 6px;
}

.nsc-category-title {
    display: inline-block;
    margin: 0 14px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #7a4fa0;
    position: relative;
    vertical-align: middle;
}

/* Small orbiting sparkle doodles flanking the title */
.nsc-cat-decor {
    display: inline-block;
    font-size: 1.1rem;
    color: #c9a0e0;
    vertical-align: middle;
    animation: nsc-cat-orbit 3.6s ease-in-out infinite;
}
.nsc-cat-decor-left  { animation-delay: 0s; }
.nsc-cat-decor-right { animation-delay: 1.8s; }

@keyframes nsc-cat-orbit {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); opacity: 0.75; }
    50%      { transform: translateY(-4px) rotate(180deg) scale(1.25); opacity: 1; }
}

/* Hand-drawn-feeling wavy underline that gently "flows" beneath the title */
.nsc-cat-underline {
    width: 120px;
    height: 10px;
    margin: 10px auto 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='10' viewBox='0 0 40 10'%3E%3Cpath d='M0 5 Q5 0 10 5 T20 5 T30 5 T40 5' fill='none' stroke='%23c9a0e0' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 40px 10px;
    opacity: 0.85;
    animation: nsc-cat-flow 3s linear infinite;
}
@keyframes nsc-cat-flow {
    from { background-position-x: 0; }
    to   { background-position-x: 40px; }
}

@media (max-width: 580px) {
    .nsc-category-title { font-size: 1.2rem; letter-spacing: 1.5px; }
}

.nsc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1100px) { .nsc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px)  { .nsc-grid { grid-template-columns: 1fr; } }

/* ─── Single card shortcode [soul_card] — full-width cosmic hero banner ─── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,500&display=swap');

.nsc-wrapper-single {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    padding: 64px 32px;
    margin: 32px 0;
    border-radius: 24px;
    background:
        radial-gradient(ellipse 480px 320px at 15% 15%, rgba(122,79,160,0.55) 0%, transparent 60%),
        radial-gradient(ellipse 420px 380px at 85% 85%, rgba(80,50,120,0.5) 0%, transparent 55%),
        linear-gradient(135deg, #1b1130 0%, #2b1c48 50%, #1a1129 100%);
}

/* Twinkling star field */
.nsc-wrapper-single::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-repeat: no-repeat;
    background-image:
        radial-gradient(1.6px 1.6px at 8%  22%, rgba(255,255,255,0.85), transparent),
        radial-gradient(1.4px 1.4px at 82% 12%, rgba(255,255,255,0.65), transparent),
        radial-gradient(1.2px 1.2px at 55% 65%, rgba(255,255,255,0.75), transparent),
        radial-gradient(1.6px 1.6px at 28% 82%, rgba(255,255,255,0.55), transparent),
        radial-gradient(1.2px 1.2px at 72% 48%, rgba(255,255,255,0.65), transparent),
        radial-gradient(1.6px 1.6px at 93% 68%, rgba(255,255,255,0.45), transparent),
        radial-gradient(1.2px 1.2px at 18% 55%, rgba(255,255,255,0.55), transparent),
        radial-gradient(1.4px 1.4px at 46% 28%, rgba(255,255,255,0.75), transparent),
        radial-gradient(1.2px 1.2px at 63% 90%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1.4px 1.4px at 38% 10%, rgba(255,255,255,0.6), transparent);
    animation: nsc-star-twinkle 4.5s ease-in-out infinite alternate;
}
@keyframes nsc-star-twinkle {
    0%   { opacity: 0.55; }
    50%  { opacity: 1; }
    100% { opacity: 0.65; }
}

/* Slow-drifting cosmic glow orb */
.nsc-wrapper-single::after {
    content: '';
    position: absolute;
    z-index: 0;
    pointer-events: none;
    top: -110px;
    right: -80px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,160,224,0.35) 0%, transparent 70%);
    animation: nsc-orb-drift 11s ease-in-out infinite alternate;
}
@keyframes nsc-orb-drift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(-36px, 46px) scale(1.15); }
}

.nsc-single-inner {
    position: relative;
    z-index: 1;
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 44px;
}

.nsc-single-text {
    flex: 1 1 360px;
    text-align: right;
    min-width: 0;
}

.nsc-single-headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 2.15rem;
    line-height: 1.28;
    color: #f6eefc;
    margin: 0 0 12px;
    letter-spacing: 0.3px;
    animation: nsc-text-glow 4.5s ease-in-out infinite;
}
@keyframes nsc-text-glow {
    0%, 100% { text-shadow: 0 0 14px rgba(201,160,224,0.35); }
    50%      { text-shadow: 0 0 28px rgba(201,160,224,0.7); }
}

.nsc-single-subtext {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 500;
    font-size: 1.15rem;
    color: #c9b8dd;
    margin: 0;
}

.nsc-single-followup { display: none; opacity: 0; transform: translateY(8px); transition: opacity 0.6s ease, transform 0.6s ease; }
.nsc-wrapper-single-answered .nsc-single-intro    { display: none; }
.nsc-wrapper-single-answered .nsc-single-followup { display: block; opacity: 1; transform: translateY(0); }

.nsc-single-followup-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 1.2rem;
    color: #f6eefc;
    margin: 0 0 18px;
}

.nsc-single-divider {
    flex: 0 0 1px;
    align-self: stretch;
    min-height: 220px;
    background: linear-gradient(to bottom, transparent, rgba(201,160,224,0.65), transparent);
    animation: nsc-divider-pulse 3s ease-in-out infinite;
}
@keyframes nsc-divider-pulse {
    0%, 100% { opacity: 0.4; }
    50%      { opacity: 1; }
}

.nsc-single-card-col { flex: 0 1 300px; width: 300px; max-width: 100%; }
.nsc-single-card-col .nsc-grid-single { grid-template-columns: 1fr; width: 100%; max-width: 300px; margin: 0; }

.nsc-single-followup .nsc-explore-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, #a07bc8, #c9a0e0);
    color: #fff;
    font-family: Georgia, serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(201,160,224,0.5);
    animation: nsc-explore-pulse 2.4s ease-in-out infinite;
}
.nsc-single-followup .nsc-explore-btn:hover { opacity: 0.92; }
@keyframes nsc-explore-pulse {
    0%, 100% { box-shadow: 0 0 16px rgba(201,160,224,0.4); }
    50%      { box-shadow: 0 0 28px rgba(201,160,224,0.75); }
}

/* ─── Tablet: stack text above card, horizontal divider ─── */
@media (max-width: 900px) {
    .nsc-single-inner { flex-direction: column; gap: 28px; }
    .nsc-single-text  { flex: none; text-align: center; }
    .nsc-single-divider { width: 90px; min-height: 0; height: 1px; background: linear-gradient(to right, transparent, rgba(201,160,224,0.65), transparent); }
    .nsc-single-headline { font-size: 1.85rem; }
}

/* ─── Mobile ─── */
@media (max-width: 480px) {
    .nsc-wrapper-single { padding: 40px 20px; border-radius: 16px; }
    .nsc-single-headline { font-size: 1.45rem; }
    .nsc-single-subtext, .nsc-single-followup-text { font-size: 0.95rem; }
    .nsc-single-card-col .nsc-grid-single { max-width: 100%; }
}

/* ─── Card container ─── */
.nsc-card-wrap {
    perspective: 1000px;
    height: 400px;
}

.nsc-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
    border-radius: 20px;
}

.nsc-card.is-flipped { transform: rotateY(180deg); }

/* ─── Hover lift ─── */
.nsc-card-wrap:hover .nsc-card:not(.is-flipped) {
    transform: translateY(-6px) scale(1.01);
    filter: drop-shadow(0 12px 24px rgba(0,0,0,0.13));
}

/* ─── Front & Back shared ─── */
.nsc-front,
.nsc-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 18px 16px;
    gap: 8px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    /* Ensure content never bleeds outside the card */
    box-sizing: border-box;
}

/* ─── Front face ─── */
/* Uses flex-start so long text scrolls rather than bleeds out top/bottom */
.nsc-front {
    justify-content: flex-start;
    text-align: center;
    padding-top: 24px;
    /* Push short content to center visually using auto margins on a wrapper */
}

/* Inner centering wrapper — keeps short content centered, long content scrollable */
.nsc-front-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: auto 0; /* vertical centering when content is short */
    padding: 4px 0;
}

/* ─── Back face ─── */
.nsc-back {
    transform: rotateY(180deg);
    justify-content: flex-start;
    padding-top: 18px;
    overflow-y: auto;
}

/* ─── Illustration ─── */
.nsc-illustration {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
    flex-shrink: 0;
}

.nsc-illustration img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.nsc-default-icon {
    font-size: 2.5rem;
    opacity: 0.4;
}

/* ─── Question text ─── */
.nsc-question {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.45;
    margin: 0;
    padding: 0 4px;
}

/* ─── Front buttons ─── */
.nsc-btn-flip {
    border: none;
    border-radius: 30px;
    padding: 9px 18px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.25s ease;
    width: 100%;
    margin-top: 4px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

.nsc-btn-flip:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(0,0,0,0.18);
}

.nsc-btn-read {
    background: transparent;
    border: none;
    font-family: 'Nunito', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    opacity: 0.65;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: 2px 0;
    transition: opacity 0.2s;
}

.nsc-btn-read:hover { opacity: 1; }

.nsc-back-label {
    font-size: 0.82rem;
    font-weight: 700;
    font-style: italic;
    margin: 0 0 2px;
    text-align: center;
    opacity: 0.8;
    line-height: 1.3;
}

/* ─── Field groups ─── */
.nsc-field-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.nsc-field-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.7;
}

.nsc-label-purple { color: #5a3d6b; }

/* ─── Inputs & Textarea ─── */
.nsc-input,
.nsc-textarea {
    width: 100%;
    background: rgba(255,255,255,0.75);
    border: 1.5px solid rgba(0,0,0,0.12);
    border-radius: 10px;
    color: #333;
    font-family: 'Nunito', sans-serif;
    font-size: 0.88rem;
    padding: 7px 11px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: none;
}

.nsc-input:focus,
.nsc-textarea:focus {
    border-color: rgba(160,123,200,0.6);
    box-shadow: 0 0 0 3px rgba(160,123,200,0.12);
}

.nsc-input::placeholder,
.nsc-textarea::placeholder { color: #aaa; }

/* ─── Submit button ─── */
.nsc-btn-submit {
    border: none;
    border-radius: 30px;
    padding: 7px 14px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    letter-spacing: 0.03em;
    transition: all 0.25s;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
    margin-top: 2px;
}

.nsc-btn-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ─── Success/error msg ─── */
.nsc-msg {
    font-size: 0.8rem;
    color: #4caf7d;
    margin: 0;
    min-height: 16px;
    font-weight: 600;
    text-align: center;
}

/* ─── Back button ─── */
.nsc-btn-back {
    background: transparent;
    border: none;
    font-family: 'Nunito', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: 0;
    opacity: 0.55;
    transition: opacity 0.2s;
    margin-top: auto;
}

.nsc-btn-back:hover { opacity: 1; }

/* ─── Sidebar ─── */
.nsc-sidebar {
    width: 230px;
    flex-shrink: 0;
}

.nsc-sidebar-inner {
    background: #fff;
    border: 2px solid #e8d8f5;
    border-radius: 20px;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: sticky;
    top: 80px;
    box-shadow: 0 4px 20px rgba(160,123,200,0.1);
}

.nsc-sidebar-title {
    color: #5a3d6b;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 2px;
    text-align: center;
}

.nsc-sidebar-desc {
    color: #888;
    font-size: 0.8rem;
    text-align: center;
    margin: 0;
    line-height: 1.4;
}

.nsc-btn-lookup {
    border: none;
    border-radius: 30px;
    padding: 10px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    letter-spacing: 0.03em;
    transition: all 0.25s;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
    margin-top: 4px;
}

.nsc-btn-lookup:hover { opacity: 0.9; transform: translateY(-1px); }

#nsc-lookup-results { margin-top: 4px; }

.nsc-lookup-found {
    color: #5a3d6b;
    font-size: 0.8rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.nsc-lookup-item {
    border-top: 1px solid #f0e0ff;
    padding: 10px 0 4px;
}

.nsc-lookup-question {
    color: #a07bc8;
    font-size: 0.78rem;
    font-weight: 700;
    font-style: italic;
    margin: 0 0 4px;
}

.nsc-lookup-answer {
    color: #444;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0 0 4px;
}

.nsc-lookup-date {
    color: #bbb;
    font-size: 0.72rem;
}

.nsc-no-answers {
    color: #aaa;
    font-style: italic;
    text-align: center;
    font-size: 0.85rem;
    margin: 8px 0 0;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .nsc-wrapper {
        flex-direction: column;
        padding: 24px 12px;
        gap: 20px;
    }
    .nsc-sidebar { width: 100%; }
    .nsc-sidebar-inner { position: static; }
    /* On tablet/mobile, cards area takes full width with no sidebar beside it */
    .nsc-cards-area { width: 100%; }
}

/* ─── Tablet (601px–1100px) ─── */
@media (min-width: 601px) and (max-width: 1100px) {
    .nsc-wrapper { padding: 30px 16px; }
    .nsc-card-wrap { height: 420px; }
    /* Sidebar already stacked below at 900px — grid stays 2 col above 580px */
}

/* ─── Mobile (600px and below) ─── */
@media (max-width: 600px) {
    .nsc-wrapper { padding: 16px 10px; gap: 16px; }
    .nsc-card-wrap { height: 460px; }
    .nsc-popup {
        padding: 32px 18px 24px;
        border-radius: 18px;
        max-height: 85vh;
    }
    .nsc-popup-title { font-size: 1.15rem; margin-bottom: 16px; }
    .nsc-sidebar-inner { padding: 18px 14px; }
    /* Larger tap targets on mobile */
    .nsc-btn-read {
        padding: 8px 0;
        font-size: 0.85rem;
    }
    .nsc-btn-back {
        padding: 8px 0;
    }
    /* Slightly larger share icons on mobile */
    .nsc-share-btn {
        width: 40px;
        height: 40px;
    }
    .nsc-share-btn svg {
        width: 22px;
        height: 22px;
    }
}

/* ─── Disable hover lift on touch devices ─── */
@media (hover: none) {
    .nsc-card-wrap:hover .nsc-card:not(.is-flipped) {
        transform: none;
        filter: none;
    }
}

/* ─── Popup overlay ─── */
.nsc-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.nsc-overlay.active { display: flex; }

.nsc-popup {
    background: #fff;
    border-radius: 24px;
    padding: 40px 36px 36px;
    max-width: 540px;
    width: 92%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.nsc-popup-close {
    position: absolute;
    top: 14px; right: 18px;
    background: #f5f0ff;
    border: none;
    border-radius: 20px;
    color: #a07bc8;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
    padding: 5px 12px;
    transition: background 0.2s;
}

.nsc-popup-close:hover { background: #ede0ff; }

.nsc-popup-title {
    color: #5a3d6b;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 24px;
    text-align: center;
}

.nsc-answer-item {
    border-bottom: 1px solid #f5eeff;
    padding: 16px 0;
}

.nsc-answer-item:last-child { border-bottom: none; }

.nsc-answer-text {
    color: #333;
    font-size: 0.98rem;
    line-height: 1.65;
    margin: 0 0 8px;
}

.nsc-answer-author {
    color: #b09bc8;
    font-size: 0.82rem;
    font-weight: 600;
}

/* ─── Card outer wrapper (holds card + share bar) ─── */
.nsc-card-outer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.nsc-card-outer .nsc-card-wrap {
    width: 100%;
}

/* ─── Share bar ─── */
.nsc-share-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    animation: nsc-fadein 0.35s ease;
}

@keyframes nsc-fadein {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.nsc-share-label {
    font-family: 'Nunito', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: #aaa;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nsc-share-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nsc-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f5f5f5;
    transition: transform 0.2s ease, background 0.2s ease;
    text-decoration: none;
}

.nsc-share-btn:hover {
    transform: scale(1.15);
    background: #ececec;
}

.nsc-share-btn svg {
    width: 18px;
    height: 18px;
}

/* ─── Compass Result Panel ─── */
.nsc-compass-result {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 42px; /* reserved strip for the "← Back to question" button below, so long insight text can never overlap it */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    gap: 8px;
    border-radius: 20px;
    overflow-y: auto;
    overflow-x: hidden;
}

.nsc-sparkle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.nsc-compass-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 2;
    animation: nsc-compass-appear 0.4s ease forwards;
}

@keyframes nsc-compass-appear {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

.nsc-compass-svg {
    width: 90px;
    height: 90px;
    filter: drop-shadow(0 2px 8px rgba(160,123,200,0.2));
}

.nsc-compass-deg {
    font-family: 'Nunito', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #5a3d6b;
    margin: 0;
    letter-spacing: 0.02em;
}

.nsc-compass-insight {
    font-family: 'Nunito', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: #7a5d8b;
    text-align: center;
    margin: 0;
    line-height: 1.4;
    max-width: 180px;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.nsc-compass-insight.nsc-insight-reveal { opacity: 1; }

/* ─── Mini compass in popup / lookup ─── */
.nsc-answer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.nsc-mini-compass {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    opacity: 0.75;
}

.nsc-needle-svg {
    width: 16px;
    height: 16px;
    transform: rotate(var(--deg, 0deg));
    flex-shrink: 0;
}

.nsc-needle {
    stroke: #a07bc8;
    stroke-width: 2.5;
    stroke-linecap: round;
}

.nsc-deg-label {
    font-family: 'Nunito', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: #a07bc8;
}

/* ─── Lookup meta row ─── */
.nsc-lookup-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.nsc-lookup-insight {
    font-size: 0.78rem;
    font-style: italic;
    color: #8a6da0;
    margin: 4px 0 0;
    line-height: 1.4;
}

/* ─── Lookup average score ─── */
.nsc-lookup-avg {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 2px solid #e8d8f5;
}

.nsc-avg-label {
    font-family: 'Nunito', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: #5a3d6b;
}

.nsc-avg-deg {
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #a07bc8;
}

.nsc-lookup-share-btn {
    background: #f0e6ff;
    border: none;
    border-radius: 20px;
    color: #7a4db8;
    font-family: 'Nunito', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    cursor: pointer;
    transition: background 0.2s;
    margin-left: auto;
}

.nsc-lookup-share-btn:hover { background: #e0d0ff; }

/* ─── Soul Type display ─── */
.nsc-compass-type {
    font-family: 'Nunito', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: #a07bc8;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
    text-align: center;
}

.nsc-lookup-soul-type {
    font-size: 0.78rem;
    font-weight: 700;
    color: #a07bc8;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 4px 0 0;
}

/* ─── Desktop share mini menu ─── */
.nsc-desktop-share-menu {
    position: fixed;
    background: #fff;
    border: 1px solid #e0d0f5;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    padding: 6px 0;
    z-index: 999999;
    min-width: 140px;
}
.nsc-desktop-share-menu a {
    display: block;
    padding: 9px 16px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #5a3d6b;
    text-decoration: none;
    transition: background 0.15s;
}
.nsc-desktop-share-menu a:hover { background: #f5eeff; }
