/* ── AI Coach section ─────────────────────────────────── */

.nq-coach {
    position: relative;
    overflow: hidden;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.nq-coach__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 18% 20%, rgba(73, 222, 255, 0.12), transparent 42%),
        radial-gradient(ellipse at 80% 70%, rgba(15, 134, 248, 0.14), transparent 46%),
        linear-gradient(180deg, rgba(230, 248, 255, 0.95) 0%, rgba(214, 241, 255, 0.9) 100%);
    border-top: 1px solid rgba(15, 134, 248, 0.08);
    border-bottom: 1px solid rgba(15, 134, 248, 0.06);
    pointer-events: none;
}

.nq-coach__deco {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    animation: nq-deco-drift ease-in-out infinite;
    animation-fill-mode: both;
}

.nq-coach__deco--1 {
    top: 12%;
    left: 6%;
    animation-duration: 10s;
    animation-delay: 1s;
}

.nq-coach__deco--2 {
    right: 8%;
    bottom: 12%;
    animation-duration: 12s;
    animation-delay: 3s;
}

.nq-coach__grid {
    position: relative;
    z-index: 1;
    display: grid;
    align-items: center;
    gap: 3rem;
}

.nq-coach__content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nq-coach__heading {
    font-size: clamp(1.75rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: var(--nq-text);
}

.nq-coach__subtitle {
    max-width: 34rem;
    font-size: clamp(0.95rem, 1.6vw, 1.12rem);
    line-height: 1.8;
    color: var(--nq-text-soft);
}

.nq-coach__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.nq-coach__chip {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(15, 134, 248, 0.08);
    color: var(--nq-primary);
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(15, 134, 248, 0.06);
}

.nq-coach__features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.nq-coach__feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--nq-text-soft);
    line-height: 1.6;
}

.nq-coach__feature-dot {
    flex-shrink: 0;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--nq-accent), var(--nq-violet));
    box-shadow: 0 0 14px rgba(73, 222, 255, 0.28);
}

/* Chat mockup */
.nq-coach__visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.nq-coach__badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(15, 134, 248, 0.08);
    box-shadow: 0 14px 28px rgba(15, 134, 248, 0.1);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--nq-text);
    white-space: nowrap;
    z-index: 3;
}

.nq-coach__badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.3rem;
}

.nq-coach__badge-icon i {
    font-size: 0.8rem;
    line-height: 1;
    color: #0f86f8;
    --fa-primary-color: #0f86f8;
    --fa-secondary-color: #49deff;
    --fa-primary-opacity: 1;
    --fa-secondary-opacity: 0.35;
}

.nq-coach__badge--top {
    top: 6%;
    right: -2%;
    animation: nq-badge-bob 5s ease-in-out infinite;
}

.nq-coach__badge--bottom {
    bottom: 10%;
    left: -4%;
    animation: nq-badge-bob 6s ease-in-out infinite 1.4s;
}

.nq-coach__chat {
    position: relative;
    width: 100%;
    max-width: 390px;
    border: 1px solid rgba(11, 79, 145, 0.1);
    border-radius: 1.85rem;
    background:
        radial-gradient(circle at top, rgba(73, 222, 255, 0.09), transparent 30%),
        linear-gradient(165deg, rgba(248, 253, 255, 0.97), rgba(227, 246, 255, 0.96));
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.5),
        0 28px 70px -16px rgba(15, 134, 248, 0.18);
    overflow: hidden;
    z-index: 2;
}

.nq-coach__chat-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid rgba(15, 134, 248, 0.08);
}

.nq-coach__chat-avatar {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #49deff, #0f86f8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem;
    color: #04111d;
    box-shadow: 0 12px 24px rgba(15, 134, 248, 0.16);
}

.nq-coach__chat-avatar svg,
.nq-coach__chat-avatar i {
    width: 100%;
    height: 100%;
}

.nq-coach__chat-avatar i {
    font-size: 1rem;
    line-height: 1;
    width: auto;
    height: auto;
    --fa-primary-color: #04111d;
    --fa-secondary-color: rgba(4, 17, 29, 0.45);
    --fa-primary-opacity: 1;
    --fa-secondary-opacity: 1;
}

.nq-coach__chat-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--nq-text);
}

.nq-coach__chat-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    color: #0c8d63;
}

.nq-coach__status-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
}

.nq-coach__level {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    min-height: 1.8rem;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: rgba(15, 134, 248, 0.08);
    color: var(--nq-primary);
    font-size: 0.72rem;
    font-weight: 700;
}

.nq-coach__chat-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nq-coach__quest-card {
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(73, 222, 255, 0.14), rgba(15, 134, 248, 0.08));
    border: 1px solid rgba(15, 134, 248, 0.08);
}

.nq-coach__quest-label {
    margin-bottom: 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--nq-primary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nq-coach__quest-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--nq-text);
    font-size: 0.86rem;
}

.nq-coach__quest-row strong {
    font-weight: 700;
}

.nq-coach__quest-row span {
    color: var(--nq-primary);
    font-weight: 700;
}

.nq-coach__msg {
    max-width: 88%;
    padding: 0.82rem 0.95rem;
    border-radius: 1.125rem;
    font-size: 0.88rem;
    line-height: 1.65;
    box-shadow: 0 8px 18px rgba(15, 134, 248, 0.05);
}

.nq-coach__msg--bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(15, 134, 248, 0.06);
    color: var(--nq-text-soft);
    border-bottom-left-radius: 0.4rem;
}

.nq-coach__msg--bot strong,
.nq-coach__msg--user strong {
    color: var(--nq-text);
}

.nq-coach__msg--user {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(15, 134, 248, 0.16), rgba(73, 222, 255, 0.12));
    border: 1px solid rgba(15, 134, 248, 0.08);
    color: var(--nq-text);
    border-bottom-right-radius: 0.4rem;
}

.nq-coach__typing {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    align-self: flex-start;
    padding: 0.65rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(15, 134, 248, 0.06);
}

.nq-coach__typing span {
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 999px;
    background: rgba(11, 79, 145, 0.45);
    animation: nq-typing-dot 1.3s ease-in-out infinite;
}

.nq-coach__typing span:nth-child(2) {
    animation-delay: 0.16s;
}

.nq-coach__typing span:nth-child(3) {
    animation-delay: 0.32s;
}

@keyframes nq-typing-dot {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
    40% { transform: translateY(-3px); opacity: 1; }
}

.nq-coach__chat-glow {
    position: absolute;
    width: 65%;
    height: 55%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: radial-gradient(
        ellipse,
        rgba(73, 222, 255, 0.2) 0%,
        rgba(15, 134, 248, 0.12) 45%,
        transparent 70%
    );
    filter: blur(45px);
    pointer-events: none;
    z-index: 1;
    animation: nq-section-glow-breathe 8s ease-in-out infinite;
}
