:root {
    --wc-ink: #0b1220;
    --wc-teal: #0f766e;
    --wc-teal-bright: #14b8a6;
    --wc-teal-soft: #ecfdf8;
    --wc-rose: #e11d48;
    --wc-amber: #d97706;
    --wc-line: #e6edf5;
    --wc-muted: #64748b;
    --wc-card: #ffffff;
    --wc-bg-glow: #f3faf8;
}

.wc-dash {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    color: var(--wc-ink);
}

.wc-hero {
    position: relative;
    overflow: hidden;
    border-radius: 1.35rem;
    padding: 1.45rem 1.5rem 1.35rem;
    color: #fff;
    background:
        radial-gradient(700px 240px at 12% -20%, rgba(45, 212, 191, 0.35), transparent 55%),
        radial-gradient(520px 220px at 100% 0%, rgba(251, 191, 36, 0.18), transparent 50%),
        linear-gradient(135deg, #07111f 0%, #0f2f2c 48%, #0f766e 100%);
    box-shadow: 0 18px 40px rgba(15, 118, 110, 0.18);
}

.wc-hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -40% auto;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.wc-hero__top {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.wc-hero__brand {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 700;
}

.wc-hero__title {
    margin: 0.35rem 0 0;
    font-size: clamp(1.55rem, 2.4vw, 2rem);
    font-weight: 750;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.wc-hero__sub {
    margin: 0.45rem 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    max-width: 36rem;
}

.wc-live {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    padding: 0.5rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.wc-live__dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #34d399;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.65);
    animation: wcPulse 1.7s infinite;
}

@keyframes wcPulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
    70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.wc-hero__metrics {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.25rem;
}

@media (min-width: 900px) {
    .wc-hero__metrics {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.wc-metric {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 0.95rem 1rem;
    min-height: 108px;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.wc-metric__label {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.68);
    font-weight: 700;
}

.wc-metric__value {
    font-size: clamp(1.55rem, 2vw, 1.95rem);
    font-weight: 780;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.wc-metric__hint {
    margin-top: auto;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.78rem;
}

.wc-metric--accent {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(20, 184, 166, 0.22));
    border-color: rgba(255, 255, 255, 0.2);
}

.wc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 1100px) {
    .wc-grid {
        grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
        align-items: start;
    }
}

.wc-card {
    background: var(--wc-card);
    border: 1px solid var(--wc-line);
    border-radius: 1.2rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.wc-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient(180deg, #f8fbfb 0%, #fff 100%);
}

.wc-card__title {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 750;
}

.wc-card__meta {
    margin: 0.15rem 0 0;
    color: var(--wc-muted);
    font-size: 0.75rem;
    font-weight: 600;
}

.wc-card__link {
    color: var(--wc-teal);
    font-size: 0.78rem;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.wc-card__link:hover {
    text-decoration: underline;
}

.wc-feed {
    max-height: 520px;
    overflow: auto;
}

.wc-tx {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.85rem;
    padding: 0.9rem 1.15rem;
    border-bottom: 1px solid #f3f6fa;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.wc-tx:hover {
    background: var(--wc-bg-glow);
}

.wc-tx:last-child {
    border-bottom: 0;
}

.wc-tx__badge {
    min-width: 3.4rem;
    height: fit-content;
    margin-top: 0.15rem;
    text-align: center;
    border-radius: 999px;
    padding: 0.28rem 0.5rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.wc-tx__badge.is-ok {
    background: #ecfdf5;
    color: #047857;
}

.wc-tx__badge.is-fail {
    background: #fff1f2;
    color: #be123c;
}

.wc-tx__name {
    font-weight: 720;
    font-size: 0.9rem;
    color: var(--wc-ink);
}

.wc-tx__sub {
    margin-top: 0.18rem;
    color: var(--wc-muted);
    font-size: 0.75rem;
    line-height: 1.35;
}

.wc-tx__right {
    text-align: end;
}

.wc-tx__qty {
    font-weight: 760;
    font-variant-numeric: tabular-nums;
    color: var(--wc-ink);
    font-size: 0.88rem;
}

.wc-tx__when {
    margin-top: 0.18rem;
    color: #94a3b8;
    font-size: 0.72rem;
}

.wc-stock-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.85rem 1.15rem;
    border-bottom: 1px solid #f3f6fa;
    text-decoration: none;
    color: inherit;
}

.wc-stock-row:hover {
    background: var(--wc-bg-glow);
}

.wc-stock-row:last-child {
    border-bottom: 0;
}

.wc-stock-row__name {
    font-weight: 720;
    font-size: 0.86rem;
}

.wc-stock-row__sku {
    margin-top: 0.12rem;
    color: #94a3b8;
    font-size: 0.72rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.wc-stock-row__count {
    min-width: 2.6rem;
    text-align: center;
    border-radius: 0.65rem;
    padding: 0.4rem 0.5rem;
    font-weight: 780;
    font-variant-numeric: tabular-nums;
}

.wc-stock-row__count.is-empty {
    background: #fff1f2;
    color: #be123c;
}

.wc-stock-row__count.is-low {
    background: #fffbeb;
    color: #b45309;
}

.wc-stock-row__count.is-ok {
    background: #ecfdf5;
    color: #047857;
}

.wc-empty {
    padding: 2.2rem 1.2rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.88rem;
}

.wc-side-note {
    margin: 0;
    padding: 0.9rem 1.15rem 1.15rem;
    color: var(--wc-muted);
    font-size: 0.78rem;
    line-height: 1.45;
    border-top: 1px solid #f1f5f9;
    background: #fbfdfe;
}

.fi-dashboard-page .fi-header-heading {
    letter-spacing: -0.02em;
}
