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

.dash-profile {
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.12), rgba(88, 101, 242, 0.08) 55%, var(--card));
    border: 1px solid rgba(233, 30, 140, 0.34);
    border-radius: var(--r);
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.dash-profile-id {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.avatar-ring {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 2px solid rgba(233, 30, 140, 0.55);
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    color: #180713;
    font-size: 20px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    text-transform: uppercase;
}

.avatar-ring img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dash-profile-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dash-profile-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dash-profile-title strong {
    font-size: 20px;
    font-weight: 400;
    color: var(--text);
}

.hwid-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--dim-2);
    margin-top: 2px;
}

.hwid-line code {
    font-family: ui-monospace, Consolas, monospace;
    color: var(--dim);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 2px 7px;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: lowercase;
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, 0.04);
    color: var(--dim);
}

.badge-pill.ok {
    border-color: rgba(74, 222, 128, 0.4);
    color: var(--ok);
    background: rgba(74, 222, 128, 0.08);
}

.badge-pill.warn {
    border-color: rgba(251, 191, 36, 0.4);
    color: var(--warn);
    background: rgba(251, 191, 36, 0.08);
}

.badge-pill.accent {
    border-color: rgba(233, 30, 140, 0.45);
    color: var(--accent-2);
    background: rgba(233, 30, 140, 0.1);
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 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: 9px;
}

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

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.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: 10px;
    font-size: 13.5px;
    color: var(--dim);
}

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

.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-list .t.ok {
    color: var(--ok);
}

.dash-list .t.warn {
    color: var(--warn);
}

.card-head .pill {
    font-size: 10.5px;
    padding: 3px 10px;
}

.dash-divider {
    height: 1px;
    background: var(--line);
    margin: 6px 0 4px;
}

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

.keyrow {
    display: flex;
    gap: 8px;
    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,
.cred-row {
    display: flex;
    gap: 8px;
    margin-top: 4px;
    align-items: center;
}

.cred-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.redeem-row input {
    font-family: ui-monospace, Consolas, monospace;
}

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

.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), background 0.25s var(--ease);
}

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

.copy-btn.mini {
    padding: 2px 8px;
    font-size: 11px;
}

.copy-btn.accent-link {
    border-color: rgba(233, 30, 140, 0.45);
    color: var(--accent-2);
    background: rgba(233, 30, 140, 0.08);
}

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

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

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

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

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

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

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

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

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

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

@media (prefers-reduced-motion: reduce) {
    .stagger > * {
        opacity: 1;
        animation: none;
    }
}
