/* =====================================================================
   Realistic 3D model stages (wwwroot/js/med-model.js) + clinic status card
   ===================================================================== */

/* ---------- 3D model containers ---------- */
.fx-model { position: relative; }
.fx-model canvas { display: block; outline: none; }
.fx-model:not(.is-ready) { background: radial-gradient(closest-side, rgba(15,34,52,.06), transparent); }

/* home hero stage: unobstructed 3D model with the live clinic-status panel below it */
.fx-stage { position: relative; margin-top: 10px; }
.fx-stage:before { content: ''; position: absolute; left: 4%; right: 4%; top: 2%; height: 420px; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255,255,255,.95), rgba(255,255,255,0)); pointer-events: none; }
.fx-model-hero { position: relative; height: 430px; }
.fx-status-card { position: relative; z-index: 2; margin-top: -10px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 22px;
    background: rgba(9,24,35,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 14px 20px 4px; color: #CFE9EF;
    box-shadow: 0 24px 50px rgba(15,34,52,.25); }
.fx-status-card .fx-screen-head { grid-column: 1 / -1; margin-bottom: 2px; }

/* page header model */
.fx-model-header { flex: 0 0 320px; width: 320px; height: 220px; }

/* service page photo (replaces the old drawing) */
.fx-service-photo { width: 100%; height: 230px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }

/* ---------- responsive ---------- */
@media (max-width: 1199px) { .fx-model-header { flex-basis: 260px; width: 260px; height: 190px; } .fx-status-card { grid-template-columns: 1fr; } }
@media (max-width: 991px) { .fx-stage { margin-top: 30px; } }
@media (max-width: 767px) {
    .fx-model-hero { height: 330px; }
    .fx-stage:before { height: 320px; }
    .fx-status-card { grid-template-columns: 1fr; }
    .fx-model-header { align-self: center; flex: none; width: 100%; max-width: 320px; height: 190px; }
}

/* ---------- smooth navigation (wwwroot/js/smooth-nav.js) ---------- */
.fx-progress { position: fixed; top: 0; left: 0; z-index: 100001; height: 3px; width: 0; opacity: 0; pointer-events: none;
    background: linear-gradient(90deg, var(--pulse), #FF6B70); box-shadow: 0 0 10px rgba(215,25,31,.5); }
::view-transition-old(root) { animation: 180ms ease both fx-vt-out; }
::view-transition-new(root) { animation: 260ms ease both fx-vt-in; }
@keyframes fx-vt-out { to { opacity: 0; } }
@keyframes fx-vt-in { from { opacity: 0; transform: translateY(8px); } }
#main.fx-swap-in { animation: fx-vt-in 300ms ease both; }
@media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
    #main.fx-swap-in { animation: none; }
}

/* clinic clock: smaller, steady-width fraction digits */
.fx-clock { white-space: nowrap; font-variant-numeric: tabular-nums; }
.fx-clock-frac { font-size: .62em; opacity: .85; letter-spacing: .02em; }
.fx-clock-suffix { font-size: .82em; }
@media (max-width: 420px) { .fx-clock { font-size: 19px; } }
