.dash-wrap {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.dash-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.dash-head h1 {
    font-size: 30px;
    font-weight: 200;
    letter-spacing: -0.01em;
}

.welcome {
    font-size: 13.5px;
    color: var(--dim);
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.dash-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dash-card.accent {
    border-color: rgba(233, 30, 140, 0.4);
    background: linear-gradient(140deg, rgba(233, 30, 140, 0.09), var(--card) 60%);
}

.dash-card h4 {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: lowercase;
    color: var(--dim-2);
    font-weight: 400;
}

.dash-card .big {
    font-size: 24px;
    font-weight: 300;
}

.dash-card .sub {
    font-size: 12.5px;
    color: var(--dim-2);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    background: var(--ok);
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.6);
}

.status-dot.warn {
    background: var(--warn);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.6);
}

.status-dot.bad {
    background: var(--bad);
    box-shadow: 0 0 10px rgba(248, 113, 113, 0.6);
}

.dash-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
    font-size: 13.5px;
    color: var(--dim);
}

.dash-list li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 11px;
}

.dash-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.dash-list .t {
    color: var(--dim-2);
    font-size: 12px;
    white-space: nowrap;
}

.dash-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.keyrow {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.keyrow code {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.redeem-row {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    align-items: center;
}

.redeem-row input {
    flex: 1;
    min-width: 140px;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line-2);
    padding: 6px 2px;
    font-size: 13px;
    color: var(--text);
    outline: none;
    font-family: ui-monospace, Consolas, monospace;
}

.redeem-row input:focus {
    border-color: var(--accent);
}

.dc-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    border: 1px solid rgba(88, 101, 242, 0.45);
    background: rgba(88, 101, 242, 0.14);
    color: var(--text);
}

.copy-btn {
    background: transparent;
    border: 1px solid var(--line-2);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    color: var(--dim);
    cursor: pointer;
    transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.copy-btn:hover {
    border-color: var(--accent);
    color: var(--text);
}

#view-dashboard.enter {
    animation: dashIn 0.6s var(--ease) both;
}

#view-dashboard.leave {
    animation: dashOut 0.5s var(--ease) both;
}

@keyframes dashIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dashOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-14px);
    }
}

.stagger > * {
    opacity: 0;
    animation: staggerIn 0.5s var(--ease) forwards;
}

.stagger > *:nth-child(1) {
    animation-delay: 0.05s;
}

.stagger > *:nth-child(2) {
    animation-delay: 0.12s;
}

.stagger > *:nth-child(3) {
    animation-delay: 0.19s;
}

.stagger > *:nth-child(4) {
    animation-delay: 0.26s;
}
