/* Medical & Pharmacy — nexvork.ai (prefix mp-) */

.mp-hero { overflow: hidden; }
.mp-hero .container { z-index: 1; }
.mp-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.mp-hero-grid > *, .mp-pain .split > *, .mp-wa .split > *, .mp-reports .split > *, .mp-setup-grid > * { min-width: 0; }
.mp-hero-title { max-width: 20ch; font-size: clamp(2.1rem, 3.8vw, 3.2rem); }
.mp-hero-actions { margin-top: 32px; }
.mp-hero-links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 22px; }
.mp-hero-links .nx-link { font-size: 0.88rem; }
.mp-orb-1 { width: 520px; height: 520px; top: -160px; left: -140px; }
.mp-orb-2 { width: 600px; height: 600px; top: 8%; right: -220px; }

.mp-hero-visual { position: relative; padding-bottom: 172px; }
.mp-refills { max-width: min(100%, 600px); margin-left: auto; }
.mp-refills-head { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.mp-refill-list .nx-row { padding: 9px 11px; }
.mp-due { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; white-space: nowrap; flex-shrink: 0; }
.mp-due-today { background: rgba(244,63,94,0.15); color: #FB7185; }
.mp-due-soon { background: rgba(245,158,11,0.15); color: #FBBF24; }
.mp-due-ok { background: rgba(16,185,129,0.15); color: #34D399; }
.mp-due-late { background: rgba(244,63,94,0.12); color: #FB7185; box-shadow: inset 0 0 0 1px rgba(244,63,94,0.45); }
.mp-expiry { margin-top: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(245,158,11,0.3); background: rgba(245,158,11,0.06); }
.mp-expiry-head { display: flex; justify-content: space-between; gap: 10px; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--nx-amber); margin-bottom: 4px; }
.mp-exp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; font-size: 0.72rem; padding: 6px 0; border-top: 1px solid rgba(245,158,11,0.16); }
.mp-exp-row strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-exp-row span { color: var(--muted); white-space: nowrap; }
.mp-exp-row em { font-style: normal; font-family: var(--font-mono); font-size: 0.64rem; color: var(--nx-amber); white-space: nowrap; }
.mp-exp-row em.is-hot { color: #FB7185; }

.mp-hero-chat { position: absolute; right: -8px; bottom: 0; width: 272px; max-width: calc(100% - 16px); z-index: 3; font-size: 0.78rem; }
.mp-hero-chat .nx-chat-body { padding: 10px; gap: 6px; }
.mp-hero-chat .nx-msg { font-size: 0.72rem; max-width: 92%; }

.mp-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 0.76rem; font-weight: 600; color: var(--text); box-shadow: var(--shadow-md); white-space: nowrap; z-index: 3; }
.mp-chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--nx-wa); box-shadow: 0 0 10px var(--nx-wa); flex-shrink: 0; }
.mp-chip-dot-hot { background: var(--nx-rose); box-shadow: 0 0 10px var(--nx-rose); }
.mp-chip-1 { top: -18px; left: -10px; }
.mp-chip-3 { bottom: 30px; left: 0; right: 0; width: max-content; max-width: calc(100% - 16px); margin: 0 auto; white-space: normal; text-align: center; }

.mp-seg-grid .nx-card p { font-size: 0.93rem; }

.mp-pains { display: grid; gap: 16px; }
.mp-pains li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.mp-pain-num { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; color: var(--nx-blue-2); padding-top: 4px; }
html[data-theme="light"] .mp-pain-num { color: var(--nx-purple); }
.mp-pains strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 3px; }
.mp-pains p { color: var(--muted); font-size: 0.93rem; line-height: 1.55; }
.mp-before { position: relative; padding: 20px 0; }
.mp-before-phone { width: 300px; }

.mp-bento { gap: 18px; }
.mp-bento .nx-card-num { white-space: normal; line-height: 1.5; }
.mp-code { font-family: var(--font-mono); font-size: 0.72em; padding: 1px 6px; border-radius: 5px; background: var(--surface-3); border: 1px solid var(--line); color: var(--nx-blue-2); white-space: nowrap; }
html[data-theme="light"] .mp-code { color: var(--nx-purple); }
.mp-mini .nx-row { padding: 8px 10px; }
.mp-mini-chat { box-shadow: none; }
.mp-mini-chat .nx-chat-body { padding: 12px; }
.mp-sub { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); font-size: 0.78rem; }
.mp-sub + .mp-sub { margin-top: 6px; }
.mp-sub strong { display: block; color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-sub span { color: var(--muted); font-size: 0.72rem; }
.mp-sub em { font-style: normal; font-family: var(--font-mono); font-size: 0.66rem; color: var(--nx-emerald); white-space: nowrap; }

.mp-story-win, .mp-story-con { max-width: 560px; }
.mp-story-con .nx-console-body { font-size: 0.72rem; }
.mp-story-phone { width: 300px; }
.mp-match { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; margin-top: 8px; border-radius: 9px; border: 1px solid rgba(255,255,255,0.07); background: rgba(255,255,255,0.03); font-size: 0.78rem; }
html[data-theme="light"] .mp-match { border-color: var(--line); background: var(--bg-2); }
.mp-match > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-match small { display: block; color: var(--muted); font-size: 0.7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-match strong { color: #34D399; font-family: var(--font-mono); font-size: 0.7rem; white-space: nowrap; flex-shrink: 0; }
.mp-match strong.is-warn { color: #FBBF24; }

.mp-wa-visual { position: relative; padding: 20px 0; }
.mp-wa-visual .nx-phone { width: 320px; }
.mp-wa .nx-checks { margin-top: 4px; }

.mp-day .nx-step { display: flex; flex-direction: column; }
.mp-day-time { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--subtle); margin: 14px 0 8px; }
.mp-day-list { display: grid; gap: 6px; }
.mp-day-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; color: var(--text-2); line-height: 1.5; }
.mp-day-list li::before { content: ""; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); margin-top: 8px; }

.mp-report { max-width: 560px; }
.mp-report .nx-cols { margin-top: 10px; }
.mp-store { display: grid; grid-template-columns: minmax(0, 1fr) 74px auto; gap: 10px; align-items: center; padding: 8px 11px; margin-top: 6px; border-radius: 9px; border: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.03); font-size: 0.76rem; }
html[data-theme="light"] .mp-store { border-color: var(--line); background: var(--bg-2); }
.mp-store strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-store em { font-style: normal; font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted); white-space: nowrap; }
.mp-reports .nx-checks { margin-top: 4px; }

.mp-setup-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.mp-setup-steps { grid-template-columns: 1fr; gap: 16px; }
.mp-needs { position: sticky; top: calc(var(--header-h) + 24px); }
.mp-needs .nx-checks li { font-size: 0.93rem; }

.mp-rel-card { display: flex; flex-direction: column; }
.mp-rel-card .nx-card-link { margin-top: auto; padding-top: 18px; }

.mp-faq-note { color: var(--muted); }

@media (max-width: 1100px) {
    .mp-hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .mp-hero-title { max-width: none; }
    .mp-refills { margin: 0 auto; }
    .mp-chip-1 { left: 0; }
}
@media (max-width: 900px) {
    .mp-setup-grid { grid-template-columns: 1fr; }
    .mp-needs { position: relative; top: 0; }
    .mp-story-phone, .mp-before-phone { width: 280px; margin: 0 auto; }
}
@media (max-width: 640px) {
    .mp-hero-visual { padding-bottom: 150px; }
    .mp-hero-chat { right: 0; width: 250px; }
    .mp-chip { font-size: 0.7rem; padding: 7px 11px; }
    .mp-chip-1 { top: -14px; }
    .mp-chip-3 { bottom: 14px; }
    .mp-refills-head .nx-tag { font-size: 0.6rem; }
    .mp-exp-row { grid-template-columns: minmax(0, 1fr) auto; }
    .mp-exp-row span { display: none; }
    .mp-wa-visual .nx-phone { width: 280px; }
    .mp-reports .nx-kpis { grid-template-columns: 1fr 1fr; }
    .mp-store { grid-template-columns: minmax(0, 1fr) auto; }
    .mp-store .nx-bar { display: none; }
}
@media (max-width: 400px) {
    .mp-hero-chat { width: 230px; }
    .mp-pains li { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
}
