.profile-overview {
    position: relative;
    border-radius: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background:
        radial-gradient(circle at 15% 20%, rgba(244, 184, 96, 0.2), transparent 55%),
        radial-gradient(circle at 80% 0%, rgba(56, 189, 248, 0.25), transparent 65%),
        linear-gradient(140deg, rgba(8, 13, 24, 0.95), rgba(18, 26, 44, 0.85));
    box-shadow: 0 30px 60px rgba(2, 6, 23, 0.6);
    overflow: hidden;
}

.profile-overview::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(244, 184, 96, 0.18), transparent 55%),
                radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.16), transparent 60%);
    pointer-events: none;
}

.profile-avatar {
    display: flex;
    height: 6rem;
    width: 6rem;
    align-items: center;
    justify-content: center;
    border-radius: 1.4rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.65);
    color: var(--bard-gold, #fbbf24);
    font-size: 2.5rem;
    box-shadow: 0 18px 35px rgba(2, 6, 23, 0.45);
}

.profile-heading h1 {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 3.1vw, 3.4rem);
    letter-spacing: 0.08em;
}

.profile-heading p.text-sm {
    font-family: var(--font-sans);
    font-weight: 500;
    letter-spacing: 0.05em;
}

.profile-meta-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.profile-meta-card {
    border-radius: 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(15, 23, 42, 0.58);
    padding: 0.85rem 1rem;
}

.profile-meta-card dt {
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.65rem;
    color: rgba(148, 163, 184, 0.65);
}

.profile-meta-card dd {
    margin-top: 0.4rem;
    font-weight: 600;
    font-size: 1rem;
    color: #f1f5f9;
}

.profile-stat-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
}

.profile-stat-card {
    border-radius: 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(150deg, rgba(15, 23, 42, 0.88), rgba(11, 18, 33, 0.72));
    box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.12);
    min-width: 18rem;
    width: 100%;
}

.profile-section {
    position: relative;
    border-radius: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(2, 6, 23, 0.72);
    box-shadow: 0 24px 48px rgba(2, 6, 23, 0.55);
}

.profile-section::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(148, 163, 184, 0.08);
    pointer-events: none;
}

.profile-table {
    width: 100%;
    border-collapse: collapse;
}

.profile-table tbody tr {
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.profile-table tbody tr:hover {
    background-color: rgba(148, 163, 184, 0.08);
    transform: translateY(-1px);
}

.profile-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.profile-chip--success {
    background-color: rgba(34, 197, 94, 0.18);
    border: 1px solid rgba(34, 197, 94, 0.45);
    color: #34d399;
}

.profile-chip--pending {
    background-color: rgba(251, 191, 36, 0.18);
    border: 1px solid rgba(251, 191, 36, 0.45);
    color: #fbbf24;
}

.profile-chip--failed {
    background-color: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #f87171;
}

.profile-link {
    color: #fbbf24;
    text-decoration: none;
    transition: color 0.2s ease;
}

.profile-link:hover {
    color: #fcd34d;
}

.profile-link--secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(226, 232, 240, 0.8);
}

.profile-link--secondary:hover {
    color: #fbbf24;
}

.profile-quick-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.65);
    color: rgba(226, 232, 240, 0.85);
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.profile-quick-link__count {
    font-family: var(--font-display, 'Cinzel', serif);
    font-weight: 600;
    font-size: 0.9rem;
}

.profile-quick-link:hover {
    border-color: rgba(244, 184, 96, 0.5);
    background: rgba(244, 184, 96, 0.1);
    color: #fbbf24;
}

.profile-quick-link--success {
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
}

.profile-quick-link--success .profile-quick-link__count {
    color: #a7f3d0;
}

.profile-quick-link--success:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.55);
}

.profile-quick-link--pending {
    border-color: rgba(251, 191, 36, 0.35);
    background: rgba(251, 191, 36, 0.12);
    color: #facc15;
}

.profile-quick-link--pending .profile-quick-link__count {
    color: #fde68a;
}

.profile-quick-link--pending:hover {
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.55);
}

.profile-quick-link--failed {
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}

.profile-quick-link--failed .profile-quick-link__count {
    color: #fecaca;
}

.profile-quick-link--failed:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.55);
}

.profile-quick-link--static {
    cursor: default;
    pointer-events: none;
    border-color: rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.55);
}

@media (max-width: 640px) {
    .profile-stat-card {
        min-width: 100%;
    }
    .profile-stat-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
