/* Tiny "last seen" footnote at the bottom of .days-counter.
   Two pinprick lamps with name + relative time, separated by a hairline.
   Recency states control the dot's color/glow/pulse — kept very subtle so
   it reads as a footnote, not a feature. */

.counter-presence {
    margin: 18px 0 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    letter-spacing: .05em;
    color: var(--ink-faint);
}

.cp-cell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}

.cp-divider {
    width: 1px;
    height: 11px;
    background: linear-gradient(180deg, transparent, rgba(178, 88, 103, .3), transparent);
}
body[data-current-role="hins"] .cp-divider {
    background: linear-gradient(180deg, transparent, rgba(58, 109, 171, .3), transparent);
}

.cp-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(120, 100, 100, .35);
    box-shadow: 0 0 0 0 rgba(255, 200, 130, 0);
    transition: background var(--t-mid), box-shadow var(--t-mid), transform var(--t-mid);
}

.cp-name {
    font-weight: 500;
    color: var(--ink-soft);
}
.cp-cell[data-role="rania"] .cp-name { color: var(--rose-deep); }
.cp-cell[data-role="hins"]  .cp-name { color: var(--hins-blue); }

.cp-sep {
    color: var(--ink-faint);
    opacity: .6;
}

.cp-time {
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.92rem;
    color: var(--ink-soft);
}

/* Recency — controls just the dot. Tiny visual cues, nothing loud. */
.cp-cell[data-recency="now"] .cp-dot {
    background: #f4b35a;
    box-shadow:
        0 0 0 1px rgba(232, 180, 110, .55),
        0 0 8px 1px rgba(255, 200, 130, .75);
    animation: cpPulse 2.2s ease-in-out infinite;
}
.cp-cell[data-recency="recent"] .cp-dot {
    background: #d99a5b;
    box-shadow: 0 0 6px 0 rgba(255, 200, 130, .4);
}
.cp-cell[data-recency="today"] .cp-dot {
    background: #b89682;
}
.cp-cell[data-recency="older"] .cp-dot {
    background: rgba(120, 100, 100, .45);
}
.cp-cell[data-recency="never"] .cp-dot {
    background: rgba(120, 100, 100, .25);
    box-shadow: inset 0 0 0 1px rgba(120, 100, 100, .35);
}

@keyframes cpPulse {
    0%, 100% { transform: scale(1);    box-shadow: 0 0 0 1px rgba(232, 180, 110, .55), 0 0 8px 1px rgba(255, 200, 130, .75); }
    50%      { transform: scale(1.18); box-shadow: 0 0 0 1px rgba(232, 180, 110, .75), 0 0 14px 2px rgba(255, 200, 130, .95); }
}

@media (max-width: 540px) {
    .counter-presence { gap: 10px; font-size: 0.66rem; }
    .cp-time { font-size: 0.86rem; }
}

@media (prefers-reduced-motion: reduce) {
    .cp-cell .cp-dot { animation: none !important; }
}
