

body {
    font-family: "Yekan Bakh", Tahoma, sans-serif;
}

/* Brand fonts, shared by the landing (public.css) and the panel (panel.css). */
@font-face { font-family: "Yekan Bakh"; src: url("../fonts/YekanBakh-Medium.f7360956.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Yekan Bakh"; src: url("../fonts/YekanBakh-Bold.bbd877a3.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Yekan Bakh"; src: url("../fonts/YekanBakh-Fat.e508fcc6.woff") format("woff"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Khorshid"; src: url("../fonts/Khorshid.ttf") format("truetype"); font-display: swap; }

.w_inherit{
    width: inherit;
}

:root { --sig-onair: #ff495f; }

/* Shared by the dashboard: on-air dot (live pill) and equalizer bars (metric-eq). */
.onair-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sig-onair);
    box-shadow: 0 0 10px var(--sig-onair);
    animation: blink 1.4s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}
@keyframes eq {
    0%, 100% { transform: scaleY(0.1); }
    50% { transform: scaleY(0.85); }
}

/* ══════════════════════════════════════════════════════════════
   Dashboard — landing look (lapis banner, girih-star chips)
   ══════════════════════════════════════════════════════════════ */
.dashboard .anim-up {
    opacity: 0;
    transform: translateY(14px);
    animation: up 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes up {
    to { opacity: 1; transform: translateY(0); }
}

.section-eyebrow,
.card-eyebrow {
    display: block;
    margin-bottom: .2rem;
    font-size: .8rem;
    font-weight: 700;
    color: var(--primary, #4953A4);
}

/* welcome banner: the landing hero card in miniature */
.status-ribbon {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(24px, 3vw, 40px);
    border-radius: 28px;
    color: #fff;
    background:
        radial-gradient(45% 90% at 12% 50%, rgba(90, 85, 221, .6), transparent 72%),
        linear-gradient(165deg, #1D2052 0%, #2A2770 55%, #3A2F8C 100%);
    box-shadow: 0 30px 60px -30px rgba(29, 32, 82, .7);
}

.status-ribbon .section-eyebrow { color: #FFD453; }

.status-ribbon h4.status-ribbon-hi {
    margin-bottom: .35rem;
    font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem);
    font-weight: 900;
    color: #fff;
}

.status-ribbon .status-ribbon-sub {
    margin: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, .78);
}

.status-ribbon .badge {
    background: rgba(255, 212, 83, .14) !important;
    color: #FFD453 !important;
    font-size: .85rem;
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .45rem 1rem;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 700;
    white-space: nowrap;
}

.live-pill.is-live { color: #fff; background: #E5484D; }
.live-pill.is-live .onair-dot { background: #fff; box-shadow: 0 0 10px #fff; }

.live-pill.is-idle {
    color: rgba(255, 255, 255, .8);
    background: rgba(255, 255, 255, .1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
}

.live-pill.is-idle .onair-dot {
    background: rgba(255, 255, 255, .55);
    box-shadow: none;
    animation: none;
}

/* metric tiles: tinted cards with the landing's eight-point star icon */
.metric {
    height: 100%;
    padding: clamp(20px, 2vw, 28px);
    border-radius: 28px;
    background: var(--primary-soft, #F5F6FC);
    transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .25s;
}

.metric:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 40px -28px rgba(34, 39, 72, .45);
}

.metric-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.metric-chip {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    clip-path: var(--star);
    background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 55%, #fff), var(--accent));
    color: #fff;
    font-size: 1.3rem;
}

.metric-value {
    font-size: clamp(2rem, 1.6rem + 1vw, 2.6rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--ink, #222748);
}

.metric-label {
    margin-top: .35rem;
    font-size: .95rem;
    font-weight: 700;
    color: var(--muted, #687076);
}

.metric-tag {
    padding: 0 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 12%, #fff);
    color: var(--accent);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 2;
}

/* mini equalizer for the actively-broadcasting metric */
.metric-eq {
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
    height: 22px;
}

.metric-eq i {
    width: 3px;
    border-radius: 2px;
    background: var(--accent);
    transform-origin: bottom;
    animation: eq 0.9s ease-in-out infinite;
}

.metric-eq i:nth-child(1) { height: 60%; animation-delay: -0.1s; }
.metric-eq i:nth-child(2) { height: 100%; animation-delay: -0.5s; }
.metric-eq i:nth-child(3) { height: 45%; animation-delay: -0.2s; }
.metric-eq i:nth-child(4) { height: 80%; animation-delay: -0.7s; }
.metric-eq i:nth-child(5) { height: 55%; animation-delay: -0.35s; }

@media (prefers-reduced-motion: reduce) {
    .metric-eq i,
    .onair-dot,
    .dashboard .anim-up {
        animation: none !important;
    }

    .dashboard .anim-up { opacity: 1; transform: none; }
}
